Skip to content
MediumNews

SAP npm package attack highlights risks in developer tools and CI/CD pipelines

Published
Record updated
View JSON

Summary

A supply chain attack dubbed "mini Shai-Hulud" compromised SAP-related npm packages, including mbt@1.2.48, @cap-js/db-service@2.10.1, @cap-js/postgres@2.2.2 and @cap-js/sqlite@2.2.2, published on April 29. The malicious versions ran code at installation time to steal developer, GitHub, npm and cloud credentials, then used stolen tokens to add malicious GitHub Actions workflows and publish poisoned package versions. The attackers also persisted through .vscode/tasks.json and .claude/settings.json, so malware could run when an infected repository was opened in Visual Studio Code or a Claude Code session started.

Mitigation

The suspicious versions were later replaced by safe releases. The source does not discuss further mitigation.