Malicious code in @umschool/analytics (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-16051
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (da14c2843514d3c9103335648bc81a8bce18fc173b27c2ab39ebe2c6c0abe028) @umschool/[email protected] targets the internal @umschool npm scope with an implausibly high version number to force resolution over any private package of the same name. Its postinstall.js runs on npm install and collects host identity (os.hostname, os.userInfo, process.cwd), reads /etc/hostname, /etc/hosts, /etc/resolv.conf, and /proc/version, filters process.env for credential-shaped keys matching a broad regex (token/secret/key/pass/aws/db/jwt/auth/etc.), and walks parent directories to read.env and config.* files. Each payload is base64-encoded and transmitted via three HTTPS GET beacons to akko.requestcatcher.com, with an additional hex-encoded DNS beacon of hostname+user to the same domain. A README/comment self-labeling the code as a 'HARMLESS PoC' does not change the observed behavior: credential-shaped environment variables, dotenv files, and internal network configuration leave the installer's build host to a third-party request-catcher.
- Source published
- 8 Sep 2026 21:04:35 UTC
- Source modified
- 9 Sep 2026 02:00:04 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.