MAL-2026-12808

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/streak-metric-core/MAL-2026-12808.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12808
Published
2026-08-05T13:34:06Z
Modified
2026-08-05T14:37:23.996343381Z
Summary
Malicious code in streak-metric-core (npm)
Details

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

Source: amazon-inspector (d85f4f43ac36e53cc3254c7e5050d63105543deb781c8884046b7f5443fc3e21)

On any require/import of streak-metric-core, top-level code in the main entry reconstructs a URL from String.fromCharCode integer arrays, resolving to https://f004.backblazeb2.com/file/dp8hbvocjd2fpza/service. The package downloads that opaque binary, writes it to ~/.cache/streak-metric/service, chmods it to 0755, and spawns it detached with a randomized delay via spawn(p, [], { detached: true }).unref(). There is no hash or signature verification, the destination is an anonymous Backblaze B2 bucket unrelated to any declared publisher infrastructure, and the URL is reconstructed at runtime specifically to avoid appearing as a plain string. A comment frames the behavior as an 'optional runtime accelerator', but the code executes unconditionally at module load. This grants the package author arbitrary code execution on the installer's host at import time.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-08-05T13:34:06Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-014979",
            "import_time": "2026-08-05T14:19:48.850924313Z",
            "sha256": "d85f4f43ac36e53cc3254c7e5050d63105543deb781c8884046b7f5443fc3e21",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / streak-metric-core

Package

Affected ranges

Affected versions

1.*
1.0.0

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "streak-metric-core-1.0.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-fWBcWMSoGTRbgs4FrnkBEuBhb22SA+IC46t2HaJJcCSGw9dEAoRbKAOgqIzbQnVeF8cnUYViIlWaHqEwfWy5Sw==",
                "sha1": "83d43c6e11f0ad38aef3ba1529e4e24e4427669f"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "aa61c7436fb813711570c3d49eace1e6d326889077695ed0e41ca39830474d5d5bd6eb",
            "sha256": "c2bcfaff130936646cc0d3f13cab5f60c95901c1226c08a8943c98bea180c36b",
            "path": "dist/index.mjs"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/streak-metric-core/MAL-2026-12808.json"
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]