{"id":7221,"date":"2025-09-26T10:03:33","date_gmt":"2025-09-26T10:03:33","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/09\/26\/new-malicious-rust-crates-impersonating-fast_log-to-steal-solana-and-ethereum-wallet-keys\/"},"modified":"2025-09-26T10:03:33","modified_gmt":"2025-09-26T10:03:33","slug":"new-malicious-rust-crates-impersonating-fast_log-to-steal-solana-and-ethereum-wallet-keys","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/09\/26\/new-malicious-rust-crates-impersonating-fast_log-to-steal-solana-and-ethereum-wallet-keys\/","title":{"rendered":"New Malicious Rust Crates Impersonating fast_log to Steal Solana and Ethereum Wallet Keys"},"content":{"rendered":"<p>    New Malicious Rust Crates Impersonating fast_log to Steal Solana and Ethereum Wallet Keys<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>Cybercriminals have launched a sophisticated supply chain attack targeting cryptocurrency developers through malicious Rust crates designed to steal digital wallet keys.<\/p>\n<p>Two fraudulent packages, faster_log and async_println, have infiltrated the Rust package registry by impersonating the legitimate fast_log logging library, embedding malicious code that scans source files for Solana and Ethereum private keys before exfiltrating them to attacker-controlled servers.<\/p>\n<p>The malicious crates were published on May 25, 2025, under the aliases rustguruman and dumbnbased, accumulating 8,424 combined downloads before their discovery.<\/p>\n<p>These packages maintained functional logging capabilities to evade detection while secretly harvesting cryptocurrency credentials from developers\u2019 source code and project files.<\/p>\n<p>The attackers employed typosquatting techniques, copying the original fast_log\u2019s README documentation and repository metadata to create convincing imposters that could pass casual review processes.<\/p>\n<p>Socket.dev analysts <a href=\"https:\/\/socket.dev\/blog\/two-malicious-rust-crates-impersonate-popular-logger-to-steal-wallet-keys\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">identified<\/a> the malicious packages during routine threat monitoring, discovering their sophisticated credential theft mechanisms.<\/p>\n<p>The researchers found that both crates implemented identical exfiltration workflows, scanning for three specific patterns: Ethereum private keys formatted as 64-character hexadecimal strings with 0x prefixes, Base58-encoded Solana addresses and keys ranging from 32 to 44 characters, and bracketed byte arrays that could contain encoded key material.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjTt67s56ioXCYzu7GKWL2oTOIRGN0VWW2hZLcFtUDW41XOLJmuAyo1YgZAPQNox_f0gmsZAcO7Uwi-CtmXITk4rmUflj7y6c8ceOfnebNcwQ5q6994BHlvadkS_vU1OXBLJTIp4SZHC7m3RIdQnYXlQ-HSfcMZ17anXJZ79eu8KAbxxwWGgIK5OwL4cvQ\/s16000\/Center%2520shows%2520the%2520legitimate%2520fast_log%2C%2520while%2520left%2520%28faster_log%29%2520and%2520right%2520%28async_println%29%2520are%2520malicious%2520%28Source%2520-%2520Socket.dev%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Center shows the legitimate fast_log, while left (faster_log) and right (async_println) are malicious (Source \u2013 Socket.dev)<\/figcaption><\/figure>\n<\/div>\n<p>Upon detection of any matching patterns, the <a href=\"https:\/\/cybersecuritynews.com\/malware-analysis\/\" target=\"_blank\" rel=\"noreferrer noopener\">malware<\/a> immediately transmits the stolen credentials to a hardcoded command and control endpoint hosted at mainnet.solana-rpc-pool.workers.dev, cleverly disguised to resemble legitimate Solana RPC infrastructure.<\/p>\n<p>The attack vector exploits developer trust in package repositories, demonstrating how minimal code modifications can create significant security risks.<\/p>\n<p>The threat actors maintained the original logging functionality while embedding their credential harvesting routines, ensuring the packages would function as expected during initial testing and integration phases.<\/p>\n<p>This approach allowed the malicious code to operate undetected within development environments and continuous integration pipelines.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-technical-implementation-and-exfiltration-mechanism\"><strong>Technical Implementation and Exfiltration Mechanism<\/strong><\/h2>\n<p>The malware\u2019s core functionality revolves around a sophisticated scanning engine implemented in Rust that recursively processes project directories.<\/p>\n<p>The malicious code utilizes regular expressions to identify cryptocurrency-related secrets embedded in source files, focusing specifically on patterns commonly used by blockchain developers.<\/p>\n<pre class=\"wp-block-code\"><code>const HARDCODED_ENDPOINT: &amp;str = \"https:\/\/mainnet.solana-rpc-pool.workers.dev\/\";\n\npub struct FoundItem {\n    pub item_type: String,\n    pub value: String,\n    pub file_path: String,\n    pub line_number: usize,\n}<\/code><\/pre>\n<p>The implementation employs three targeted regular expressions for pattern matching. The first targets <a href=\"https:\/\/cybersecuritynews.com\/master-ethereum-trading\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ethereum<\/a> private keys using the pattern <code>\"0x[0-9a-fA-F]{64}\"<\/code> to capture 64-character hexadecimal strings prefixed with 0x, which represent standard Ethereum private key formats.<\/p>\n<p>The second regex <code>\"[1-9A-HJ-NP-Za-km-z]{32,44}\"<\/code> identifies Base58-encoded strings typical of Solana addresses and public keys, with length constraints matching Solana\u2019s cryptographic specifications.<\/p>\n<p>The third pattern captures bracketed byte arrays in formats like <code>[0x12, 0xAB, ...]<\/code> or <code>[1,2,...]<\/code> that could contain raw key bytes or embedded seed phrases.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgTq3FM82QxbjG1zHbOIFg9tmWqEuMffLTTFI9NxWws6qYkC4GvjlkP6ltsRXBSUN1fSagnHvUfgo9aqwACPuck8Le2VouVLDK-s6oWiBAtDBfgZKt8_s08TXudaAuAIu2hmHu_sY_hbV-6gGz5Xou9Qw86I60vhuRAQwTcpedWupMqRdsQxU-iNnBsVoM\/s16000\/Crates.io%2520search%2520for%2520fast_log%2520showed%2520the%2520legitimate%2520fast_log%2520alongside%2520two%2520imposters%2C%2520faster_log%2520and%2520async_println%2520%28Source%2520-%2520Socket.dev%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Crates.io search for fast_log showed the legitimate fast_log alongside two imposters, faster_log and async_println (Source \u2013 Socket.dev)<\/figcaption><\/figure>\n<\/div>\n<p>When the scanning function identifies matching patterns, it constructs detailed forensic records that include the exact file path, line number, matched value, and pattern type.<\/p>\n<p>This precise location tracking suggests the attackers may have intended to conduct follow-up operations or provide detailed intelligence to buyers of the stolen credentials.<\/p>\n<p>The malware batches multiple discoveries into JSON payloads before transmitting them via HTTP POST requests to the attacker\u2019s command and control infrastructure, utilizing standard HTTPS encryption to blend with legitimate network traffic.<\/p>\n<p>The exfiltration mechanism operates through a Rust reqwest client that sends structured data to the <a href=\"https:\/\/cybersecuritynews.com\/google-cloud-and-cloudflare-outages\/\" target=\"_blank\" rel=\"noreferrer noopener\">Cloudflare<\/a> Workers-hosted endpoint.<\/p>\n<p>This hosting choice provides the attackers with anonymity, scalability, and the ability to rapidly modify their collection infrastructure without maintaining dedicated servers.<\/p>\n<p>The malicious crates process files at application runtime rather than during compilation, ensuring the scanning occurs within developers\u2019 active working environments where cryptocurrency credentials are most likely to be present and accessible.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\"><strong>Follow us on\u00a0<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>,\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a>,\u00a0and\u00a0<a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">X<\/a>\u00a0to Get More Instant Updates<\/strong>,\u00a0<strong>Set CSN as a Preferred Source in\u00a0<a href=\"https:\/\/www.google.com\/preferences\/source?q=cybersecuritynews.com\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google<\/a>.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/new-malicious-rust-crates-impersonating-fast_log\/\">New Malicious Rust Crates Impersonating fast_log to Steal Solana and Ethereum Wallet Keys<\/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    Tushar Subhra Dutta<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/new-malicious-rust-crates-impersonating-fast_log\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>New Malicious Rust Crates Impersonating fast_log to Steal Solana and Ethereum Wallet Keys Cybercriminals have launched a sophisticated supply chain attack targeting cryptocurrency developers through malicious Rust crates designed to steal digital wallet keys. Two fraudulent packages, faster_log and async_println, have infiltrated the Rust package registry by impersonating the legitimate fast_log logging library, embedding malicious [&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,649],"tags":[130],"class_list":["post-7221","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-threats","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7221"}],"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=7221"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7221\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=7221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=7221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=7221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}