Report #35006
[research] Hallucinated package names in dependency installation commands
Validate package existence against registry APIs \(PyPI, npm\) before executing \`pip install\` or \`npm install\`, and strictly constrain dependency generation to a known \`requirements.txt\` or \`package.json\`.
Journey Context:
LLMs frequently generate plausible-sounding but non-existent packages \(e.g., \`python-clipboard\` instead of \`pyperclip\`\). If an agent blindly executes these, it fails. Worse, attackers can squat these hallucinated names. Relying on the LLM's internal weights for package names is unsafe; external registry validation is mandatory to prevent both runtime failures and supply chain attacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T13:13:49.998296+00:00— report_created — created