AI-Assisted Monitor Flags Malicious Axios npm Releases

· Original article ↗

Summary

An Elastic engineer says an AI-assisted package-release monitor flagged malicious Axios npm releases that used a phantom dependency and postinstall hook to deploy malware. The article describes the response and recommends package monitoring and release delays.

Key points

  • The author’s proof of concept monitors PyPI and npm releases, diffs package versions, uses an LLM to classify changes, and alerts through Slack; it downloads packages without installing or executing them.
  • The monitor flagged Axios versions 1.14.1 and 0.30.4, which the article says were published after attackers took over a maintainer’s npm account.
  • The malicious releases added the phantom dependency plain-crypto-js, whose postinstall hook deployed cross-platform malware.
  • The author says Elastic Defend had already alerted on a host that installed a malicious package, and Axios maintainers quickly removed the releases.
  • The article links the incident to a wider campaign attributed to TeamPCP; attribution of the Axios attack to a DPRK actor is described as suspected, not confirmed.
  • Recommended measures include monitoring package changes, rotating credentials faster after breaches, and delaying adoption of new releases with package-manager soak-time settings.
  • The open-source monitor is presented as a proof of concept with limitations: it requires a Cursor subscription, processes releases sequentially, and uses static watchlists.

Article Details

Event Type
npm supply-chain compromise involving malicious Axios releases
Impact
Two malicious Axios versions, 1.14.1 and 0.30.4, added the phantom dependency plain-crypto-js, whose postinstall hook deployed cross-platform malware. Elastic telemetry identified affected organizations and a host that had installed the package. The article describes the Axios attribution as suspected, while linking earlier Trivy, LiteLLM, and Telnyx compromises to TeamPCP.

Indicators of compromise

TypeIndicatorContext
URLhxxps[:]//www[.]npmjs[.]com/package/axios/v/0.30.4Specific npm package-version URL identified in the article as a malicious Axios release.

MITRE ATT&CK

Threat Actors

Vendors

Products

Tools

Countries

Related Articles