Miasma Worm Campaign Spreads with New PyPI Wave
A coordinated PyPI compromise campaign involving 37 malicious wheel artifacts across 19 packages was detected, utilizing Python startup hooks to execute credential-stealing payloads. The attack leverages .pth files for automatic execution during Python interpreter startup, downloads the Bun JavaScript runtime, and runs obfuscated JavaScript payloads. The malware targets high-value developer and CI/CD credentials including GitHub, npm, PyPI, cloud providers (AWS, GCP, Azure), Kubernetes, Vault, SSH keys, and AI tool tokens. This represents a PyPI branch of the Shai-Hulud/Miasma campaign family, using a Hades-themed variant for GitHub exfiltration. Compromised packages included established bioinformatics tools with significant download counts, stemming from apparent maintainer account takeover. The payload employs multi-layer obfuscation, AES-GCM encryption, and exfiltrates data through GitHub repositories with distinctive markers. The campaign demonstrates cross-runtime attack capabilities and ecosystem-spe...
AI Analysis
Technical Summary
This threat involves a supply chain compromise on PyPI where attackers injected malicious wheel files into 19 packages, leveraging Python startup hooks (.pth files) to execute payloads automatically. The payload downloads the Bun JavaScript runtime to execute obfuscated JavaScript that steals credentials from multiple developer and cloud platforms. The campaign is linked to the Shai-Hulud adversary group and uses advanced obfuscation and encryption techniques to exfiltrate data via GitHub repositories. The attack targets high-value credentials relevant to development and CI/CD environments and stems from apparent maintainer account takeovers of established packages, including those in bioinformatics.
Potential Impact
The attack enables credential theft of sensitive developer and CI/CD tokens, including GitHub, npm, PyPI, cloud providers (AWS, GCP, Azure), Kubernetes, Vault, SSH keys, and AI tool tokens. This can lead to unauthorized access to critical development infrastructure and cloud environments. The use of automatic execution via Python startup hooks increases the likelihood of widespread infection among users of the compromised packages. The campaign's multi-layer obfuscation and encrypted exfiltration make detection and mitigation more challenging.
Mitigation Recommendations
No official patch or remediation guidance is currently available. Users should avoid installing or updating the identified compromised PyPI packages until further notice. Review and revoke potentially exposed credentials associated with affected environments. Monitor for suspicious activity related to developer and CI/CD credentials. Check the referenced vendor advisory and threat intelligence sources for updates on remediation and detection.
Indicators of Compromise
- hash: c539766062555d47716f8432e73adbe3a0c0c954a0b6c4005017a668975e275c
- hash: dc48b09b2a5954f7ff79ab8a2fd80202bd3b59c08c7cdbc6025aa923cb4c0efe
- hash: e1342a80d4b5e83d2c7c22e1e0aaa95f2d88e3dbf0d853a4994b180c93a4b17d
Miasma Worm Campaign Spreads with New PyPI Wave
Description
A coordinated PyPI compromise campaign involving 37 malicious wheel artifacts across 19 packages was detected, utilizing Python startup hooks to execute credential-stealing payloads. The attack leverages .pth files for automatic execution during Python interpreter startup, downloads the Bun JavaScript runtime, and runs obfuscated JavaScript payloads. The malware targets high-value developer and CI/CD credentials including GitHub, npm, PyPI, cloud providers (AWS, GCP, Azure), Kubernetes, Vault, SSH keys, and AI tool tokens. This represents a PyPI branch of the Shai-Hulud/Miasma campaign family, using a Hades-themed variant for GitHub exfiltration. Compromised packages included established bioinformatics tools with significant download counts, stemming from apparent maintainer account takeover. The payload employs multi-layer obfuscation, AES-GCM encryption, and exfiltrates data through GitHub repositories with distinctive markers. The campaign demonstrates cross-runtime attack capabilities and ecosystem-spe...
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This threat involves a supply chain compromise on PyPI where attackers injected malicious wheel files into 19 packages, leveraging Python startup hooks (.pth files) to execute payloads automatically. The payload downloads the Bun JavaScript runtime to execute obfuscated JavaScript that steals credentials from multiple developer and cloud platforms. The campaign is linked to the Shai-Hulud adversary group and uses advanced obfuscation and encryption techniques to exfiltrate data via GitHub repositories. The attack targets high-value credentials relevant to development and CI/CD environments and stems from apparent maintainer account takeovers of established packages, including those in bioinformatics.
Potential Impact
The attack enables credential theft of sensitive developer and CI/CD tokens, including GitHub, npm, PyPI, cloud providers (AWS, GCP, Azure), Kubernetes, Vault, SSH keys, and AI tool tokens. This can lead to unauthorized access to critical development infrastructure and cloud environments. The use of automatic execution via Python startup hooks increases the likelihood of widespread infection among users of the compromised packages. The campaign's multi-layer obfuscation and encrypted exfiltration make detection and mitigation more challenging.
Mitigation Recommendations
No official patch or remediation guidance is currently available. Users should avoid installing or updating the identified compromised PyPI packages until further notice. Review and revoke potentially exposed credentials associated with affected environments. Monitor for suspicious activity related to developer and CI/CD credentials. Check the referenced vendor advisory and threat intelligence sources for updates on remediation and detection.
Technical Details
- Author
- AlienVault
- Tlp
- white
- References
- ["https://socket.dev/blog/shai-hulud-descends-to-hades-miasma-pypi-wave"]
- Adversary
- Shai-Hulud
- Pulse Id
- 6a255457476fc6d2bbe99c64
- Threat Score
- null
Indicators of Compromise
Hash
| Value | Description | Copy |
|---|---|---|
hashc539766062555d47716f8432e73adbe3a0c0c954a0b6c4005017a668975e275c | — | |
hashdc48b09b2a5954f7ff79ab8a2fd80202bd3b59c08c7cdbc6025aa923cb4c0efe | — | |
hashe1342a80d4b5e83d2c7c22e1e0aaa95f2d88e3dbf0d853a4994b180c93a4b17d | — |
Threat ID: 6a2688ece29bf47b50c9eea9
Added to database: 6/8/2026, 9:18:36 AM
Last enriched: 6/8/2026, 9:33:33 AM
Last updated: 6/9/2026, 5:51:52 AM
Views: 65
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.
External Links
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.