/** * Known Malicious Packages Database * Static database of known malicious packages for offline detection * Updated: 2024-01 */ import { MaliciousPackageEntry, PackageEcosystem } from '../types'; /** * Database of known malicious packages * Sources: npm security advisories, PyPI reports, Snyk, etc. */ export declare const KNOWN_MALICIOUS_PACKAGES: MaliciousPackageEntry[]; /** * Popular package names for typosquatting detection */ export declare const POPULAR_PACKAGES: Record; /** * Known abandoned/deprecated packages */ export declare const DEPRECATED_PACKAGES: Record; /** * Packages known to have dangerous post-install scripts */ export declare const DANGEROUS_POSTINSTALL_PACKAGES: string[]; /** * Get malicious package entry if exists */ export declare function getMaliciousPackage(name: string, ecosystem: PackageEcosystem): MaliciousPackageEntry | undefined; /** * Check if package is deprecated */ export declare function isDeprecatedPackage(name: string): { deprecated: boolean; info?: typeof DEPRECATED_PACKAGES[string]; }; /** * Get popular packages for an ecosystem (for typosquatting detection) */ export declare function getPopularPackages(ecosystem: PackageEcosystem): string[]; //# sourceMappingURL=maliciousPackages.d.ts.map