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

Mini Shai-Hulud Supply-Chain Attack Compromised npm, PyPI, and Composer Packages

Supply Chain Risk · 4 sources · Updated 5mo ago · First seen May 1, 2026

Mini Shai-Hulud Supply-Chain Attack Compromised npm, PyPI, and Composer Packages

Researchers reported that the Mini Shai-Hulud campaign compromised widely used developer packages across npm, PyPI, and Packagist/Composer, including SAP CAP components, intercom-client, intercom/intercom-php, and PyTorch Lightning’s lightning package. The malicious releases delivered an obfuscated credential stealer executed with the Bun runtime, harvesting secrets from developer workstations and CI/CD environments, including GitHub, npm, cloud, Kubernetes, and AI tooling credentials. Stolen data was encrypted and exfiltrated through attacker-created public GitHub repositories, and the campaign was linked by multiple researchers to TeamPCP. Reports estimated exposure ranging from more than 1,000 to roughly 1,800 repositories, with no CVE, GHSA, or OSV identifiers assigned at disclosure.

Investigators said the attackers abused software publishing workflows rather than relying solely on direct maintainer compromise, including a stolen npm token tied to SAP’s cloudmtabot account, an exposed token in CircleCI pull-request builds, and overly broad GitHub and npm OIDC trusted publishing policies. The malware propagated by using stolen npm tokens to publish infected patch versions of additional packages and established persistence through developer tooling by planting .vscode/tasks.json entries with "runOn": "folderOpen" and .claude/settings.json SessionStart hooks, a technique compared to the earlier PolinRider/TasksJacker tradecraft. Maintainers released cleaned package versions, while defenders were urged to rotate credentials, review GitHub, npm, and cloud activity, harden OIDC publishing rules, pin dependencies, and hunt repositories for unauthorized folderOpen tasks and Claude hooks.

Why it matters

Impact assessment

Mini Shai-Hulud is a high-severity multi-ecosystem software supply-chain incident affecting developer workstations, CI/CD pipelines, and organizations consuming packages from npm, PyPI, and Packagist/Composer. Impact includes credential theft, unauthorized package publication, repository tampering, cloud-account exposure, and persistent reinfection through developer tooling, with confirmed malicious releases in widely used packages totaling more than 930,000 weekly downloads.

Affected scope

  • Affected ecosystems: npm, PyPI, Packagist/Composer
  • Affected user populations: software developers, DevOps teams, CI/CD operators, maintainers, and downstream package consumers
  • Affected industries: broad cross-sector exposure; especially enterprises using SAP CAP, Intercom SDKs, and PyTorch Lightning
  • Estimated exposure: more than 1,000 to roughly 1,800 repositories with stolen credentials
  • Download exposure: compromised packages exceeded 930,000 combined weekly downloads

Severity and business impact

  • Credential theft targeted GitHub, npm, cloud, Kubernetes, SSH, and AI tooling secrets
  • Operational disruption risk is high because the malware could publish additional malicious package versions and modify repositories automatically
  • Financial and reputational impact is significant for maintainers and enterprises due to account takeover, package trust erosion, and possible downstream compromise
  • Persistence via .vscode/tasks.json and .claude/settings.json means compromise can survive package cleanup and reinfect developer environments

Exploitation status

  • Exploitation in the wild is confirmed
  • Campaign window: April 29-30, 2026
  • Multiple researchers linked the activity to TeamPCP
  • Maintainers released cleaned versions, but exposed credentials and modified repositories remain a post-remediation risk
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.

5 events · Apr 29, 2026 – May 1, 2026
  1. May 1, 20267mo ago

    Researchers attribute Mini Shai-Hulud to TeamPCP

    Researchers linked the Mini Shai-Hulud campaign to TeamPCP. Reporting described the operation as abusing CI/CD publishing misconfigurations and stolen tokens to spread malicious package updates across developer ecosystems.

    Mini Shai-Hulud: Multi-Ecosystem Developer Supply Chain Attack - Lab Space
  2. May 1, 20267mo ago

    Campaign expands across npm, PyPI, and Packagist ecosystems

    Over April 29–30, 2026, Mini Shai-Hulud unfolded as a multi-ecosystem software supply-chain attack affecting npm, PyPI, and Packagist/Composer packages. Researchers said the campaign exposed roughly 1,800 repositories through stolen credentials and self-propagation.

    Mini Shai-Hulud: Multi-Ecosystem Developer Supply Chain Attack - Lab Space
  3. Apr 30, 20267mo ago

    Technical analysis ties execution method to PolinRider/TasksJacker

    A later analysis reported that Mini Shai-Hulud reused the VS Code tasks.json "runOn": "folderOpen" execution technique previously associated with the PolinRider/TasksJacker campaign. The report also highlighted added persistence through Claude Code SessionStart hooks and published IOCs and hunting guidance.

    Mini Shai-Hulud Borrowed Its Best Trick From PolinRider | OpenSource Malware Blog
  4. Apr 29, 20267mo ago

    Maintainers release updated versions of compromised SAP packages

    After the SAP CAP package compromise was disclosed, maintainers of the known-compromised packages released updated versions. Defenders were advised to investigate installations of affected versions and rotate potentially exposed secrets.

    'Mini Shai-Hulud’ supply chain attack targets SAP npm packages | SOPHOS
  5. Apr 29, 20267mo ago

    Mini Shai-Hulud campaign compromises SAP CAP npm packages

    On 2026-04-29, researchers disclosed a supply-chain attack dubbed Mini Shai-Hulud involving compromised npm packages in SAP's Cloud Application Programming Model ecosystem. The malicious packages included credential- and sensitive-data-stealing functionality and exfiltrated stolen data via public GitHub repositories.

    'Mini Shai-Hulud’ supply chain attack targets SAP npm packages | SOPHOS
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 →

Threat actors

1 linked

Malware

1 linked

Affected products

2 linked
Intercom-ClientIntercom-Php

Organizations

3 linked
Lightning AISAP SEIntercom

Breaches

6 linked
SAP-2026-04INTERCOM-2026-04PYTORCHLIGHTNING-2026-04SAPCAPECOSYSTEM-2026-04CAP-JSCDS-DBS-2026-04CLOUDMTABOTSAPSERVICEACCOUNT-2026-04

Observables

3 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.