Supply chain · June 1, 2026

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

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.

DisclosedJune 1, 2026
Earliest known activityMay 29, 2026
AffectedRed Hat, @redhat-cloud-services/frontend-components, @redhat-cloud-services/chrome, npm, GitHub Actions
TypeSupply chain
StatusResolved

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.

Am I 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 now

  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

Guides to the credentials this incident put at risk:

Timeline

  1. A GitHub account is compromised through a malicious VS Code extension and used to push unauthorized commits to repositories in the RedHatInsights organization. Source
  2. Aikido reports 96 malicious versions across 32 packages, published through GitHub Actions OIDC trusted publishing. Source
  3. Red Hat publishes RHSB-2026-006, contains the malicious VS Code extension and removes the compromised versions from npm. Source
  4. Red Hat closes the incident; the bulletin was last updated on 2 July 2026. Source

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

  • @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.

What this changes for credential handling

  • A single editor extension turned one developer's GitHub session into publish access for 32 packages. BotPassword keeps that kind of token out of reach of extensions running in the editor.

Frequently asked questions

Am I affected by the Red Hat incident?

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 was exposed in the Red Hat incident?

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.

Which keys should I rotate?

Rotate any GitHub, npm, PyPI, AWS (IAM access keys), Google Cloud (service account keys and API keys), Azure (Microsoft Entra app client secrets), Docker Hub credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.