Malicious code in @cryptosrvc/shift-exchange-root (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12316
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (5ff6c468a083fe963c94caf5edbd3b36e83ba753c9c2d14c807f6a4bb3b6048a) On npm install, the package runs dist/recon.js as a postinstall script that collects the installer's hostname, username, SUDO_USER, home directory, current working directory, all local network interface IPs (including internal addresses), DNS domain, the full list of environment variable names, a filtered subset of env var names matching credential keywords (AWS, GCP, AZURE, NPM, TOKEN, SECRET, KEY, PASS, GITHUB, SSH), and CI indicators, and POSTs the JSON payload over plain HTTP to the hardcoded DigitalOcean address 138.68.108.20:80/cb. The file's header comment labels the collection as 'NON-SENSITIVE telemetry only' and the outgoing User-Agent is 'npm-install-telemetry/1.0', while the package's declared main entry (dist/index.js) is a math-utility stub unrelated to any telemetry function. The scope @cryptosrvc/shift-exchange-root resembles the legitimate @shiftforex/shift-exchange-root, consistent with a dependency-confusion or typosquat lure. Host identity plus internal network topology plus enumerated credential-shaped env var names constitute reconnaissance data suitable for follow-on targeted attacks against the installing environment.
- Source published
- 5 Aug 2026 13:07:03 UTC
- Source modified
- 5 Aug 2026 13:35:08 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.