DEX front-end risk: the interface is the attack surface
The contracts on a DEX get audited. The website that talks to them does not. Most DEX losses that make headlines start not with a protocol bug but with the page you loaded: a cloned domain, a stale redirect, or an approval screen that asked for more than the trade needed.
The interface is a moving target
A DEX front end is ordinary web infrastructure: a domain, a hosting provider, a build pipeline, and a list of contract addresses baked into JavaScript. Any of those can change without the protocol changing.
The attack paths:
- Cloned domains with one-character differences, bought as ad targets
- Compromised hosting or a poisoned dependency in the build
- Redirects from old links that quietly point somewhere new
- Search ads that rank a fake interface above the real one
The contracts you sign against are the same in all of these. What changes is what the page tells your wallet the signature means.
Approval screens are the real risk
A swap needs one signature. An approval grants a token contract the right to move tokens from your wallet, sometimes with no cap. Phishing front ends love approvals because the drain happens later, silently, from a transaction you did not sign.
Habits that shrink the surface:
- Read what you are approving: token, spender, and amount. "Unlimited" should be a choice, not a default
- Prefer interfaces that let you set an approval amount instead of max
- Revoke stale approvals on a schedule; the tools exist and they are free
- Keep a spending wallet separate from the wallet that holds your stack
The domain checks that matter
Type the domain, do not click the ad. Check for the exact spelling, including hyphens and TLD. Bookmark the real interface and use the bookmark.
Cross-check through a second path: the protocol's own documentation, a aggregator listing, or the chain's explorer pointing at the contract. If the interface and the explorer disagree about the contract address, stop.
When something feels off
If a page asks for an approval you did not expect, a connection you did not start, or a signature with no visible payload, close the tab. The cost of reloading the real site is thirty seconds. The cost of the wrong signature is the wallet.
The takeaway
The protocol is code. The interface is a website, and websites get bought, cloned, and poisoned. Verify the domain, read the approval, cap the amount, and keep approvals revocable. The interface is where the attack lives, so treat it like one.