How address poisoning works
Transfers on a blockchain are public. The attacker watches for wallets that send money to the same address again and again, an exchange deposit address or a friend's wallet, and then:
- generates an address whose first and last characters match that address. Brute-forcing a handful of characters costs only computer time;
- sends you a tiny amount of GRAM, or a fake USD₮ that is worth nothing, from the look-alike;
- waits. Wallets shorten addresses to something like UQBx…k9Pa, so in your history the fake looks exactly like the real one.
The next time you copy "the usual address" from your history, the money goes to the attacker. Nothing was hacked and no key was stolen: you signed the transfer yourself. That is why the trick is called poisoning: it plants a bad entry in a list you trust.
Why it works on TON
A TON address is usually shown in its user-friendly form: 48 characters of base64, which humans cannot compare at a glance. Several TON details make it worse:
- One wallet, several spellings. The same account can be written as bounceable (EQ…) or non-bounceable (UQ…). The first byte of the address holds those flags and the last two bytes are a checksum, so the two spellings differ at both ends while the account stays the same. People get used to addresses that are "almost the same", which is exactly what the attacker needs.
- The checksum catches typos, not fakes. A look-alike address is a valid address with its own correct checksum. The wallet will send to it without a warning.
- Comments ride along. A transfer on TON can carry a text comment, so poisoning transfers often come with "your reward" or a link, which turns them into Phishing as well.
- Fake tokens play along. The attacker can send a jetton that calls itself USD₮ but has its own contract. In the history it looks like a real dollar transfer from a familiar address; see Fake token.
How to check an address with DYOR
The raw form of a TON address, 0: followed by 64 hex characters, is the account itself, with no flags and no checksum. Two spellings of one wallet have the same raw form; a look-alike never does.
Paste an address into DYOR's address converter and it shows all five forms side by side: raw, bounceable, non-bounceable and their testnet variants. Do it for the address you are about to send to and for the one from the real source, and compare the raw forms. If they differ anywhere, they are different accounts, however similar the ends look. When DYOR tracks a token at an address, the converter says which one.
To look into a suspicious incoming transfer, paste its hash into the hash converter: it gives the hash in hex, base64 and base64url and a link to the transaction in an explorer.
How to avoid it
- Copy an address from its source, the exchange's deposit page, your contact's message or your wallet's address book, never from the transaction history.
- Compare the whole address, or at least its middle. Attackers match the start and the end because that is what wallets show.
- Ignore unexpected tiny incoming transfers and tokens you did not ask for. Do not send them back and do not open links in their comments.
- For an exchange deposit, check the Memo as well: without the right one, even a correct address may not credit your account.