DNS Hijacking and dApp Frontend Substitution

DNS hijacking swaps a dApp's real frontend for a malicious copy while the legitimate domain stays in the address bar.

SECURITY5 min readBy AlgoSys Editorial TeamPublished Apr 24, 2026Updated Nov 28, 2026
Contents

DNS hijacking (interception of domain name resolution) targeting dApp frontends remains one of the most dangerous threats in the decentralized application ecosystem. The point of the attack is that the attacker interferes with DNS (the domain name system that translates a site address into a server IP address) and diverts the user from the real dApp site to a malicious copy of it. This vector became especially painful after incidents like the Curve Finance DNS hijack in August 2022, where users lost about $570,000 through a spoofed frontend. Those who work with high-value DeFi protocols, NFT marketplaces, and other critical on-chain services are the primary targets.

It is important to understand the key characteristic of this attack. The protocol's smart contracts can remain completely untouched. What is substituted is not the blockchain but the web page through which you communicate with it. This is why the entire weight of security falls on what exactly your wallet is being asked to sign.

MECHANICS

The attack almost always starts not with the blockchain itself but with ordinary web infrastructure. First, the attacker gains control over an account at the domain registrar or DNS provider, most often through phishing an employee or a leaked password. They then change the DNS records for the target dApp domain: editing the A or CNAME records to point to a server they control.

After that, the chain of events looks completely routine to the user. The browser queries DNS servers for the site's address, receives the attacker's IP in response, and connects to their server. That server serves up a visually indistinguishable copy of the interface, which asks users to connect a wallet, sign a transaction, or enter confidential information. The most insidious part is that the legitimate domain name remains in the address bar, so many standard web security checks simply do not fire: the domain looks legitimate.

RED FLAGS

Because the site's address looks genuine, you have to rely on subtler signals. You should be on alert if the site suddenly loads differently, behaves unusually, or asks you to connect your wallet somewhere it never did before.

Before connecting a wallet or authorizing a transaction, it helps to run through a short checklist:

  • SSL certificate: open the certificate details in the browser and verify who issued it and through what date it is valid. A mismatch in the issuer or a suspiciously "fresh" certificate is a serious warning sign.
  • URL: cross-check the address against official sources (a bookmark, documentation, a verified project account) rather than following a link from an email or chat.
  • On-chain indicators: make sure the site consistently displays the expected security markers, such as correct ENS domain resolution and verified contract addresses.

If any of these points raises doubt, it is safer to stop and double-check than to sign a transaction blindly.

PROTECTION

Protection against DNS hijacking is built in layers, and those layers operate at two levels: on the project side and on the user side.

On the project side, the foundation is hardening the DNS infrastructure itself. This includes enabling DNSSEC (a mechanism for cryptographically signing DNS records that prevents them from being silently substituted), using a registrar lock service at the registrar, and mandatory multi-factor authentication on all critical accounts. Regular DNS configuration audits and monitoring for unauthorized changes using specialized tools make it possible to catch a substitution within the first few minutes, rather than after users have already been harmed.

On the user side, the main line of defense is the habit of checking the site address and carefully reading wallet connection requests, rather than clicking "confirm" on autopilot.

To make it clearer how the protective measures at the two levels differ, here is a summary table:

Project side User side
DNSSEC and registrar domain lock Verifying URL against official sources
MFA on registrar and DNS accounts Reading transaction details before signing
DNS record monitoring and auditing Hardware wallet with on-device confirmation

Let us walk through an illustrative example of how these layers save a user. Imagine a protocol's frontend has been hijacked, and instead of the normal "swap 0.5 ETH" transaction, the substituted site presents a setApprovalForAll request that grants a third-party address the right to manage all your tokens. If you sign blindly in a software wallet, the funds are gone instantly. But if you use a hardware wallet, its screen will show an unfamiliar action and an unknown recipient address that do not match what you were intending to do. That is the last moment at which the transaction can still be rejected with a physical button press.

How to tell a legitimate request from a substitution: a genuine swap asks you to sign a transfer of a specific amount of a specific token, while a malicious frontend almost always seeks broad permissions (approve for an unlimited amount, setApprovalForAll) or a transfer to an address you never entered. If the permission requested is wider than what your action requires, that is a red flag.

AFTERMATH

If DNS hijacking is suspected, speed of response determines almost everything. First, isolate the affected systems and revoke all potentially compromised credentials and API keys to cut off the attacker's access.

Next, contact your DNS provider and domain registrar as quickly as possible to roll back the malicious record changes and lock the accounts against re-takeover. At the same time, report the incident to the relevant authorities and cybersecurity incident response teams.

A separate and critically important step for a decentralized application is honest, fast communication with the community. Users need a transparent explanation of how to recognize the fake frontend and how to reach the real service (for example, through a backup domain or a direct contract address). The earlier the warning goes out, the fewer people will have signed a malicious transaction while the substitution is still active.

FAQ

What is DNS hijacking in plain terms?

It is an attack in which the attacker interferes with the domain name system and redirects traffic from the real site to their malicious copy. The user sees the familiar address in the browser bar and is certain they are on the right site, even though they are actually interacting with a fake. The Curve Finance DNS hijack of August 2022 unfolded exactly this way.

Why is DNS hijacking especially dangerous for dApp users?

The fake frontend looks exactly like the real one and asks you to connect your wallet, then presents a malicious transaction. By signing it, the user can grant the attacker the right to manage their tokens, transfer funds, or expose a private key. The protocol's own smart contracts remain untouched: what is swapped out is only the page through which you communicate with them.

How can a user protect themselves against frontend substitution?

Cross-check the URL against official sources rather than clicking links from emails or chats. Verify the SSL certificate details (who issued it and its expiry date) and look for verified contract addresses in the interface. The most reliable layer of protection is a hardware wallet: it shows the real transaction details on its own screen, and you can reject an unfamiliar action with a physical button.

What should a project do to prevent DNS hijacking?

On the project side, hardening the DNS infrastructure helps: enabling DNSSEC for cryptographic signing of records, registrar domain locking, and mandatory multi-factor authentication on all critical accounts. Regular DNS configuration audits and monitoring for unauthorized changes are also needed, so that substitution is caught within the first few minutes rather than after users have already been harmed.

How can you tell a malicious signature request from a normal one?

A legitimate operation asks you to sign a specific action for a specific amount, for example a swap of a given number of tokens. A malicious frontend usually seeks broad permissions such as an approve for an unlimited amount or setApprovalForAll, or a transfer to an address you never entered. If the permission requested is wider than what your action requires, that is a reason to stop.

What should you do if DNS hijacking has already occurred?

Act quickly: isolate the affected systems, revoke compromised credentials and API keys. Contact your DNS provider and registrar to roll back the malicious changes and secure the accounts, and report to cybersecurity incident response teams. For a dApp, it is critical to immediately and honestly warn the community and explain how to recognize the fake frontend and reach the real service.

Put this to work in the terminal

Live charts, derivatives, on-chain and macro data, free.

Open terminal →