Sezga
English
Sign in

Security · · 6 min read

Address poisoning attacks: what they are and how to stay safe

Address poisoning is an attack in which a scammer generates a fake address whose first and last characters match an address you use often, then plants it in your transaction history through tiny or zero-value transactions. The goal is for you to copy that address from your history the next time you send funds, and pay the attacker without realizing it.

The attack does not take over your wallet, steal your keys or install anything on your device. A copy-and-paste habit does all the work. That is why people using hardware wallets can be targeted too.

How the attack works

Blockchain transactions are public, so an attacker can see who sends money to whom and how often without breaking into anything. A typical attack goes like this:

  1. The attacker monitors addresses that regularly make large stablecoin transfers.
  2. They pick an address the target sends to often, such as a deposit address at an exchange.
  3. They generate a new address with the same first and last characters. These are called "vanity" addresses and are found with special software that tries huge numbers of random addresses.
  4. They plant the fake address in the target's history. They often do this shortly after one of the target's real transfers, so the fake entry sits at the top of the list, right next to the genuine one.
  5. On their next transfer, the target opens their history, copies the familiar-looking address and sends. Blockchain transactions cannot be reversed.

How the fake address gets into your history

  • Zero-value transfer: Some token contracts record a zero-amount transfer made on someone else's behalf without requiring approval. The result is a 0-value transfer in your history going from you to the fake address, as if you had paid it before. You never signed that transaction.
  • Dust transfer: A tiny amount is sent to you from the fake address. It shows up in your history as a transaction from a familiar-looking address.
  • Fake token: A worthless token with the same name and symbol as a real stablecoin is used, with an amount chosen to mimic your genuine transfer.

The attack is not limited to Ethereum. On networks where fees are low and stablecoin traffic is heavy, sending these fake transactions in bulk is even cheaper for the attacker.

Why it works: shortened addresses

An Ethereum-compatible address consists of "0x" followed by 40 hexadecimal characters. To fit such a long string on screen, wallets and block explorers often show only the beginning and the end. And when people check an address, they usually look at the first and last few characters.

A hypothetical example:

Shown on screenFull address
Real deposit address0x7a3f…91c20x7a3f5c2e9b1d4f6a8c0e2b4d6f8a1c3e5b7d91c2
Attacker's address0x7a3f…91c20x7a3f0d8b2c6e1a9f4b7c3e5d0a2f8c6b1e4a91c2

The shortened versions are identical; the difference is only in the middle.

How hard is it for the attacker to produce that resemblance? Each hexadecimal character has 16 possible values, and every extra matched character multiplies the required attempts by 16:

Matched characters (start + end)Average number of attempts
2 + 2about 65,536
3 + 3about 16.8 million
4 + 4about 4.3 billion
5 + 5about 1.1 trillion

Matching four characters at each end is within reach with powerful hardware. The practical lesson is simple: checking only the ends is not enough, and checking the middle characters too makes the attacker's job exponentially harder.

A concrete scenario

Hypothetically, Aisha sends 20,000 USDT to her exchange deposit address every month. One month, a few minutes after her transfer, a 0 USDT transaction from her to 0x7a3f…91c2 appears in her history. She does not notice it. The next month, in a hurry, she opens her history, copies the familiar address at the top and sends 20,000 USDT. The address she copied belongs to the attacker, and the money does not come back.

Aisha's only "mistake" was using her transaction history as an address book instead of a trusted source.

How to protect yourself

  1. Never copy an address from your transaction history. Always take the recipient address from a trusted source: the exchange's deposit page, a verified message from the recipient or an address you saved yourself.
  2. Use an address book and whitelist. Save addresses you have verified once in your wallet's address book with a name. An exchange withdrawal whitelist allows withdrawals only to pre-approved addresses.
  3. Check the entire address. Compare the middle characters as well as the start and end, for example in groups of four.
  4. Be careful after a test transfer. Sending a small test first is a good habit, but attackers may plant a fake entry right after that test. When you send the main amount, take the address again from the same trusted source, not from your history.
  5. Use your hardware wallet's screen. When approving, compare the full address shown on the device with the address from your trusted source. The device will sign a wrong address too if you chose it.
  6. Hide spam transactions and don't interact with them. Many wallets and block explorers hide or flag zero-value and suspicious token transfers. Trying to sell or "claim" unknown tokens can open the door to other traps.

If funds went to the wrong address

Blockchain transactions cannot be reversed, but acting quickly can keep a few options open. Some stablecoin issuers can freeze addresses in certain circumstances. If the funds reached an exchange, contacting that exchange's support team and the relevant authorities may be an option. None of this guarantees recovery. Be wary, too, of anyone who promises to "recover your lost crypto" for a fee; such offers are often a second scam.

Key takeaways

  • Address poisoning plants a fake address that matches the start and end of a real one in your transaction history.
  • The fake address gets in through zero-value transfers, tiny dust amounts or fake tokens, none of which require your signature.
  • The attack exploits wallets that shorten addresses and people who check only the ends.
  • The most effective defense is never copying addresses from history, using an address book or whitelist, and checking the full address.
  • Funds sent to the wrong address usually cannot be recovered; prevention is far more reliable than looking for a fix afterwards.

The Sezga terminal

Live prices, liquidation feed, multilingual news, the Fed calendar, event memory and a paper-trading account on one screen. Access is by invitation.

Sign in

Related articles