TL;DR: A compromised Axios npm package acted as a dropper that deployed a Python RAT, established persistence, and self-deleted while targeting CI/CD environments that hold source code, build secrets, and downstream deployment access, according to Mate. The incident shows why speed, process-chain visibility, and secrets exposure analysis now matter as much as detection in supply chain response.
Editorial analysis by NHI Mgmt Group, based on content published by Mate: “Mate’s Guide to Investigating the Axios Supply Chain Attack”.
Key questions
Q: What breaks when malicious npm packages execute during CI/CD installs?
A: The main failure is that package installation becomes code execution inside a trusted build context.
Q: Why do CI/CD secrets create such a large blast radius in supply chain attacks?
A: CI/CD secrets are often shared across build, publish, and cloud tasks, so one exposed token can touch many systems at once.
A: Look for unexpected child processes, unusual egress to unfamiliar domains, and files or caches created under hidden runtime directories.
Practitioner guidance
- Trace dependency execution in build pipelines Identify which package versions were installed, which jobs executed them, and which repositories or runners were involved so you can scope the initial execution path.
- Inventory secrets exposed to each CI/CD job Map every secret, token, certificate, and cloud credential attached to the affected pipeline before deciding what to rotate or revoke.
- Shorten investigation latency with pre-enriched telemetry Correlate package manager logs, DNS lookups, process creation, and cloud access events so analysts can reconstruct the attack chain before artefacts disappear.
Bottom line: The incident shows how a compromised dependency can turn a build pipeline into a machine-identity exposure event, not just a malware alert.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Secret exposure, not just code execution, is the decisive risk in CI/CD supply chain incidents. A malicious npm package only becomes strategically serious when it can touch build-time credentials, repository access, and deployment pathways. That turns a software integrity issue into an NHI governance problem because the affected assets are machine identities, tokens, and service accounts. Practitioners should judge these incidents by the secrets they can reach, not only by the malware they can run.
A few things that frame the scale:
- 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, according to the Ultimate Guide to NHIs.
- Software supply chain attacks were projected to cost organisations $60 billion in 2025.
A question worth separating out:
Q: Should teams prioritise secrets rotation before or after confirming the full attack chain?
A: Rotate immediately for secrets that were attached to the affected pipeline, then refine scope as telemetry confirms what was actually reachable. In CI/CD incidents, waiting for perfect certainty can leave valid credentials usable while evidence is disappearing and exposure remains unresolved.
👉 Read our full editorial: Compromised npm packages expose CI/CD secrets faster than manual triage