MAL-2026-20672

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/modelbufs/MAL-2026-20672.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20672
Published
2026-11-26T21:57:04Z
Modified
2026-11-26T22:15:03Z
Summary
Malicious code in modelbufs (npm)
Details

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

Source: amazon-inspector (c8a929acae74b4ad20a4fe47d6eb5b9d0d85c309c40ae1bf0b7dff1c397d20eb)

modelbufs@1.0.1 declares a postinstall hook running node canary.cjs. That script collects installer-side identifiers — hostname, OS/release, username and uid/gid/euid, non-internal network interface addresses, process and runtime details, cwd/INIT_CWD, the git HEAD commit of the surrounding repository, roughly 35 CI/cloud environment variables, and a list of which credential-grade variables are present (NPM_TOKEN, GITHUB_TOKEN, AWS_*) — encrypts the payload with a bundled RSA public key, and POSTs it to the hardcoded anonymous collector https://webhook.site/65716794-d7d2-401f-9f6e-2e65ec5a777c/modelbufs-install/. Transmission is gated: canary.cjs walks up to 16 parent directories from INIT_CWD/cwd looking for a package.json matching a specific private project (name @abstraction/app, private: true, repository git+https://github.com/abstraction-dev/src.git, with dependencies.modelbufs === "*") and only sends when that manifest is found, which both narrows the target to one organization's build systems and hides the behavior from general inspection. index.cjs is an empty stub, so the package provides no advertised functionality — the lifecycle hook and its reconnaissance payload are its only effect. Payload encryption and an embedded expiry timestamp make the transmitted contents opaque to the installer.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023130",
            "import_time":  "2026-11-26T22:11:08.771550649Z",
            "modified_time":  "2026-11-26T21:57:04Z",
            "sha256":  "c8a929acae74b4ad20a4fe47d6eb5b9d0d85c309c40ae1bf0b7dff1c397d20eb",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / modelbufs

Package

Affected ranges

Affected versions

1.*
1.0.1

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":  "canary.cjs",
            "sha256":  "1784c784955b5909dc240cbbf65958391ef0fc5ea2656ef106d9dc04bb06ada8",
            "tlsh":  "1ec1f74526fe206203e152a13137094777eae167370ae6f47e6c61943fce43842b366e"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "modelbufs-1.0.1.tgz",
            "hashes":  {
                "sha1":  "c732f1af6b7ceebd3553aa35aec10ea95a60f488",
                "sha512_sri":  "sha512-mwmuZxEx0xI9CC8bjxJKSZORQBN6ZH0ow0XX+h0dEpaKfr8U1Op8daRgXrmBpbbdzQr/PXeaonjBiV2zgBRKhQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/modelbufs/MAL-2026-20672.json"