Last updated: 27 November 2026. Verified against SAP's own Security Note 3747787 (as reported by SecurityBridge) and cross-checked against independent coverage from Aikido Security, OX Security, Dark Reading, CSO Online, and Pathlock; seeHow this was checked.

On April 29, 2026, four official SAP npm packages were published with credential-stealing malware baked in. SAP confirmed the incident in Security Note 3747787 and shipped clean versions the same afternoon, but a lot of the detail circulating since then — the payload internals, the attacker tooling, the exact scale — comes from independent security researchers, not from SAP's own note. That distinction matters if you're deciding how hard to rotate credentials, so this article keeps the two apart.

What SAP itself confirmed

SAP's Security Note 3747787, titled "Malicious open-source packages in SAP Cloud Application Programming Model & MTA Build Tool," names four affected package versions: @cap-js/sqlite 2.2.2, @cap-js/postgres 2.2.2, @cap-js/db-service 2.10.1, and mbt 1.2.48. The malicious versions went live on npm on April 29, 2026, and SAP says it detected the compromise and superseded the affected packages with clean releases that same afternoon.

SAP's own note includes SHA-512 hashes for the malicious execution.js, setup.mjs, and package.json files, for teams that want to confirm forensically whether they pulled a bad version. It also lists a set of GitHub-side indicators of compromise: a commit author named "claude," a commit string reading "OhNoWhatsGoingOnWithGitHub," repository descriptions matching "A Mini Shai-Hulud has Appeared," unexpected workflow branches, and changes to IDE configuration files such as .vscode/tasks.json and .claude/settings.json. SAP itself describes the "claude" commit author and a "chore: update dependencies" commit message as suggestive indicators, not confirmed proof of how the attack moved.

On remediation, SAP's guidance is blunt: uninstalling or downgrading the affected package alone is not considered sufficient. Its note recommends quarantining or re-imaging affected systems, and pinning exact npm package versions going forward rather than relying on version ranges.

What's third-party attribution, not SAP's own confirmation

Everything below this line comes from independent researchers — Aikido Security, OX Security, Socket, Pathlock, and outlets like Dark Reading and CSO Online — reporting on the same incident, not from SAP's note itself.

The "Mini Shai-Hulud" name, and the framing of this as part of the broader Shai-Hulud family of npm supply-chain worms, is researcher terminology, not SAP's. Dark Reading attributes the toolchain to the group TeamPCP, describing the payload as including code built to spread further using whatever tokens it manages to steal. The same outlet reports that TeamPCP has compromised other open-source projects in recent months, including the Trivy security scanner maintained by Aqua Security and the Checkmarx-developed static-analysis tool KICS.

The "Mini Shai-Hulud" name, and the framing of this as part of the broader Shai-Hulud family of npm supply-chain worms, is researcher terminology, not SAP's. Dark Reading attributes the toolchain to the group TeamPCP, describing the payload as including code built to spread further using whatever tokens it manages to steal. The same outlet reports that TeamPCP has compromised other open-source projects in recent months, including the Trivy security scanner maintained by Aqua Security and the Checkmarx-developed static-analysis tool KICS.

The payload mechanics — an obfuscated roughly 11 MB execution.js file that downloads a Bun runtime and then harvests credentials — are described in detail by SecurityBridge's analysis, which lists GitHub tokens, npm credentials, AWS/Azure/GCP secrets, Kubernetes configuration, SSH keys, local credential files such as .npmrc and .git-credentials, and CI/CD environment variables among the data the file targets. Multiple outlets agree on a similar target list; CSO Online separately reports that the malware also attempted to persist through Visual Studio Code and Claude Code configuration files, underscoring that AI coding tools are now treated as part of the credential surface, not a side detail.

The payload mechanics — an obfuscated roughly 11 MB execution.js file that downloads a Bun runtime and then harvests credentials — are described in detail by SecurityBridge's analysis, which lists GitHub tokens, npm credentials, AWS/Azure/GCP secrets, Kubernetes configuration, SSH keys, local credential files such as .npmrc and .git-credentials, and CI/CD environment variables among the data the file targets. Multiple outlets agree on a similar target list; CSO Online separately reports that the malware also attempted to persist through Visual Studio Code and Claude Code configuration files, underscoring that AI coding tools are now treated as part of the credential surface, not a side detail.

The self-propagation behavior — using stolen tokens to spread further — is also researcher-described. Pathlock explains that, where possible, the malware uses stolen GitHub or npm tokens to modify repositories, inject workflow or IDE configuration changes, and publish additional malicious package versions. OX Security's technical writeup adds a concrete mechanism: once the malware obtains a short-lived GitHub Actions token, it uses that token to commit malicious files directly into repositories it can reach.

The self-propagation behavior — using stolen tokens to spread further — is also researcher-described. Pathlock explains that, where possible, the malware uses stolen GitHub or npm tokens to modify repositories, inject workflow or IDE configuration changes, and publish additional malicious package versions. OX Security's technical writeup adds a concrete mechanism: once the malware obtains a short-lived GitHub Actions token, it uses that token to commit malicious files directly into repositories it can reach.

Scale estimates are researcher-sourced and vary by who's counting. OX Security reports finding evidence of stolen credentials uploaded to roughly 1,200 public GitHub repositories, with more than 2.2 million monthly downloads affected across the compromised packages. SecurityBridge separately notes that a GitHub search for the campaign's signature description turned up over a thousand matching repositories within hours — its own observation, not a SAP-confirmed figure.

Scale estimates are researcher-sourced and vary by who's counting. OX Security reports finding evidence of stolen credentials uploaded to roughly 1,200 public GitHub repositories, with more than 2.2 million monthly downloads affected across the compromised packages. SecurityBridge separately notes that a GitHub search for the campaign's signature description turned up over a thousand matching repositories within hours — its own observation, not a SAP-confirmed figure.

The suspected initial access vector is explicitly hedged, even by the researchers reporting it. Reporting attributes the malicious versions to the legitimate cloudmtabot npm account, which has since been suspended, and several firms suggest — without confirming — that the attacker compromised a legitimate SAP developer account and modified a GitHub Actions workflow to exchange tokens. SecurityBridge goes further and raises the possibility that a developer's Claude Code GitHub integration was the path the attacker used to push the malicious workflow, but frames it with words like "appears" and "suggesting," not as established fact; SAP's own note treats the same commit-author evidence as suggestive only.

The suspected initial access vector is explicitly hedged, even by the researchers reporting it. Reporting attributes the malicious versions to the legitimate cloudmtabot npm account, which has since been suspended, and several firms suggest — without confirming — that the attacker compromised a legitimate SAP developer account and modified a GitHub Actions workflow to exchange tokens. SecurityBridge goes further and raises the possibility that a developer's Claude Code GitHub integration was the path the attacker used to push the malicious workflow, but frames it with words like "appears" and "suggesting," not as established fact; SAP's own note treats the same commit-author evidence as suggestive only.

Don't confuse this with the separate Red Hat "Miasma" incident

A number of search results surface an unrelated campaign around the same time: a Red Hat npm package compromise distributing malware researchers dubbed "Miasma," which left the string "Miasma: The Spreading Blight" in 309 affected GitHub repositories. That's a different vendor, a different malware family, and a different npm packages — it's part of the same general wave of Shai-Hulud-style supply-chain attacks hitting multiple ecosystems this year, but it is not the SAP incident, and SAP's Security Note 3747787 has nothing to do with it.

What to actually do about it

  • If your project depends on @cap-js/sqlite, @cap-js/postgres, @cap-js/db-service, or mbt, check your installed versions against the exact malicious version numbers above, not just whether you're "up to date."
  • If you installed an affected version, SAP's own guidance is that removing or downgrading the package is not enough on its own — treat any machine or CI runner that installed it as potentially compromised and rotate credentials rather than assuming the bad file alone was the extent of the damage.
  • Rotate npm tokens, GitHub personal access tokens and OAuth tokens, cloud credentials (AWS, Azure, GCP), Kubernetes kubeconfigs, SSH keys, and any CI/CD secrets present on machines or runners that touched the affected versions. Don't limit rotation to npm tokens alone, since the researcher-documented target list is broader than that.
  • Pin exact dependency versions for CAP and MTA Build Tool packages rather than ranges, per SAP's own recommendation, and review GitHub Actions workflows and repository settings for unexpected additions.

update log

  • 27 November 2026: first version, covering the April 29, 2026 incident and SAP Security Note 3747787.
  • To recheck next time: whether SAP or GitHub later confirms or rules out the suspected initial-access vector (compromised developer account / npm OIDC trusted-publisher misconfiguration), and whether the "claude" commit-author indicator is ever resolved to a specific cause.

Frequently asked questions

Which SAP packages were actually affected?

@cap-js/sqlite 2.2.2, @cap-js/postgres 2.2.2, @cap-js/db-service 2.10.1, and mbt 1.2.48, per SAP Security Note 3747787. SAP replaced all four with clean versions the same day the malicious versions were discovered.

Is uninstalling the affected package enough to be safe?

No. SAP's own guidance states that uninstalling or downgrading alone is not sufficient, and recommends quarantining or re-imaging any system that installed an affected version, since the malware's goal was credential theft rather than just running malicious code in place.

Did SAP confirm the attack was done by "TeamPCP" or called "Mini Shai-Hulud"?

No — those are researcher-assigned names from the security community covering this incident, not terminology from SAP's own security note. SAP's note focuses on the affected packages, indicators of compromise, and remediation steps.

Is this the same incident as the Red Hat "Miasma" malware story?

No. That's a separate campaign affecting different Red Hat npm packages and a different set of GitHub repositories. Both appear to be part of the same broader wave of Shai-Hulud-style supply-chain attacks this year, but they are distinct incidents with different root packages involved.

Related Dev Talk articles

Originally published on DEV Talk.