{"id":7162,"date":"2025-09-24T10:00:04","date_gmt":"2025-09-24T10:00:04","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/09\/24\/cisa-warns-of-shai-hulud-self-replicating-worm-compromised-500-packages-in-npm-registry\/"},"modified":"2025-09-24T10:00:04","modified_gmt":"2025-09-24T10:00:04","slug":"cisa-warns-of-shai-hulud-self-replicating-worm-compromised-500-packages-in-npm-registry","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/09\/24\/cisa-warns-of-shai-hulud-self-replicating-worm-compromised-500-packages-in-npm-registry\/","title":{"rendered":"CISA Warns of Shai-Hulud Self-Replicating Worm Compromised 500+ Packages in npm Registry"},"content":{"rendered":"<p>    CISA Warns of Shai-Hulud Self-Replicating Worm Compromised 500+ Packages in npm Registry<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>CISA has issued an urgent security Alert in response to a large-scale software <a href=\"https:\/\/cybersecuritynews.com\/npm-supply-chain-attack-crowdstrike\/\" target=\"_blank\" rel=\"noreferrer noopener\">supply chain attack<\/a> on npmjs.com, the world\u2019s largest JavaScript package registry.\u00a0<\/p>\n<p>A self-replicating worm, dubbed Shai-Hulud, has infiltrated more than 500 npm packages and injected malicious code that aggressively spreads by abusing developer credentials and npm publish workflows.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-self-replicating-npm-supply-chain-threat\"><strong>Self-Replicating npm Supply Chain Threat<\/strong><\/h2>\n<p>After securing initial access presumably via a compromised maintainer account, <a href=\"https:\/\/cybersecuritynews.com\/shai-hulud-npm-supply-chain-attack\/\" target=\"_blank\" rel=\"noreferrer noopener\">Shai-Hulud<\/a> deploys a sophisticated payload that scans for sensitive credentials stored in environment variables and local configuration files.\u00a0<\/p>\n<p>The malware targets GitHub Personal Access Tokens (PATs) and API keys for AWS, GCP, and Azure, exploiting common CI\/CD practices where tokens are inadvertently persisted.\u00a0<\/p>\n<p>Once harvested, credentials are exfiltrated to an actor-controlled <a href=\"https:\/\/cybersecuritynews.com\/tag\/endpoint-management\/\">endpoint<\/a> and simultaneously uploaded to a public <a href=\"https:\/\/cybersecuritynews.com\/smartloader-malware-via-github-repository\/\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub repository <\/a>named Shai-Hulud via the GitHub\/user\/repos API.<\/p>\n<p>Shai-Hulud then uses an automated loop to authenticate to the npm registry with stolen tokens. Leveraging the npm CLI, it injects malicious JavaScript into the entry point file often index.js of other packages in the compromised developer\u2019s dependency tree.\u00a0<\/p>\n<p>Following the injection, the worm executes\u2019 npm version patch &amp;&amp; npm publish \u2013access public\u2019 to publish a trojanized version, thereby perpetuating its spread.\u00a0<\/p>\n<p>The worm\u2019s self-replication mechanism exploits transitive dependencies: any project depending on one of the compromised packages can inadvertently become a new host.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-mitigations\"><strong>Mitigations<\/strong><\/h2>\n<p>CISA <a href=\"https:\/\/www.cisa.gov\/news-events\/alerts\/2025\/09\/23\/widespread-supply-chain-compromise-impacting-npm-ecosystem\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">recommends<\/a> immediate action to detect and remediate this compromise:<\/p>\n<ul class=\"wp-block-list\">\n<li>Examine all package-lock.json and yarn.lock files to identify packages released after September 16, 2025. Use npm audit and static analysis tools to flag unexpected code changes or additional postinstall scripts.<\/li>\n<li>Rotate all developer credentials and revoke exposed GitHub PATs. Enforce phishing-resistant <a href=\"https:\/\/cybersecuritynews.com\/microsoft-multi-factor-authentication-issue\/\" target=\"_blank\" rel=\"noreferrer noopener\">multi-factor authentication (MFA)<\/a> on every developer account, particularly for GitHub and npm registry logins.<\/li>\n<li>Implement IDS\/IPS rules to monitor anomalous SSH and HTTPS connections. Block outbound traffic to known suspicious endpoints, including webhook.site domains, and audit firewall logs for unexpected DNS queries and egress to unfamiliar IP ranges.<\/li>\n<li>Remove unnecessary GitHub Apps and OAuth permissions. Enable branch protection rules, secret scanning, and Dependabot security updates. Audit webhooks and repository-level secrets for unauthorized changes.<\/li>\n<li>Pin dependencies to known safe versions published prior to September 16, 2025. Set strict semver ranges (e.g., \u201clodash\u201d: \u201c4.17.21\u201d) in package.json to prevent inadvertent updates to compromised releases.<\/li>\n<\/ul>\n<p>Enhanced vigilance across the development pipeline is crucial to stem the worm\u2019s propagation and safeguard the integrity of the npm ecosystem.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 94%,rgb(169,184,195) 100%)\"><strong>Follow us on <a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google News<\/a>, <a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a>, and <a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">X<\/a> for daily cybersecurity updates. <a href=\"https:\/\/cybersecuritynews.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Contact us<\/a> to feature your stories.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/cisa-shai-hulud-npm-attack\/\">CISA Warns of Shai-Hulud Self-Replicating Worm Compromised 500+ Packages in npm Registry<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Florence Nightingale<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/cisa-shai-hulud-npm-attack\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CISA Warns of Shai-Hulud Self-Replicating Worm Compromised 500+ Packages in npm Registry CISA has issued an urgent security Alert in response to a large-scale software supply chain attack on npmjs.com, the world\u2019s largest JavaScript package registry.\u00a0 A self-replicating worm, dubbed Shai-Hulud, has infiltrated more than 500 npm packages and injected malicious code that aggressively spreads [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63],"tags":[130],"class_list":["post-7162","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7162"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=7162"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7162\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=7162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=7162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=7162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}