Home / Companies / Snyk / Blog / Post Details
Content Deep Dive

Bun-Based Stealer Hits SAP CAP npm Packages

Blog post from Snyk

Post Details
Company
Date Published
Author
Stephen Thoemmes
Word Count
3,633
Company Posts That Month
13
Language
English
Hacker News Points
-
Post removed?
No
Summary

On April 29, 2026, a supply chain attack compromised four npm packages in the SAP development ecosystem by publishing malicious versions of mbt, @cap-js/db-service, @cap-js/sqlite, and @cap-js/postgres, which contained an obfuscated credential-stealing payload. The attack exploited the npm publish workflow's lack of manual approval, using a preinstall hook to execute a Bun-based JavaScript runtime that harvested credentials and created dead-drop repositories on GitHub, tagged with "A Mini Shai-Hulud has Appeared." Despite the worm-like potential for self-propagation, evidence suggests the attack was limited to the initially affected packages. SAP responded by publishing clean versions of the compromised packages, while Snyk issued advisories and flagged the affected releases. The incident highlights the importance of gating npm publish permissions and auditing for indicators of compromise, such as unexpected GitHub repositories and injected workflow files, to prevent similar attacks in the future.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Secrets Management 6 1,971 393 127 +1%
MCP 4 7,956 795 196 +24%
AI Coding Assistant 2 1,759 518 180 +12%
Kubernetes 2 2,407 415 121 -3%
Real-time 2 7,450 1,704 292 -47%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.