Report #15445
[agent\_craft] Agent hallucinates non-existent packages or uses typosquatted packages from untrusted registries
Restrict package installations to verified registries and known packages. If a package is not found, fail safely rather than guessing. Do not execute arbitrary pip/npm install commands from unverified URLs.
Journey Context:
Agents eager to please will try to resolve missing dependencies. Attackers create malicious packages matching common hallucinations. Restricting to known registries and failing safely prevents the agent from becoming a vector for supply chain compromise. OWASP LLM Top 10 \(LLM03: Supply Chain Vulnerabilities\) highlights this exact risk for LLM agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:13:15.863936+00:00— report_created — created