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

How to check that a crypto swap service can't send your coins somewhere else

Most instant swap sites run on trust. You paste your address, send coins to a deposit address, and the swapped coins come back to the address you typed. Almost always that's exactly what happens. But "almost always" hide

Most instant swap sites run on trust. You paste your address, send coins to a deposit address, and the swapped coins come back to the address you typed. Almost always that's exactly what happens. But "almost always" hides a few quiet ways for it to go wrong, and you usually find out only when the order says completed and your wallet is still empty.

This article covers what can actually go wrong, a checklist that works on any swap service, and what real proof looks like, as opposed to a promise. To be upfront: we run a swap service, NoveraSwap, and the last section shows how we handle this. Everything before that applies whichever service you use.

Four ways your coins end up somewhere else

1. Clipboard malware. You copy your address, and malware on your computer quietly replaces it with one that looks similar. The swap site does nothing wrong; it pays exactly the address it was given. This is by far the most common case.

2. A fake copy of the site. A look-alike domain, a sponsored search result, or a "mirror" link in a chat shows a perfect copy of the real interface, with a deposit address that belongs to someone else.

3. A compromised or dishonest service. Someone with access to the service's servers, database or admin panel changes the payout address of open orders. From the outside you can't tell. Everything looks normal until the coins arrive somewhere you never chose.

4. Fake support. Someone messages you on Telegram or Discord, says your order is stuck, and asks you to "confirm" a new address or send the coins again.

You can protect yourself against 1, 2 and 4 with good habits. Number 3 is different: an honest service and a compromised one look identical from the outside, so habits don't help. Only the service can give you a way to check.

A checklist for any swap service

  • Arrive at the site the same way every time: a bookmark, or the address typed by hand. Not a search ad, and not a link someone sent you.
  • After pasting your receiving address, compare the first and last six characters with what your wallet shows. Then do it once more on the order page after the order is created. It takes ten seconds and beats clipboard malware.
  • Give a refund address if you're asked for one, and make it a wallet you control, not an exchange account. If a swap fails, that's where your coins go back.
  • Send a small amount first to any service you haven't used before.
  • Real support doesn't message you first. If someone contacts you about an order without you asking, treat it as a scam, however official it looks.
  • Look for a status page with the service's official addresses: its domains, onion address and support channels. Scam copies rarely bother keeping those up to date.

None of this protects you from case 3. For that, the service has to prove something rather than promise it.

What proof looks like

The question to ask is simple: once I've created my order, can anyone at this company, or anyone who breaks into it, change where my coins are paid?

A sentence in an FAQ doesn't answer that. What does:

  1. The destination is fixed when the order is created and signed with a key the main servers don't hold. If the web servers and the database can't produce that signature, a break-in there can't quietly redirect an order.
  2. You get the signed record, a receipt, and can check the signature yourself, without asking the service whether it's fine.
  3. The key you check against isn't just whatever the server sends you today. It has to trace back to something fixed, such as a root key built into the site, so a compromised server can't hand you a fake key along with a fake receipt.

If a service can show you all three, then a change to your destination after you created the order would be detectable by you, not just by them.

It's still worth being clear about the limits. A signature can't help if your own computer swaps the address before you create the order (back to the checklist), and it's only as strong as the place the signing key is kept.

How we do it at NoveraSwap

When you create an order, a separate signing service that runs on its own machine records your receiving address and signs a receipt for it. It won't sign a route that pays anywhere else, and the website won't show you a deposit address without a valid receipt. Changing the address afterwards needs your order secret, which only you hold. Our staff have no field where they could type in a payout address.

To check it yourself:

  1. Create an order. The deposit card shows where your coins will go, plus a short verification code.
  2. Copy the receipt from the order page.
  3. Open noveraswap.com/verify and paste it. The check runs entirely in your browser; once the signing keys are loaded, it works even with the internet switched off.
  4. You should see Valid receipt, the destination it covers, and a line confirming that the deposit address belongs to that receipt. If anything was changed, it says what: altered contents, a key that wasn't valid at that time, or a signature that doesn't match.

The signing keys are checked against a root key built into the website, and our status page lists their fingerprints so you can compare them.

Our security page goes through what a break-in of each part could and couldn't do, including the uncomfortable case: if the signing service itself were broken into, orders created during that time could get false receipts until its key is replaced. We'd rather you know that than assume it can't happen.

The short version

Use the checklist with every swap service. And when a service tells you it can't redirect your funds, ask how you can check that for yourself. If the answer is "trust us", that's an answer too.

NoveraSwap is a private swap service: no account, we never ask for ID, we never store your IP address, and we never hold your coins on the normal path. It also works in Tor Browser and has an onion mirror. noveraswap.com

📰 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.