MAL-2026-10590

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/openaiwrapper/MAL-2026-10590.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10590
Published
2026-07-14T13:59:47Z
Modified
2026-07-14T14:49:15Z
Summary
Malicious code in openaiwrapper (npm)
Details

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

Source: amazon-inspector (ea3d691208e7e5c443aa161241ca12c9b3eacb1b04428f886ea8c5fbec5a4d0c)

The package's postinstall lifecycle hook runs.init.js, which reads a hardcoded list of credential-shaped environment variables (including NPM_TOKEN, GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, STRIPE_, DB_PASSWORD, and other cloud/service tokens) and reads credential files under the user's home directory (~/.npmrc, ~/.env, config.json, credentials.json, and token/secret files under ~/.config). It also collects host identifiers (hostname, platform, cwd, pid). The collected data is serialized and POSTed via https to the hardcoded endpoint https://webhook.cool/at/tender-deer-80/. This fires automatically on npm install with no user opt-in, and the package's name suggests it is impersonating an OpenAI client library.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-010514",
            "import_time": "2026-07-14T14:37:52.353138812Z",
            "modified_time": "2026-07-14T13:59:47Z",
            "sha256": "ea3d691208e7e5c443aa161241ca12c9b3eacb1b04428f886ea8c5fbec5a4d0c",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / openaiwrapper

Package

Name
openaiwrapper
View open source insights on deps.dev
Purl
pkg:npm/openaiwrapper

Affected ranges

Affected versions

1.*
1.0.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": ".init.js",
            "sha256": "6eb3939e40f85d1c3f591a3cd3a3edf0fd00c9b09fd7cb48f62e11edca3219b2",
            "tlsh": "d9513181849e521310db2af168034c00a67ee59b3435e6e17e8f02249fddc6c85b3fbd"
        }
    ],
    "package_integrity": [
        {
            "filename": "openaiwrapper-1.0.0.tgz",
            "hashes": {
                "sha1": "c0dbd915f26c30e4c29e94321f404b43b0202800",
                "sha512_sri": "sha512-3zQ5Pp2FrW09LizZHgOHuxxw3KA+m77ITuHu6xxIozTm5j9oQVrWmc5+ozLn0PYtLfwGtmDhtQ9i/6qnanjyvA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/openaiwrapper/MAL-2026-10590.json"