Malicious Axios npm Releases Deliver Cross-Platform RATs

· Original article ↗

Summary

Researchers report that attackers compromised an Axios maintainer’s npm account and published two releases with a malicious post-install dependency that deploys OS-specific RATs. Downstream impact is unknown; users are advised to pin clean versions and rotate exposed…

Key points

  • Researchers say attackers compromised Axios maintainer Jason Saayman’s npm account and published [email protected] and [email protected] without OIDC provenance or matching GitHub commits.
  • The releases added plain-crypto-js@^4.2.1, whose post-install script launched an obfuscated dropper that retrieved payloads based on the host operating system.
  • The reported Windows chain used VBScript and PowerShell for execution and persistence; macOS used AppleScript to run a binary, while Linux ran a Python payload.
  • The RAT could execute commands, retrieve and run an encoded binary, and enumerate directories. The installer deleted itself and restored package.json to hinder forensic analysis.
  • Researchers said the malicious dependency was staged about 18 hours in advance. The threat actor has not been identified, and the number of affected downstream projects is unknown.
  • Users are advised to pin to [email protected] or [email protected]; if compromise is confirmed, rotate credentials and rebuild from a known-good state.

Article Details

Attack Vectors
  • Attackers reportedly compromised Axios maintainer Jason Saayman’s npm account and published malicious Axios releases.
  • The releases added the plain-crypto-js@^4.2.1 dependency, whose post-install script launched an obfuscated dropper.
  • The dropper contacted a C2 server to retrieve an operating-system-specific payload for Windows, macOS, or Linux.
Defensive Notes
  • Pin Axios to the last known clean releases: [email protected] or [email protected].
  • If compromise is confirmed, rotate credentials and rebuild environments from a known-good state.

MITRE ATT&CK

People

Products

Related Articles