VYPR

npm · Malicious package advisory

Malware

vs-modules

GHSA-vg83-965g-3w5v

Malicious code in vs-modules (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.2.2`

## Source: amazon-inspector (dcd50c73d1e9bbca9b707d80936562866b7469239c038a540c02a9f43efedb57)
package.json declares a preinstall hook that runs `node resources.js`, which fires automatically on `npm install`. resources.js is heavily obfuscated with an obfuscator.io-style string-array plus numeric-index dispatch that hides the URL, destination path, and exec call. Deobfuscation shows the script reconstructs the plain-HTTP URL http://whaomydaddy.bts-the-time-in-shanghai.netlify.app/hey.bat, downloads it into %TEMP% via `curl -L -o <dest> <url>`, and immediately runs the batch file via child_process.exec. The destination is an anonymous netlify subdomain over plain HTTP with no pinning or integrity check, so any content served at that URL executes on the installer's host at install time. The package's stated purpose (a kanban/utility module) is unrelated to fetching and executing a Windows batch file from an external host.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/e4956292c0cf024519ebae88e8b315a0af37a829/osv/malicious/npm/vs-modules/MAL-2026-15564.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/e4956292c0cf024519ebae88e8b315a0af37a829/osv/malicious/npm/vs-modules/MAL-2026-15564.json
- https://www.npmjs.com/package/vs-modules/v/1.2.2
- https://github.com/advisories/GHSA-vg83-965g-3w5v

Compromised versions (1)

  • = 1.2.2

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.