Researchers Spot Modified Shai-Hulud Worm Testing Payload on npm Registry
嗯,用户让我帮忙总结一下这篇文章的内容,控制在一百个字以内,而且不需要特定的开头。首先,我需要仔细阅读文章,抓住主要信息。 文章讲的是网络安全研究人员发现了一个新的Shai Hulud恶意软件变种,通过npm包传播。这个包的名字是"@vietmoney/react-big-calendar",上传时间是2021年3月,最近更新是在2025年12月28日。下载次数不算太多,说明影响可能不大。 然后,文章提到这个新变种有了一些变化,比如文件名改成了“bun_installer.js”和“environment_source.js”,泄露秘密的GitHub仓库描述也变了。此外,还有其他改进,比如错误处理和操作系统相关的发布优化。 同时,文章还提到了另一个恶意包在Maven中央仓库的情况,伪装成合法的Jackson JSON库扩展,植入了多阶段攻击链,最终下载Cobalt Strike信标。这个包已经被下架了。 综合来看,用户的需求是快速了解文章的主要内容。我需要把这些关键点浓缩到100字以内。要确保包括新的Shai Hulud变种、传播方式、变化以及另一个恶意包的情况。 最后检查一下字数是否符合要求,并且语言要简洁明了。 </think> 研究人员发现了一个新的Shai Hulud恶意软件变种通过npm包传播,并伪装成合法库。该包名为"@vietmoney/react-big-calendar"于2021年上传近期更新后下载量有限。新变种对代码进行了混淆处理并引入了多项改进包括文件名变更和错误处理优化等。同时研究人员还发现了一个伪装成Jackson JSON库的恶意Maven包其内置了 Cobalt Strike 信标用于攻击。 2025-12-31 13:29:0 Author: thehackernews.com(查看原文) 阅读量:4 收藏

Cybersecurity researchers have disclosed details of what appears to be a new strain of Shai Hulud on the npm registry with slight modifications from the previous wave observed last month.

The npm package that embeds the novel Shai Hulud strain is "@vietmoney/react-big-calendar," which was uploaded to npm back in March 2021 by a user named "hoquocdat." It was updated for the first time on December 28, 2025, to version 0.26.2. The package has been downloaded 698 times since its initial publication. The latest version has been downloaded 197 times.

Aikido, which spotted the package, said it has not spotted any major spread or infections following the release of the package.

"This suggests we may have caught the attackers testing their payload," security researcher Charlie Eriksen said. "The differences in the code suggests that this was obfuscated again from the original source, not modified in place. This makes it highly unlikely to be a copy-cat, but was made by somebody who had access to the original source code for the worm."

The Shai-Hulud attack first came to light in September 2025, when trojanized npm packages were found stealing sensitive data like API keys, cloud credentials, and npm and GitHub tokens, and exfiltrating them to GitHub repositories using the pilfered tokens. In the second wave spotted in November 2025, the repositories contained the description "Sha1-Hulud: The Second Coming."

Cybersecurity

But the most important aspect of the campaign is its ability to weaponize the npm tokens to fetch 100 other most-downloaded packages associated with the developer, introduce the same malicious changes, and push them to npm, thereby expanding the scale of the supply chain compromise in a worm-like manner.

The new strain comes with noticeable changes -

  • The initial file is now called "bun_installer.js" and the main payload is referred to as "environment_source.js"
  • The GitHub repositories to which the secrets are leaked feature the description "Goldox-T3chs: Only Happy Girl."
  • The names of files that contain the secrets are: 3nvir0nm3nt.json, cl0vd.json, c9nt3nts.json, pigS3cr3ts.json, and actionsSecrets.json

Other important modifications include better error handling when TruffleHog's credential scanner times out, improved operating system-based package publishing, and tweaks to the order in which data is collected and saved.

Fake Jackson JSON Maven Package Drops Cobalt Strike Beacon

The development comes as the supply chain security company said it identified a malicious package ("org.fasterxml.jackson.core/jackson-databind") on Maven Central that poses as a legitimate Jackson JSON library extension ("com.fasterxml.jackson.core"), but incorporates a multi-stage attack chain that delivers platform-specific executables. The package has since been taken down.

Present within the Java Archive (JAR) file is heavily obfuscated code that kicks into action once an unsuspecting developer adds the malicious dependency to their "pom.xml" file.

"When the Spring Boot application starts, Spring scans for @Configuration classes and finds JacksonSpringAutoConfiguration," Eriksen said. "The @ConditionalOnClass({ApplicationRunner.class}) check passes (ApplicationRunner is always present in Spring Boot), so Spring registers the class as a bean. The malware's ApplicationRunner is invoked automatically after the application context loads. No explicit calls required."

The malware then looks for a file named ".idea.pid" in the working directory. The choice of the file name is intentional and is designed to blend in with IntelliJ IDEA project files. Should such a file exist, it's a signal to the malware that an instance of itself is already running, causing it to silently exit.

In the next step, the malware proceeds to check the operating system and contact an external server ("m.fasterxml[.]org:51211") to fetch an encrypted response containing URLs to a payload to be downloaded based on the operating system. The payload is a Cobalt Strike beacon, a legitimate adversary simulation tool that can be abused for post-exploitation and command-and-control.

Cybersecurity

On Windows, it's configured to download and execute a file called "svchosts.exe" from "103.127.243[.]82:8000," while a payload referred to as "update" is downloaded from the same server for Apple macOS systems.

Further analysis has revealed that the typosquatted domain fasterxml[.]org was registered via GoDaddy on December 17, 2025, merely a week before the malicious Maven package was detected.

"This attack exploited a specific blind spot: TLD-style prefix swaps in Java's reverse-domain namespace convention," Eriksen said. "The legitimate Jackson library uses com.fasterxml.jackson.core, while the malicious package used org.fasterxml.jackson.core."

The problem, Aikido said, stems from Maven Central's inability to detect copycat packages that employ similar prefixes as their legitimate counterparts to deceive developers into downloading them. It's also recommended that the package repository maintainers consider maintaining a list of high-value namespaces and subject any package published under similar-looking namespaces to additional verification to ensure they are legitimate.

Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.


文章来源: https://thehackernews.com/2025/12/researchers-spot-modified-shai-hulud.html
如有侵权请联系:admin#unsafe.sh