{"id":"MAL-2026-10590","summary":"Malicious code in openaiwrapper (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ea3d691208e7e5c443aa161241ca12c9b3eacb1b04428f886ea8c5fbec5a4d0c)\nThe 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.\n","modified":"2026-07-14T14:49:15.007830445Z","published":"2026-07-14T13:59:47Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-07-14T14:37:52.353138812Z","modified_time":"2026-07-14T13:59:47Z","sha256":"ea3d691208e7e5c443aa161241ca12c9b3eacb1b04428f886ea8c5fbec5a4d0c","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-010514"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/openaiwrapper/v/1.0.0"}],"affected":[{"package":{"name":"openaiwrapper","ecosystem":"npm","purl":"pkg:npm/openaiwrapper"},"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"sha256":"6eb3939e40f85d1c3f591a3cd3a3edf0fd00c9b09fd7cb48f62e11edca3219b2","tlsh":"d9513181849e521310db2af168034c00a67ee59b3435e6e17e8f02249fddc6c85b3fbd","path":".init.js"}],"package_integrity":[{"filename":"openaiwrapper-1.0.0.tgz","hashes":{"sha1":"c0dbd915f26c30e4c29e94321f404b43b0202800","sha512_sri":"sha512-3zQ5Pp2FrW09LizZHgOHuxxw3KA+m77ITuHu6xxIozTm5j9oQVrWmc5+ozLn0PYtLfwGtmDhtQ9i/6qnanjyvA=="}}]},"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/openaiwrapper/MAL-2026-10590.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}