starbucks-sdk@1.0.0
Malicious code in starbucks-sdk (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 Channel
Analysis
The preinstall hook runs callback.js, which collects host metadata (hostname, username, platform, current working directory) and the names of environment variables matching secret-related patterns (token/secret/key/pass/auth/api/aws), then POSTs them to a Telegram bot at api[.]telegram[.]org via a hardcoded bot token and chat id. The package name impersonates a well-known brand to lure installs.
- analyzed by
- Leitwacht
- first seen
- Sep 20, 2026, 12:29 AM
- analyzed
- Sep 20, 2026, 12:30 AM
Related advisories
- chai-as-viem@1.1.3
- action-slack-message-root@1.0.1
- keroeltopgg@99.99.99
- bulk-add-sdk@1.99.99
- test8999-auth@1.0.1
- x509-escaping@1.0.1
- openmct-heatmap@1.0.1
- test89-auth@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.