Malicious code in executor-engine (PyPI)
The executor-engine PyPI package versions 0.3.4 and 0.3.5 contain a malicious site-packages.pth file that executes obfuscated code on every Python interpreter start. This code downloads and runs a JavaScript infostealer using the Bun runtime, which collects sensitive data including API keys, credentials, cryptocurrency assets, and password manager data. The malicious code attempts persistence and propagation by publishing infected packages using stolen credentials and may perform destructive actions if invalid GitHub tokens are detected. The compromise appears to be a repackaging of a legitimate release with added malicious payloads, linked to the Mini Shai Hulud campaign.
AI Analysis
Technical Summary
The executor-engine PyPI package versions 0.3.4 and 0.3.5 were compromised by attackers who republished a legitimate package version with an added malicious site-packages.pth file. This file contains obfuscated Python code that executes on every interpreter start, downloading the Bun JavaScript runtime and running a heavily obfuscated infostealer JavaScript payload. The infostealer collects a wide range of sensitive information including environment variables, cloud tokens, credentials, cryptocurrency assets, and password manager data. It also attempts to gain persistence and spread by publishing infected packages using stolen credentials. The malicious code detects sandbox environments and may perform destructive actions such as wiping user data if invalid GitHub tokens are found. This campaign is categorized as malicious and linked to the Mini Shai Hulud campaign.
Potential Impact
Installation or use of executor-engine versions 0.3.4 or 0.3.5 results in execution of malicious code on every Python interpreter start, leading to exfiltration of sensitive data including API keys, credentials, cryptocurrency assets, and password manager information. The attacker can gain persistence and propagate the infection by publishing additional compromised packages using stolen credentials. There is also a risk of destructive actions such as data wiping if invalid GitHub tokens are detected. This compromises confidentiality, integrity, and availability of affected systems and data.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or using executor-engine versions 0.3.4 and 0.3.5. If these versions are installed, immediate removal of the package and thorough system inspection for persistence mechanisms and exfiltration artifacts is recommended. Cleanup should be performed cautiously due to potential destructive payloads. Monitor for updates from the package maintainers or PyPI for official remediation guidance.
Malicious code in executor-engine (PyPI)
Description
The executor-engine PyPI package versions 0.3.4 and 0.3.5 contain a malicious site-packages.pth file that executes obfuscated code on every Python interpreter start. This code downloads and runs a JavaScript infostealer using the Bun runtime, which collects sensitive data including API keys, credentials, cryptocurrency assets, and password manager data. The malicious code attempts persistence and propagation by publishing infected packages using stolen credentials and may perform destructive actions if invalid GitHub tokens are detected. The compromise appears to be a repackaging of a legitimate release with added malicious payloads, linked to the Mini Shai Hulud campaign.
Affected software
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
Technical Analysis
The executor-engine PyPI package versions 0.3.4 and 0.3.5 were compromised by attackers who republished a legitimate package version with an added malicious site-packages.pth file. This file contains obfuscated Python code that executes on every interpreter start, downloading the Bun JavaScript runtime and running a heavily obfuscated infostealer JavaScript payload. The infostealer collects a wide range of sensitive information including environment variables, cloud tokens, credentials, cryptocurrency assets, and password manager data. It also attempts to gain persistence and spread by publishing infected packages using stolen credentials. The malicious code detects sandbox environments and may perform destructive actions such as wiping user data if invalid GitHub tokens are found. This campaign is categorized as malicious and linked to the Mini Shai Hulud campaign.
Potential Impact
Installation or use of executor-engine versions 0.3.4 or 0.3.5 results in execution of malicious code on every Python interpreter start, leading to exfiltration of sensitive data including API keys, credentials, cryptocurrency assets, and password manager information. The attacker can gain persistence and propagate the infection by publishing additional compromised packages using stolen credentials. There is also a risk of destructive actions such as data wiping if invalid GitHub tokens are detected. This compromises confidentiality, integrity, and availability of affected systems and data.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or using executor-engine versions 0.3.4 and 0.3.5. If these versions are installed, immediate removal of the package and thorough system inspection for persistence mechanisms and exfiltration artifacts is recommended. Cleanup should be performed cautiously due to potential destructive payloads. Monitor for updates from the package maintainers or PyPI for official remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5298
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4f6c6168715ace4315a062
Added to database: 07/09/2026, 09:39:45 UTC
Last enriched: 07/09/2026, 10:04:16 UTC
Last updated: 07/31/2026, 03:34:40 UTC
Views: 25
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.