Shai-Hulud Hades Campaign Poisoned 19 PyPI Packages to Steal Developer Secrets
Supply Chain Risk · 7 sources · Updated 5mo ago · First seen Jun 8, 2026

Researchers reported that the Hades malware campaign, tied to the broader Shai-Hulud/Miasma lineage, poisoned 19 PyPI packages across 37 malicious releases, including widely used bioinformatics and science-focused tools. The malicious packages abused Python startup and import mechanisms such as executable .pth files and obfuscated __init__.py hooks to automatically fetch the Bun JavaScript runtime from GitHub and launch an obfuscated stealer payload, often without requiring normal package execution. Investigators said the malware harvested a broad set of secrets from developer workstations and CI/CD environments, including GitHub, npm, PyPI, cloud, Kubernetes, SSH, Docker, and shell-history credentials, while using GitHub repositories, GitHub Actions, and secondary HTTPS channels for exfiltration.
Security firms said the operation expands earlier Shai-Hulud tradecraft with AI-analysis evasion, hidden prompts intended to mislead LLM-based security tools, payload retrieval from GitHub commits, SSH/SCP-based lateral movement, IDE and AI-assistant backdooring, and destructive components such as a gh-token-monitor service. Reporting also linked the campaign to an attempted compromise of the Pythagora-io/gpt-pilot project after the maintainer account LeonOstrez was breached, although the malicious changes reportedly failed CI checks because formatting and linting rules blocked them. Defenders were urged to rotate exposed secrets, restore from trusted backups, and hunt for indicators including executable .pth files, Bun downloads from GitHub, and unusual Python-to-Bun process chains on Linux and macOS systems.
Why it matters
Impact assessment
Hades is a high-severity software supply-chain threat affecting Python developers, CI/CD systems, and organizations that consume PyPI packages, especially in bioinformatics, computational biology, AI-themed tooling, and science-focused environments. The impact includes theft of source-control, package-registry, cloud, Kubernetes, SSH, Docker, and CI secrets, with follow-on risk of repository compromise, malicious package publication, lateral movement, destructive actions, and broader software supply-chain contamination.
The exposure is both widespread and targeted: widespread because poisoned packages were published to PyPI and some affected packages were heavily downloaded, and targeted because the malware is optimized for developer workstations and build pipelines. There are confirmed incidents of malicious package publication and at least one attempted downstream repository compromise involving Pythagora-io/gpt-pilot after the LeonOstrez account was breached.
Affected populations
- Python package consumers using PyPI, especially developer endpoints and CI runners
- Organizations with software build, release, and package publishing workflows
- Bioinformatics, computational biology, genotype-phenotype analysis, and science-focused users
- Teams using GitHub Actions, OIDC-based publishing, SLSA provenance workflows, and AI-assisted development tools
Severity and business consequences
- Credential theft across GitHub, npm, PyPI, RubyGems, JFrog, AWS, GCP, Azure, Kubernetes, Vault, Docker, and SSH
- Risk of unauthorized code pushes, malicious package publication, and CI/CD compromise
- Potential operational disruption from persistence, lateral movement, and destructive token-monitor/wiper behavior
- Reputational and financial impact from downstream customer exposure and loss of trust in software release pipelines
Scope and known incidents
- 19 PyPI packages and 37 malicious releases were reported in the main Hades wave
- A later report described 23 malicious PyPI package versions in a related wave
- Mini Shai-Hulud-related activity reportedly affected 473 package artifacts across npm and PyPI since June 1, 2026
- Attempted compromise of Pythagora-io/gpt-pilot was blocked by CI formatting and linting checks
- Public release of the worm source code on 2026-05-12 likely increased copycat and follow-on activity


