Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in embiggen (PyPI)

0
Critical
Published: 06/06/2026 (06/06/2026, 06:13:57 UTC)
Source: GCVE Database
Product: embiggen

Description

The package `embiggen` version 0.11.97 contains a malicious `.pth` file (`embiggen-setup.pth`) that executes a Bun-based credential stealer on every Python startup via CPython's `site.py` exec() mechanism. The payload downloads the Bun runtime from the official GitHub release page, then runs an obfuscated JavaScript stealer that exfiltrates environment variables, .env files, SSH keys, and cloud credentials to an attacker-controlled GitHub repository. This is part of the Hades/Miasma campaign (also called Shai-Hulud), attributed to the TeamPCP threat actor. Novel finding: `gpsea/_index.js` (same campaign) embeds CBRN-level dangerous-content text to trigger AI safety refusals in LLM-based security scanners, causing them to skip the file entirely. C2 IP: 20.207.73.82 Sentinel file: /tmp/.bun_ran MITRE ATT&CK: T1546.018 --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (fde146ce352fe0581926c899cde5be769d4b7e0e04210bec5555889b4fe66636) The package was found to contain malicious code or consuming dependency that contains malicious code ## Source: kam193 (51ebfbf23c315702e5792c88fdc20449c798cebdbbdde4462cd98e3b7625618f) Versions 0.11.97 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

PyPIghsa
embiggen
Affected versions
>=0.11.97 <0.11.98=0.11.97

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: 07/10/2026, 09:37:14 UTC

Technical Analysis

The 'embiggen' PyPI package version 0.11.97 includes a malicious '.pth' file ('embiggen-setup.pth') that leverages CPython's site.py exec() mechanism to run a Bun runtime-based JavaScript infostealer on every Python startup. This infostealer downloads the Bun runtime from GitHub, executes heavily obfuscated JavaScript that collects environment variables, .env files, SSH keys, cloud credentials, cryptocurrency assets, and password manager data, then exfiltrates this information to an attacker-controlled GitHub repository. The campaign, attributed to the TeamPCP threat actor and known as Hades/Miasma or Shai-Hulud, also includes sandbox detection and destructive payloads triggered by invalid GitHub tokens. The malicious code attempts persistence and propagation by publishing infected packages using stolen credentials. The threat is part of a broader malicious campaign involving obfuscation and evasion techniques.

Potential Impact

This malicious package compromises the confidentiality of sensitive data including environment variables, cloud tokens, SSH keys, cryptocurrency assets, and password manager data by exfiltrating them to an attacker-controlled repository. It also threatens data integrity and availability by potentially wiping user data if invalid GitHub tokens are detected. The attacker gains persistence and propagation capabilities by publishing infected packages using stolen credentials, increasing the risk of further infections and supply chain compromise.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix or removal from PyPI is confirmed, users should immediately uninstall version 0.11.97 of the 'embiggen' package and avoid using it. Review and rotate any potentially exposed credentials, environment variables, and keys. Monitor for the sentinel file '/tmp/.bun_ran' as an indicator of compromise. Exercise caution during cleanup due to potential destructive payloads. Consider using trusted package sources and verifying package integrity before installation.

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-5314
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["PyPI"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a50ba4568715ace4357e5e2

Added to database: 07/10/2026, 09:24:21 UTC

Last enriched: 07/10/2026, 09:37:14 UTC

Last updated: 07/31/2026, 12:27:30 UTC

Views: 13

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