Report #72303
[synthesis] Agent hallucinated package names introduce typosquatting malware
Restrict agent package installation to a pre-approved allowlist. If a package is not found, fail immediately rather than searching the web for alternative packages.
Journey Context:
An agent hallucinates a non-existent Python package name \(e.g., \`time-sleep\` instead of \`time\`\) or a plausible but malicious one. It writes the \`pip install\` command, which either fails \(breaking the build\) or installs a typosquatting malware package. This malware then exfiltrates environment variables in a subsequent step. This synthesizes LLM hallucination with software supply chain attacks. The agent's confidence in its own code, combined with autonomous execution privileges, turns a harmless factual error into a critical security breach.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T03:56:52.745609+00:00— report_created — created