Report #26497
[agent\_craft] Suggesting non-existent or typosquatted packages \(hallucinated dependencies\)
Before suggesting an \`import\` or \`pip install\`, verify the package exists in a trusted registry \(e.g., PyPI, npm\) via a tool call. Never hallucinate package names.
Journey Context:
LLMs frequently hallucinate package names. Attackers watch for these hallucinations in public codebases and register the names with malicious payloads \(Supply Chain Vulnerabilities\). The agent must treat dependency resolution as a high-risk action requiring empirical verification, not just generation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:52:28.082809+00:00— report_created — created