Dev.to Security 🔐 Cybersecurity 👁 0 📖 1 min read

You Checked the First Four and Last Four Characters and Sent the Money to Someone Else

The address was forty two characters long. Nobody reads forty two characters. So you did what everyone does. You copied it from your recent transactions, checked the start, checked the end, and pressed send. The star

The address
was forty two characters long.

Nobody reads
forty two characters.

So you did
what everyone does.

You copied it
from your recent transactions,
checked the start,
checked the end,
and pressed send.

The start matched.

The end matched.

The middle
belonged to somebody else.

This is not a hypothetical.

It is called
address poisoning.

An attacker watches
who you send money to.

Then they generate an address
with the same first characters
and the same last characters,
which a computer can do
in minutes.

They send you
a tiny transaction from it,
or one worth nothing at all.

Now it sits
in your history,
right next to the real one,
looking the same
in the only places
you look.

In May 2024
one wallet sent
about sixty eight million dollars
of wrapped bitcoin
to an address like that.

Most of it was later returned.

Most victims
are not that lucky.

Here is the focus part.

Your attention
does not read long strings.

It samples them.

The edges are easy to find,
so the edges are what you check.

Everyone's eyes do this,
which means
attackers can plan for it.

The same shortcut
is in every habit you have
with long identifiers.

Commit hashes.

Download checksums.

Account numbers.

API keys.

You glance at both ends
and feel that you have checked.

You have checked
eight characters
out of forty.

So stop asking your eyes
to do a machine's job.

For downloads,
let the tool compare:

sha256sum -c app.sha256

For payments,
save the address once,
verified slowly,
in an address book,
and never copy one
from your history again.

For anything large,
send a small test amount first
and confirm it arrived
by a second channel.

When you must compare by eye,
compare the middle.

Out loud.

In groups of four.

Checking the ends
is not checking.

It is recognising,
and recognition
is exactly
what a good forgery
is made to pass.

– Serguey Asael Shinder

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.