MAL-2026-20420

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/env-helper-friend/MAL-2026-20420.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20420
Published
2026-11-24T04:14:04Z
Modified
2026-11-24T04:46:07Z
Summary
Malicious code in env-helper-friend (npm)
Details

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

Source: amazon-inspector (cdf9cf4146dc3e76fdd362acd19b90ff841abcb88ef3ef5c0e05b300cfc64d70)

On npm install, env-helper-friend's postinstall script serializes the entire process.env to JSON, truncates it to 200 characters, embeds the payload as a subdomain label of a hardcoded host (*.ygyrsdtjvygv.oeh), and performs a DNS lookup of the resulting hostname. Although the TLD does not resolve, recursive DNS resolvers on the install path still receive and typically log/forward the queried label, exfiltrating the environment contents (which commonly contain CI tokens, cloud credentials, and other secrets) to any resolver operator on the lookup chain and to any operator who controls the destination zone. The destination host is also overridable via the URLLY environment variable, allowing redirection to an arbitrary attacker-controlled label. README self-identifies the package as a test/research artifact, but the install-time exfiltration mechanism executes on any default npm install regardless of that label.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023070",
            "import_time":  "2026-11-24T04:37:05.74335548Z",
            "modified_time":  "2026-11-24T04:14:04Z",
            "sha256":  "cdf9cf4146dc3e76fdd362acd19b90ff841abcb88ef3ef5c0e05b300cfc64d70",
            "source":  "amazon-inspector",
            "versions":  [
                "0.2.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / env-helper-friend

Package

Name
env-helper-friend
View open source insights on deps.dev
Purl
pkg:npm/env-helper-friend

Affected ranges

Affected versions

0.*
0.2.0

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "scripts/postinstall.js",
            "sha256":  "0c22854cb08795407a1a8c36ed287a54726f48d82d347091b1b64c7139b76cf0",
            "tlsh":  "f231661c6976a61a26f1a4f40a9f0033672543352f95fae026cc53180ecaf3cd5519ff"
        },
        {
            "path":  "README.md",
            "sha256":  "0c956f20c8fd8e108df80c8c69e372e8f8c0bec286f6c31d7071f1cfac12f187",
            "tlsh":  "fc31d942d7f0623312722ab2b96625d15d3a907a13a02de5b2cb0c2e13dfed0128b54e"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "env-helper-friend-0.2.0.tgz",
            "hashes":  {
                "sha1":  "aa4da5b72624cbda74db1ccea93dc7ed2491a22e",
                "sha512_sri":  "sha512-jgudWx0seHuevQp9b7qMjEMsFr3Da5kr9SOfGbt9bLNK3YxPP7v/6wHSbFa1dFC+dSUryStSX3YSLCqY2Vnbaw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/env-helper-friend/MAL-2026-20420.json"