Malicious code in carbon-monorepo (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-14229
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (9c617e93833344e13d376182fb00c13994a4d2e7f3f8220998e541d77a8e8713) The package's package.json declares a postinstall hook that runs index.js on npm install. index.js collects host reconnaissance and installer secrets — os.hostname(), full process.env, platform/arch, cwd, package.json, node_modules listing, and the output of shell commands whoami/uname/id/cat /etc/passwd/cat /etc/shadow — and reads ~/.npmrc (which typically contains npm auth tokens) and recent ~/.npm/_logs. The collected data is POSTed over plain HTTP via http.request to the hardcoded host ywy8qnd4a931ga4v74k70b9g67c00qof.oastify.com, a Burp Collaborator (OAST) subdomain. Package metadata masquerades as an esbuild netbsd-x64 build (`"description": "netbsd-x64 build for esbuild"`) but the tarball ships only the recon/exfil script, no build artifacts or library code — the sole install-time effect is running the exfiltration payload.
- Source published
- 19 Aug 2026 03:41:18 UTC
- Source modified
- 19 Aug 2026 04:00:18 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.