# 32 @redhat-cloud-services npm packages compromised after a VS Code extension hijacked a GitHub account

Source: https://botpassword.com/incidents/2026-06-redhat-cloud-services-npm
Disclosed: 2026-06-01 · Type: Supply chain · Status: Resolved · Updated: 2026-10-25

Red Hat disclosed on 1 June 2026 that 32 `@redhat-cloud-services` npm packages, frontend libraries for the Hybrid Cloud Console, were compromised with the Miasma (Mini Shai-Hulud) malware kit after a malicious VS Code extension took over an employee's GitHub account on 29 May. Red Hat says no product build or console release included the bad versions and that its customers need take no action. Developers who installed an affected version into their own projects should rotate CI, cloud, npm and SSH credentials on that machine.

Identifiers: RHSB-2026-006

## What was exposed

Credentials on any machine or CI runner that installed an affected version. Aikido found a `preinstall` script running a 4.2 MB obfuscated `index.js` that targeted GitHub Actions secrets (including `GITHUB_TOKEN` and `ACTIONS_RUNTIME_TOKEN`), AWS keys and session tokens, Google Cloud application-default credentials and service-account key files, Azure service principal credentials and managed identity tokens, Vault tokens, Kubernetes tokens and kubeconfig files, npm and PyPI publish tokens, SSH and GPG private keys, Docker registry credentials and `.env` files. Aikido says the attacker pushed orphan commits adding `ci.yaml` and `_index.js` that requested a short-lived OIDC token and published through npm trusted publishing, so no npm token was stolen. Red Hat adds that repository configuration files were altered so that developers who opened those directories would be infected. Red Hat says its publication process strips install-time scripts, no console release went out in the window, and Azure Red Hat OpenShift, OpenShift Dedicated, ROSA, Advanced Cluster Security Cloud Service and Ansible Automation Platform on Cloud were not affected.

## Who is affected

Red Hat customers using its products and managed services are not affected, according to Red Hat. You may be affected if your own project or CI installed an affected version from Aikido's list, for example `@redhat-cloud-services/frontend-components` 7.7.2 or 7.7.3, `@redhat-cloud-services/chrome` 2.3.1 or 2.3.2, or `@redhat-cloud-services/rbac-client` 9.0.3 or 9.0.4, or if you cloned a RedHatInsights repository between 29 May and 1 June 2026 and opened it in an editor. Search lockfiles for the `@redhat-cloud-services/` scope and compare versions with the full list.

## What to do

1. Compare lockfiles with Aikido's list of affected `@redhat-cloud-services` versions and move to clean versions.
2. If an affected version was installed, rotate GitHub Actions secrets, cloud credentials, Vault and Kubernetes tokens, npm and PyPI tokens and SSH keys on that machine or runner.
3. Before reopening a RedHatInsights repository cloned in that window, inspect editor and agent configuration files and look for orphan commits adding `ci.yaml` or `_index.js`.
4. Audit installed VS Code extensions and remove any you do not recognize.

## Keys to rotate

- [GitHub](https://botpassword.com/keys/github)
- [npm](https://botpassword.com/keys/npm)
- [PyPI](https://botpassword.com/keys/pypi)
- [AWS (IAM access keys)](https://botpassword.com/keys/aws)
- [Google Cloud (service account keys and API keys)](https://botpassword.com/keys/google-cloud)
- [Azure (Microsoft Entra app client secrets)](https://botpassword.com/keys/azure)
- [Docker Hub](https://botpassword.com/keys/docker-hub)

## Timeline

- 2026-05-29: A GitHub account is compromised through a malicious VS Code extension and used to push unauthorized commits to repositories in the RedHatInsights organization. ([source](https://access.redhat.com/security/vulnerabilities/RHSB-2026-006))
- 2026-06-01: Aikido reports 96 malicious versions across 32 packages, published through GitHub Actions OIDC trusted publishing. ([source](https://www.aikido.dev/blog/red-hat-npm-packages-compromised-credential-stealing-worm))
- 2026-06-01: Red Hat publishes RHSB-2026-006, contains the malicious VS Code extension and removes the compromised versions from npm. ([source](https://access.redhat.com/security/vulnerabilities/RHSB-2026-006))
- 2026-06-17: Red Hat closes the incident; the bulletin was last updated on 2 July 2026. ([source](https://access.redhat.com/security/vulnerabilities/RHSB-2026-006))

## Indicators

- `@redhat-cloud-services/*` versions listed by Aikido, such as `frontend-components` 7.7.2 and 7.7.3, `chrome` 2.3.1 and 2.3.2, `types` 3.6.1, 3.6.2 and 3.6.4.
- A `preinstall` script running `node index.js` with a 4.2 MB obfuscated `index.js`.
- Orphan commits adding `ci.yaml` and `_index.js`.

## Sources

- https://access.redhat.com/security/vulnerabilities/RHSB-2026-006
- https://www.aikido.dev/blog/red-hat-npm-packages-compromised-credential-stealing-worm
