Clipboard Hijacking
Clipboard hijacking is a malware attack that monitors the clipboard and swaps a user's copied cryptocurrency wallet address with the attacker's address, diverting funds.
What Is Clipboard Hijacking?
Clipboard hijacking is a malware technique that replaces a copied crypto address with one that belongs to the attacker. The malware watches the clipboard of a computer or phone, recognises text that looks like an address and swaps it before the user pastes.
Addresses are easy to spot by their format: Bitcoin addresses start with 1, 3 or bc1, Ethereum addresses with 0x. Some variants pick, from a large stock of attacker addresses, the one whose first and last characters resemble the original, so a quick glance does not reveal the swap.
A hardware wallet helps, but only if it is used for the check. The device displays the address it is about to sign for, independently of the infected computer. If the user compares that address with the original source, such as the recipient's invoice or an exchange's deposit page opened on another device, the swap is caught. The device cannot know which address was intended: a user who confirms without comparing signs a payment to the attacker, and it cannot be reversed.
The attack also works in the other direction, when a user copies their own receive address. Showing the receive address on the device and comparing it with what was pasted closes that gap. Scanning a QR code avoids the clipboard altogether.
Real-World Examples
Example 1: Alice pastes a supplier's address into her wallet app. Her Blockstream Jade Classic shows the address for confirmation; the characters in the middle differ from the invoice, and she cancels the payment.
Example 2: Bob wants to withdraw from an exchange to his own wallet and pastes his receive address into the withdrawal form. He compares the pasted text with the address shown on his hardware wallet, sees that it is different and does not submit the withdrawal.
Frequently Asked Questions
Can my hardware wallet detect that a pasted address was swapped?
No. The device shows the address it is about to sign for, independently of the infected computer, but it cannot know which address you intended. The swap is caught only if you compare that address with the original source, such as the invoice or a deposit page opened on another device. A confirmed payment cannot be reversed.
Is checking the first and last characters of an address enough?
No. Some variants of the malware pick, from a large stock of attacker addresses, one whose first and last characters resemble the original, so a quick glance does not reveal the swap. Compare the full address, including the characters in the middle.
How do I protect my own receive address when withdrawing from an exchange?
The attack also works when you copy your own address. Show the receive address on the hardware wallet and compare it with what was pasted into the withdrawal form before submitting. Scanning a QR code avoids the clipboard altogether.
Ready to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.