MAL-2026-12191

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/scandoc-scandoc-core/MAL-2026-12191.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12191
Aliases
  • GHSA-rv57-q2q4-h6x4
Published
2026-08-05T09:12:36Z
Modified
2026-08-06T01:21:12.425643798Z
Summary
Malicious code in scandoc-scandoc-core (npm)
Details

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

Source: amazon-inspector (88040968dbf46cb6d8018a4c21563f6845140435ce3b93e69b0934a81a8a469b)

On require() of the package, index.js loads vendor.js which fetches a platform-specific binary from Cloudflare Workers hostnames reconstructed at runtime via array-join string splitting (oob-worker.cf100-416.workers.dev, oob-worker.cf102-baf.workers.dev, oob-worker.cf103-070.workers.dev), with a DNS-TXT covert-channel fallback under *.dl.well1.site that base64-decodes TXT records from resolveTxt on c.<domain> and N.<domain>. The retrieved bytes are written to /tmp/.cache<hex> on Unix or Windows TEMP as dotnetdiag<hex>.exe (disguised as a legitimate.NET diagnostics artifact), chmod 0755, and spawned detached via /bin/sh -c "<path> &" or cmd.exe /c start /b. Execution is gated by DISABLETELEMETRY / DONOTTRACK env checks and a /tmp/.analyticsstate freshness marker (TTL 21877s) to rate-limit re-execution. A second dropper module lib/telemetry.js ships in the tarball with the same primitives (base64 payload assembly, chmodSync 0755 on extensionPath, cp.spawn('/bin/sh',['-c', filePath+' &'], {detached:true})) and an obfuscated require('child_'+'process') string, cover-storied as an analytics SDK.

Source: ghsa-malware (75ba088fa0779ff67583ae72d71f409dfb9cbd74d6f62bd38a8f41c76f1a0ff7)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-05T09:12:36Z",
            "sha256": "88040968dbf46cb6d8018a4c21563f6845140435ce3b93e69b0934a81a8a469b",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-014590",
            "versions": [
                "20.8.5"
            ],
            "import_time": "2026-08-05T09:28:28.388323964Z"
        },
        {
            "modified_time": "2026-08-05T18:41:08Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "sha256": "75ba088fa0779ff67583ae72d71f409dfb9cbd74d6f62bd38a8f41c76f1a0ff7",
            "source": "ghsa-malware",
            "id": "GHSA-rv57-q2q4-h6x4",
            "import_time": "2026-08-06T00:58:53.452742405Z"
        }
    ]
}
References
Credits

Affected packages

npm / scandoc-scandoc-core

Package

Name
scandoc-scandoc-core
View open source insights on deps.dev
Purl
pkg:npm/scandoc-scandoc-core

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

20.*
20.8.5

Database specific

indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-rYmkDANUlomEwmELNsL4QYdSXA3n3fl3LXiR8DYjg/zz21U3f5m5ejFf1t3BUpZMefCFkKCITQwEduet/CjybA==",
                "sha1": "bb686a3ac1af627eac7a172cd52f288d31442ece"
            },
            "filename": "scandoc-scandoc-core-20.8.5.tgz"
        }
    ],
    "evidence_files": [
        {
            "sha256": "ad57df63b217ec4b9ec07a2ee0c75d3dc8fcb33258f2da28de693029c75d0a18",
            "tlsh": "36a1979a16a5b0198bb0ebe4c61b8c15f65bf6533781c180fb5c65949fb312483b2efc",
            "path": "_vendor.js"
        },
        {
            "sha256": "8077c9ffc7a4352c49e74cc96a4da0bda21cf84ebf61fac8e87bc92cb6a0ff00",
            "path": "lib/telemetry.js",
            "tlsh": "17835055566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/scandoc-scandoc-core/MAL-2026-12191.json"
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]