目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
PyPI active

discord-token-generator

MAL-2026-6549
2026-06-29 07:11:17
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in discord-token-generator (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPIdiscord-token-generator*
PyPIdiscord-token-generator1.0.0
PyPIdiscord-token-generator1.0.1
PyPIdiscord-token-generator1.0.2
PyPIdiscord-token-generator1.0.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-29T07:11:17Z","published":"2026-06-27T20:52:32Z","schema_version":"1.7.4","id":"MAL-2026-6549","summary":"Malicious code in discord-token-generator (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ebd016cfcb52b59c0141268099b96c1336a15ca1d0afce46f367c7fe376f57de)\ndiscord_token_generator/__init__.py imports tokens.py, which instantiates TokenManager() at module load. The constructor calls notin(), which concatenates eight large opaque string chunks (ytouhqifgm, nqbardpoze, wqopxtejdv, zywnltfdmd, ljqvzqnjsm, pkehqytikl, pkciygtgum, cmdelmtwgz), base64-decodes the result, XOR-deobfuscates it with key 66, writes the bytes to %TEMP%\\tokens.tmp, and launches the file via subprocess.Popen with shell=True and creationflags=0x08000000 (CREATE_NO_WINDOW) so no console appears. Any machine that imports this package runs the decoded Windows binary covertly. The package metadata (name 'discord-token-generator', author 'DiscordDev', email 'dev@discord.com', description 'Generate valid Discord tokens for development and testing') impersonates Discord as a social-engineering lure to attract installers searching for Discord token tooling. The multi-chunk obfuscation, hidden execution flags, and Discord brand impersonation together confirm malicious intent.\n\n## Source: kam193 (93b4fe1006dee186a1cbe4513b0f0c127912724aed5b3caf6bca4b0f27294b99)\nDuring import, package executes the embedded executable. It is an infostealer named internally as \"NBSteal\", focused on exfiltrating data from browsers, Telegram, Discord, Roblox and other gaming platforms, and other credentials.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-06-discord-token-generator\n\n\nReasons (based on the campaign):\n\n\n - infostealer\n\n\n - files-exfiltration\n\n\n - obfuscation\n\n\n - exfiltration-browser-data\n\n\n - malware\n\n\n - target:telegram\n\n\n - exfiltration-credentials\n","affected":[{"package":{"ecosystem":"PyPI","name":"discord-token-generator"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"discord_token_generator/tokens.py","sha256":"1053cbe01d96d65b19ce258bf44fd25738800823100dac0701c97081dba31a4e","tlsh":"16732ab5d959202873bc98f638e6d1c1eeb53143bc1df612ed4849223e3857be8685ce"},{"path":"setup.py","sha256":"aab22f1db4ff0019bfcb563b2c5533e9760047d2e89c45296ac7bf8afa05950c","tlsh":"8f01f466c8d42d7801c06a183c4380374b74a15b5e5ef5c9339c029c2f1d9df5b3356e"}],"package_integrity":[{"filename":"discord_token_generator-1.0.2-py3-none-any.whl","hashes":{"blake2b_256":"5c95f046eb37a94a6bf3927e7d93fa7b69cc7cb2c30d1ac8351ed9b8f3b00df4","md5":"16da4b1777b69620729356ee897a0279","sha256":"85cc9814d1cf8c6040884dbe519dce3ec7b9808f9defec3c06a732523aabcbb0"}},{"filename":"discord_token_generator-1.0.2.tar.gz","hashes":{"blake2b_256":"b7f17ebd7d1ecdcd8533923df4b99531630bd99ebdc0acf2b5c9d5326c496d7b","md5":"8fd265bd15ef7ac1aca3e9291c2e3efa","sha256":"b5c796503bd657709c08827ff8e33a2326775e64cb6b6f53b6892b964b51f6bf"}}]}}}],"references":[{"type":"EVIDENCE","url":"https://www.virustotal.com/gui/file/c31597963a8e83fc068a70a6187abc4d8fb1a67b318fc20aebb298ad97377783/detection"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/discord-token-generator"},{"type":"PACKAGE","url":"https://pypi.org/project/discord_token_generator/1.0.2/"},{"type":"PACKAGE","url":"https://pypi.org/project/discord_token_generator/1.0.1/"},{"type":"PACKAGE","url":"https://pypi.org/project/discord_token_generator/1.0.3/"},{"type":"PACKAGE","url":"https://pypi.org/project/discord_token_generator/1.0.0/"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"Kamil Mańkowski (kam193)","type":"REPORTER","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]}],"database_specific":{"iocs":{"domains":["nbbtest.bnfdkfq156.workers.dev"],"urls":["https://nbbtest.bnfdkfq156.workers.dev/"]},"malicious-packages-origins":[{"source":"kam193","sha256":"93b4fe1006dee186a1cbe4513b0f0c127912724aed5b3caf6bca4b0f27294b99","import_time":"2026-06-27T21:27:44.805103099Z","id":"pypi/2026-06-discord-token-generator/discord-token-generator","modified_time":"2026-06-27T20:52:32.20789Z","versions":["1.0.0","1.0.1","1.0.2","1.0.3"]},{"source":"amazon-inspector","sha256":"7966bac861b768b665629d399bcf61b22be743873a8d0cc943ae02bea796c1b0","import_time":"2026-06-29T07:09:10.05112394Z","id":"IN-MAL-2026-007752","modified_time":"2026-06-29T05:45:41Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2"]},{"source":"amazon-inspector","sha256":"bd8ea62a4ea52ecb2b45603be4205ef69fde975fd4706750ab2fd6a8c22b3c85","import_time":"2026-06-29T07:09:10.000398462Z","id":"IN-MAL-2026-007751","modified_time":"2026-06-29T05:45:31Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"ebd016cfcb52b59c0141268099b96c1336a15ca1d0afce46f367c7fe376f57de","import_time":"2026-06-29T07:09:09.930088577Z","id":"IN-MAL-2026-007750","modified_time":"2026-06-29T05:45:23Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"f704395466eaf6706a13b7e7aecd5972a204d3680afe1a1893800d9a02aa0960","import_time":"2026-06-29T07:09:10.105676398Z","id":"IN-MAL-2026-007753","modified_time":"2026-06-29T05:45:50Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.0"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0