Rogue NuGet Package Poses as Tracer.Fody, Steals Cryptocurrency Wallet Data
研究人员发现一个恶意NuGet包“Tracer.Fody.NLog”,模仿了合法库及其作者,用于窃取加密货币钱包数据。该包已存在六年,下载量超2000次。攻击者通过拼写错误和西里尔字母等手段逃避审查,并将数据传送到俄罗斯服务器。这种威胁可能针对其他常见.NET库。 2025-12-16 15:39:0 Author: thehackernews.com(查看原文) 阅读量:0 收藏

Cybersecurity / Cryptocurrency

Cybersecurity researchers have discovered a new malicious NuGet package that typosquats and impersonates the popular .NET tracing library and its author to sneak in a cryptocurrency wallet stealer.

The malicious package, named "Tracer.Fody.NLog," remained on the repository for nearly six years. It was published by a user named "csnemess" on February 26, 2020. It masquerades as "Tracer.Fody," which is maintained by "csnemes." The package continues to remain available as of writing, and has been downloaded at least 2,000 times, out of which 19 took place over the last six weeks for version 3.2.4.

Cybersecurity

"It presents itself as a standard .NET tracing integration but in reality functions as a cryptocurrency wallet stealer," Socket security researcher Kirill Boychenko said. "Inside the malicious package, the embedded Tracer.Fody.dll scans the default Stratis wallet directory, reads *.wallet.json files, extracts wallet data, and exfiltrates it together with the wallet password to threat actor-controlled infrastructure in Russia at 176.113.82[.]163."

The software supply chain security company said the threat leveraged a number of tactics that allowed it to elude casual review, including mimicking the legitimate maintainer by using a name that differs by a single letter ("csnemes" vs. "csnemess"), using Cyrillic lookalike characters in the source code, and hiding the malicious routine within a generic helper function ("Guard.NotNull") that's used during regular program execution.

Once a project references the malicious package, it activates its behavior by scanning the default Stratis wallet directory on Windows ("%APPDATA%\\StratisNode\\stratis\\StratisMain"), reads *.wallet.json files and in-memory passwords, and exfiltrates them to the Russian-hosted IP address.

"All exceptions are silently caught, so even if the exfiltration fails, the host application continues to run without any visible error while successful calls quietly leak wallet data to the threat actor's infrastructure," Boychenko said.

Cybersecurity

Socket said the same IP address was previously put to use in December 2023 in connection with another NuGet impersonation attack in which the threat actor published a package named "Cleary.AsyncExtensions" under the alias "stevencleary" and incorporated functionality to siphon wallet seed phrases. The package was so-called to disguise itself as the AsyncEx NuGet library.

The findings once illustrate how malicious typosquats mirroring legitimate tools can stealthily operate without attracting any attention across the open-source repository ecosystems.

"Defenders should expect to see similar activity and follow-on implants that extend this pattern," Socket said. "Likely targets include other logging and tracing integrations, argument validation libraries, and utility packages that are common in .NET projects."

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


文章来源: https://thehackernews.com/2025/12/rogue-nuget-package-poses-as-tracerfody.html
如有侵权请联系:admin#unsafe.sh