Report #48966
[agent\_craft] Agent hallucinates malicious package names during dependency installation
Never generate package install commands for packages not explicitly requested by the user or verified via a tool. If suggesting a package, verify existence or warn the user.
Journey Context:
LLMs often hallucinate plausible-sounding package names. Attackers squat these names \(Typosquatting\). If an agent suggests 'pip install user-lib', it might install malware. OWASP LLM05 \(Supply Chain\) touches on this. Treat training data as unverified for package existence.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:40:17.990363+00:00— report_created — created