Skip to main content
MalwarePublished Updated

discord-token-generator (PyPI) · Malicious Code

Affects discord-token-generatorSource GCVE Database

0

Malicious package : remove discord-token-generator and rotate any secrets on hosts that installed it.

Data as of 29 Jun 2026, 22:35 UTC

Classification

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

ProductAffectedFixed in
PyPIdiscord-token-generatorAffected
  • 1.0.0 – 1.0.3
4 affected builds
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

Community reviews

Loading reviews…