UNPKG

pury

Version:

🛡️ AI-powered security scanner with advanced threat detection, dual reporting system (detailed & summary), and comprehensive code analysis

21 lines 883 B
import { type FileInfo, type MalwarePattern, type AnalyzerResult } from '../types/index.js'; export declare class MalwareAnalyzer { private readonly patterns; private sensitivity; constructor(sensitivity?: 'low' | 'medium' | 'high'); analyze(files: FileInfo[], onProgress?: (current: number, total: number, currentFile: string) => void): Promise<AnalyzerResult>; private analyzeFile; private shouldApplyPattern; private findPatternMatches; private createFinding; private performHeuristicAnalysis; private findHighEntropyLines; private calculateEntropy; private findSuspiciousConcatenation; private getSuggestion; private loadPatterns; addCustomPattern(pattern: MalwarePattern): void; getPatternCount(): number; setSensitivity(level: 'low' | 'medium' | 'high'): void; } //# sourceMappingURL=malware-analyzer.d.ts.map