MAL-2026-11043

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/supplyhub/MAL-2026-11043.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11043
Published
2026-07-20T00:00:00Z
Modified
2026-07-24T07:05:20.943206092Z
Summary
Malicious code in supplyhub (npm)
Details

The npm package supplyhub is a credential / SSH-key stealer. Its package.json declares a postinstall lifecycle hook (postinstall: node postinstall.js) that executes automatically on npm install, before the package is ever imported.

postinstall.js uses fs.readFileSync to read the user's SSH private key (~/.ssh/id_rsa) and the process environment (/proc/self/environ — where CI/cloud tokens and npm tokens live), and gathers account/host identity via os.userInfo(); it also references /etc/passwd. The collected data is exfiltrated by HTTP POST to a hard-coded webhook.site dead-drop: https://webhook.site/3c9418b3-cacd-403d-b42e-e9e4a9508fe3.

Only version 1.0.2 is malicious: version 1.0.0 (held in the codelake corpus) is clean — the exfiltration code was introduced in the 1.0.2 release (a trust-then-poison pattern). Any workstation or CI runner that installs supplyhub@1.0.2 (directly or transitively) hands its SSH key and environment secrets to the operator. Detected and classified independently by codelake Research from the live npm feed on 2026-07-20; not present in OSV or GHSA at the time of reporting (a first-catch).

Database specific
{
    "malicious-packages-origins": null,
    "iocs": {
        "urls": [
            "https://webhook.site/3c9418b3-cacd-403d-b42e-e9e4a9508fe3"
        ],
        "hashes": [
            "sha256:bd13913906ed463642719633f36f04cf10ae6f9c9360fcde842f8b6b1daf0b02"
        ]
    }
}
References
Credits

Affected packages

npm / supplyhub

Package

Affected ranges

Affected versions

1.*
1.0.2

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/supplyhub/MAL-2026-11043.json"