ADVERTISEMENT

Microsoft warns of USB malware that drains crypto wallets

Infection spreads through USB drives, classic.

Published Jun 22, 2026 01:41 pm
Photo by Ed Hardie on Unsplash
Photo by Ed Hardie on Unsplash

Cybersecurity researchers at Microsoft have uncovered a sophisticated piece of malware that spreads through USB drives, intercepts cryptocurrency wallet data, and uses the Tor network to secretly transmit stolen assets to attackers.

The malware, officially tracked as Trojan:Win32/CryptoBandits.A and colloquially dubbed "Crypto Clipper," has been actively targeting Windows users since at least February 2026, according to a threat intelligence report published by Microsoft on June 17, 2026.

What is the CryptoBandits malware?

CryptoBandits is a dual-component threat: one part is a self-propagating worm that spreads between devices via USB drives, and the other is a cryptocurrency clipper and stealer that harvests wallet credentials and silently redirects outgoing transactions to attacker-controlled addresses.

What makes this campaign particularly dangerous is its operational sophistication. Rather than relying on a traditional installer or a static, IP-based command-and-control (C2) server, both of which are relatively easy for security tools to flag, CryptoBandits deploys a portable Tor client on the infected machine and routes all communications through a local SOCKS5 proxy to a hidden-service C2 server. This makes the malware's network traffic extremely difficult to trace or block.

How the infection spreads

The attack begins with a malicious Windows Shortcut (.lnk) file stored on an infected USB drive. When a victim plugs in the drive, what they see appears to be their normal collection of documents. In reality, the originals have been quietly hidden, and in their place are identically named shortcut files that execute the malware upon opening.

Once triggered, the worm component would:

Check whether the machine is already infected, downloading the full payload only if it isn't.

Scan connected USB drives for common document types, hides the originals and replaces them with new malicious .lnk shortcuts bearing the same filenames.

Create scheduled tasks to ensure both the worm and stealer components persist on the system across reboots.

Exclude its own file-based payloads from Microsoft Defender scanning to avoid immediate removal.

This method of propagation is deliberately low-profile: a user who lends a USB drive to a colleague, or who plugs a drive into a shared or public computer, can unknowingly carry the infection to entirely new networks. In short, it's the classic way how your laptop got infected during college (You know if you know).

How CryptoBandits steals cryptocurrency

Once embedded on a system, the clipper component gets to work. It polls the Windows clipboard approximately every 500 milliseconds, scanning copied content for patterns that match cryptocurrency wallet addresses and seed phrases.

The theft operates on two levels. First, the malware exfiltrates any detected wallet credentials, seed phrases, private keys, directly to the attacker's Tor-hosted C2 server. Second, and more insidiously, it performs wallet address substitution: when a user copies a recipient address to send a crypto payment, the malware silently replaces it with an attacker-controlled address before the user pastes it. The funds are then transferred directly to the attacker, with no visible cue to the victim.

To add context for attackers, the stealer also captures five screenshots taken ten seconds apart whenever sensitive clipboard data is detected, giving operators a visual snapshot of what the victim was doing, open browser tabs, financial dashboards, exchange login screens, at the moment of compromise.

Remote access and adaptability

Beyond theft, CryptoBandits includes a remote code execution capability via a command called EVAL, which allows the C2 operators to push and run arbitrary code on any infected machine. This transforms what began as a financial stealer into a general-purpose remote access tool (RAT), enabling attackers to adapt the malware's behavior after deployment without requiring a full reinfection.

The malware also incorporates several anti-analysis measures. The initial installer is a Python-based executable obfuscated with PyArmor and packaged with PyInstaller, complicating static analysis. Its JavaScript payloads — dropped to C:\\Users\\Public\\Documents — use a separate dual-layer obfuscation scheme. As an additional precaution, the malware checks for running processes and exits immediately if Task Manager is detected, making it harder to observe during live analysis.

What this means for crypto users

Malware infections through flashdrives were fading as cloud storage became the norm. CryptoBandits represents a sharp reminder that physical media remains a viable attack vector, especially because it exploits behaviors that feel routine and safe, like sharing a USB drive with a trusted colleague.

For cryptocurrency holders in particular, the risks are severe. Unlike a stolen password, a transferred cryptocurrency transaction is essentially irreversible. If an attacker substitutes a wallet address before a payment is sent, there is typically no way to recover the funds.

How to protect yourself

Microsoft has published indicators of compromise (SHA-256 hashes), MITRE ATT&CK technique mappings, and KQL hunting queries to help security teams identify existing infections. The company recommends:

Disable AutoRun/AutoPlay on Windows to prevent automatic execution from USB media.

Block .lnk file execution from removable drives via Group Policy or endpoint protection rules.

Restrict Windows Script Host (WSH) to prevent script-based payloads from running without explicit authorization.

Monitor for suspicious localhost:9050 connections, which indicate SOCKS5/Tor proxy usage — a strong behavioral indicator of this malware.

Audit networks against published indicators of compromise from Microsoft's Security Blog.

Microsoft Defender currently detects the malware family. Microsoft's Defender Experts team assisted in the investigation, though the company has not yet attributed the campaign to a specific threat actor or estimated the total number of infections.

Related Tags

Windows Malware Crypto
ADVERTISEMENT
.most-popular .layout-ratio{ padding-bottom: 79.13%; } @media (min-width: 768px) and (max-width: 1024px) { .widget-title { font-size: 15px !important; } }

{{ articles_filter_1561_widget.title }}

.most-popular .layout-ratio{ padding-bottom: 79.13%; } @media (min-width: 768px) and (max-width: 1024px) { .widget-title { font-size: 15px !important; } }

{{ static_articles_1562_widget.title }}

.most-popular .layout-ratio{ padding-bottom: 79.13%; } @media (min-width: 768px) and (max-width: 1024px) { .widget-title { font-size: 15px !important; } }

{{ articles_filter_1563_widget.title }}

{{ articles_filter_1564_widget.title }}

.mb-article-details { position: relative; } .mb-article-details .article-body-preview, .mb-article-details .article-body-summary{ font-size: 17px; line-height: 30px; font-family: "Libre Caslon Text", serif; color: #000; } .mb-article-details .article-body-preview iframe , .mb-article-details .article-body-summary iframe{ width: 100%; margin: auto; } .read-more-background { background: linear-gradient(180deg, color(display-p3 1.000 1.000 1.000 / 0) 13.75%, color(display-p3 1.000 1.000 1.000 / 0.8) 30.79%, color(display-p3 1.000 1.000 1.000) 72.5%); position: absolute; height: 200px; width: 100%; bottom: 0; display: flex; justify-content: center; align-items: center; padding: 0; } .read-more-background a{ color: #000; } .read-more-btn { padding: 17px 45px; font-family: Inter; font-weight: 700; font-size: 18px; line-height: 16px; text-align: center; vertical-align: middle; border: 1px solid black; background-color: white; } .hidden { display: none; }
function initializeAllSwipers() { // Get all hidden inputs with cms_article_id document.querySelectorAll('[id^="cms_article_id_"]').forEach(function (input) { const cmsArticleId = input.value; const articleSelector = '#article-' + cmsArticleId + ' .body_images'; const swiperElement = document.querySelector(articleSelector); if (swiperElement && !swiperElement.classList.contains('swiper-initialized')) { new Swiper(articleSelector, { loop: true, pagination: false, navigation: { nextEl: '#article-' + cmsArticleId + ' .swiper-button-next', prevEl: '#article-' + cmsArticleId + ' .swiper-button-prev', }, }); } }); } setTimeout(initializeAllSwipers, 3000); const intersectionObserver = new IntersectionObserver( (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { const newUrl = entry.target.getAttribute("data-url"); if (newUrl) { history.pushState(null, null, newUrl); let article = entry.target; // Extract metadata const author = article.querySelector('.author-section').textContent.replace('By', '').trim(); const section = article.querySelector('.section-info ').textContent.replace(' ', ' '); const title = article.querySelector('.article-title h1').textContent; // Parse URL for Chartbeat path format const parsedUrl = new URL(newUrl, window.location.origin); const cleanUrl = parsedUrl.host + parsedUrl.pathname; // Update Chartbeat configuration if (typeof window._sf_async_config !== 'undefined') { window._sf_async_config.path = cleanUrl; window._sf_async_config.sections = section; window._sf_async_config.authors = author; } // Track virtual page view with Chartbeat if (typeof pSUPERFLY !== 'undefined' && typeof pSUPERFLY.virtualPage === 'function') { try { pSUPERFLY.virtualPage({ path: cleanUrl, title: title, sections: section, authors: author }); } catch (error) { console.error('ping error', error); } } // Optional: Update document title if (title && title !== document.title) { document.title = title; } } } }); }, { threshold: 0.1 } ); function showArticleBody(button) { const article = button.closest("article"); const summary = article.querySelector(".article-body-summary"); const body = article.querySelector(".article-body-preview"); const readMoreSection = article.querySelector(".read-more-background"); // Hide summary and read-more section summary.style.display = "none"; readMoreSection.style.display = "none"; // Show the full article body body.classList.remove("hidden"); } document.addEventListener("DOMContentLoaded", () => { let loadCount = 0; // Track how many times articles are loaded const offset = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; // Offset values const currentUrl = window.location.pathname.substring(1); let isLoading = false; // Prevent multiple calls if (!currentUrl) { console.log("Current URL is invalid."); return; } const sentinel = document.getElementById("load-more-sentinel"); if (!sentinel) { console.log("Sentinel element not found."); return; } function isSentinelVisible() { const rect = sentinel.getBoundingClientRect(); return ( rect.top < window.innerHeight && rect.bottom >= 0 ); } function onScroll() { if (isLoading) return; if (isSentinelVisible()) { if (loadCount >= offset.length) { console.log("Maximum load attempts reached."); window.removeEventListener("scroll", onScroll); return; } isLoading = true; const currentOffset = offset[loadCount]; window.loadMoreItems().then(() => { let article = document.querySelector('#widget_1690 > div:nth-last-of-type(2) article'); intersectionObserver.observe(article) loadCount++; }).catch(error => { console.error("Error loading more items:", error); }).finally(() => { isLoading = false; }); } } window.addEventListener("scroll", onScroll); });

Sign up by email to receive news.