<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>@Redhat-Cloud-Services Npm Packages — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/@redhat-cloud-services-npm-packages/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 01 Jun 2026 21:39:36 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/@redhat-cloud-services-npm-packages/feed.xml" rel="self" type="application/rss+xml"/><item><title>Red Hat npm Packages Compromised by Miasma Malware</title><link>https://feed.craftedsignal.io/briefs/2026-06-redhat-npm-miasma/</link><pubDate>Mon, 01 Jun 2026 21:39:36 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-redhat-npm-miasma/</guid><description>A supply chain attack compromised over 30 npm packages under Red Hat's '@redhat-cloud-services' namespace, distributing a credential-stealing malware variant named 'Miasma' that targets sensitive developer information.</description><content:encoded><![CDATA[<p>On June 1, 2026, Red Hat disclosed a supply chain attack targeting more than 30 npm packages within their &lsquo;@redhat-cloud-services&rsquo; namespace. The attack involved injecting a new variant of the Shai-Hulud credential-stealing malware, dubbed &ldquo;Miasma,&rdquo; into compromised packages. This malware is designed to harvest sensitive information, including developer credentials, cloud secrets, SSH keys, CI/CD tokens, and other valuable data. Aikido and OX Security discovered the incident, noting that the affected packages receive approximately 117,000 weekly downloads. Red Hat has removed the malicious packages from the npm registry. The attacker allegedly compromised a Red Hat employee&rsquo;s GitHub account to push malicious commits. Miasma has been found in 309 GitHub repositories.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker compromises a Red Hat employee&rsquo;s GitHub account.</li>
<li>Malicious commits are pushed to multiple repositories via the compromised GitHub account.</li>
<li>A GitHub Actions workflow is added to the repositories.</li>
<li>A script is introduced to abuse npm&rsquo;s publishing mechanism.</li>
<li>The workflow installs Bun and executes <code>_index.js</code>, passing a list of target packages via the <code>OIDC_PACKAGES</code> environment variable.</li>
<li>The script uses the <code>id-token: write</code> permission to request a short-lived OIDC token from GitHub.</li>
<li>The OIDC token authenticates directly with npm&rsquo;s trusted publishing endpoint.</li>
<li>Backdoored versions of the packages are published, containing a &lsquo;preinstall&rsquo; script executing a heavily obfuscated <code>index.js</code> to steal secrets.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>This supply chain attack could lead to the theft of sensitive developer credentials, cloud secrets (AWS, Google Cloud, Azure), SSH keys, CI/CD tokens, HashiCorp Vault tokens, Kubernetes service account tokens, npm and PyPI publishing tokens, Docker credentials, GPG keys, and <code>.env</code> files. Over 30 npm packages and 96 versions under the <code>@redhat-cloud-services</code> namespace were affected, with approximately 117,000 weekly downloads. This could result in widespread compromise of internal development tools and potentially impact customer and partner environments if credentials used in those environments were compromised.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Rotate all credentials, secrets, and tokens utilized by code on any infected device (as per the report&rsquo;s recommendations).</li>
<li>Deploy the Sigma rule for detection of npm package preinstall script execution to your SIEM and tune for your environment.</li>
<li>Monitor GitHub Actions workflows for suspicious activity, specifically the use of <code>id-token: write</code> permission, as described in the Attack Chain.</li>
<li>Implement multi-factor authentication (MFA) on all developer accounts, especially GitHub, to prevent account compromise (as indicated by the initial access vector).</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>supply-chain</category><category>credential-theft</category><category>miasma</category><category>npm</category></item></channel></rss>