Skip to main content
Mallory
← Back to News
package-repository-poisoningcredential-stealer-activitybuild-pipeline-compromiselateral-movement-method

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

Shai-Hulud Hades Campaign Poisoned 19 PyPI Packages to Steal Developer Secrets

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
Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · May 12, 2026 – Jun 10, 2026
  1. Jun 10, 20266mo ago

    Socket reports Hades variant in 23 new malicious PyPI package versions

    Socket reported a newly discovered Mini Shai-Hulud variant called Hades in 23 new malicious PyPI package versions targeting bioinformatics and AI-themed packages. The campaign used PyPI-specific delivery methods including .pth hooks, compiled .abi.so extensions, and a loader-style package, while stealing developer and CI/CD secrets and embedding prompt-injection anti-analysis content.

    Mini Shai-Hulud ‘Hades’ variant affects 23 PyPI package versions | news | SC Media
  2. Jun 9, 20266mo ago

    Researchers detail expanded Hades capabilities and AI-analysis evasion

    Researchers reported that the Hades wave, linked to the Shai-Hulud/Miasma lineage, added capabilities such as prompt-injection-based AI-analysis evasion, payload retrieval from GitHub commits, SSH/SCP lateral movement, GitHub Actions secret theft, IDE and AI-assistant backdooring, and a destructive gh-token-monitor service. InfoWorld also described the campaign as targeting ensmallen and bioinformatics ecosystems while combining memory-focused behavior and wiper functionality.

    Hades PyPI Attack: 19 Packages Poisoned to Auto-Run Bun Credential Stealer
  3. Jun 9, 20266mo ago

    StepSecurity discloses compromise of LeonOstrez GitHub account

    StepSecurity disclosed that the GitHub account LeonOstrez, tied to the Pythagora-io/gpt-pilot project, was compromised to push a Shai-Hulud variant. The malicious changes did not deploy because CI failed due to ruff formatting and linting violations.

    Hades PyPI Attack: 19 Packages Poisoned to Auto-Run Bun Credential Stealer
  4. Jun 8, 20266mo ago

    PwnForums suffers outage after DNS and IP changes

    ASEC said PwnForums experienced an outage of roughly 12 hours following DNS and IP changes. The disruption was cited as another sign of volatility in the dark web forum ecosystem.

    May 2026 Dark Web Issue Trend Report - ASEC
  5. Jun 8, 20266mo ago

    T1erOne publishes new Onion address after FBI seizure of RAMP

    ASEC reported that T1erOne published a new Onion address to continue operations after the FBI seizure of RAMP. The report presented this as part of broader instability and consolidation across dark web forums.

    May 2026 Dark Web Issue Trend Report - ASEC
  6. Jun 8, 20266mo ago

    ASEC links BreachForums-TeamPCP rivalry to Shai-Hulud npm campaign

    ASEC reported a claimed competition between BreachForums and TeamPCP connected to the Shai-Hulud supply-chain attack campaign targeting the npm package ecosystem. This tied dark web forum activity to the broader malware campaign's propagation narrative.

    May 2026 Dark Web Issue Trend Report - ASEC
  7. Jun 8, 20266mo ago

    ASEC reports BreachForums-DragonForce partnership announcement

    ASEC's May 2026 Dark Web Issue Trend Report said BreachForums announced an official ransomware-as-a-service partnership with DragonForce to combine stolen data distribution with ransomware operations. The report also noted governance disruption on the forum following a moderator split involving HasanBroker.

    May 2026 Dark Web Issue Trend Report - ASEC
  8. Jun 8, 20266mo ago

    Socket identifies 19 trojanized PyPI packages in Shai-Hulud-linked campaign

    Socket discovered a supply-chain attack affecting 19 PyPI packages across 37 malicious releases, including science and bioinformatics tools, that delivered malware to steal developer secrets. The packages used Python startup hooks and an obfuscated JavaScript payload to download Bun and execute automatically when Python started.

    New Shai-Hulud attack trojanizes 19 science-focused PyPI packages
  9. May 12, 20267mo ago

    Shai-Hulud source code publicly released, complicating attribution

    Gurucul reported that on May 12, 2026, the full Shai-Hulud worm source code was released under an MIT license. The release made the malware effectively public attack infrastructure and introduced uncertainty into prior attribution to TeamPCP/UNC6780.

    Shai-Hulud Campaign Evolution: Miasma, Hades, and AI Scanner Evasion | Community Portal | Gurucul
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

1 linked

Organizations

1 linked
Pythagora

Observables

6 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.