AI hallucinates non-existent package names. Attacker registers them on npm/PyPI with malicious payloads. 20% of AI-suggested packages are hallucinated. 43% repeat consistently across queries.
๐ด 20% of AI suggestions
๐
Reverse Shell in Package
Malicious package with two reverse shells: one triggers on install (postinstall hook), one at runtime. Static scanners see "0 dependencies" โ payload downloaded fresh on each npm install.
๐ก 86,000 downloads before detection
๐
Dependency Confusion
Attacker publishes public package with same name as internal private package. npm/pip resolves public first. Legitimate CI/CD pipelines install the malicious version automatically.
โ SUPPLY CHAIN VECTOR
๐ Package Reputation Scoring
score <50 = BLOCK
Signal weights for package risk assessment:
Exists in registry
+50
Age >1 year
+20
Downloads >10K/wk
+15
Verified maintainer
+10
Hallucination pattern
-40
Install script + network
-50
Package <7 days old
-30
๐ฌ Last Package Inspection
// Run a scenario to see package inspection details
๐ก Package Install Monitor
TimePackageScoreRiskResult
// Monitoring package installs โ run scenario โ