MAL-2026-11388

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/streak-metrics-math/MAL-2026-11388.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11388
Aliases
  • GHSA-57m5-24x9-2xr5
Published
2026-07-30T20:13:35Z
Modified
2026-08-04T22:05:15.686385815Z
Summary
Malicious code in streak-metrics-math (npm)
Details

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

Source: amazon-inspector (6a3508138a215de5140d5c7922b41c602866a034ab1e8b28076f2cb734256844)

The package advertises itself as a dependency-free calendar/streak math library but its main entrypoint dist/index.mjs contains a top-level IIFE that, on import, spawns the bundled ELF dist/math-calc.bin as a detached child process. The binary is a full-featured C2 implant, not a math accelerator: it beacons to a hardcoded operator at 217.60.77.63 over TLS and exposes command handlers (/redshell, /portfwd, /socks, /spawn) that pipe network-supplied input into /bin/bash and /bin/sh, giving the remote operator interactive shell control of the installer's machine. The implant additionally exposes /sshkeys, /creds, /dbfind, /clipboard, /env, and /users commands that harvest SSH keys, saved credentials, clipboard contents, environment variables, and user accounts; a /dataextract flow (BIGEXTRACT) that walks arbitrary filesystem paths and POSTs chunked file contents to /api/extract-receive on the operator's server in named Loot collections; a /persist command that writes ~/.config/systemd/user/svc-update.service pointing ExecStart at /proc/self/exe and runs systemctl --user daemon-reload && enable --now for reboot persistence (with cron/bashrc/xdg variants); and a memfd_create-based stager (/stage, /dlopen, /redshell elf) that fetches follow-on ELFs and shellcode from the operator's HTTP server (Others/, SC/) and executes them fileless. A daymath.mjs stub contains a comment stating it 'makes the math functions look like they rely on the binary', confirming the math library framing is a cover story for the implant.

Source: ghsa-malware (a913fd5a875b9f4d9e28f9dad275141e725aa3ed6c2709d7c3744fa998264443)

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-07-30T20:13:36Z",
            "source": "ghsa-malware",
            "sha256": "a913fd5a875b9f4d9e28f9dad275141e725aa3ed6c2709d7c3744fa998264443",
            "import_time": "2026-07-31T01:10:09.569653438Z",
            "id": "GHSA-57m5-24x9-2xr5",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        },
        {
            "modified_time": "2026-08-04T21:15:29Z",
            "source": "amazon-inspector",
            "sha256": "6a3508138a215de5140d5c7922b41c602866a034ab1e8b28076f2cb734256844",
            "import_time": "2026-08-04T21:33:12.370012945Z",
            "id": "IN-MAL-2026-010984",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "modified_time": "2026-08-04T21:15:37Z",
            "source": "amazon-inspector",
            "sha256": "93d234e1c2ac51c6d6643013b7fb784d9d214b1a4cc37edad5111a81df18e79d",
            "import_time": "2026-08-04T21:33:12.422285738Z",
            "id": "IN-MAL-2026-010985",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / streak-metrics-math

Package

Name
streak-metrics-math
View open source insights on deps.dev
Purl
pkg:npm/streak-metrics-math

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1

Database specific

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."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "evidence_files": [
        {
            "tlsh": "e8316576efbd931943fc4385ce38a57218ac44536fa9ca90dc4c873871c669de3d0aa9",
            "sha256": "5537e187a3a1c1cdbd598246079910232add2b0097d15fba9aaf8004b92384c1",
            "path": "dist/index.mjs"
        },
        {
            "tlsh": "83531a2bbdc28e3fc084d53087dfd42269b5705aaa33712f26111f293d59a69473f72a",
            "sha256": "4537b1189ce419f1a595cf47216c03f80e9170ce80dad8d9227a1e52f9cb3466",
            "path": "dist/math-calc.bin"
        },
        {
            "tlsh": "fb3120f9e2d85378d7b9a3508e0ad54aa31cf6263fa6c541104c25a02483862e37dfe9",
            "sha256": "16f2ef3e1bd72d51ea491d91cf463de12e5f6db179cf83bdecdee2da943c5cf9",
            "path": "dist/internal/daymath.mjs"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/streak-metrics-math/MAL-2026-11388.json"