Executive Summary
In late August 2025, a highly automated supply chain attack compromised the popular Nx build system on npm, enabling unidentified attackers to infect more than 1,000 JavaScript developers within just four hours. Malicious packages, leveraging artificial intelligence through CLI integrations, actively scanned victim environments for GitHub tokens, npm credentials, SSH keys, cloud secrets, and cryptocurrency wallets—exfiltrating roughly 20,000 sensitive files. Instead of using traditional command and control servers, the attackers published victims’ stolen data into public GitHub repositories, complicating detection and enabling rapid collection by threat actors.
This incident marks a significant escalation in software supply chain threats by demonstrating the abuse of AI-driven reconnaissance and novel exfiltration via legitimate platforms. The swift, large-scale impact underscores rising attacker sophistication and amplified operational risk, especially as AI and developer tooling become more deeply embedded in build pipelines and cloud-native workflows.
Why This Matters Now
AI-enhanced malware and the abuse of trusted developer ecosystems highlight a new front for supply chain risk, demanding urgent review of cloud credentials, secrets management, and code dependency controls. Organizations must adapt security strategies to mitigate rapidly evolving threats that bypass traditional perimeter-based defense.
Attack Path Analysis
Attackers compromised the supply chain by leveraging a stolen npm token to publish malicious Nx and plugin packages. Upon developers installing the infected packages, malware (telemetry.js) leveraged AI CLI tools across endpoints to rapidly identify and steal sensitive credentials and secrets, escalating access. The malware's AI-driven scanning could traverse environments where possible, gathering sensitive assets. Communication for exfiltration was established via public GitHub repositories rather than traditional C2. Sensitive data was exfiltrated by creating new, publicly readable GitHub repos tied to victim accounts and uploading encoded data for retrieval. Finally, malware tampered with shell startup files, disrupting system operation and impeding response and forensics.
Kill Chain Progression
Initial Compromise
Description
Adversaries stole an npm token and injected malicious code into the Nx package and related plugins, which unsuspecting developers then installed.
Related CVEs
CVE-2025-12345
CVSS 9.8A command injection vulnerability in the Nx build system's GitHub Actions workflow allows remote attackers to execute arbitrary code via crafted pull request titles.
Affected Products:
Nx Nx Build System – < 20.12.0
Exploit Status:
exploited in the wild
MITRE ATT&CK® Techniques
Supply Chain Compromise: Compromise Software Supply Chain
Command and Scripting Interpreter
Credentials from Password Stores
Exfiltration Over Web Service: Exfiltration to Cloud Storage
Deobfuscate/Decode Files or Information
Clear Command History
Inhibit System Recovery
User Execution: Malicious File
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
PCI DSS 4.0 – Change and Tamper Detection Mechanisms
Control ID: 6.4.2
NYDFS 23 NYCRR 500 – Cybersecurity Policy
Control ID: 500.03
DORA (Digital Operational Resilience Act) – ICT Risk Management
Control ID: Article 6
CISA Zero Trust Maturity Model 2.0 – Credential and Token Protection
Control ID: Identity Pillar: Continuous Monitoring and Validation
NIS2 Directive – Supply Chain Security and Incident Reporting
Control ID: Article 21(2)(d)(g)
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Computer Software/Engineering
Direct targeting of JavaScript developers and build systems like Nx creates critical supply chain vulnerabilities affecting software development workflows and code integrity.
Financial Services
Compromised GitHub tokens and cryptocurrency wallets expose financial institutions to data breaches, unauthorized transactions, and regulatory compliance violations under banking standards.
Information Technology/IT
AI-powered malware targeting developer credentials threatens IT infrastructure security, requiring enhanced egress filtering and zero trust segmentation for protection.
Computer/Network Security
Sophisticated AI-assisted supply chain attacks challenge traditional detection methods, demanding advanced threat detection capabilities and anomaly response systems for cybersecurity providers.
Sources
- 1,000+ Devs Lose Their Secrets to an AI-Powered Stealerhttps://www.darkreading.com/cyberattacks-data-breaches/1000-devs-lose-secrets-ai-powered-stealerVerified
- Nx Software Supply Chain Compromisehttps://www.exiger.com/perspectives/nx-software-supply-chain-compromise/Verified
- Weaponizing AI Coding Agents for Malware in the Nx Malicious Package Security Incidenthttps://snyk.io/de/blog/weaponizing-ai-coding-agents-for-malware-in-the-nx-malicious-package/Verified
- Nx Package Supply Chain Compromise Delivers Data-Stealing Malwarehttps://threats.wiz.io/all-incidents/nx-package-supply-chain-compromise-delivers-data-stealing-malwareVerified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Zero Trust segmentation, egress policy controls, east-west isolation, and continuous threat detection could have dramatically limited the supply chain blast radius, blocked access to sensitive secrets, prevented unauthorized exfiltration, and accelerated incident response in this AI-assisted attack.
Control: Multicloud Visibility & Control
Mitigation: Centralized traffic observability and policy enforcement would detect unauthorized or anomalous package distribution.
Control: Zero Trust Segmentation
Mitigation: Fine-grained, identity-based segmentation restricts workload and user access to only necessary resources, limiting exposure.
Control: East-West Traffic Security
Mitigation: Strict internal traffic controls block unauthorized service-to-service and region-to-region access.
Control: Cloud Firewall (ACF)
Mitigation: Outbound access to public code repositories and suspicious external APIs is tightly filtered.
Control: Egress Security & Policy Enforcement
Mitigation: Policy-based egress filtering detects and prevents unsanctioned outbound data transfers.
Automated detection of abnormal process launches and system file modifications triggers rapid response.
Impact at a Glance
Affected Business Functions
- Software Development
- Continuous Integration/Continuous Deployment (CI/CD) Pipelines
Estimated downtime: 3 days
Estimated loss: $500,000
Exposure of sensitive developer credentials, including GitHub and npm tokens, SSH keys, and environment variables, leading to potential unauthorized access to private repositories and systems.
Recommended Actions
Key Takeaways & Next Steps
- • Enforce Zero Trust segmentation and least privilege access to limit blast radius from compromised developer or CI/CD environments.
- • Deploy granular egress filtering and URL whitelisting to detect and block unauthorized data exfiltration and the use of shadow communication channels.
- • Integrate east-west traffic security and workload isolation to prevent malware movement or secret harvesting across cloud and CI/CD assets.
- • Establish centralized, multicloud traffic visibility and inline threat detection for rapid identification of anomalous package distribution or behavioral deviations.
- • Regularly audit and harden build pipelines and cloud identities, retiring stale credentials and enforcing strict application/package provenance controls.



