{"id":"MAL-2026-10594","summary":"Malicious code in yargsplus (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (47ae65e1d6362744681f51216b451ba9889176b3b0c28b1b4c943f1b5033fdd4)\nThe package declares a postinstall hook (`node.init.js`) that runs automatically on `npm install`. The script enumerates roughly 60 credential and CI environment variables (including NPM_TOKEN, GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, GCP/Azure/Heroku/Vercel/Stripe tokens, DB_PASSWORD), reads home-directory dotfiles such as ~/.npmrc, ~/.env*, and credentials.json, and walks ~/.config for files matching token/cred/secret patterns. It also collects host reconnaissance (hostname, platform, cwd, pid, timestamp) and POSTs the combined JSON to a hardcoded external webhook at webhook.cool. The package ships no legitimate functionality; its main entry is empty. The name resembles the popular `yargs` CLI parser, consistent with a typosquat lure.\n","modified":"2026-07-14T14:49:17.314597238Z","published":"2026-07-14T14:00:20Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-010517","import_time":"2026-07-14T14:37:52.632882801Z","modified_time":"2026-07-14T14:00:20Z","sha256":"47ae65e1d6362744681f51216b451ba9889176b3b0c28b1b4c943f1b5033fdd4"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/yargsplus/v/1.0.0"}],"affected":[{"package":{"name":"yargsplus","ecosystem":"npm","purl":"pkg:npm/yargsplus"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/yargsplus/MAL-2026-10594.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"tlsh":"d9513181849e521310db2af168034c00a67ee59b3435e6e17e8f02249fddc6c85b3fbd","path":".init.js","sha256":"6eb3939e40f85d1c3f591a3cd3a3edf0fd00c9b09fd7cb48f62e11edca3219b2"}],"package_integrity":[{"filename":"yargsplus-1.0.0.tgz","hashes":{"sha1":"9291acb6b0cb88db1cef60e50022d2cfd9bff233","sha512_sri":"sha512-x7FAE8F+K/6ES7ywjc658VcQSoXWxeQ2f9lPofaQ5R0vm9urtJm9tUY5J87YtqZoXq8Lh0iwAuJWOKF/sdO0iw=="}}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}