Malicious code in @redhat-cloud-services/config-manager-client (npm)
Part of the "Mini Shai-Hulud" supply chain worm campaign that compromised the GitHub Actions OIDC trusted publisher shared by Red Hat Cloud Services npm packages. The attacker injected a `preinstall` hook into this and 31 other packages in the `@redhat-cloud-services` scope. The hook delivers a three-layer obfuscated payload (ROT-9 Caesar cipher over a 1.27M-entry character-code array -> AES-128-GCM decryption with hardcoded keys -> stacked obfuscator.io encoding with PBKDF2+SHA-256 keystream S-box substitution) that downloads a pinned Bun runtime (v1.3.13) from GitHub to execute the worm outside the victim's Node installation. **Credential theft:** Harvests AWS credentials (IMDS, ECS, Secrets Manager, SSM), Azure managed identities, GCP service account tokens, HashiCorp Vault tokens, Kubernetes service account tokens (`/var/run/secrets/kubernetes.io/serviceaccount/token`), GitHub PATs, npm publish tokens, environment variables from ~40 CI platforms (CircleCI, Travis CI, Jenkins, and others), password manager stores (Bitwarden, gopass), and local files (`~/.npmrc`, `~/.netrc`, shell history, database history). Collected data is exfiltrated to attacker-controlled public GitHub repositories. **Privilege escalation:** Exploits Docker socket access to escape containers and modify `/etc/sudoers.d`, granting passwordless sudo to CI runner user accounts. **Self-propagation:** Uses stolen npm credentials to republish tampered tarballs of target packages. Injects a malicious CodeQL workflow into accessible GitHub repositories via the GraphQL `createCommitOnBranch` mutation, exchanges GitHub Actions OIDC tokens for npm publish tokens, and signs the resulting artifacts through Sigstore (Fulcio/Rekor) to appear legitimate. **Persistence and evasion:** Installs a daemon at `/tmp/kitty-<random>`, hijacks `.claude/settings.json` for AI agent persistence, and hijacks `.vscode/tasks.json` for editor task execution. Detects sandbox environments via `__FAKE_PLATFORM__`, `TESTING_TAR_FAKE_PLATFORM__`, and `__IS_DAEMON` environment variables, and probes for EDR tools (CrowdStrike, SentinelOne, Carbon Black, StepSecurity Harden-Runner). --- _-= Per source details. Do not edit below this line.=-_ ## Source: ghsa-malware (b75d3af16af275fa32096cbedb4a2b4da30c1f792225458ee195588210cb5d83) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
This threat involves a malicious code injection into the @redhat-cloud-services/config-manager-client npm package (versions 5.0.4, 5.0.5, and 5.0.7) as part of the "Mini Shai-Hulud" supply chain worm campaign. The attacker compromised the GitHub Actions OIDC trusted publisher shared by Red Hat Cloud Services npm packages to insert a preinstall hook that executes a three-layer obfuscated payload. This payload downloads a pinned Bun runtime to execute the worm outside the Node environment. The malware harvests extensive credentials from AWS, Azure, GCP, HashiCorp Vault, Kubernetes, GitHub, npm, various CI platforms, password managers, and local files, exfiltrating them to public GitHub repositories controlled by the attacker. It escalates privileges by exploiting Docker socket access to escape containers and modify sudoers files for passwordless sudo access. The worm self-propagates by republishing tampered npm packages using stolen credentials and injecting malicious CodeQL workflows into GitHub repositories, signing artifacts with Sigstore to appear legitimate. Persistence is maintained via daemon installation and hijacking of AI agent and editor configurations. The malware detects sandbox environments and probes for EDR tools to evade detection. Due to the full compromise risk, all secrets must be rotated, and the package removed, though removal may not eliminate all malicious components.
Potential Impact
The impact includes full system compromise where the package is installed or running. The attacker gains access to a wide range of sensitive credentials across multiple cloud providers, CI/CD platforms, password managers, and local files, enabling further unauthorized access and lateral movement. Privilege escalation allows the attacker to gain passwordless sudo access, increasing control over the host environment. The worm self-propagates by republishing malicious packages and injecting workflows into GitHub repositories, potentially compromising additional systems and supply chains. Persistence and evasion techniques make detection and removal difficult, increasing the risk of long-term undetected compromise.
Mitigation Recommendations
No official patch or fix is indicated in the provided data. Systems with the affected package versions (=5.0.4, =5.0.5, =5.0.7) should consider themselves fully compromised. Immediate removal of the package is recommended, but this alone may not remove all malicious components. All secrets and credentials stored on the compromised system must be rotated immediately from a different, secure machine. Monitor for indicators of compromise related to this threat and consider forensic analysis to identify persistence mechanisms. Follow vendor advisories if they become available for official remediation guidance.
Malicious code in @redhat-cloud-services/config-manager-client (npm)
Description
Part of the "Mini Shai-Hulud" supply chain worm campaign that compromised the GitHub Actions OIDC trusted publisher shared by Red Hat Cloud Services npm packages. The attacker injected a `preinstall` hook into this and 31 other packages in the `@redhat-cloud-services` scope. The hook delivers a three-layer obfuscated payload (ROT-9 Caesar cipher over a 1.27M-entry character-code array -> AES-128-GCM decryption with hardcoded keys -> stacked obfuscator.io encoding with PBKDF2+SHA-256 keystream S-box substitution) that downloads a pinned Bun runtime (v1.3.13) from GitHub to execute the worm outside the victim's Node installation. **Credential theft:** Harvests AWS credentials (IMDS, ECS, Secrets Manager, SSM), Azure managed identities, GCP service account tokens, HashiCorp Vault tokens, Kubernetes service account tokens (`/var/run/secrets/kubernetes.io/serviceaccount/token`), GitHub PATs, npm publish tokens, environment variables from ~40 CI platforms (CircleCI, Travis CI, Jenkins, and others), password manager stores (Bitwarden, gopass), and local files (`~/.npmrc`, `~/.netrc`, shell history, database history). Collected data is exfiltrated to attacker-controlled public GitHub repositories. **Privilege escalation:** Exploits Docker socket access to escape containers and modify `/etc/sudoers.d`, granting passwordless sudo to CI runner user accounts. **Self-propagation:** Uses stolen npm credentials to republish tampered tarballs of target packages. Injects a malicious CodeQL workflow into accessible GitHub repositories via the GraphQL `createCommitOnBranch` mutation, exchanges GitHub Actions OIDC tokens for npm publish tokens, and signs the resulting artifacts through Sigstore (Fulcio/Rekor) to appear legitimate. **Persistence and evasion:** Installs a daemon at `/tmp/kitty-<random>`, hijacks `.claude/settings.json` for AI agent persistence, and hijacks `.vscode/tasks.json` for editor task execution. Detects sandbox environments via `__FAKE_PLATFORM__`, `TESTING_TAR_FAKE_PLATFORM__`, and `__IS_DAEMON` environment variables, and probes for EDR tools (CrowdStrike, SentinelOne, Carbon Black, StepSecurity Harden-Runner). --- _-= Per source details. Do not edit below this line.=-_ ## Source: ghsa-malware (b75d3af16af275fa32096cbedb4a2b4da30c1f792225458ee195588210cb5d83) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This threat involves a malicious code injection into the @redhat-cloud-services/config-manager-client npm package (versions 5.0.4, 5.0.5, and 5.0.7) as part of the "Mini Shai-Hulud" supply chain worm campaign. The attacker compromised the GitHub Actions OIDC trusted publisher shared by Red Hat Cloud Services npm packages to insert a preinstall hook that executes a three-layer obfuscated payload. This payload downloads a pinned Bun runtime to execute the worm outside the Node environment. The malware harvests extensive credentials from AWS, Azure, GCP, HashiCorp Vault, Kubernetes, GitHub, npm, various CI platforms, password managers, and local files, exfiltrating them to public GitHub repositories controlled by the attacker. It escalates privileges by exploiting Docker socket access to escape containers and modify sudoers files for passwordless sudo access. The worm self-propagates by republishing tampered npm packages using stolen credentials and injecting malicious CodeQL workflows into GitHub repositories, signing artifacts with Sigstore to appear legitimate. Persistence is maintained via daemon installation and hijacking of AI agent and editor configurations. The malware detects sandbox environments and probes for EDR tools to evade detection. Due to the full compromise risk, all secrets must be rotated, and the package removed, though removal may not eliminate all malicious components.
Potential Impact
The impact includes full system compromise where the package is installed or running. The attacker gains access to a wide range of sensitive credentials across multiple cloud providers, CI/CD platforms, password managers, and local files, enabling further unauthorized access and lateral movement. Privilege escalation allows the attacker to gain passwordless sudo access, increasing control over the host environment. The worm self-propagates by republishing malicious packages and injecting workflows into GitHub repositories, potentially compromising additional systems and supply chains. Persistence and evasion techniques make detection and removal difficult, increasing the risk of long-term undetected compromise.
Mitigation Recommendations
No official patch or fix is indicated in the provided data. Systems with the affected package versions (=5.0.4, =5.0.5, =5.0.7) should consider themselves fully compromised. Immediate removal of the package is recommended, but this alone may not remove all malicious components. All secrets and credentials stored on the compromised system must be rotated immediately from a different, secure machine. Monitor for indicators of compromise related to this threat and consider forensic analysis to identify persistence mechanisms. Follow vendor advisories if they become available for official remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5134
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-h8h2-fp9q-h887"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ed768715ace4390b5b7
Added to database: 07/11/2026, 09:37:27 UTC
Last enriched: 07/11/2026, 10:03:09 UTC
Last updated: 07/30/2026, 01:57:18 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.