/** * Enhanced Security Report Generation and Analysis * Comprehensive security reporting for LLMS SDK */ import type { DeploymentSecurityReport } from "./deployment-hardening.js"; export interface SecurityMetrics { totalTests: number; passed: number; failed: number; criticalIssues: number; highIssues: number; mediumIssues: number; lowIssues: number; coverage: number; } export interface ComponentSecurityStatus { component: string; status: "secure" | "vulnerable" | "needs-review"; lastTested: string; issues: SecurityIssue[]; metrics: SecurityMetrics; } export interface SecurityIssue { id: string; title: string; severity: "critical" | "high" | "medium" | "low"; component: string; description: string; impact: string; mitigation: string; status: "open" | "mitigated" | "accepted"; discovered: string; lastUpdated: string; } export interface SecurityReportOptions { format: "markdown" | "html" | "json"; includeDetails: boolean; includeMitigations: boolean; includeTimeline: boolean; outputPath?: string; } export interface ProductionReadinessReport { ready: boolean; score: number; checks: { category: string; passed: number; failed: number; details: string[]; }[]; } /** * Enhanced Security Report Generator */ export declare class EnhancedSecurityReportGenerator { private static readonly SEVERITY_COLORS; private static readonly CATEGORY_ICONS; private issues; private componentStatus; /** * Track a security issue */ trackIssue(issue: SecurityIssue): void; /** * Update component metrics based on issue */ private updateMetrics; /** * Generate comprehensive security report */ generateReport(results: { attackTests?: any; vulnerabilityScans?: any[]; exploitTests?: any[]; productionReadiness?: ProductionReadinessReport; deploymentSecurity?: DeploymentSecurityReport; }, options: SecurityReportOptions): Promise; /** * Generate Markdown report */ private generateMarkdownReport; /** * Generate executive summary */ private generateExecutiveSummary; /** * Generate component status section */ private generateComponentStatusSection; /** * Generate attack test section */ private generateAttackTestSection; /** * Generate vulnerability section */ private generateVulnerabilitySection; /** * Generate production readiness section */ private generateProductionReadinessSection; /** * Generate deployment security section */ private generateDeploymentSecuritySection; /** * Generate timeline section */ private generateTimelineSection; /** * Generate recommendations section */ private generateRecommendationsSection; /** * Generate HTML report */ private generateHTMLReport; /** * Generate JSON report */ private generateJSONReport; private getSeverityIcon; private getCategoryIcon; private getStatusEmoji; private calculateOverallMetrics; private countSecureComponents; private countVulnerableComponents; private generateTimeline; private generateRecommendations; private groupBySeverity; private generateHTMLMetrics; private generateHTMLComponentTable; private generateHTMLDeploymentSection; private generateHTMLIssueDetails; private saveReport; } //# sourceMappingURL=security-report.d.ts.map