scanstudy-pointer-bat (npm): malicious package downloads and executes render.bat via curl/cmd on Windows hosts
Severity: critical · Patch status: no-fix-needed · Since 2026-11-20
GitHub Advisory Database (GHSA-jrfq-g54q-gmc8, published 2026-11-20, source amazon-inspector/OpenSSF) flags npm package scanstudy-pointer-bat@1.0.0 as malware. Advertised as a calculator UI utility, its main.js schedules a childprocess.exec via setTimeout on require/start that runs curl to download a file from a configured RENDERERURL and executes it as render.bat under cmd, yielding arbitrary code execution on Windows hosts for whoever controls that config key. The shipped config.json omits RENDERERURL, so the current artifact resolves to an empty URL, but the full download-and-execute machinery is present and reachable on load. Decoy patterns include an unused Mandelbrot-style CPU-busy routine and a random 0–5 second delay around the shell-out. No patched versions exist; the package should be treated as compromised and removed.
What to do
- Remove and uninstall scanstudy-pointer-bat@1.0.0 from all projects and lockfiles
- Audit Windows hosts where the package was installed for render.bat artifacts, unexpected curl/cmd executions, and persistence
- Block the package name in npm registries, proxies, and CI dependency scanning
- Rotate credentials and secrets accessible from affected machines
- Review dependency trees for other typosquat or suspicious calculator-utility packages
Sources
All live incidents on Threat Watch