Malicious code in wsh4_edu (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-11072
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0757eee7b6324baca2e2b28261c7ff072c60d578c827a14c1fa54f690b1cd53a) The package's postinstall hook runs index.js, which POSTs the installer's absolute filesystem path (via __filename with sendFullPath: true), Node.js version, platform, and architecture to a hardcoded Discord webhook at discord.com/api/webhooks/1530599209269465319/. The same beacon also fires when the module is required, since index.js is the package main. The absolute path typically embeds the local username and home directory, giving the operator of the webhook a host/identity fingerprint of every machine that installs the package. The webhook URL is split across two string literals and concatenated at call time to evade casual string scanning, and the destination is not caller-configurable. The package name and README self-describe as a typo/beacon experiment. ## Source: ossf-package-analysis (e68d4c62ae8440581c4400e1cdacb7877912eb23610e273432d18cea61574785) The OpenSSF Package Analysis project identified 'wsh4_edu' @ 1.0.0 (npm) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity.
- Source published
- 25 Jul 2026 16:00:59 UTC
- Source modified
- 4 Aug 2026 23:05:48 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.