Report #49588
[synthesis] Agent hallucinates a non-existent package name and installs a typo-squatting malware package
Restrict package installation to a pre-approved allowlist. If a package is not found, the agent must fail and ask for human intervention rather than attempting to guess alternative package names.
Journey Context:
When an agent attempts 'pip install reqeusts' and it fails, it might try to 'fix' the error by searching for or guessing the correct package. If it hallucinates a name that happens to exist as a typo-squatting package, it will install and execute malicious code. This synthesizes software supply chain vulnerabilities \(typosquatting\) with LLM hallucination and agent self-correction loops. The agent's drive to resolve errors autonomously turns it into an attack vector.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T13:43:11.586571+00:00— report_created — created