Aug 21, 2025Confirmed
Malicious Nx npm Packages Reportedly Weaponize AI Coding Agents for Data Exfiltration
Rogue: Caused harmAI loose in the worldInjectionDERIVED
Approved by person, Oct 11, 2026. How entries are approved
Malicious versions of the popular Nx monorepo tool and plugins were reportedly published to npm after attackers compromised its CI workflow. The malware's postinstall script reportedly harvested credentials and exfiltrated data, reportedly weaponizing local AI coding agents such as Claude Code, Gemini, and Amazon q. By invoking unsafe flags, it allegedly coerced the tools into scanning developer machines for sensitive files, marking one of the first known AI-assisted supply chain attacks.
What this means for youAt home and at work, installing a software package can now quietly turn your AI coding helper against you to hunt for passwords and keys. Developers and small businesses should rotate exposed credentials, restrict what AI coding tools may access, and avoid running them with permissive flags. Governments and regulators are still working out supply chain security rules that cover AI tools.
Sources
- AI Incident Databasehttps://incidentdatabase.ai/cite/1210
Data from the AI Incident Database (incidentdatabase.ai), licensed CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/). McGregor, S. (2021) Preventing Repeated Real World AI Failures by Cataloging Incidents: The AI Incident Database. IAAI-21.
Source data license: CC BY-SA 4.0 (database). Report contents keep their own rights; reports.text, submissions, images and videos are excluded from the data license.
rogue:R4
Covered by snapshot 45
da93f03b406f409940d0a6ef47b526607f82ebf457d98f69299b88aceede576a
This entry is record number 2055. It has not been edited since it was approved; the hash above would not match if it had. How to verify