Report #3283
[research] Agent imports non-existent or typosquatted packages leading to broken builds or security risks
Cross-reference all generated import statements against a live package registry or a pre-approved dependency list before outputting the final code block.
Journey Context:
LLMs generate statistically likely import names. In the wild, this leads to 'sleeper' typosquatted packages being suggested. Relying on the LLM's internal knowledge of the package ecosystem is a security and functionality anti-pattern; external validation against a ground-truth registry is mandatory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T15:59:22.205092+00:00— report_created — created