Skip to content
Submit incident
AII-1002-11231
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

Malicious Nx npm packages reportedly weaponize AI coding agents for data exfiltration

Eight malicious versions of the Nx and Nx Powerpack npm packages were published in August 2025 and live for approximately 5 hours before removal. The malicious payload reportedly weaponized local AI coding agents to inventory and exfiltrate sensitive files, credentials, and secrets to a public GitHub repository, marking what security researchers believe may be one of the first documented cases of malware leveraging AI assistant CLIs for reconnaissance and data exfiltration.

26 August 2025 Β· Nrwl Β· Security and cyberattacks
26 August 2025
AII-1002-112312 sources ↓
Quick facts
Category
Security and cyberattacks
Source
washingtonpost.com
Date
26 August 2025
Drafted by
Raidu Incident Detection

What happened

On August 26–27, 2025, eight malicious Nx and Nx Powerpack releases were pushed to npm and remained live for approximately 5 hours and 20 minutes before removal.

The root cause was a flawed GitHub Actions CI workflow contributed via a pull request on August 21, estimated to have been generated by Claude Code. A malicious commit on August 24 modified the CI workflow so that the npm token used for publishing Nx packages would be sent to an attacker-controlled server via webhook.

The malicious payload weaponized local AI coding agents (Claude, Gemini, and q) via a dangerous prompt to inventory sensitive files and exfiltrate secrets, credentials, and sensitive data to a public GitHub repository named s1ngularity-repository with a numeric suffix.

Reported impact

Hundreds of thousands of Nx users unknowingly downloaded the poisoned programs. Attackers directed the malicious code to seek out account passwords, cryptocurrency wallets, and other sensitive data from those who downloaded the altered programs.

Index analysis

Security researchers characterize this as likely one of the first documented cases of malware leveraging AI assistant CLIs for reconnaissance and data exfiltration, combining established supply-chain attack techniques with AI manipulation.

Classification

Category
Security and cyberattacks
Industry
IT infrastructure and hosting
Harm status
Actual harm
Intent
Intentional
Timing
Post-deployment
Harm types
Economic or property
Harmed
Business, Consumers
Failure modes
Agent misaction, Jailbreak, Prompt injection, Data leak
Consequences
Content removal
AI systems
Claude, Gemini, q

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

washingtonpost.com
Malicious Nx npm packages reportedly weaponize AI coding agents for data exfiltration
snyk.io
Malicious Nx npm packages reportedly weaponize AI coding agents for data exfiltration