Malicious Nx npm Packages Reportedly Weaponize AI Coding Agents for Data Exfiltration

August 21, 2025

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 harvested credentials and exfiltrated data, weaponizing local AI coding agents such as Claude Code, Gemini, and Amazon q. By invoking unsafe flags, it coerced the tools into scanning developer machines for sensitive files, marking one of the first known AI-assisted supply chain attacks. For more information on this incident and its implications for responsible AI development, visit JOIN US.

Matched TAIM controls

Suggested mapping from embedding similarity (not a formal assessment). Browse all TAIM controls

Alleged deployer
Malicious actors compromising Nx’s CI/CD pipeline and publishing tainted npm packages
Alleged developer
Google, Anthropic, Amazon
Alleged harmed parties
Nx users and organizations installing compromised npm packages

AI governance case studies

For forensic AI governance failure analysis (TAIMScore™ case studies), browse Human Signal’s Failure Files™.

Source

Data from the AI Incident Database (AIID). Cite this incident: https://incidentdatabase.ai/cite/1210

Data source

Incident data is from the AI Incident Database (AIID).

When citing the database as a whole, please use:

McGregor, S. (2021) Preventing Repeated Real World AI Failures by Cataloging Incidents: The AI Incident Database. In Proceedings of the Thirty-Third Annual Conference on Innovative Applications of Artificial Intelligence (IAAI-21). Virtual Conference.

Pre-print on arXiv · Database snapshots & citation guide

We use weekly snapshots of the AIID for stable reference. For the official suggested citation of a specific incident, use the “Cite this incident” link on each incident page.