Skip to main content
Mallory
← Back to News
build-pipeline-compromisepackage-repository-poisoningcredential-stealer-activitypersistence-method

Mini Shai-Hulud Compromised Signed npm and PyPI Packages via GitHub Actions OIDC Abuse

Supply Chain Risk · 35 sources · Updated 5mo ago · First seen May 12, 2026

Mini Shai-Hulud Compromised Signed npm and PyPI Packages via GitHub Actions OIDC Abuse

A large software supply-chain campaign dubbed Mini Shai-Hulud compromised more than 170 npm packages and at least two PyPI packages tied to projects including TanStack, Mistral AI, OpenSearch, UiPath, Guardrails AI, and others. Researchers and vendors attributed the activity to TeamPCP, saying the attackers abused GitHub Actions release workflows—especially pull_request_target, cache poisoning, and theft of short-lived OIDC material from runners—to publish trojanized packages with apparently legitimate SLSA provenance, Sigstore attestations, and trusted-publishing signatures. Reports variously counted between roughly 160 and 400+ malicious package versions, with some affected packages totaling hundreds of millions of downloads, and OpenSearch and Mistral both confirmed compromised releases while TanStack described a chained workflow attack on its publishing pipeline.

The malware targeted developer workstations and CI/CD systems, stealing npm, GitHub, cloud, Kubernetes, Vault, SSH, Docker, and AI-tool credentials, then attempting worm-like propagation by republishing infected packages with stolen tokens or workflow-issued publish credentials. Investigators said the payload also established persistence through VS Code tasks, Claude Code hooks, and in some cases system services, while exfiltrating data through Session, GitHub dead drops, and other attacker infrastructure; some variants included extortion notes, dead-man-switch logic, and geofenced destructive behavior. Defenders were urged to treat hosts that installed affected versions as potentially fully compromised, remove persistence before revoking tokens where applicable, rotate all exposed secrets from clean systems, invalidate CI caches, audit lockfiles and publishing activity, and rebuild impacted environments from trusted sources.

Why it matters

Impact assessment

Mini Shai-Hulud is a high-severity, multi-ecosystem software supply-chain campaign affecting npm and PyPI consumers, maintainers, and CI/CD environments tied to projects including TanStack, Mistral AI, OpenSearch, UiPath, Guardrails AI, Microsoft-associated repositories, and scientific/bioinformatics tooling. The primary impact is credential theft and downstream compromise of developer endpoints, build systems, cloud environments, and package publishing pipelines; multiple sources state hosts that installed affected versions should be treated as fully compromised.

Business and operational impact

  • Affected populations include software vendors, enterprise development teams, DevOps/SRE teams, AI/ML developers, scientific computing users, and organizations consuming open-source dependencies through automated builds.
  • Impact includes theft of GitHub, npm, PyPI, RubyGems, JFrog, AWS, Azure, GCP, Kubernetes, Vault, SSH, Docker, and AI-tool credentials.
  • Operational disruption can include forced credential rotation, CI/CD shutdowns, cache invalidation, repository permission freezes, package rollback, and rebuilds from trusted sources.
  • Reputational and financial impact is significant for maintainers and vendors whose signed or trusted-published packages were weaponized.
  • Several reports describe persistence, lateral propagation, extortion notes, and destructive logic, increasing incident response cost and recovery time.

Scope and exposure

  • Scope is widespread across open-source ecosystems rather than a narrowly targeted intrusion.
  • Reported scale varies by source: 170+ compromised packages initially, later expanding to 471 malicious artifacts across npm and PyPI.
  • Socket tracked 411 npm artifacts across 106 packages and 60 PyPI artifacts across 37 packages.
  • Some affected packages had hundreds of millions of cumulative downloads or millions of weekly downloads.
  • Known real-world impact includes confirmed compromised releases from OpenSearch and Mistral AI, Microsoft-associated package incidents, and OpenAI reporting limited internal impact tied to the broader campaign.

Exploitation status

  • Exploitation in the wild is confirmed.
  • Multiple vendors and project maintainers documented active malicious package publication, credential theft, self-propagation, and post-compromise persistence.
  • The campaign abused legitimate trusted publishing and provenance, so standard signature and attestation checks did not reliably distinguish malicious releases from benign ones.
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.

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

    CrowdStrike-scoped npm packages are reported compromised

    A report said a software supply-chain attack had compromised at least nine npm packages under the CrowdStrike scope as part of a broader wave linked to the earlier Tinycolor npm compromise. The post said the known affected package count had grown from about 40 to roughly 180 packages and described credential theft with exfiltration via webhook.site.

    🚨 CrowdStrike has had its NPM packages compromised | Mackenzie Jackson
  2. Jun 8, 20266mo ago

    Pythagora-io/gpt-pilot GitHub repo is compromised

    On 2026-06-08, attackers using a compromised maintainer account force-pushed a Shai-Hulud-related credential-stealing payload to the main branch of Pythagora-io/gpt-pilot. StepSecurity reported the malicious changes failed to propagate through CI because ruff formatting and linting checks caught violations, but the incident exposed the lack of branch protection and the attacker’s attempt to deploy a loader and obfuscated JavaScript stealer.

    Pythagora-io/gpt-pilot Compromised on GitHub - Shai-Hulud Credential Stealer Blocked by Python Linter - StepSecurity
  3. Jun 8, 20266mo ago

    GitHub blocks 73 malicious Microsoft-associated packages

    Researchers reported that dozens of Microsoft-associated open source packages were compromised late the previous week and modified to include the Miasma credential stealer, which activated in AI coding agents. The reference says GitHub flagged 73 packages as malicious and blocked them, while Microsoft temporarily removed some repositories during its investigation.

    For the 2nd time in weeks, Microsoft packages laced with credential stealer - Ars Technica
  4. Jun 8, 20266mo ago

    Socket expands Mini Shai-Hulud/Hades campaign with 23 more artifacts

    Socket Threat Research reported 23 newly identified malicious artifacts tied to the broader Mini Shai-Hulud, Miasma, and Hades supply-chain campaign, bringing its tracker to 471 affected artifacts across npm and PyPI. The report also disclosed additional delivery mechanisms, including trojanized .abi3.so extensions, a langchain-core-mcp variant that executes a separate _index.js payload with Bun, and an anti-analysis fake prompt-injection comment embedded in the stealer.

    Mini Shai-Hulud, Miasma, and Hades Worms Target Bioinformati...
  5. Jun 8, 20266mo ago

    Socket reports Hades PyPI wave tied to Mini Shai-Hulud evolution

    Socket researchers reported a new 'Hades' campaign on PyPI involving 37 malicious wheels across 19 packages. The wave used Python .pth startup files and Bun to launch an obfuscated JavaScript credential stealer, and some affected releases were quarantined by PyPI while others were reported to the security team.

    'Hades' Campaign Against PyPI Puts New Spin on Shai-Hulud
  6. May 15, 20267mo ago

    SLSA analysis details Mini Shai-Hulud attack chain and provenance limits

    A SLSA blog post published on May 15, 2026 described how attackers chained a GitHub Actions pull_request_target misconfiguration, pnpm cache poisoning, and OIDC token extraction from runner memory to publish malicious packages through legitimate CI/CD pipelines. The analysis said the malicious packages still carried valid npm/Sigstore provenance attestations, showing that provenance alone did not protect against compromise without stronger SLSA Build Level 3 isolation guarantees.

    SLSA • Mini Shai-Hulud: Where SLSA's Boundaries Fall
  7. May 14, 20267mo ago

    Hunt.io details TeamPCP second-stage toolkit and fallback C2 methods

    Hunt.io published analysis of the second-stage Python toolkit used in the campaign, describing a hardcoded primary C2, a GitHub commit-message dead-drop fallback, and exfiltration through repositories created under victims' own GitHub accounts. The report also documented anti-analysis checks, systemd persistence, modular credential theft, and a geofenced wiper component.

    How TeamPCP's Python Toolkit Survives a C2 Takedown: FIRESCALE, GitHub, and the Victim's Own Account
  8. May 14, 20267mo ago

    OpenAI tells macOS users to update apps by June 12

    As part of its response, OpenAI said macOS users must update their OpenAI applications by June 12 to continue receiving updates and support. The notice accompanied the company's disclosure of limited impact from the TanStack-linked supply-chain incident.

    OpenAI asks macOS users to update after TanStack npm supply chain attack | The Record from Recorded Future News
  9. May 14, 20267mo ago

    OpenAI discloses limited internal impact from TanStack-linked attack

    OpenAI disclosed that the broader supply-chain campaign affected two employee devices, corrupted software signing keys, and led to limited unauthorized access and credential-focused exfiltration from a small subset of internal source code repositories. The company said no customer data was stolen and no published software was modified.

    OpenAI asks macOS users to update after TanStack npm supply chain attack | The Record from Recorded Future News
  10. May 13, 20267mo ago

    OpenSearch blocks repository write permissions pending credential rotation

    Following the compromise, OpenSearch said it blocked write permissions on project repositories until credentials could be rotated. The advisory estimated rotation would be completed by May 13, 2026.

    oss-sec: Fwd: [siren] [Security Advisory] Severity: CRITICAL - Malicious Compromise of OpenSearch Pre-Release npm Packages
  11. May 12, 20267mo ago

    Mini Shai-Hulud campaign begins with SAP-related package activity

    Reporting states the broader Mini Shai-Hulud supply-chain activity began with SAP-related packages in April before later expanding into other ecosystems.

    Mini Shai-Hulud npm Attack: All Affected Packages | The CyberSec Guru
  12. May 12, 20267mo ago

    Public audit script for TanStack and Mistral compromise is dated

    A public Bash audit script dated 2026-05-12 was created to scan systems for indicators tied to the Mini Shai-Hulud/TanStack/Mistral compromise cluster. It checks for malicious files, persistence mechanisms, network indicators, and dependency exposure across npm and PyPI artifacts.

    Mini Shai-Hulud / TanStack + Mistral AI supply-chain audit script · GitHub
  13. May 12, 20267mo ago

    Mistral publishes advisory saying embedded dropper was broken

    Mistral published a security advisory stating that investigation pointed to an affected developer device and that there was no indication its infrastructure was compromised. It also assessed that the embedded dropper in the malicious npm packages failed to execute because setup.mjs referenced a non-existent tanstack_runner.js file.

    Broken dropper in @mistralai/mistralai, @mistralai/mistralai-azure, @mistralai/mistralai-gcp · Advisory · mistralai/client-ts · GitHub
  14. May 12, 20267mo ago

    SafeDep reports mass malware attack affecting npm and PyPI

    SafeDep reported the incident on May 12, 2026, characterizing it as a coordinated malware-related supply-chain attack affecting more than 400 npm package versions and at least two PyPI packages. The report identified impacted ecosystems including TanStack, Mistral AI, UiPath, OpenSearch, and guardrails-ai.

    Mini Shai-Hulud Strikes Again: 317 npm Packages Compromised - Real-time Open Source Software Supply Chain Security
  15. May 12, 20267mo ago

    OpenSearch warns systems updated during UTC window may be compromised

    An OpenSearch advisory said all four malicious @opensearch-project/opensearch versions were published on 2026-05-12 UTC and that any computer installing or updating to them between 00:00 UTC and 10:00 UTC should be treated as fully compromised. The project recommended immediate containment and secret rotation.

    Malware in @opensearch-project/opensearch · Advisory · opensearch-project/opensearch-js · GitHub
  16. May 11, 20267mo ago

    Compromised Mistral npm versions are available briefly on npm

    Mistral later disclosed that three npm packages—@mistralai/mistralai, @mistralai/mistralai-azure, and @mistralai/mistralai-gcp—were compromised and available on npm between May 11 at 22:45 UTC and May 12 at 01:53 UTC. The company said the malicious releases were subsequently removed.

    Broken dropper in @mistralai/mistralai, @mistralai/mistralai-azure, @mistralai/mistralai-gcp · Advisory · mistralai/client-ts · GitHub
  17. May 11, 20267mo ago

    Malicious OpenSearch packages are removed from npm

    OpenSearch said the malicious prerelease packages were removed from npm by 11:00 p.m. EDT on May 11, 2026. The project warned that systems installing or executing them during the exposure window should be treated as potentially fully compromised.

    oss-sec: Fwd: [siren] [Security Advisory] Severity: CRITICAL - Malicious Compromise of OpenSearch Pre-Release npm Packages
  18. May 11, 20267mo ago

    OpenSearch npm publishing infrastructure compromise disclosed

    OpenSearch disclosed a critical compromise of its npm publishing infrastructure as part of the broader campaign. Attackers used compromised credentials tied to the JavaScript client repository to publish malicious prerelease versions 3.5.3, 3.6.2, 3.7.0, and 3.8.0.

    oss-sec: Fwd: [siren] [Security Advisory] Severity: CRITICAL - Malicious Compromise of OpenSearch Pre-Release npm Packages
  19. May 11, 20267mo ago

    Mistral package compromise is publicly flagged

    A GitHub issue reported that the @mistralai/mistralai npm package appeared to be compromised and linked it to the latest Shai Hulud worm activity. The post specifically pointed to version 2.2.4 and external reporting on the campaign.

    @mistralai/mistralai npm package is compromised · Issue #217 · mistralai/client-ts
  20. May 11, 20267mo ago

    Attackers start coordinated package compromise wave

    On May 11, 2026, TeamPCP began a coordinated software supply-chain attack across npm and PyPI, initially hitting packages in the @tanstack namespace before expanding to other publishers. Multiple reports describe the wave as using trusted publishing workflows and GitHub Actions weaknesses to release trojanized packages.

    Mini Shai Hulud: Cross-ecosystem supply chain worm targeting npm & PyPI | Expel
  21. May 10, 20267mo ago

    Checkmarx discloses trojanized Jenkins AST plugin in Marketplace

    Checkmarx confirmed that tampered Jenkins AST plugin version 2026.5.09 was published to the Jenkins Marketplace between 2026-05-09 and 2026-05-10. The company said the compromise affected several hundred Jenkins controllers and marked its third compromise in three months.

    TeamPCP Supply Chain Campaign: Activity Through 2026-05-17
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

Affected products

1 linked
React-Router

Organizations

5 linked
TanstackUipathMistral AICheckmarxGuardrails AI

Observables

84 linked

Indicator values are masked on this page. View all 84 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.