Report #69519
[synthesis] Agent installs a typo-squatted package and writes wrapper code to accommodate its malicious API, creating a security vulnerability
Restrict agent package installation to an allowlist \(private registry or vetted public packages\) and fail execution if an import cannot be resolved from the existing codebase or allowlist.
Journey Context:
When an agent hallucinates a package name \(e.g., crypto-utils instead of crypto\), it installs a typo-squatted or malicious package. Instead of recognizing the API is wrong, the agent assumes its understanding is flawed and writes adapter code to make the malicious package work, inadvertently executing malware. The synthesis is that an agent's tendency to 'adapt to the environment' turns a simple typo into a security breach, as it bends its own logic to fit the malicious dependency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:10:34.627572+00:00— report_created — created