discord-token-generator (PyPI) · Malicious Code
Affects discord-token-generatorSource GCVE Database
Malicious package : remove discord-token-generator and rotate any secrets on hosts that installed it.
Data as of 29 Jun 2026, 22:35 UTC
Malicious package
Published to PyPI · OSV MAL-2026-6549
What to do
Remove discord-token-generator from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIdiscord-token-generator | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The discord-token-generator package on PyPI versions 1.0.0 through 1.0.3 contains malicious code that executes a hidden Windows binary upon import. This binary, obfuscated and launched without a visible console, acts as an infostealer named "NBSteal" targeting credentials and data from browsers, Telegram, Discord, Roblox, and other platforms. The package impersonates Discord to lure users into installing it. This behavior confirms the package's malicious intent and risk to users who install it.
References
- virustotal.com/gui/file/c31597963a8e83fc068a70a6187abc4d8fb1a67b318fc20aebb298ad97377783/detection (opens in a new tab)
- bad-packages.kam193.eu/pypi/package/discord-token-generator (opens in a new tab)
- pypi.org/project/discord_token_generator/1.0.2/ (opens in a new tab)
- pypi.org/project/discord_token_generator/1.0.1/ (opens in a new tab)
- pypi.org/project/discord_token_generator/1.0.3/ (opens in a new tab)
- pypi.org/project/discord_token_generator/1.0.0/ (opens in a new tab)