Skip to main content

Malicious code in donutpromotion (PyPI)

0
Critical
Published: 09/27/2026 (09/27/2026, 08:55:47 UTC)
Source: GCVE Database
Product: donutpromotion

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.

Affected software

PyPIghsa
donutpromotion
Affected versions
=0.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/29/2026, 04:46:25 UTC

Technical Analysis

The 'donutpromotion' PyPI package (version 0.1.0) executes arbitrary code during installation by fetching a JSON manifest from a hardcoded non-publisher domain or using a fallback encrypted payload embedded in the package. The payload is decrypted using ChaCha20+HMAC with a hardcoded passphrase and executed via exec(), granting the attacker code execution on the installer's machine. The malicious code only activates if user Documents or Downloads directories exist and avoids execution in sandbox or build farm environments by checking environment variables. Additionally, obfuscated code fetches a Python application with a native extension that acts as an infostealer, collecting sensitive data and exfiltrating it to a command-and-control server whose address is derived from Polygon blockchain transaction history. The package uses obfuscation, steganography, and sandbox evasion techniques, and its README misleads users about its functionality.

Potential Impact

Successful installation of this package results in arbitrary code execution on the installer's machine, potentially compromising the system. The embedded infostealer can collect sensitive information and exfiltrate it to a remote attacker-controlled server, leading to data theft. The malware's sandbox evasion techniques increase the risk of undetected compromise on developer workstations.

Defensive Guidance

No official patch or remediation is indicated. Users should avoid installing the 'donutpromotion' package version 0.1.0 from PyPI. Security teams should block or monitor for this package in their environments and educate developers about the risks of installing untrusted packages. Since the package uses sandbox evasion, dynamic analysis may be insufficient; manual code review or static analysis is recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-17196
Osv Schema Version
1.7.4
Ecosystems
["PyPI"]

Threat ID: 6abb4186f7a7c54106cc2f6f

Added to database: 09/29/2026, 04:41:42 UTC

Last enriched: 09/29/2026, 04:46:25 UTC

Last updated: 09/29/2026, 18:13:14 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses