pury
Version:
🛡️ AI-powered security scanner with advanced threat detection, dual reporting system (detailed & summary), and comprehensive code analysis
34 lines • 1.23 kB
TypeScript
import { type FileInfo, type AnalyzerResult } from '../types/index.js';
interface VulnerabilityInfo {
id: string;
severity: 'low' | 'moderate' | 'high' | 'critical';
title: string;
description: string;
affectedVersions: string;
patchedVersions?: string;
reference?: string;
}
export declare class DependencyAnalyzer {
private readonly vulnerabilityDatabase;
private suspiciousPackages;
constructor();
analyze(files: FileInfo[], onProgress?: (current: number, total: number, currentFile: string) => void): Promise<AnalyzerResult>;
private analyzePackageFile;
private analyzeNodePackage;
private analyzePythonRequirements;
private analyzeComposerPackage;
private analyzeLockFile;
private analyzePackageLockIntegrity;
private checkTypoSquatting;
private isLikelyTypo;
private levenshteinDistance;
private isVersionAffected;
private isLikelyOutdated;
private mapSeverity;
private loadKnownVulnerabilities;
private loadSuspiciousPackages;
addSuspiciousPackage(packageName: string): void;
addVulnerability(packageName: string, vulnerability: VulnerabilityInfo): void;
}
export {};
//# sourceMappingURL=dependency-analyzer.d.ts.map