Malware That Targets Wallet Files
Some families of malware exist specifically to find and exfiltrate wallet data. What they look for and where they find it.
Priya Raman · 2 min read
There are malware families written specifically for crypto users. Knowing what they look for explains which habits matter.
What they search for
Browser extension storage. Where software wallets keep encrypted keys. If the password is weak or also stolen, the key is recoverable.
Desktop wallet data directories. Standard locations, well known.
Text files and documents containing recovery phrases. Pattern matching for sequences of words from the standard word list. This is automated and fast.
Images containing text. Optical character recognition run over screenshots and photographs, looking for phrases. Several mobile families do exactly this.
Password manager databases. Where many people store phrases, believing it to be safe.
Clipboard contents. Both for capture and for substitution.
Browser session tokens. Which bypass two-factor entirely, because the session is already authenticated.
That last one deserves emphasis. A stolen session token means the attacker is logged into your exchange account without needing your password or your second factor.
Delivery
Pirated software and cracked applications. Malicious browser extensions. Fake versions of legitimate tools distributed through search advertisements. Attachments and repositories in targeted campaigns, particularly the fake job interview pattern.
Why the defences are structural
An infected machine can read anything that machine can reach. No amount of care changes that once the malware is running.
A hardware wallet. The key is never on the machine. Malware can see what you are doing and cannot extract what it needs.
Verification on the device screen. Defeats interface manipulation and clipboard substitution, because the device displays the destination independently.
Never storing a phrase digitally. Paper or steel. Not a photograph, not a note, not a password manager, not a document.
A dedicated machine or profile for crypto. Separate browser profile at minimum, separate device ideally, with nothing else installed.
Never running unfamiliar code on a machine with keys. The single measure that defeats the targeted campaigns.
What to do if a device is suspected
Assume anything reachable from it is compromised.
Move funds using a different device. Change every password, from a clean machine. Revoke sessions everywhere. Treat any wallet whose keys have been on that machine as permanently compromised, even after cleaning, and migrate to new keys.
Cleaning the malware does not undo what it already sent.
The working balance
An exchange account is reachable by session token theft rather than by key extraction, which is a different attack with different defences.
Hardware two-factor prevents a fresh login. A withdrawal allowlist with a delay limits what a stolen session can do. Both are available at venues such as platforms with a real complaints process and both are off by default, which is why the account section of any security checklist matters as much as the wallet section.
Move any remaining funds to a wallet with a newly generated seed phrase before anything else. Then revoke token approvals, and report the incident to your local authorities and the exchange involved. Do not pay anyone who promises to "recover" your coins. That is a second scam, aimed at victims of the first.