Malicious code in consumerweb-risk (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-11269
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (aa886e4b335d3fc76fa6bc8e50c2e428ac164165830705c0ab2847857c2b3aa7) The package's preinstall lifecycle script runs automatically on npm install. It collects the installer's OS username (os.userInfo().username), hostname (os.hostname()), and current working directory (process.cwd()), serializes them to JSON, hex-encodes the payload, chunks it into DNS subdomain labels, and issues dns.lookup() queries against an attacker-controlled nameserver under jgl.red. The lookups themselves carry the encoded host identity out to the attacker's authoritative DNS server, forming a covert DNS-tunnel exfiltration channel that fires on every install regardless of whether the module is ever required. ## Source: ghsa-malware (0e5f4efb70659109081158cdf1172001c3a589dbac63414af7c04485d40e42d0) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
- Source published
- 30 Jul 2026 17:44:07 UTC
- Source modified
- 4 Aug 2026 23:04:59 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.