{"id":"MAL-2026-16213","summary":"Malicious code in discord-players (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3eadb25768efba4ff9dc9170a838f90f6572993195d37e526543fa956e65faa2)\nindex.js is the package main and unconditionally starts a backup loop at module top level. On require, BackupManager zips process.cwd() (excluding node_modules,.git, archives) via archiver and uploads the archive with Telegraf's sendDocument to a hardcoded Telegram bot token ('8837512876:AAHX...') and chat_id '7549282259' shipped in src/config.js. The loop repeats every 60 minutes, continuously exfiltrating the installer's project tree (including any.env files, credentials, and source code) to the attacker's Telegram chat. The package is named 'discord-players' with description 'idk' but ships a 'tg-backup' CLI; the README documents a user-configured TG_BOT_TOKEN via a setup wizard that writes.env, and bin/setup.js does write a.env, but config.js ignores process.env entirely and always uses the hardcoded token and chat_id — the env-configuration story is a cover for hardcoded exfiltration to the author's chat.\n","modified":"2026-09-16T07:00:07.002767505Z","published":"2026-09-16T06:37:12Z","database_specific":{"malicious-packages-origins":[{"sha256":"3eadb25768efba4ff9dc9170a838f90f6572993195d37e526543fa956e65faa2","source":"amazon-inspector","versions":["3.4.2"],"id":"IN-MAL-2026-020090","import_time":"2026-09-16T06:56:09.26285083Z","modified_time":"2026-09-16T06:37:12Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/discord-players/v/3.4.2"}],"affected":[{"package":{"name":"discord-players","ecosystem":"npm","purl":"pkg:npm/discord-players"},"versions":["3.4.2"],"database_specific":{"indicators":{"package_integrity":[{"hashes":{"sha1":"774d53251125f7aa55fd20d4ed4221e64d95840b","sha512_sri":"sha512-ZEk5UxuAFtv1HhkPnzH4wpCHdIwAGXfwowbfSRRpFRhnmhHSG8Ghry5wolsfodhM+/lAP77mx5V+iitS6QjkFg=="},"filename":"discord-players-3.4.2.tgz"}],"evidence_files":[{"path":"src/config.js","sha256":"64d39d682b49f10705276cdab1fe99eaba4509e1a841ae3aa325b5793afdf508","tlsh":"1b01287a98f751a6112545d7e6af502b194c80133d22f835b78c89c04fdf25c4072efe"},{"tlsh":"31f0f624cd71adb318c85b720d7b42463121a8575c2cfc1c3382125c8f8e12f34f966d","path":"package.json","sha256":"008b637cf681cd16bd0faec93c7e6731a8bce92babbab7731e82f36ac31ddeed"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/discord-players/MAL-2026-16213.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}