Malicious code in pantheon-toolsets (PyPI)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a3f2d24843d0caf23a36f07f7bd7b3adb7163463404856654f1745c7e75017be) The wheel installs pantheon_toolsets-setup.pth, which Python automatically executes at every interpreter startup (before any user import). The.pth contains a single obfuscated line using single-letter underscore-prefixed identifiers (_O, _T, _G, _o, _s, _u, _b, _a, _m, _z,...) and wraps the payload inside exec() of a string literal — a shape that has no legitimate use in a.pth file (which is normally limited to plain import statements / sys.path entries). The exec'd code: (1) checks a sentinel /tmp/.bun_ran to ensure one-shot execution, (2) downloads the Bun JavaScript runtime from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-{platform}-{arch}.zip into /tmp/b/bun, (3) glob-searches the install tree for any *_index.js* file, and (4) runs it via subprocess with `bun run <globbed_index.js>`. The package is advertised as a Python AI-agent toolset and has no documented need for an alternate JavaScript runtime. The globbed _index.js payload is not declared in the wheel manifest and is fetched/staged opaquely, so the bytes ultimately executed are not auditable from the package metadata. Additional tampering fingerprint: the 0.5.5 RECORD references a 0.5.4 dist-info directory and lists its own RECORD with the empty-string SHA-256 and zero size, consistent with a malicious file appended to an otherwise legitimate build by someone with publish credentials. Installing this package causes arbitrary attacker-stageable code to run with the user's privileges every time `python` is invoked. ## Source: kam193 (9c9711927907f09a0ef2b146d3aba3b8a06197b9af3f639d579015cdab7c0d5d) Versions 0.5.5, 0.5.6 were compromised. Compromised packages start an obfuscated infostealer. The infostealer is a heavily obfuscated JavaScript code executed using Bun runtime on Python startup. It collectes all kinds of sensitive data, including API keys, credentials to package repositories, cryptocurrency assets, password manager data. Infostealer actively queries online services to collect additional secrets as well as attempts to gain persistence and spread further by publishing infected packages using collected credentials. Data are exfiltrated likely using Github. The code seems to threaten to wipe the user's data if it detects invalid GitHub tokens. Cleanup should be done with caution. It seems to be related to the recent Mini Shai Hulud campaign. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-06-compr-woodpecker Reasons (based on the campaign): - compromised-package - exfiltration-env-variables - exfiltration-cloud-tokens - exfiltration-credentials - abuses-pth - obfuscation - infostealer - The package contains code to detect if it is running in a sandbox environment. - exfiltration-crypto - files-exfiltration - destructive-actions
AI Analysis
Technical Summary
The pantheon-toolsets PyPI package versions 0.5.5 and 0.5.6 contain a malicious .pth file that executes obfuscated code on Python interpreter startup. This code downloads the Bun JavaScript runtime and executes obfuscated JavaScript infostealer payloads found in the installation tree. The infostealer collects a wide range of sensitive information including environment variables, cloud tokens, credentials, and cryptocurrency assets. It also attempts to maintain persistence and spread by publishing infected packages with stolen credentials. The malicious code is obfuscated and uses sandbox detection techniques. The package metadata shows tampering consistent with appended malicious files. This campaign is linked to the Mini Shai Hulud campaign and is categorized as a malicious compromised package attack with infostealing and destructive capabilities.
Potential Impact
Installing pantheon-toolsets versions 0.5.5 or 0.5.6 results in arbitrary attacker-controlled code execution with the user's privileges every time the Python interpreter is started. The attacker can steal sensitive data including API keys, credentials, cryptocurrency assets, and password manager data. The malware can exfiltrate data, attempt persistence, spread by publishing infected packages, and potentially perform destructive actions such as wiping user data if invalid GitHub tokens are detected.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately uninstall pantheon-toolsets versions 0.5.5 and 0.5.6 and avoid using these versions. Verify the integrity of installed packages and consider cleaning or restoring affected environments. Exercise caution during cleanup due to potential destructive payloads. Monitor for updates from the package maintainers or PyPI for official remediation guidance.
Malicious code in pantheon-toolsets (PyPI)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a3f2d24843d0caf23a36f07f7bd7b3adb7163463404856654f1745c7e75017be) The wheel installs pantheon_toolsets-setup.pth, which Python automatically executes at every interpreter startup (before any user import). The.pth contains a single obfuscated line using single-letter underscore-prefixed identifiers (_O, _T, _G, _o, _s, _u, _b, _a, _m, _z,...) and wraps the payload inside exec() of a string literal — a shape that has no legitimate use in a.pth file (which is normally limited to plain import statements / sys.path entries). The exec'd code: (1) checks a sentinel /tmp/.bun_ran to ensure one-shot execution, (2) downloads the Bun JavaScript runtime from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/bun-{platform}-{arch}.zip into /tmp/b/bun, (3) glob-searches the install tree for any *_index.js* file, and (4) runs it via subprocess with `bun run <globbed_index.js>`. The package is advertised as a Python AI-agent toolset and has no documented need for an alternate JavaScript runtime. The globbed _index.js payload is not declared in the wheel manifest and is fetched/staged opaquely, so the bytes ultimately executed are not auditable from the package metadata. Additional tampering fingerprint: the 0.5.5 RECORD references a 0.5.4 dist-info directory and lists its own RECORD with the empty-string SHA-256 and zero size, consistent with a malicious file appended to an otherwise legitimate build by someone with publish credentials. Installing this package causes arbitrary attacker-stageable code to run with the user's privileges every time `python` is invoked. ## Source: kam193 (9c9711927907f09a0ef2b146d3aba3b8a06197b9af3f639d579015cdab7c0d5d) Versions 0.5.5, 0.5.6 were compromised. Compromised packages start an obfuscated infostealer. The infostealer is a heavily obfuscated JavaScript code executed using Bun runtime on Python startup. It collectes all kinds of sensitive data, including API keys, credentials to package repositories, cryptocurrency assets, password manager data. Infostealer actively queries online services to collect additional secrets as well as attempts to gain persistence and spread further by publishing infected packages using collected credentials. Data are exfiltrated likely using Github. The code seems to threaten to wipe the user's data if it detects invalid GitHub tokens. Cleanup should be done with caution. It seems to be related to the recent Mini Shai Hulud campaign. --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-06-compr-woodpecker Reasons (based on the campaign): - compromised-package - exfiltration-env-variables - exfiltration-cloud-tokens - exfiltration-credentials - abuses-pth - obfuscation - infostealer - The package contains code to detect if it is running in a sandbox environment. - exfiltration-crypto - files-exfiltration - destructive-actions
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 pantheon-toolsets PyPI package versions 0.5.5 and 0.5.6 contain a malicious .pth file that executes obfuscated code on Python interpreter startup. This code downloads the Bun JavaScript runtime and executes obfuscated JavaScript infostealer payloads found in the installation tree. The infostealer collects a wide range of sensitive information including environment variables, cloud tokens, credentials, and cryptocurrency assets. It also attempts to maintain persistence and spread by publishing infected packages with stolen credentials. The malicious code is obfuscated and uses sandbox detection techniques. The package metadata shows tampering consistent with appended malicious files. This campaign is linked to the Mini Shai Hulud campaign and is categorized as a malicious compromised package attack with infostealing and destructive capabilities.
Potential Impact
Installing pantheon-toolsets versions 0.5.5 or 0.5.6 results in arbitrary attacker-controlled code execution with the user's privileges every time the Python interpreter is started. The attacker can steal sensitive data including API keys, credentials, cryptocurrency assets, and password manager data. The malware can exfiltrate data, attempt persistence, spread by publishing infected packages, and potentially perform destructive actions such as wiping user data if invalid GitHub tokens are detected.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately uninstall pantheon-toolsets versions 0.5.5 and 0.5.6 and avoid using these versions. Verify the integrity of installed packages and consider cleaning or restoring affected environments. Exercise caution during cleanup 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-5277
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["PyPI"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba4568715ace4357e5cb
Added to database: 07/10/2026, 09:24:21 UTC
Last enriched: 07/10/2026, 09:36:34 UTC
Last updated: 07/29/2026, 06:24:46 UTC
Views: 11
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.