Axios npm Attack Used Phantom Dependency to Deploy Cross-Platform RAT

· Original article ↗

Summary

The article reports that attackers used a hijacked Axios npm maintainer account to publish versions 1.14.1 and 0.30.4 with a phantom dependency that deployed cross-platform RAT payloads; the releases were removed and remediation is advised.

Key points

  • The article says versions 1.14.1 and 0.30.4 were manually published using compromised maintainer credentials, bypassing GitHub Actions and OIDC trusted publishing.
  • A phantom dependency, plain-crypto-js@^4.2.1, ran a post-install script to deploy a RAT and was not referenced in the Axios source code.
  • Reported payloads used AppleScript on macOS, VBScript and PowerShell on Windows, and a Python script on Linux.
  • The malware reportedly contacted sfrclak[.]com; its traffic was designed to resemble npm registry activity.
  • The dropper reportedly used XOR and base64 obfuscation, then erased traces by replacing package metadata; runtime analysis found a 36-second delay before cleanup.
  • The malicious Axios releases were reportedly available for nearly three hours before removal; the dependency was placed on security hold and replaced with a placeholder.
  • The article advises affected users to rotate credentials, review network logs, rebuild systems, and reinstall dependencies with scripts disabled.

Article Details

Attack Vectors
  • A compromised Axios maintainer npm account was used to manually publish malicious Axios versions 1.14.1 and 0.30.4.
  • The releases added the phantom dependency plain-crypto-js@^4.2.1, whose post-install script ran node setup.js and deployed a RAT.
  • The RAT downloaded operating-system-specific payloads for macOS, Windows, and Linux; reported execution methods included AppleScript, VBScript, PowerShell, and Python.
  • The dropper used XOR encoding and base64 transformations, then deleted its package.json and replaced it with a clean decoy to conceal evidence of compromise.
Defensive Notes
  • Treat systems that installed Axios 1.14.1 or 0.30.4 as compromised; the article identifies 1.14.0 and 0.30.3 as safe versions.
  • Rotate credentials, including API keys and tokens, and review network logs for suspicious outbound connections.
  • Rebuild affected systems rather than attempting partial cleanup, and reinstall dependencies with scripts disabled.

Indicators of compromise

TypeIndicatorContext
DOMAINsfrclak[.]comCommand-and-control domain contacted by the RAT deployed through the malicious Axios dependency.

MITRE ATT&CK

Products

Related Articles