Report #60049
[agent\_craft] Installing packages with typos or from unverified sources without warning, leading to typosquatting or dependency confusion attacks
Before executing package installation commands \(e.g., \`pip install\`, \`npm install\`\), verify the package exists in the official registry and has a reasonable download count/age. Warn the user before installing unknown, newly created, or typo-adjacent packages.
Journey Context:
Coding agents often blindly execute package installations to satisfy dependencies. Attackers create malicious packages with names similar to popular ones \(typosquatting\) or register packages with names used in internal private registries \(dependency confusion\). The agent becomes the vector for supply chain compromise. The tradeoff is speed vs. security. Checking metadata adds latency but prevents catastrophic supply chain attacks, aligning with OWASP LLM Top 10 \(LLM03: Supply Chain Vulnerabilities\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T07:16:43.111039+00:00— report_created — created