Security

Red Hat npm Miasma Attack Hits CI/CD Supply Chains

3 min read

Summary

Microsoft Threat Intelligence uncovered a large-scale npm supply chain attack involving trojanized packages under the @redhat-cloud-services scope. The campaign abused a compromised CI/CD publishing workflow to deliver credential-stealing malware targeting GitHub, npm, AWS, Azure, GCP, Kubernetes, and developer systems, making it especially relevant for security teams and DevOps administrators.

Need help with Security?Talk to an Expert

Introduction

Microsoft has disclosed a significant software supply chain attack affecting npm packages published under the @redhat-cloud-services namespace. The campaign, dubbed Miasma, shows how attackers can abuse trusted CI/CD publishing workflows to distribute malicious packages with legitimate-looking provenance, raising the stakes for organizations that rely on open-source dependencies in build pipelines.

What’s new

Microsoft Threat Intelligence found that attackers compromised the upstream RedHatInsights/javascript-clients CI/CD pipeline and used the legitimate GitHub Actions OIDC publishing flow to push 32 malicious packages across more than 90 versions.

Key technical findings include:

  • Malicious preinstall hook: The infected packages executed automatically during npm install via a weaponized preinstall script.
  • Multi-stage malware chain: The package launched an obfuscated 4.29 MB dropper, decrypted additional payloads, downloaded the Bun runtime, and executed a second-stage stealer.
  • Broad credential theft: The malware targeted secrets from GitHub, npm, AWS, Azure, GCP, HashiCorp Vault, Kubernetes, and local developer environments.
  • CI/CD-focused behavior: On Linux runners, it scraped GitHub Actions runner memory for secrets and attempted privilege escalation using passwordless sudo.
  • Worm-like propagation: The payload tried to republish poisoned packages from compromised maintainer accounts using forged provenance metadata.
  • Destructive capability: In some scenarios, the malware could trigger rm -rf ~/, wiping a victim’s home directory.

Why this matters for administrators

This attack is notable because the malicious packages were published through a trusted publisher workflow, meaning they carried authentic provenance signatures. For IT and security teams, that weakens assumptions that signed or provenance-backed packages are automatically safe.

Organizations running Linux-based CI/CD pipelines are at particular risk, but developer workstations on Windows, macOS, and Linux were also targeted. Any environment with cached cloud credentials, SSH keys, browser data, or package publishing tokens could be exposed.

Administrators should take the following actions immediately:

  • Audit environments for any use of affected @redhat-cloud-services packages and related versions.
  • Rotate exposed credentials, especially for GitHub, npm, Azure, AWS, GCP, Vault, and Kubernetes.
  • Review CI/CD runners for unusual process chains such as node -> shell -> bun.
  • Check for unauthorized package publishing activity and suspicious provenance metadata.
  • Harden build agents by reducing token scope, limiting sudo access, and isolating runner secrets.
  • Use Microsoft Defender and related security tooling to investigate signs of credential theft or downstream package tampering.

Microsoft says it coordinated with npm to remove affected repositories and add protections to the namespace. Security teams should still treat this as a reminder to strengthen dependency governance, monitor software publishing workflows, and validate secrets exposure in CI/CD systems.

Need help with Security?

Our experts can help you implement and optimize your Microsoft solutions.

Talk to an Expert

Stay updated on Microsoft technologies

npmsoftware supply chainCI/CD securitycredential theftMicrosoft Defender

Related Posts

Security

Microsoft Build 2026 Security: Code, Agents, Models

At Microsoft Build 2026, Microsoft announced new security capabilities to protect code, AI agents, and models across the development lifecycle. Highlights include the expanded preview of MDASH for exploitability-focused vulnerability discovery and general availability of Microsoft Defender integration with GitHub Code Security to help teams prioritize and remediate real risks faster.

Security

npm Dependency Confusion Attack Targets Developer Environments

Microsoft Threat Intelligence uncovered 33 malicious npm packages that abused dependency confusion to impersonate internal corporate packages and silently profile developer systems during installation. The campaign matters because it targets developer workstations and CI/CD environments, creating a foothold for potential follow-on supply chain attacks.

Security

Microsoft Defender Named a 2026 Endpoint Leader

Microsoft says it has been named a Leader in the 2026 Gartner Magic Quadrant for Endpoint Protection for the seventh consecutive time. The announcement highlights recent Microsoft Defender for Endpoint enhancements, including attack disruption, custom telemetry, simplified onboarding, sovereign-ready deployment options, and protection for local AI agents.

Security

Typosquatted npm Packages Steal Cloud and CI/CD Secrets

Microsoft has uncovered an active npm supply chain attack in which 14 typosquatted packages stole AWS credentials, HashiCorp Vault tokens, GitHub Actions data, and npm publish tokens during installation. The campaign matters because it targets developer and build environments, creating risk of cloud lateral movement, CI/CD compromise, and downstream software supply chain attacks.

Security

The Gentlemen Ransomware: Self-Propagating Go Threat

Microsoft Threat Intelligence has published a deep technical analysis of The Gentlemen ransomware, a Go-based ransomware-as-a-service threat that combines strong file encryption with aggressive self-propagation. The research matters for defenders because the malware can rapidly spread across local systems and network shares, increasing the blast radius of a single compromise.

Security

Cryptojacking Campaign Abuses ScreenConnect and .NET

Microsoft has detailed an active cryptojacking campaign that uses poisoned search results and AI chatbot recommendations to lure users to fake software download sites. The attack abuses DLL sideloading, ScreenConnect, and Microsoft .NET utilities to gain persistent access and mine cryptocurrency on high-GPU systems, raising the risk of follow-on activity such as data theft or ransomware.