{"id":"MAL-2026-11043","revision":"90860c438b13460a9600e4d4f7f94733","records":[{"revision":"90860c438b13460a9600e4d4f7f94733","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-11043","aliases":[],"title":"Malicious code in supplyhub (npm)","description":"The npm package `supplyhub` is a credential / SSH-key stealer. Its `package.json` declares a `postinstall` lifecycle hook (`postinstall: node postinstall.js`) that executes automatically on `npm install`, before the package is ever imported.\n\n`postinstall.js` uses `fs.readFileSync` to read the user's SSH private key (`~/.ssh/id_rsa`) and the process environment (`/proc/self/environ` — where CI/cloud tokens and npm tokens live), and gathers account/host identity via `os.userInfo()`; it also references `/etc/passwd`. The collected data is exfiltrated by HTTP POST to a hard-coded webhook.site dead-drop: `https://webhook.site/3c9418b3-cacd-403d-b42e-e9e4a9508fe3`.\n\nOnly version 1.0.2 is malicious: version 1.0.0 (held in the codelake corpus) is clean — the exfiltration code was introduced in the 1.0.2 release (a trust-then-poison pattern). Any workstation or CI runner that installs supplyhub@1.0.2 (directly or transitively) hands its SSH key and environment secrets to the operator.\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e0d6286c7aa72597cf47fca7e9db99799909ceba09490f4a185b359e71f63590)\nsupplyhub@1.0.1 ships a postinstall.js that runs automatically on npm install and collects installer host identifiers (os.hostname(), os.userInfo().username, process.cwd(), pid, platform, arch, node version) along with CI-related environment variables (CI, RENOVATE_VERSION), then transmits them as query parameters to a hardcoded webhook.site endpoint (https://webhook.site/3c9418b3-cacd-403d-b42e-e9e4a9508fe3) using https.get with http and execSync('curl...' || wget...) fallbacks. The package.json description self-labels this as a dependency-confusion PoC targeting the 'Travix supplyhub' name, but the tarball is published to public npm and will execute the install-time beacon against any installer that resolves this name, including unrelated users who typo or whose internal builds dependency-confuse into it.\n","state":0,"publishedAt":"2026-07-20T00:00:00+00:00","modifiedAt":"2026-09-11T04:00:07.8202534+00:00","affected":[{"ecosystem":"npm","name":"supplyhub","ranges":[],"versions":["1.0.2","1.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://research.codelake.dev/advisories/clr-2026-3038-supplyhub","https://www.npmjs.com/package/supplyhub/v/1.0.2","https://www.npmjs.com/package/supplyhub/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-11043","license":"OSV · upstream source license applies","key":"osv:MAL-2026-11043","identifiers":["MAL-2026-11043"]},"retained":false,"historicalAffected":[]}],"coverage":[]}