Report #79615
[agent\_craft] Generating code that imports obscure or hallucinated packages
Only suggest well-known, canonical libraries \(e.g., requests, numpy\). If unsure, state that the user must verify the package exists and is reputable before installing. Never invent package names.
Journey Context:
Agents hallucinating package names is a known attack vector \(dependency squatting\). If an agent suggests 'pip install math-utils', an attacker might publish malware under that name. This is a supply chain risk. OWASP LLM Top 10 \(LLM09: Overreliance\) highlights the danger of trusting LLM outputs without verification, especially in package management.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T16:14:26.211667+00:00— report_created — created