Malicious Rust Crates Steal Solana and Ethereum Keys — 8,424 Downloads Confirmed
研究人员发现两个恶意Rust包伪装成fast_log库,窃取Solana和Ethereum钱包密钥。这些包通过扫描源代码并发送私钥到C2服务器进行攻击。Crates.io已移除相关包并禁用账户以应对威胁。 2025-9-25 07:59:0 Author: thehackernews.com(查看原文) 阅读量:7 收藏

Software Security / Malware

Cybersecurity researchers have discovered two malicious Rust crates impersonating a legitimate library called fast_log to steal Solana and Ethereum wallet keys from source code.

The crates, named faster_log and async_println, were published by the threat actor under the alias rustguruman and dumbnbased on May 25, 2025, amassing 8,424 downloads in total, according to software supply chain security company Socket.

"The crates include working logging code for cover and embed routines that scan source files for Solana and Ethereum private keys, then exfiltrate matches via HTTP POST to a hardcoded command and control (C2) endpoint," security researcher Kirill Boychenko said.

Following responsible disclosure, the maintainers of crates.io have taken steps to remove the Rust packages and disable the two accounts. It has also preserved logs of the threat actor-operated users along with the malicious crates for further analysis.

"The malicious code was executed at runtime, when running or testing a project depending on them," Crates.io's Walter Pearce said. "Notably, they did not execute any malicious code at build time. Except for their malicious payload, these crates copied the source code, features, and documentation of legitimate crates, using a similar name to them."

DFIR Retainer Services

The typosquatting attack, as detailed by Socket, involved the threat actors retaining the logging functionality of the actual library, while introducing malicious code changes during a log packing operation that recursively searched Rust files (*.rs) in a directory for Ethereum and Solana private keys and bracketed byte arrays and exfiltrate them to an Cloudflare Workers domain ("mainnet.solana-rpc-pool.workers[.]dev").

Besides copying fast_log's README and setting the bogus crates' repository field to the real GitHub project, the use of "mainnet.solana-rpc-pool.workers[.]dev" is an attempt to mimic Solana's Mainnet beta RPC endpoint "api.mainnet-beta.solana[.]com."

According to crates.io, the two crates did not have any dependent downstream crates, nor did the users publish other crates on the Rust package registry. The GitHub accounts linked to the crates.io publisher accounts remain accessible as of writing. While the GitHub account dumbnbased was created on May 27, 2023, rustguruman did not exist until May 25, 2025.

"This campaign shows how minimal code and simple deception can create a supply chain risk," Boychenko said. "A functional logger with a familiar name, copied design, and README can pass casual review, while a small routine posts private wallet keys to a threat actor-controlled C2 endpoint. Unfortunately, that is enough to reach developer laptops and CI."

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


文章来源: https://thehackernews.com/2025/09/malicious-rust-crates-steal-solana-and.html
如有侵权请联系:admin#unsafe.sh