Detailed analysis of how the malware deleted itself and replaced package.json with a clean stub reporting a different version number to evade detection
← Back to Axios compromised on NPM – Malicious versions drop remote access trojan
The malware exploits a critical security gap where local developer environments trigger malicious `postinstall` scripts that CI systems often bypass, deploying a sophisticated cross-platform Remote Access Trojan. Its most striking feature is a "gaslighting" anti-forensics technique that rewrites its own `package.json` to report a safe version number, tricking incident responders into believing the system is uncompromised. This ingenuity highlights a dangerous attack surface where packages can modify their own content during installation, a risk further compounded by agentic coding tools that run commands without human oversight. Ultimately, detection requires looking past standard package lists to hunt for specific file artifacts and network logs, as traditional audit tools are easily deceived by the malware's self-cleansing stubs.
4 comments tagged with this topic