So far, four SAP-related npm packages have been compromised where the preinstall scripts inject malicious preinstall hooks that bootstrap the Bun JavaScript runtime and executes an obfuscated credential stealer payload (execution.js). This happens during dependency installation and can be used to harvest developer and CI/CD secrets across GitHub, npm, and major cloud providers. The payload exfiltrates the data via attacker-controlled GitHub repositories.
So far, four SAP npm packages have been compromised:
mbt@1.2.48
@cap-js/sqlite@2.2.2
@cap-js/postgres@v2.2.2
@cap-js/db-service@v2.10.1
The repositories created by this malware carry a distinctive description hardcoded in the payload: “A Mini Shai-Hulud has Appeared”. At the time of writing, a public GitHub search for this string returns victim repositories being created in real time, each one representing a developer whose credentials were stolen:
Attacking SAP is rude but also so very specific? I can’t think of many other business critical applications that are so sprawling and difficult to monitor.