NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

discord-token-generatorPyPI

Advisory published Updated

discord-token-generator is a confirmed malicious PyPI package (MAL-2026-6549) that steals credentials and exfiltrates sensitive data (malicious versions 1.0.0, 1.0.1, 1.0.2…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in discord-token-generator (PyPI)

MAL-2026-6549
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
pip uninstall discord-token-generator

What this malware does

discord_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 '[email protected]', 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.

During 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.

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-06-discord-token-generator

Reasons (based on the campaign):

  • infostealer

  • files-exfiltration

  • obfuscation

  • exfiltration-browser-data

  • malware

  • target:telegram

  • exfiltration-credentials

Malicious versions

4 flagged
1.0.01.0.11.0.21.0.3

Indicators of compromise (SHA-256)

93b4fe1006dee186a1cbe4513b0f0c127912724aed5b3caf6bca4b0f27294b99
7966bac861b768b665629d399bcf61b22be743873a8d0cc943ae02bea796c1b0
bd8ea62a4ea52ecb2b45603be4205ef69fde975fd4706750ab2fd6a8c22b3c85
ebd016cfcb52b59c0141268099b96c1336a15ca1d0afce46f367c7fe376f57de
f704395466eaf6706a13b7e7aecd5972a204d3680afe1a1893800d9a02aa0960

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for discord-token-generator (4 malicious versions).

  2. If you installed it — respond

    discord-token-generator is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If discord-token-generator was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. discord-token-generator on PyPI has been identified as a malicious package (versions 1.0.0, 1.0.1, 1.0.2, 1.0.3 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

2026-06-discord-token-generatorIN-MAL-2026-007752IN-MAL-2026-007751IN-MAL-2026-007750IN-MAL-2026-007753

References

Credits

  • Amazon Inspector · finder
  • Kamil Mańkowski (kam193) · reporter

Detect & block this

O3 blocks discord-token-generator-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

discord-token-generator (PyPI) malicious package — MAL-2026-6549 | O3 Security