Advisory

MAL-2026-6549

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in discord-token-generator (PyPI)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (ebd016cfcb52b59c0141268099b96c1336a15ca1d0afce46f367c7fe376f57de)
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.

Source: kam193 (93b4fe1006dee186a1cbe4513b0f0c127912724aed5b3caf6bca4b0f27294b99)
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

Severity

Not rated by the source.

Dates

Published
2026-06-27 20:52 UTC
Modified
2026-06-29 07:16 UTC

Affected packages and fixes

discord-token-generator

PyPI · All systems

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences