donutpromotion (PyPI) · Malicious Code
Affects donutpromotionSource GCVE Database
Malicious package : remove donutpromotion and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:22 UTC
Malicious package
Published to PyPI · OSV MAL-2026-17196
What to do
Remove donutpromotion 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 |
|---|---|---|
| PyPIdonutpromotion | 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 PyPI package 'donutpromotion' version 0.1.0 contains malicious code that executes arbitrary payloads during installation. It fetches a remote JSON manifest or falls back to an embedded encrypted payload, decrypts it, and executes it, enabling arbitrary code execution. The malicious behavior is triggered only on developer workstations by checking for user directories and environment variables to evade sandbox detection. The package also includes an obfuscated native extension infostealer that exfiltrates sensitive data to a command-and-control server via blockchain transactions. The README falsely advertises offline Minecraft helper functionality, inconsistent with the malicious network activity.
References
- virustotal.com/gui/file/d03c42c275f0dbc617428441508c49ae1adcbbc95af4eeb094bca4e4f8943f3e/detection (opens in a new tab)
- polygonscan.com/address/0x9c0a507300fd902787bb193d80fca5ce6e1bff9a (opens in a new tab)
- bad-packages.kam193.eu/pypi/package/donutpromotion (opens in a new tab)
- pypi.org/project/donutpromotion/0.1.0/ (opens in a new tab)