Mini Shai-Hulud Supply-Chain Attack Targets SAP npm Packages

· Original article ↗

Summary

Researchers say four SAP-related npm versions in the Mini Shai-Hulud campaign delivered an information stealer targeting developer and cloud credentials. The versions were exposed for 2–4 hours, then unpublished and replaced.

Key points

  • On April 29, four versions were flagged as malicious: mbt 1.2.48, @cap-js/db-service 2.10.1, @cap-js/postgres 2.2.2, and @cap-js/sqlite 2.2.2.
  • The affected packages support SAP CAP and cloud deployment workflows and have more than 500,000 combined weekly downloads.
  • The packages' preinstall script reportedly fetched and ran a Bun binary.
  • The information stealer targeted local credentials, GitHub and npm tokens, and cloud secrets; the article says stolen data was exfiltrated through public GitHub repositories.
  • Aikido says the malware could propagate by modifying and republishing package tarballs using stolen GitHub Actions tokens.
  • Onapsis says the malicious versions were available for 2–4 hours; they have since been unpublished and clean versions released. Organizations are advised to check whether they installed them during that window.
  • Wiz attributes the incident to TeamPCP based on a shared RSA public key and operational patterns; the article says a compromised npm token exposed to CircleCI pull-request builds may have enabled the initial compromise.

Article Details

Event Type
Supply-chain attack involving malicious SAP-related NPM package versions.
Impact
Four package versions were injected with malicious code and were available for 2–4 hours before being unpublished and superseded by clean versions. The code stole local credentials, GitHub and NPM tokens, and cloud-related secrets, then exfiltrated them through public GitHub repositories. It also attempted to propagate by modifying package tarballs and publishing them with stolen GitHub Actions tokens. The packages had more than 500,000 combined weekly downloads; the article does not report how many systems or organizations were actually affected.

MITRE ATT&CK

Threat Actors

Vendors

Products

Related Articles