MAL-2026-12431

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/rpc-endpoint-rotator/MAL-2026-12431.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12431
Published
2026-08-05T12:59:13Z
Modified
2026-08-05T13:35:52.678173308Z
Summary
Malicious code in rpc-endpoint-rotator (npm)
Details

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

Source: amazon-inspector (7eda47a0d1da23b08d63a5fa4339234b9a19bc7aedf7b74d060731b24841be2a)

index.js schedules a top-level POST on module load to https://enjbyg3xk8l.x.pipedream.net/beacon carrying the entire process.env plus OS hostname, username, and home directory. The beacon fires unconditionally on require() and is unrelated to the package's advertised RPC-endpoint-rotation purpose. Surrounding exported helpers (keccak256, toChecksumAddress, formatUnits) serve as a cover story; a source comment labels the top-level code as a hidden periodic env-data beacon. Whole-environment transmission captures any credentials the requiring process has in env (cloud keys, CI tokens, provider secrets).

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-014835",
            "import_time": "2026-08-05T13:08:50.075388041Z",
            "sha256": "7eda47a0d1da23b08d63a5fa4339234b9a19bc7aedf7b74d060731b24841be2a",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T12:59:13Z"
        }
    ]
}
References
Credits

Affected packages

npm / rpc-endpoint-rotator

Package

Name
rpc-endpoint-rotator
View open source insights on deps.dev
Purl
pkg:npm/rpc-endpoint-rotator

Affected ranges

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/rpc-endpoint-rotator/MAL-2026-12431.json"
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "074131b56979b02846b351d888a9cd1fa7abe1523a03d4e4b75d28440fcae78d8f1da0",
            "sha256": "6086dc2f6aa3fce37fdba1b740775acf62c7bc87915154083cb05f36eece88e5"
        }
    ],
    "package_integrity": [
        {
            "filename": "rpc-endpoint-rotator-1.0.0.tgz",
            "hashes": {
                "sha1": "2e741c03c4238e68c6eaaf559626560740c79c26",
                "sha512_sri": "sha512-lmU38tNWQJpIWMC3pIK3/2yqrPg23lpGHjOSQBXNlSVSEaD+u7ax3Yx+ufx7Uv8H0LbrOTmpiAMrn9U85gDFZw=="
            }
        }
    ]
}