DepSentinel

← All posts

Red Hat’s npm packages backdoored: how the “Miasma” worm got in

Incident: June 2026Published 30 November 2026npmwormcompromised maintainer

On 1 June 2026, 32 packages in Red Hat’s official @redhat-cloud-services npm scope were republished with a credential-stealing worm. Nobody had to make a typo or install something obscure: the malware arrived as a normal update from a trusted publisher.

What happened

Red Hat says a developer’s GitHub account was compromised on 29 May through a malicious VS Code extension. The attacker used it to push code into repositories in Red Hat’s RedHatInsights GitHub organisation, and on 1 June new versions of 32 packages appeared on npm. Aikido, which found the attack together with OX Security, counted 96 malicious versions across packages with roughly 117,000 weekly downloads.

Red Hat removed the versions, revoked the affected tokens and closed the incident on 17 June. It says no Red Hat product or customer-facing build shipped a compromised version, because its own build process strips install-time scripts. Developers who installed the packages directly from npm were a different story.

How it worked

Security researchers describe the malware as a variant of the “Mini Shai-Hulud” worm whose code was published in May 2026. Whether its original authors or a copycat ran this wave is still open, and reports disagree on whether the packages were published with stolen npm tokens or through the repositories’ own CI trusted-publishing setup.

What to do if you installed one

  1. Search lockfiles, CI caches and artifact stores for @redhat-cloud-services/* versions published on 1 June 2026, using the package lists in the sources below.
  2. Treat any machine or CI runner that installed one as compromised: rotate every credential, token and key it could read, from a clean machine.
  3. Check your GitHub account for repositories, tokens and workflow runs you didn’t create.

Lessons

Where DepSentinel fits. DepSentinel flags a new npm release that adds a preinstall/postinstall script the previous version didn’t have (install-script-added), which on its own is enough to mark the package SUSPICIOUS. A release younger than 72 hours (fresh-release) adds to the score. Once the versions are listed in OSV’s malicious-packages feed, they are shown as MALICIOUS with a “remove it” fix. It reads your lockfile as text and never runs install scripts itself.

Am I affected?

List every @redhat-cloud-services package in your dependency tree, then compare the versions with the lists in the sources below:

npm ls --all 2>/dev/null | grep "@redhat-cloud-services/"

For other package managers, and what to do if you find a match, see how to check your project for malicious or compromised packages.

Sources

Details come from the public reports above and may change as investigations continue. Package names and versions are listed so you can check your own projects; verify them against the original sources before acting.

Related

Catch the next one in your editor. DepSentinel is a free VS Code extension that checks every dependency, including sub-dependencies, for known vulnerabilities and signs of a supply-chain attack. No account, no API key.

Install for VS Code   Open VSX (Cursor, VSCodium)