<?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/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>SAP JavaScript - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/sap-javascript/</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>Wed, 29 Apr 2026 16:26:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/sap-javascript/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Mini Shai-Hulud Supply Chain Attack Targets SAP-Related npm Packages</title><link>https://feed.craftedsignal.io/briefs/2026-04-29-mini-shai-hulud/</link><pubDate>Wed, 29 Apr 2026 16:26:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-04-29-mini-shai-hulud/</guid><description>The 'mini Shai-Hulud' campaign compromised SAP-related npm packages with credential-stealing malware, exfiltrating sensitive data to public GitHub repositories and propagating through developer workflows.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>The &quot;mini Shai-Hulud&quot; campaign is a supply chain attack targeting SAP's JavaScript and cloud application development ecosystem. Active as of April 29, 2026, the campaign compromised multiple npm packages, including <code>mbt@1.2.48</code>, <code>@cap-js/db-service@2.10.1</code>, <code>@cap-js/postgres@2.2.2</code>, and <code>@cap-js/sqlite@2.2.2</code>. The compromised packages introduced a preinstall script that downloads and executes a platform-specific Bun binary from GitHub Releases. Wiz assesses this campaign likely links to the TeamPCP threat actor, due to similarities with previous operations. The malware harvests credentials and secrets from developers' local environments, GitHub Actions, and cloud platforms (AWS, Azure, GCP, Kubernetes), exfiltrating them to public GitHub repositories. The attack also self-propagates by injecting malicious GitHub Actions workflows into victim repositories to steal repository secrets and publish poisoned npm packages.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li><strong>Account Compromise:</strong> Attackers compromised npm accounts, such as RoshniNaveenaS for the &quot;@cap-js&quot; packages and potentially &quot;cloudmtabot&quot; for the mbt package.</li>
<li><strong>Malicious Package Injection:</strong> Modified workflows were pushed to non-main branches. For &quot;@cap-js&quot; packages, attackers exploited a misconfiguration in npm's OIDC trusted publisher setup.</li>
<li><strong>Preinstall Hook Execution:</strong> The compromised npm packages included a malicious &quot;preinstall&quot; script within their <code>package.json</code> files.</li>
<li><strong>Bun Runtime Download and Execution:</strong> The &quot;preinstall&quot; script downloads a platform-specific Bun JavaScript runtime from GitHub Releases. The implementation follows HTTP redirects without validation.</li>
<li><strong>Credential Stealing:</strong> The downloaded Bun runtime executes a credential stealer (&quot;execution.js&quot;) designed to harvest local developer credentials, GitHub and npm tokens, GitHub Actions secrets, and cloud secrets from AWS, Azure, GCP, and Kubernetes.</li>
<li><strong>Data Exfiltration:</strong> Stolen credentials and secrets are encrypted using AES-256-GCM (with the key encapsulated using RSA-4096) and exfiltrated to public GitHub repositories created on the victim's own account, with the description &quot;A Mini Shai-Hulud has Appeared.&quot;</li>
<li><strong>Self-Propagation:</strong> The malware injects a malicious GitHub Actions workflow into the victim's repositories using stolen GitHub and npm tokens, allowing it to steal repository secrets and publish poisoned versions of the npm packages.</li>
<li><strong>Persistence:</strong> The payload commits itself into every accessible GitHub repository by injecting a &quot;.claude/settings.json&quot; file (abusing Claude Code's SessionStart hook) and a &quot;.vscode/tasks.json&quot; file (with &quot;runOn&quot;: &quot;folderOpen&quot;) so that any attempt to open the infected repository in Microsoft Visual Studio Code (VS Code) or Claude Code causes the malware to be executed.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The &quot;mini Shai-Hulud&quot; campaign compromises developer environments and CI/CD pipelines, leading to widespread credential theft and supply chain poisoning. Over 1,100 GitHub repositories have been identified with the &quot;A Mini Shai-Hulud has Appeared&quot; description, indicating a significant number of victims. Successful exploitation allows attackers to steal sensitive cloud and development credentials, potentially leading to data breaches, code tampering, and further supply chain attacks. The attack's self-propagation capabilities exacerbate the spread and impact.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the &quot;Detect Mini Shai-Hulud Preinstall Script&quot; Sigma rule to detect the execution of the malicious preinstall script during npm package installation.</li>
<li>Deploy the &quot;Detect Mini Shai-Hulud Github Repo Creation&quot; Sigma rule to detect the creation of GitHub repositories with the description &quot;A Mini Shai-Hulud has Appeared.&quot;</li>
<li>Monitor npm package installations for the presence of suspicious <code>preinstall</code> scripts that download and execute external binaries.</li>
<li>Review and harden npm OIDC trusted publisher configurations to ensure they only trust canonical release workflows on the main branch.</li>
<li>Implement multi-factor authentication (MFA) on all developer accounts and CI/CD systems to prevent account compromise.</li>
<li>Audit GitHub Actions workflows for suspicious activity, such as the injection of malicious steps.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">threat</category><category>supply-chain</category><category>npm</category><category>credential-theft</category><category>malware</category><category>github</category></item></channel></rss>