All news

Miasma Attack Hits Red Hat npm Packages

The Miasma supply chain attack compromised Red Hat npm packages with a credential-stealing worm. Here's what developers need to know and do right now.

June 1, 2026VibeWShield News Agentthehackernews.com
Editorial note: This article was generated by VibeWShield's AI news agent based on the original report. It has been reviewed for accuracy but may contain AI-generated summaries. Always verify critical details from the original source.

Miasma Supply Chain Attack Targets Red Hat npm Packages

A new supply chain attack dubbed Miasma has compromised official Red Hat npm packages, embedding a credential-stealing worm that propagates through developer environments on installation. The Miasma supply chain attack is a direct threat to any team pulling these packages into CI/CD pipelines or local development setups. If you use Red Hat-maintained npm packages, assume you are a target until proven otherwise.

The attack follows a pattern that has become disturbingly common: a trusted publisher's packages get compromised, malicious code rides in under a legitimate name, and developers install it without a second look because the source seemed safe.

How the Credential-Stealing Worm Actually Works

The Miasma worm is not a passive payload. Once a compromised package is installed, it executes a post-install script that scans the host environment for credential stores. This includes .npmrc files (which often contain auth tokens for private registries), environment variables holding API keys, SSH keys in default locations, and browser-stored credentials where accessible.

What makes this worm-like behavior particularly dangerous is the lateral movement capability. After harvesting local credentials, the worm attempts to authenticate to any connected npm registries or git remotes it finds. If it gains write access to other packages, it injects copies of itself, turning each compromised developer machine into a new distribution point.

The self-propagation mechanism means the blast radius grows with each infected environment. One developer installing a backdoored package in a shared CI environment can expose every package that environment has publish access to.

What Developers and Teams Stand to Lose

The immediate risk is credential theft. Stolen npm tokens can give attackers publish rights to your own packages, creating a downstream poisoning effect. API keys scraped from environment variables can mean compromised cloud infrastructure, billing fraud, or data exfiltration.

Beyond individual credentials, a worm that moves through CI/CD pipelines can poison build artifacts. Compiled binaries, Docker images, or frontend bundles pushed to production after an infected build are now untrusted. Every downstream user of those artifacts is exposed.

Organizations using Red Hat tooling in regulated environments face an additional compliance headache. A confirmed supply chain compromise triggers incident response requirements under frameworks like SOC 2, PCI-DSS, and GDPR, depending on what data the affected systems handle.

How to Protect Your Projects Against Miasma

Start with immediate triage. Audit your package.json and lockfiles for any Red Hat-maintained npm packages and cross-reference against the published list of compromised package versions. Do not just check production. Check every environment including local developer machines, staging, and CI runners.

Rotate credentials aggressively. Any .npmrc tokens, cloud API keys, or SSH keys present on systems where the compromised packages were installed should be considered stolen. Revoke and reissue them before doing anything else.

For ongoing protection, implement these controls:

  • Lock dependency versions using exact version pinning in package-lock.json and validate checksums via npm ci.
  • Restrict post-install scripts with npm config set ignore-scripts true for non-interactive installs where possible.
  • Audit new package installs using tools like Socket.dev or running automated DAST scans against your pipeline.
  • Scope CI credentials tightly so a compromised build runner cannot publish to your registries automatically.
  • Monitor outbound network traffic from build environments for unexpected connections.

Running a full vulnerability scan of your web application after any suspected supply chain compromise is a practical way to detect whether injected scripts have affected any deployed endpoints.

For deeper reading on securing your npm dependency chain, see our guide on npm supply chain security best practices.


How do I know if my project used a compromised Red Hat npm package? Check the official Red Hat security advisory for the specific package names and version ranges affected. Run npm ls to see installed versions across your dependency tree and compare against the published indicators of compromise.

Can rotating my npm token stop the spread if I'm already infected? Rotating tokens removes the attacker's current publish access, but it does not clean an already-infected environment. You need to wipe and rebuild any affected machines or containers from a clean snapshot after revoking credentials.

Does npm audit catch Miasma-infected packages? Standard npm audit checks against the npm advisory database. Coverage depends on how quickly Red Hat and the npm security team publish formal advisories. Do not rely on audit alone. Use checksum verification and behavioral scanning tools alongside it.


Scan your application now for signs of supply chain compromise at VibeWShield.

Free security scan

Is your app vulnerable to similar attacks?

VibeWShield automatically scans for these and 18 other security checks in under 3 minutes.

Scan your app free