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.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
5 events from the most recent confirmed update back to the earliest known activity.
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.
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.
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.
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 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.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
4 references tracked. Mallory keeps watching after this page renders.
Mini Shai-Hulud: Multi-Ecosystem Developer Supply Chain Attack - Lab Space
labs.cloudsecurityalliance.org
Open sourceMini Shai-Hulud Borrowed Its Best Trick From PolinRider | OpenSource Malware Blog
opensourcemalware.com
Open sourceShai-Hulud SAP Attack: Stolen Credentials in 1,200 Repos
ox.security
Open source'Mini Shai-Hulud’ supply chain attack targets SAP npm packages | SOPHOS
sophos.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


