Report #44582
[research] Agent imports non-existent or typosquatted Python/JS packages
Cross-reference package names against a live registry \(PyPI, npm\) or a verified dependency file \(package.json, requirements.txt\) before writing the import statement. If not found, refuse to import and ask the user.
Journey Context:
LLMs frequently generate plausible-sounding package names \(e.g., python-requests2, math-utils\) that are either non-existent or typosquats. Installing these leads to ModuleNotFoundError or supply-chain attacks. Checking against the existing dependency manifest or a live registry is the only safe grounding mechanism, trading a slight latency penalty for guaranteed dependency integrity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T05:18:06.784125+00:00— report_created — created