{"id":"MAL-2026-12089","summary":"Malicious code in @wethenorth12/crypto-config (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d56f2c55cacbd8d06b8d3b0f20b808262c42cd002441399d8e39a2f03c600f3c)\nOn require, index.js collects process.env, hostname, username, homedir, platform, and cwd, base64-encodes the blob, and POSTs it to api.telegram.org/bot\u003ctoken\u003e/sendMessage with a hardcoded bot token and chat_id 8969499041. A tmp marker file gates repeat sends. The package presents itself as a drop-in for the popular `config` package (typosquat), attempts to require('config') and re-exports it to preserve apparent functionality, and uses randomized variable names to obscure the exfiltration path.\n","modified":"2026-08-05T07:20:51.857487666Z","published":"2026-08-05T06:25:24Z","database_specific":{"malicious-packages-origins":[{"sha256":"d56f2c55cacbd8d06b8d3b0f20b808262c42cd002441399d8e39a2f03c600f3c","source":"amazon-inspector","versions":["2.0.1"],"id":"IN-MAL-2026-013453","import_time":"2026-08-05T07:06:48.212879286Z","modified_time":"2026-08-05T06:25:24Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wethenorth12/crypto-config/v/2.0.1"}],"affected":[{"package":{"name":"@wethenorth12/crypto-config","ecosystem":"npm","purl":"pkg:npm/%40wethenorth12/crypto-config"},"versions":["2.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@wethenorth12/crypto-config/MAL-2026-12089.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"crypto-config-2.0.1.tgz","hashes":{"sha1":"0248f952faa09587ba82986c2580e2a57f9bd344","sha512_sri":"sha512-wmcgRrxCD7NKc3oyGmNsh81uq/ldLF4nI3Yo7jAzBLVYiSD+xyeK3/GPJ/Fak5RefoGUOU6ExSP74935jvushg=="}}],"evidence_files":[{"sha256":"5fd171b031ab8de17a165f545915dbe510d9915be901c7288b1bcac5c7b5f8c8","tlsh":"fd2144c827f5f84f12766592a47f610bb3abcae20485e610d2a4e4872fb41cc8459398","path":"index.js"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}