Namefi

How Domain Hijacking Actually Happens: Five Attack Paths and Controls That Reduce the Risk

A practical walk-through of five ways attackers take over domains in the real world—social engineering, registrar account compromise, DNS provider takeover, NS hijacks, and expired-domain reclamation—and controls that prevent, limit, or detect them.

Fenwei BianFenwei BianAuthorVictor ZhouVictor ZhouEditorMay 10, 2026est. 7 min read
  • security
  • domains
  • registrar
  • incident-response
  • domain-flipping
Share on X

"Domain hijacking" is one of those phrases that sounds dramatic but means very different things depending on how it happens. A registrar account taken over by a phishing email is a hijack. A nameserver record quietly swapped at a DNS provider is a hijack. An expired domain that someone else grabs and re-points is, in a sense, also a hijack.

In every case, the result is the same: someone else is now telling the world where your name points. Email, payments, login flows, and SaaS integrations all start sending traffic to the attacker. Recovery often takes days, sometimes weeks. If the domain was transferred to another registrar, ICANN's Transfer Dispute Resolution Policy (TDRP) may be relevant; other cases often require registrar escalation, registry escalation, platform recovery, or a court order. The fastest fix is to never get into that position in the first place.

This post walks through five recurring attack paths, what each one looks like from the defender's side, and controls that can prevent, limit, or detect them.

1. Social engineering against the registrar's support team

Many high-profile hijacks have not required a technical exploit. They have relied on a phone call or support request.

The pattern: an attacker collects enough information about a target—WHOIS history, LinkedIn, leaked password dumps, social media—and then calls or emails the registrar's support team impersonating the owner. They ask for a password reset, an email change, or a transfer auth code. If the support agent runs a checklist that the attacker has prepared for, the account changes hands.

This path does not require a vulnerability in the registrar's code; it exploits the human in the loop.

What stops it:

  • A hard registrar-side rule that ownership changes require either a notarized document or a multi-factor challenge against the registrant's existing channel.
  • Registry lock (separate from registrar lock), where the registry operator itself refuses to act on transfer or contact changes without an out-of-band confirmation. Available on .com, .net, and many ccTLDs.
  • Verifying which registrar you actually use and removing the others. Brands that started in 2007 often have stale accounts at three or four registrars with weak credentials.

2. Registrar account compromise (the credential path)

The technical cousin of social engineering. The attacker phishes the registrar account credentials, or finds them in a credential-stuffing dump, and logs in directly. From there they unlock the domain, change the contact email, and request a transfer.

What stops it:

  • Phishing-resistant 2FA on the registrar account. TOTP via an authenticator app is stronger than password-only access; hardware keys using WebAuthn/FIDO2 are the strongest widely available option. SMS-based 2FA remains vulnerable to SIM swapping. The U.S. government's CISA guidance recommends phishing-resistant MFA where available.
  • A registrar that supports per-domain locks in addition to per-account locks, so a single account compromise cannot unlock everything at once.
  • Audit trail and alerting on contact changes, nameserver changes, and transfer requests. The attacker's first move is to silence those alerts; if they fire to a channel the attacker does not control, you get warning time.

3. DNS provider takeover

Even if the registrar account is locked down, the name servers that the registrar publishes might point to a DNS provider with a separate account—Cloudflare, Route 53, NS1, DNSimple, your own BIND server. If the attacker gets into that DNS account, they do not need to touch the registrar. They just rewrite the A, MX, and TXT records and traffic follows.

This is often the easier path for attackers, because brands invest in registrar security but treat the DNS provider as "infrastructure" with weaker controls.

What stops it:

  • The same 2FA rigor on the DNS provider account as on the registrar. Treat it as equally sensitive. It is.
  • DNSSEC, signed at the zone level. DNSSEC does not prevent a DNS provider account compromise: if an attacker can publish records through the provider and the provider signs them with the zone's active keys, validating resolvers will treat those answers as authentic. What DNSSEC does block is in-path tampering, cache poisoning, and forged answers that are unsigned or wrongly signed, assuming the parent publishes the correct DS records. See RFC 4033-4035 for the protocol details.
  • Multi-provider DNS with separate accounts and credentials, using multi-signer DNSSEC. This helps with availability and provider isolation, but it only works if every provider serves the intended zone data and the DNSKEY/DS sets are coordinated correctly. It is not a magic override where resolvers automatically prefer the uncompromised provider.

4. Nameserver hijacks via stale delegations and dangling records

A subtler variant: the domain itself is fine, but a subdomain points (via CNAME or NS record) at a third-party service that the original owner no longer controls. The attacker registers the resource on the third-party side and now answers for the subdomain.

Examples:

  • A subdomain CNAMEd to an old Heroku, S3, or Azure asset that has been released. The attacker re-claims that asset name and gets a valid TLS cert.
  • A delegated NS record pointing at a DNS provider account that has been deleted. The attacker creates a fresh account using that exact host pattern and serves whatever records they want for the subdomain.

These are catalogued under the umbrella term dangling DNS. The risk grows with large, poorly inventoried subdomain estates because abandoned third-party mappings can remain live after the underlying resource is removed.

What stops it:

  • A complete inventory of every NS, CNAME, and ALIAS record in every zone you own, with an owner for each.
  • Automated dangling-DNS scanners that re-resolve every record on a schedule and flag the ones pointing at third-party services that no longer respond. GitHub's blog and Detectify Labs have long-running write-ups of this attack class.
  • Decommissioning records the same day you decommission the underlying service.

5. Expired-domain reclamation

The simplest and least sympathetic attack: the registrant forgot to renew. The grace period passes. The domain drops back into the pool. Someone else registers it.

This sounds like an operational failure, not a security incident, but the impact is identical—someone else now controls the name, and all of the trust signals that were built up over years (SPF, DKIM, OAuth callbacks, password reset emails, payment integrations) start flowing to a stranger. Several public incidents involved attackers buying expired domains specifically because the previous owner had registered them as the iss claim in OAuth tokens or as the sender for transactional email.

What stops it:

  • Multi-year renewal (5-10 years) on any domain that touches authentication, payments, or production traffic. The cost is trivial; the protection is significant.
  • Auto-renewal with monitored payment and failure alerts. Cards expire and payment attempts fail, so auto-renewal is only effective when a team watches the failure channel.
  • Calendar reminders at 90, 60, 30, and 7 days that fire to a team address, not the inbox of one person who might leave the company.

What good looks like

Pulling the controls together, the baseline for any domain that matters looks like this:

ControlPrimary mitigation or detection role
Hardware-key 2FA on registrarReduces registrar account compromise risk (path 2)
Hardware-key 2FA on DNS providerReduces DNS-provider account compromise risk (path 3)
Registry lock (where available)Adds out-of-band approval for covered registry changes (paths 1-2)
DNSSEC signed at the zoneRejects in-path tampering and forged DNS answers
Subdomain inventory + dangling scannerDetects and prevents abandoned subdomain mappings (path 4)
5-10 year renewal + auto-renewReduces accidental expiry risk (path 5)
Alerts on contact/NS/transfer changesDetects some registrar and delegation changes (paths 1-3)

Not every control is available for every TLD or provider. The goal is to document which controls apply, identify uncovered paths, and add compensating monitoring rather than treating the table as a universal guarantee.

How Namefi changes the picture

Most of the controls above exist as features at one registrar, one DNS provider, or one workflow tool, and security depends on the weakest relevant account. Namefi adds an on-chain token as a parallel control layer for a traditional DNS registration. As the two-layer model explains, the NFT can become the control point for supported ownership and transfer actions while the registrar and registry layers continue to operate the DNS name.

That can reduce exposure to registrar-dashboard credential theft or support-driven changes when the workflow actually requires wallet authorization. It does not make social engineering impossible or remove path 1 entirely: the domain still depends on registrar and registry processes, the wallet introduces its own key-management and recovery risks, and DNS-provider accounts remain separate attack surfaces. DNSSEC, renewal controls, account security, and incident recovery are still required.

Sources and further reading

Contributors

Fenwei Bian
Software Developer & Writer • Namefi

Fenwei Bian is a software developer in her thirties who spends her working hours in pull requests and her weekends with her hands in soil or sawdust. Years of open source on GitHub taught her that names are interfaces: a good one is clear, honest about what it does, and kind to whoever has to use it next.

She gardens because it rewards patience and punishes wishful thinking, and she does woodwork because a joint either fits or it doesn't. Both habits show up in how she writes about naming — measure twice, check the source, and don't sand over a rough spot and hope no one notices.

For Namefi she writes about how domain markets actually move, the practical trade-offs of tokenizing and flipping names, and picking a domain you'll still be glad you own in twenty years.

Victor Zhou
Founder & Standards Editor • Namefi

Victor Zhou is a technology founder and standards editor focused on digital identity and trust. He founded Namefi, edits Ethereum Improvement Proposals, and previously led smart-contract architecture work at Google Labs.

His work sits at the intersection of naming, ownership, and the systems people use to establish identity online. That perspective makes him especially interested in the way names move between personal meaning, public recognition, and digital infrastructure.

For Namefi, Victor edits and writes about domains as durable digital identity: how names become ownable onchain assets, how tokenization changes custody and trust, and what naming can learn from the systems people use to establish identity online.

Related guides

Discuss this post

View the discussion on Namefi Discuss