(mend.io) Poisoned Axios: npm Account Takeover Delivers Cross-Platform RAT via Supply Chain Attack
Critical npm supply chain attack: Threat actors compromised the axios maintainer account, publishing malicious versions (1.14.1, 0.30.4) with hidden plain-crypto-js v4.2.1 dependency. This delivered a cross-platform RAT via postinstall hook, impacting macOS, Windows, and Linux developers.
In brief - Compromised npm credentials for axios (50M+ weekly downloads) led to malicious package versions deploying a RAT. Affected systems must be treated as compromised; rotate all credentials immediately.
Technically - The plain-crypto-js v4.2.1 package executed an obfuscated JavaScript dropper (setup.js) using XOR cipher (key: 'OrDeR_7007'), base64, and string reversal. It contacted C2 at http://sfrclak.com:8000/6202033, delivering platform-specific payloads: Mach-O RAT (SHA256: 92ff08773995ebc8d55ec4b8e1a225d0d1e51efa4ef88b8849d0071230c9645a) on macOS, PowerShell via VBScript on Windows, and Python on Linux. The macOS RAT supports peinject, runscript, rundir, and kill commands, beaconing every 60s. Post-execution cleanup removed forensic artifacts.
Source: https://www.mend.io/blog/poisoned-axios-npm-account-takeover-50-million-downloads-and-a-rat-that-vanishes-after-install/
#Cybersecurity #ThreatIntel