Skip to content
Mini Shai-Hulud npm Attack Compromises SAP Developer Packages

Mini Shai-Hulud npm Attack Compromises SAP Developer Packages

First seen 2 Dec 2026, 02:19 UTC •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •December 2, 2026 at 02:19 UTC
  • •Four SAP-related npm packages (mbt, @cap-js/db-service, @cap-js/postgres, @cap-js/sqlite) published malicious versions on April 29.
  • •Malicious code reportedly harvested developer, GitHub, npm, and cloud credentials at install time.
  • •Stolen tokens were reportedly used to add malicious GitHub Actions workflows and publish poisoned package versions.
  • •The @cap-js compromise was linked by SafeDep to an npm OIDC trusted publishing configuration gap; mbt is suspected to involve a static npm token.
  • •Affected versions were replaced by safe releases; no CVE is assigned in the reporting.

On April 29, SAP warned customers that malicious code was found in four open-source npm packages used in SAP development: @cap-js/sqlite, @cap-js/postgres, @cap-js/db-service, and mbt.

The campaign, referred to as "mini Shai-Hulud," affected packages tied to SAP Business Technology Platform, SAP Cloud Application Programming Model (SAP CAP), and the Cloud MTA Build Tool.

According to researchers at SafeDep, Aikido Security, Wiz, and other firms, the malicious versions were [email protected], @cap-js/[email protected], @cap-js/[email protected], and @cap-js/[email protected].

The injected installation-time code reportedly could steal developer credentials, GitHub and npm tokens, GitHub Actions secrets, and cloud credentials from AWS, Azure, GCP, and Kubernetes environments. Stolen data was reportedly encrypted and exfiltrated to public GitHub repositories created from victims' own accounts.

The malware reportedly used stolen tokens to add malicious GitHub Actions workflows to accessible repositories and publish poisoned package versions.

SafeDep said attackers abused a configuration gap in npm's OIDC trusted publishing setup for the @cap-js packages, while the mbt compromise is suspected to involve a static npm token. The attackers also attempted persistence through Visual Studio Code and Claude Code configuration files.

The suspicious versions were later replaced by safe releases.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini

Timeline

2026-04-29
Malicious SAP-related npm package versions published
Suspicious versions of mbt and @cap-js packages were published and later replaced by safe releases, per researchers.
InfoWorld
2026-04-29
SAP warns customers of malicious npm code
SAP warned customers that malicious code was found in four open-source npm packages used in SAP development.
SAP Insider

More articles in this cluster (2)

Following this threat?

Track SAP in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected if I use SAP CAP or the Cloud MTA Build Tool?
Affected versions are [email protected], @cap-js/[email protected], @cap-js/[email protected], and @cap-js/[email protected], which were published April 29 and later replaced. Check installed versions and lockfiles against these.
What should I do if I installed a malicious version?
Treat developer workstations and CI environments as potentially compromised: rotate GitHub, npm, and cloud credentials, and review repositories for unauthorised GitHub Actions workflows. The articles do not provide a complete remediation procedure.
Is there a CVE assigned to this incident?
The articles do not mention a CVE; the incident is described as a supply chain compromise of npm packages.