mini Shai-Hulud
- Type
- Worm
- Capabilities
- Credential theftExfiltrationPersistenceReconnaissance
- Delivery
- Landing page
- Platforms
- Windows
Mini Shai-Hulud is a self-propagating software supply-chain worm that compromises developer workstations, package-publishing environments, and CI/CD pipelines. Associated with TeamPCP, it distributes credential-stealing code through compromised legitimate npm and PyPI packages and uses stolen publishing credentials to infect additional packages.
The worm targets GitHub and npm tokens, personal access tokens, GitHub Actions secrets, cloud credentials, and other development and CI/CD secrets. It inspects local Git configurations, clones accessible repositories, injects malicious package lifecycle hooks, and publishes backdoored releases using cached developer credentials. Malicious GitHub Actions workflows provide another mechanism for harvesting pipeline secrets. It also installs persistent execution hooks in Claude Code and VS Code, allowing malicious execution to survive reboots.
Mini Shai-Hulud was involved in the April 29, 2026 compromise of SAP Cloud Application Programming Model and MTA Build Tool npm packages. A broader May wave affected projects across npm and PyPI, including TanStack and Microsoft's Durable Task Python client. Its propagation exploits the permissions of compromised developer identities and trusted publishing workflows, extending exposure to downstream users who install affected releases.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The malware stole developer secrets, including GitHub and npm tokens and CI/CD credentials, and used them to spread further. Researchers assessed that TeamPCP [[URL_17571d0e_9]] was likely behind it.
Techniques & procedures
147 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
The payload calls api.github.com/search/commits?q=OhNoWhatsGoingOnWithGitHub to find commits left by other compromised hosts, decodes base64 GitHub tokens from the matching commit messages, and tries them.
TanStack's postmortem traced the breach to a chained exploit: a pull_request_target "Pwn Request" abuse, GitHub Actions cache poisoning, and runtime extraction of an OIDC token directly from the runner's process memory.
Resource Development
5 techniques
Resource Development
The information is then uploaded to a public GitHub repository with description "Alright Lets See If This Works."
The first step is to compromise either a developer with significant access to an open source project or a misconfigured pipeline, such as via poisoned pipeline execution.
The attack started with a compromise of the trusted account associated with Keyv, a commonly used key-value storage library. Once the attackers gained publishing access, they could release altered packages that looked like ordinary updates.
The technique didn't get reinvented; it got cloned, scaled, and bolted onto a different worm... the tasks.json folderOpen primitive — first used at scale by a DPRK-aligned actor — has now crossed into a financially-motivated / worm-driven campaign.
Some of the other packages include a set of AI and Model Context Protocol (MCP)-themed packages and typosquat-style packages such as rsquests, tlask, and rlask that impersonate requests and flask, and a langchain-core-mcp.
Initial Access
10 techniques
Initial Access
The stolen material is encrypted and committed to public repositories using the victim's GitHub token. The malware can use recovered publishing access to modify and republish packages.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has used compromised accounts for Docker Hub and GitHub to publish malicious software packages.(Citation: Trend Micro TeamPCP MAY 2026)
unleashed a self-replicating piece of malware
OX Security tracked roughly 1,800 GitHub repositories created with stolen credentials by the worm during the two day campaign...
The attacker compromised the GitHub account of the maintainer of the keyv ecosystem, injecting malicious code into the source repository. This caused the project’s own GitHub Actions-based release pipeline to build and publish poisoned versions of packages including keyv, cacheable, flat-cache, and file-entry-cache.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has published itself on compromised victim code repositories to propagate malicious versions of packages to other victims.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
Attackers target open-source packages and products, compromise supplier credentials or CI/CD systems, and push malicious package versions that are then installed by downstream users.
Through compromise of CI runners, TeamPCP effectively converted trusted software distribution channels into malware delivery channels by compromising automated systems that build, test, and publish software.
the malicious versions were then published by TanStack's own trusted release identity, which is why the provenance attestations are valid
the attacker (using the handle voicproducoes) submitted a seemingly routine and helpful Pull Request (#7378). In standard GitHub Actions workflows, PRs trigger a suite of tests. Within the context of this specific PR, malicious code executed...
Execution
23 techniques
Execution
after achieving persistence on macOS and Linux, it polls the GitHub API using the victim’s stolen GitHub token every 60 seconds
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has obtained persistence on Linux devices by writing the `gh-token-monitor` daemon within `~/.config/systemd/user/gh-token-monitor.service` that polls GitHub every 60 seconds.(Citation: Wiz Mini Shai-Hulud MAY 2026) [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also leveraged a daemon called “kitty-monitor.service” to maintain persistence within Linux hosts.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
It relies on an npm preinstall script ... it downloads the Bun execution environment and uses it to load a heavily obfuscated JavaScript second-stage file named Math_Symbol.js.
The C2 can respond with a code value that can specify a command to arm the dead-man switch
On Windows, the payload invokes PowerShell with -ExecutionPolicy Bypass.
Runtime monitoring then exposed the execution sequence: npm to Node.js and shell activity...
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has utilized Python scripts to execute payloads.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has leveraged JavaScript runtime to execute malicious scripts.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has utilized the Docker command-line tool to gather details of the victim environment and collect credentials.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
MITRE ATT&CK Mapping Technique ID Implementation Software Deployment Tools T1072 npm publish / PyPI upload abused as lateral movement and propagation
TeamPCP modified tools including, but not limited to, Trivy, KICS, LiteLLM, and the Telnyx Python SDK. These tools are commonly integrated into enterprise development continuous integration (CI)/continuous delivery (CD) pipelines, cloud infrastructure, and security workflows.
Persistence is attempted via Claude Code hooks and VS Code tasks.json .
GitHub’s investigation revealed that the attackers accessed the internal repos after a GitHub employee installed a poisoned Visual Studio (VS) Code extension.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has executed via the use of `subprocess.run` and fed input through standard input `stdin` which acted as a pipe to send data from the parent process and the child process `sys.executable` within memory.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
The attacker did not steal npm credentials. They abused CI: a pull_request_target workflow ran fork-controlled code on a privileged GitHub Actions runner...
"In the SAP wave, the compromised packages added a preinstall hook that ran setup.mjs ... This wave uses a slightly different route... That Git dependency contains a prepare script: 'scripts' : { 'prepare' : 'bun run tanstack_runner.js && exit 1' }"
When it found an active npm publishing token, it downloaded the latest version of every package the account could access, injected a malicious preinstall lifecycle hook... Because npm runs preinstall hooks automatically before installation finishes, the malware could start running on developer workstations and CI runners before application tests or security checks began.
The packages contained newly added installation-time execution mechanisms, including preinstall scripts that automatically invoked a malicious index.js file during package installation.
The malicious releases contain a Mini Shai-Hulud variant... The malware typically executes automatically through an npm preinstall lifecycle hook before package installation completes.
A new optionalDependencies field was added to package.json: "optionalDependencies": { "@tanstack/setup": "github:tanstack/router#79ac49..." }
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has utilized container administration commands to gather details of compromised hosts and gather credentials to include Kubernetes command-line utilities `kubectl get secrets`.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
After enumerating SSM-managed instances, it uses SendCommand with the AWS-RunShellScript document to execute the rope.pyz payload on up to 5 other EC2 instances per profile.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has utilized Github Actions to propagate through the use of triggered workflows.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
Persistence
25 techniques
Persistence
Another new aspect of the campaign is the focus on abuse via .pth startup files, which is a distinct execution mechanism compared to the npm lifecycle script abuse seen previously.
after achieving persistence on macOS and Linux, it polls the GitHub API using the victim’s stolen GitHub token every 60 seconds
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has obtained persistence on Linux devices by writing the `gh-token-monitor` daemon within `~/.config/systemd/user/gh-token-monitor.service` that polls GitHub every 60 seconds.(Citation: Wiz Mini Shai-Hulud MAY 2026) [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also leveraged a daemon called “kitty-monitor.service” to maintain persistence within Linux hosts.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
It relies on an npm preinstall script ... it downloads the Bun execution environment and uses it to load a heavily obfuscated JavaScript second-stage file named Math_Symbol.js.
The stolen material is encrypted and committed to public repositories using the victim's GitHub token. The malware can use recovered publishing access to modify and republish packages.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has used compromised accounts for Docker Hub and GitHub to publish malicious software packages.(Citation: Trend Micro TeamPCP MAY 2026)
The worm first searches for an npm token with bypass_2fa set to true, meaning it can publish without requiring a second factor... It then queries the npm registry for every package published by the same maintainer.
This includes cloud login keys for Google Cloud, Microsoft Azure, and Amazon Web Services, as well as SSH keys
OX Security tracked roughly 1,800 GitHub repositories created with stolen credentials by the worm during the two day campaign...
GitHub tokens can then be used to create repositories, upload encrypted data, modify workflows, poison source repositories, or prepare additional propagation paths. GitHub repository activity from services-admin-pearhealthlabs shows hundreds of public repositories with randomized names...
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has examined commit messages for a keyword followed by base64 encoded segments to validate communications and to execute subsequent actions to include exfiltration.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
The payload writes two malicious GitHub Actions workflows disguised as .github/workflows/codeql_analysis.yml . Both use toJSON(secrets) to serialize ALL repository secrets into a JSON object.
During preflight, the payload checks the environment, exits on Russian-language systems, avoids duplicate instances, and starts a detached copy in the background on developer systems.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has established persistence on macOS hosts by installing a gh-token-monitor daemon through LaunchAgent that polls GitHub every 60 seconds.(Citation: Wiz Mini Shai-Hulud MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has created .service files using Systemd on victim Linux hosts to establish persistence.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
Containment: Disable any unauthorized system services (e.g., gh-token-monitor.service ) before rotating credentials.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has modified settings and configuration files of AI coding agents and other coding applications in order to create event triggered executions through creating hooks and runOn conditions.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
It injected a passwordless sudo rule through a bind mount and modified DNS settings by editing the hosts file.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has utilized Python startup hooks to include the .pth import mechanism for execution.(Citation: Trend Micro TeamPCP MAY 2026)
When the implant is not running inside CI, it writes persistence into the current project directory so it re-executes on subsequent developer actions: .claude/router_runtime.js ... .vscode/tasks.json — task with "runOn": "folderOpen" to fire when the workspace is reopened.
MITRE ATT&CK Mapping Technique ID Name Description T1547.001 Boot or Logon Autostart: Systemd Service pgsql-monitor.service persistence registered as ‘PostgreSQL Monitor’
MITRE ATT&CK Mapping Technique ID Implementation Boot or Logon Autostart: XDG/systemd T1547.013 systemd user service persistence (LiteLLM/TeamPCP wave)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has established persistence through modifying software binaries to include AI coding agents’ configuration or setting files that act as hooks, tasks or execution triggers.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
includes Sigstore Fulcio/Rekor logic, enabling forged downstream npm provenance.
According to SafeDep, the 28KB Python stealer also attempts to read HashiCorp Vault KV secrets, unlock and dump 1Password and Bitwarden password vaults, and access SSH keys, Docker credentials, VPN configurations, and shell history.
Privilege Escalation
24 techniques
Privilege Escalation
Another new aspect of the campaign is the focus on abuse via .pth startup files, which is a distinct execution mechanism compared to the npm lifecycle script abuse seen previously.
after achieving persistence on macOS and Linux, it polls the GitHub API using the victim’s stolen GitHub token every 60 seconds
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has obtained persistence on Linux devices by writing the `gh-token-monitor` daemon within `~/.config/systemd/user/gh-token-monitor.service` that polls GitHub every 60 seconds.(Citation: Wiz Mini Shai-Hulud MAY 2026) [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also leveraged a daemon called “kitty-monitor.service” to maintain persistence within Linux hosts.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
It relies on an npm preinstall script ... it downloads the Bun execution environment and uses it to load a heavily obfuscated JavaScript second-stage file named Math_Symbol.js.
short-lived OIDC tokens were extracted from the memory of the Runner.Worker process... This attack shares the same TTPs as the 5/19 @antv wave: kitty-monitor, firedalazer, and extraction of Actions secrets from Runner /proc/*/mem .
Cible spécifiquement les secrets CI/CD en lisant directement la mémoire des processus (/proc/<pid>/mem);
For AI tools that use markdown-based instruction files... the worm injects text designed to be interpreted by the LLM itself, not just executed by the shell.
a pull_request_target workflow ran fork-controlled code on a privileged GitHub Actions runner
The stolen material is encrypted and committed to public repositories using the victim's GitHub token. The malware can use recovered publishing access to modify and republish packages.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has used compromised accounts for Docker Hub and GitHub to publish malicious software packages.(Citation: Trend Micro TeamPCP MAY 2026)
The worm first searches for an npm token with bypass_2fa set to true, meaning it can publish without requiring a second factor... It then queries the npm registry for every package published by the same maintainer.
This includes cloud login keys for Google Cloud, Microsoft Azure, and Amazon Web Services, as well as SSH keys
During preflight, the payload checks the environment, exits on Russian-language systems, avoids duplicate instances, and starts a detached copy in the background on developer systems.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has established persistence on macOS hosts by installing a gh-token-monitor daemon through LaunchAgent that polls GitHub every 60 seconds.(Citation: Wiz Mini Shai-Hulud MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has created .service files using Systemd on victim Linux hosts to establish persistence.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
Containment: Disable any unauthorized system services (e.g., gh-token-monitor.service ) before rotating credentials.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has modified settings and configuration files of AI coding agents and other coding applications in order to create event triggered executions through creating hooks and runOn conditions.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
It injected a passwordless sudo rule through a bind mount and modified DNS settings by editing the hosts file.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has utilized Python startup hooks to include the .pth import mechanism for execution.(Citation: Trend Micro TeamPCP MAY 2026)
When the implant is not running inside CI, it writes persistence into the current project directory so it re-executes on subsequent developer actions: .claude/router_runtime.js ... .vscode/tasks.json — task with "runOn": "folderOpen" to fire when the workspace is reopened.
MITRE ATT&CK Mapping Technique ID Name Description T1547.001 Boot or Logon Autostart: Systemd Service pgsql-monitor.service persistence registered as ‘PostgreSQL Monitor’
MITRE ATT&CK Mapping Technique ID Implementation Boot or Logon Autostart: XDG/systemd T1547.013 systemd user service persistence (LiteLLM/TeamPCP wave)
MITRE ATT&CK Mapping Technique ID Implementation Abuse Elevation Control Mechanism T1548 sudo python3 runner secret dump (F-02)
The orchestrator feeds this Python script to sudo python3 via stdin...
Stealth
30 techniques
Stealth
ChainDrop "utilized the Mini Shai-Hulud variant, combined with an obfuscated Bun JavaScript payload."
MITRE ATT&CK Mapping Technique ID Implementation Steganography T1027.003 WAV-embedded PE delivery (Telnyx wave)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has used a hybrid AES-256-GCM and RSA OAEP-SHA256 encryption to archive gathered data. [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also utilized custom MD5-keystream XOR cipher to encrypt data.(Citation: Trend Micro TeamPCP MAY 2026) [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also been deployed via an obfuscated script using Bun JavaScript runtime.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
L'esecuzione si conclude con un errore fittizio (&& exit 1) che, essendo associato a dipendenze opzionali, non interrompe il processo di build principale agendo in modo silente.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has leveraged a user-agent string that mimics a standard git client to avoid detection within network logs.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
short-lived OIDC tokens were extracted from the memory of the Runner.Worker process... This attack shares the same TTPs as the 5/19 @antv wave: kitty-monitor, firedalazer, and extraction of Actions secrets from Runner /proc/*/mem .
Cible spécifiquement les secrets CI/CD en lisant directement la mémoire des processus (/proc/<pid>/mem);
For AI tools that use markdown-based instruction files... the worm injects text designed to be interpreted by the LLM itself, not just executed by the shell.
deletes its state and exits if the token stops working. It also self-clears after 24 hours
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has deleted all artifacts to include gathered credential archives to reduce disk persistence and detection.(Citation: Trend Micro TeamPCP MAY 2026)
To bury the entry within Git’s history, the attacker manually backdated the commit timestamp to March 9, 2020. Because many Git interfaces display history based on the commit’s authored date rather than the actual push date, this backdoor commit was hidden years deep in the historical logs.
The stolen material is encrypted and committed to public repositories using the victim's GitHub token. The malware can use recovered publishing access to modify and republish packages.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has used compromised accounts for Docker Hub and GitHub to publish malicious software packages.(Citation: Trend Micro TeamPCP MAY 2026)
TeamPCP modified tools including, but not limited to, Trivy, KICS, LiteLLM, and the Telnyx Python SDK. These tools are commonly integrated into enterprise development continuous integration (CI)/continuous delivery (CD) pipelines, cloud infrastructure, and security workflows.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has the ability to decrypt obfuscated payloads.(Citation: Trend Micro TeamPCP MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has examined commit messages for a keyword followed by base64 encoded segments to validate communications and to execute subsequent actions to include exfiltration.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has utilized execution guardrails in order to prevent operating in restricted geolocations to include Russia by checking the devices language and terminating when a forbidden value is detected.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026) [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also utilized designated instructions that execute when victim hosts match geolocations to include wiping victim devices when the device is determined to be located within Iran or Israel.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has evaded sandbox detection by applying a 1-in-6 probability gate that generates a random number which will only trigger the wiper functionality when the set number outcome is met even in environments that match parameters of a geopolitical target.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has evaded execution in virtual environments and sandboxes through checking system information to include the number of CPUs and exiting at times when there were less than four and other times when there were less than two CPUs.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
The worm is explicitly telling the AI assistant to suppress disclosure of the injected command.
When client certificates are needed for API server authentication, the module loads them directly into memory using a Linux kernel mechanism that creates file-like objects backed entirely by RAM, with no corresponding entry on the filesystem... Pattern /proc/self/fd/* In-memory cert loading
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has suppressed output so that nothing is printed to terminal and has utilized silent exiting when environmental variables match restricted values.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
The attacker did not steal npm credentials. They abused CI: a pull_request_target workflow ran fork-controlled code on a privileged GitHub Actions runner...
"In the SAP wave, the compromised packages added a preinstall hook that ran setup.mjs ... This wave uses a slightly different route... That Git dependency contains a prepare script: 'scripts' : { 'prepare' : 'bun run tanstack_runner.js && exit 1' }"
When it found an active npm publishing token, it downloaded the latest version of every package the account could access, injected a malicious preinstall lifecycle hook... Because npm runs preinstall hooks automatically before installation finishes, the malware could start running on developer workstations and CI runners before application tests or security checks began.
The packages contained newly added installation-time execution mechanisms, including preinstall scripts that automatically invoked a malicious index.js file during package installation.
The malicious releases contain a Mini Shai-Hulud variant... The malware typically executes automatically through an npm preinstall lifecycle hook before package installation completes.
A new optionalDependencies field was added to package.json: "optionalDependencies": { "@tanstack/setup": "github:tanstack/router#79ac49..." }
The comment contains fake instructions to an LLM... designed to trigger LLM safety refusals and disrupt AI-assisted malware triage before the scanner reaches the obfuscated Hades payload
MITRE ATT&CK Mapping Technique ID Implementation Impersonation T1656 Dependabot + CodeQL + GitHub Security bot commit identity spoofing
Defense Impairment
5 techniques
Defense Impairment
A malicious cache of approximately 1.1GB was written into the same pnpm store cache key used by release.yml (the cache scope was shared between pull_request_target and main branch pushes; permissions: contents: read could not prevent cache post-job writes).
includes Sigstore Fulcio/Rekor logic, enabling forged downstream npm provenance.
According to SafeDep, the 28KB Python stealer also attempts to read HashiCorp Vault KV secrets, unlock and dump 1Password and Bitwarden password vaults, and access SSH keys, Docker credentials, VPN configurations, and shell history.
and injects two malicious GitHub Actions workflows to serialize repository secrets into a JSON object and upload the data to an external server ("api.masscan[.]cloud").
When an AI-based package scanner... reads this file, its safety filters trigger a refusal to engage with the content, effectively making the malicious payload invisible to AI-based detection.
Credential Access
17 techniques
Credential Access
The payload queries the GitHub Actions runtime API using ACTIONS_RUNTIME_TOKEN to enumerate variables flagged isSecret: true, then reads those values directly from /proc/{pid}/mem of the Runner.Worker process.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has scraped runner process memory to extract short-lived identity tokens, which it then exchanged for per-package npm trusted-publisher tokens.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
Initial access via a compromised token from previous attacks or a vulnerable GitHub Action
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has stolen application access tokens and other tokens to include those associated with CI/CD.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
The malware can also use stolen GitHub credentials to inject Claude and Visual Studio Code configuration files into repositories, establishing persistence and creating an additional developer-to-developer infection path.
[bundle.js] searches the infected machine for anything resembling credentials, including npm and GitHub personal access tokens, AWS or GCP secrets, and whatever it can extract from a cloud instance’s metadata service.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has collected credentials stored within configuration files.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026) [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also gathered credentials from files stored in common credential file paths to include targeting git-credentials, azureProfile.json, and application_default_credentials.json.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has gathered unsecured credentials to include SSH private keys within .ssh.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has gathered credentials and secrets from AWS, Google Cloud Platform (GCP) and Azure metadata API.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has gathered unsecured API keys stored in container orchestrators.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
AADInternals can gather unsecured credentials for Azure AD services, such as Azure AD Connect, from a local machine... Agent Tesla has the ability to extract credentials from configuration or support files... APT33 has used a variety of publicly available tools like LaZagne to gather credentials.
The payload targets... Messaging ~/.config/Signal/*, ~/.config/Slack/Cookies, ~/.config/discord/*, ~/.config/telegram-desktop/* | Messaging ~/.config/Signal/*, ~/.config/Slack/Cookies, ~/.config/discord/*, ~/.config/telegram-desktop/* | The payload targets... messaging app data stores... ~/.config/Slack/Cookies, ~/.config/discord/*, ~/.config/telegram-desktop/*
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has gathered credentials stored in password managers to include password vaults.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has captured credentials stored in cloud secret stores.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
includes Sigstore Fulcio/Rekor logic, enabling forged downstream npm provenance.
According to SafeDep, the 28KB Python stealer also attempts to read HashiCorp Vault KV secrets, unlock and dump 1Password and Bitwarden password vaults, and access SSH keys, Docker credentials, VPN configurations, and shell history.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has collected victim client certificates to assist in signed authentication assertion with Azure environments.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
Discovery
18 techniques
Discovery
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has discovered network configuration through the use of system commands to include `ip addr`, and `ip route`.(Citation: Trend Micro TeamPCP MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has leveraged commands such as `whoami` to identify the system owner.(Citation: Trend Micro TeamPCP MAY 2026)
the pipeline's OIDC token was extracted from runner process memory
Discovered GitHub tokens are validated before being used for additional collection or repository access... The payload checks token scopes, enumerates writable repositories, and identifies repositories where workflow execution could expose additional secrets.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has gathered system information of victim hosts through the use of common discovery commands to include `hostname`, `uname-a` and `printenv`.(Citation: Trend Micro TeamPCP MAY 2026) [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also conducted system checks of the victim device to include enumerating the system type and the number of CPUs operating on victim host.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has enumerated home directories, file paths and files associated with storing or containing credentials and other secrets.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
enabling it to enumerate packages, repositories, workflow secrets, cloud parameters, and secret-store values
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has enumerated cloud accounts and subscriptions accessible to the targeted identity.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has queried the system timezone configuration and timezone data files to include `/etc/localtime`, and locale settings to determine the geolocation of the compromised host.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has evaded sandbox detection by applying a 1-in-6 probability gate that generates a random number which will only trigger the wiper functionality when the set number outcome is met even in environments that match parameters of a geopolitical target.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has evaded execution in virtual environments and sandboxes through checking system information to include the number of CPUs and exiting at times when there were less than four and other times when there were less than two CPUs.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
Additionally, the worm queries the npm registry for other packages the infected identity has rights to modify
It also attempts to harvest secrets from CI/CD environments, identify build runners, and enumerate cloud environments
If the machine is running inside AWS, it propagates itself to other EC2 instances using SSM.
If it's inside Kubernetes, it propagates through kubectl exec.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has discovered the compromised systems location through a query of the system timezone configuration and the locale settings.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has the ability to check system details for its language configuration and terminates actions when the system is configured for the Russian language.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
The comment contains fake instructions to an LLM... designed to trigger LLM safety refusals and disrupt AI-assisted malware triage before the scanner reaches the obfuscated Hades payload
Lateral Movement
7 techniques
Lateral Movement
If the machine is running inside AWS, it propagates itself to other EC2 instances using SSM. If it's inside Kubernetes, it propagates through kubectl exec.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has accessed and propagated to AWS EC2 instances via SSM Send-Command.(Citation: Phoenix TeamPCP 20 MAY 2026)
MITRE ATT&CK Mapping Technique ID Implementation Software Deployment Tools T1072 npm publish / PyPI upload abused as lateral movement and propagation
The Register has been covering the story of the Shai-Hulud JavaScript worm for months. We introduced this self-propagating worm in September.
unleashed a self-replicating piece of malware
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has the ability to authenticate using stolen application access tokens.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
After enumerating SSM-managed instances, it uses SendCommand with the AWS-RunShellScript document to execute the rope.pyz payload on up to 5 other EC2 instances per profile.
Collection
6 techniques
Collection
The AFP estimates the campaign hit more than 1,000 organizations worldwide, with over 500,000 credentials stolen and at least 300 gigabytes of data taken.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has the ability to automatically compile gathered credentials from configuration files and password vaults within an archive and exfiltrate stolen data leveraging both a primary and fallback C2.(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
extracting sensitive data, including but not limited to cloud access tokens, SSH keys, and Kubernetes secrets
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has gathered and downloaded data stored on both compromised and publicly accessible code repositories.(Citation: Phoenix TeamPCP 20 MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has compressed collected credentials to reduce transmission size and to make string content harder to detect in memory forensics captures.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has compressed collected credentials and data within tar archive files prior to exfiltration.(Citation: Trend Micro TeamPCP MAY 2026)
Command and Control
13 techniques
Command and Control
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has established Fallback Channels to exfiltrate data to Github when other configured infrastructure is found to be unreachable.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
“masscan[.]cloud… was used as a C2 for the Mini-Shai-Hulud worm launched by TeamPCP in May of this year.”
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has has exfiltrated data through the use of HTTPS POST requests to C2 domains.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has the ability to exfiltrate stolen credentials via the Session messenger network.(Citation: Wiz Mini Shai-Hulud MAY 2026)
The entire C2 layer runs through GitHub’s commit search API, and the worm uses three independent channels... The attacker “issues commands” to all currently infected machines by simply committing a signed message to any public GitHub repository.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has leveraged GitHub commit-search API to recover fallback C2 domains stored in auto-created public Github repositories.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
OX Security says the malware retains the same credential-stealing functionality as Mini Shai-Hulud but adds additional obfuscation layers, multi-stage payload delivery mechanisms, and enhanced data theft and credential-harvesting features.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has the ability to download additional payloads from adversary controlled or compromised infrastructure.(Citation: Wiz Mini Shai-Hulud MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has used base64 encoding to obfuscate URLs used for C2.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has examined commit messages for a keyword followed by base64 encoded segments to validate communications and to execute subsequent actions to include exfiltration.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)
The malware now retrieves its command-and-control (C2) domains from an Ethereum smart contract ( StringListStore ) using an eth_call , rather than embedding them in the payload.
The payload even pins the TLS certificate for seed1.getsession.org ... to prevent the connection from being intercepted or analyzed by middle-boxes or “man-in-the-middle” security proxies...
The encryption key is then wrapped using 4096-bit RSA with OAEP padding... The same cryptographic component also handles verification of FIRESCALE commit message signatures.
Exfiltration
5 techniques
Exfiltration
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has exfiltrated encrypted archives over C2 domains.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)
Exfil node filev2[.]getsession[.]org Session messenger exfiltration... Exfil node seed1[.]getsession[.]org Session messenger exfiltration
The stolen material is encrypted and committed to public repositories using the victim's GitHub token.
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has exfiltrated data through the use of the victim’s own GitHub repository by creating a new public repository using a unique naming convention from a curated list of key words or themes.(Citation: Trend Micro TeamPCP MAY 2026)(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026)(Citation: Flashpoint Mini Shai-Hulud MAY 2026)
Exfiltrates secrets to GitHub, including with a previously compromised key.
Impact
4 techniques
Impact
[Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has wiped data on devices that fall within specified parameters to include those that resolve to specific geolocations including Iran and Israel.(Citation: Hunt.io TeamPCP Toolkit MAY 2026)(Citation: Phoenix TeamPCP 20 MAY 2026) [Mini Shai-Hulud](https://attack.mitre.org/software/S9043) has also implemented a dead-man’s switch that wipes the victims home directory if the operator revokes a GitHub token created by the adversary. (Citation: Flashpoint Mini Shai-Hulud MAY 2026)
Data encryption
The original TeamPCP campaign report documented a conditional wiper... attempted to destroy data, wiping Kubernetes clusters node by node, or the local machine if no cluster was found.
TanStack's postmortem traced the breach to a chained exploit: a pull_request_target "Pwn Request" abuse, GitHub Actions cache poisoning, and runtime extraction of an OIDC token directly from the runner's process memory.
Observables
236 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
148 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.