MAL-2026-6079

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/set-proto-chain/MAL-2026-6079.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6079
Aliases
  • GHSA-7p39-r7q7-jcv7
Published
2026-06-17T21:38:59Z
Modified
2026-07-06T20:01:52.804831609Z
Summary
Malicious code in set-proto-chain (npm)
Details

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

Source: amazon-inspector (bdb11eef3afbfc268bd48a18737884246861c7ae9e6a3d29901ae1379216c633)

lib/index.js contains a base64-encoded URL (decoding to https://jsonkeeper.com/b/BN77K, an anonymous mutable paste host) that is fetched via axios.get; the response's .data.cookie field is then written to the stdin of a detached node child process for execution. The top-level index.js calls getThetaInterface() unconditionally, and package.json declares postinstall: node index.js, so the fetch-and-execute path fires automatically on npm install as well as on require(). The fetched payload is attacker-controlled and can change at any time. The package additionally impersonates the legitimate proto-chain package (README header # proto-chain, runtime error messages referencing require('proto-chain')), making accidental installs more likely.

Source: ghsa-malware (e5464b83f14b49df255a13a51392d93c6632bd5605d85a3c670d99d37b967417)

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-06-17T21:38:59Z",
            "versions": [
                "1.0.3"
            ],
            "sha256": "bdb11eef3afbfc268bd48a18737884246861c7ae9e6a3d29901ae1379216c633",
            "import_time": "2026-06-17T21:42:18.106575788Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-006943"
        },
        {
            "modified_time": "2026-07-06T18:57:48Z",
            "versions": [
                "1.0.3"
            ],
            "sha256": "e5464b83f14b49df255a13a51392d93c6632bd5605d85a3c670d99d37b967417",
            "import_time": "2026-07-06T19:53:47.936271169Z",
            "source": "ghsa-malware",
            "id": "GHSA-7p39-r7q7-jcv7"
        }
    ]
}
References
Credits

Affected packages

npm / set-proto-chain

Package

Affected ranges

Affected versions

1.*
1.0.3

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "46f0275b317b63781f700de0d53289364d43d020f582d1e4648e80579a8b647044aeec",
            "sha256": "72a8a52cbb98921b689173423a2970d414fd2c32e3a5aea47db7be9550024a10",
            "path": "lib/index.js"
        },
        {
            "tlsh": "0d21bb21e4e2aca307e5526a3c2e52573191d917898bfc0cb3aa034c8f5c63b92f825d",
            "sha256": "ce924b408f4f3fc6200295dc9c5a8083a6bf5802872cb8cf7c495d1d1b9ee6d5",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "cc8af25f10faa1ecdd3bd6e4d22164b63e361e7e",
                "sha512_sri": "sha512-WFO6/fFWU5IiKgDwkGONGAKSeUtksNNXWJcqoc+yCPksqQXvztZoHwxDVZf5UhKyW1a56N2cecJJEZQi2inqAg=="
            },
            "filename": "set-proto-chain-1.0.3.tgz"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    },
    {
        "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/set-proto-chain/MAL-2026-6079.json"