Back to Feed
Supply ChainJun 9, 2026

Over 100 NPM, PyPI Packages Hit in New Shai-Hulud Supply Chain Attacks

Shai-Hulud worm infects over 100 NPM and PyPI packages with Miasma and Hades variants.

Summary

New variants of the Shai-Hulud supply chain attack, named Miasma and Hades, have compromised over 100 packages in the NPM and PyPI ecosystems. These self-propagating worms target open-source software, stealing credentials and API keys to spread further. The attack has seen a surge since the source code was released in May, with notable incidents affecting Red Hat's ecosystem and numerous bioinformatics and machine learning packages.

Full text

New iterations of the Shai-Hulud supply chain attack have hit over 100 packages across the NPM and PyPI ecosystems, security researchers warn. Since September 2025, the self-replicating worm has been used in multiple campaigns targeting the open source software (OSS) community, with a surge in attacks observed over the past several months, following the Trivy vulnerability scanner incident. In mid-May, TeamPCP, the hacking group behind Shai-Hulud, released the worm’s source code, and the first clones emerged shortly after. Starting June 1, new variants of Shai-Hulud were used as part of broad, coordinated attacks. The first was the Red Hat incident, in which 32 packages part of Red Hat’s Hybrid Cloud Console JavaScript ecosystem were infected. The Miasma variant The payload used in the Red Hat attack contained the string “Miasma: The Spreading Blight”, which appeared in several other incidents last week. Ox Security identified nearly a dozen malicious NPM packages that contained a weaponized binding.gyp file, designed to bypass the postinstall execution logic but to behave similarly.Advertisement. Scroll to continue reading. A direct descendant of Mini Shai-Hulud, Miasma is a multi-stage dropper executed during NPM installation, Harness explains. The payload scans the local system and connected cloud services for credentials, API keys, tokens, and other secrets, and uses them to spread itself by infecting the packages the victim has access to. By June 5, at least 57 NPM packages and over 300 malicious package versions associated with the Miasma supply chain attack had been identified, Snyk, Sonatype, and StepSecurity warned. The attack hit the Vapi server SDK, as well as the ai-sdk-ollama, autotel, awaitly, executable-stories, node-env-resolver, and wrangler-deploy ecosystems. The Hades variant Shortly after Miasma hit NPM, security researchers identified roughly two dozen PyPI packages spreading a new variant of Shai-Hulud, characterized by the string “Hades – The End for the Damned”. The malware was seen in an initial wave of 19 packages containing a *-setup.pth file designed to execute at Python startup, fetch the Bun JavaScript runtime, and execute JavaScript code, Socket reports. Analysis of the worm revealed it was the PyPI branch of Miasma. It contained the same credential-harvesting and self-spreading behavior, as well as the previously observed Shai-Hulud data exfiltration mechanism that involved publishing the collected information to new GitHub repositories. On June 8, a second Hades wave hit the PyPI ecosystem, targeting more packages. Phantom releases were pushed to PyPI without corresponding iterations on GitHub, EndorLabs explains. At least 29 packages were affected, StepSecurity says. The attack hit bioinformatics, graph machine learning, and MCP-themed packages, and Socket identified a mutation in the execution chain, where the payload is no longer bundled in the loader. Instead, the code searches across sys.path to create a loader and payload split to evade detection. Across the affected NPM and PyPI packages, a total of 471 malicious artifacts were identified, including dozens of malicious PyPI wheel artifacts associated with the Hades Mini Shai-Hulud worm. Related: In Other News: Trump Mobile Data Breach, FIFA World Cup Phishing, CISA Responds to Supply Chain Attacks Related: IBM and Red Hat Commit $5 Billion to Secure Open Source Supply Chains Under “Project Lightwell” Related: Over 5,500 GitHub Repositories Infected in ‘Megalodon’ Supply Chain Attack Related: GitHub Confirms Hack Impacting 3,800 Internal Repositories Written By Ionut Arghire Ionut Arghire is an international correspondent for SecurityWeek. Daily Briefing Newsletter Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights. More from Ionut Arghire 174,000 Impacted by Lansing Community College Data BreachSilent Ransom Group Uses DNS Fast Flux in AttacksSolarWinds Serv-U Vulnerability Exploited in the WildEmphere Raises $2.1 Million for AI-Powered Vulnerability RemediationOpal Security Raises $23 Million for AI-Native Identity GovernanceHackers Leak DentaQuest Information Impacting 2.6 MillionChrome 149 Patches 429 VulnerabilitiesFive Eyes: Chinese Spies Target Government, Military Staff With Fake Job Opportunities Latest News Will AI Kill the Bug Bounty Industry?Check Point VPN Zero-Day Exploited in Qilin Ransomware AttacksGoogle Patches 5th Chrome Zero-Day Exploited in 2026A Security Raises $37 Million for Autonomous Offensive Security PlatformEverybody Is Vibe Coding But Nobody Told the Security TeamWhatsApp Catches Spyware Firm NSO Defying No-Hacking Court OrderCybersecurity M&A Roundup: 26 Deals Announced in May 2026Everest Forms Vulnerability Exploited to Hack WordPress Sites Trending Daily Briefing NewsletterSubscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts. Webinar: Third-Party Risk in Practice June 4, 2026 Organizations are investing heavily in third-party risk management, but breaches, delays, and blind spots continue to persist. Join this live webinar as we examine the gap between how organizations think their third-party risk programs are performing and what’s actually happening in practice. Register Virtual Roundtable: CISO Forum 2026 Mid-Year Review June 10, 2026 Explore how attackers are using AI to scale threats and how security teams can respond with AI-driven defenses. Protecting against unmonitored use of generative AI (Shadow AI) in business units and building and enforcing AI governance frameworks. Register People on the MoveOpal Security has appointed CPO, CTO, VP of Field Engineering, VP of Marketing, and Head of Product and Solutions Marketing.The Department of the Air Force has appointed Ashley Devoto as Chief Information Officer.Bartley Richardson has been named Chief AI and Autonomous Systems Officer at CrowdStrike.More People On The MoveExpert Insights Everybody Is Vibe Coding But Nobody Told the Security Team AI-driven development is not something organizations can or should block. But it must be governed. (Danelle Au) The Zero-Knowledge Threat Actor and the End of Responsible Disclosure AI can help attackers generate malware, create malicious payloads, bypass simple security checks, and convert vague malicious intent into functional code. (Etay Maor) Raising the Cybersecurity Stakes: Ante up for the Agentic Era CISOs are now facing machine-speed attacks and asking, “How do I agent?” The industry must provide remediation at scale. (Nadir Izrael) Caught Off Guard: Securing AI After It Hits Production As enterprises rush AI projects into production, security teams are increasingly being forced into reactive mode. (Joshua Goldfarb) Cyber Resilience is the New Business Continuity Plan The organizations best prepared to face disruption are those that align security, continuity and risk management around what the business cannot afford to lose. (Steve Durbin) Flipboard Reddit Whatsapp Whatsapp Email

Indicators of Compromise

  • malware — Miasma
  • malware — Hades

Entities

TeamPCP (threat_actor)Shai-Hulud (campaign)NPM (product)PyPI (product)Hybrid Cloud Console (product)Red Hat (vendor)