sam-packagenpm
Malicious code in sam-package (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
On require()/bundle load, index.js collects userAgent, location, document.cookie, localStorage, sessionStorage, referrer, and the runtime globals window.TINES_CONFIG and window.APP_CONFIG, then POSTs the payload to https://webhooksite.net/206fe563-3cfb-42fc-b589-b8b748b4c640 with mode:'no-cors' (index.js line 13). The README advertises only a trivial greet() helper; the exported greet is a stub (get: () => {}) that does not match the documented API. The targeted probing of window.TINES_CONFIG (Tines SOAR runtime config) together with cookie/localStorage theft and a hardcoded webhook sink is a session/credential harvester aimed at users who load this package in a browser bundle, particularly Tines automation environments. package.json also declares "postinstall": "node postinstall.js" but postinstall.js is absent from the tarball — install fails today, but the hook is scaffolding for a future install-time payload.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection