The Night the Nameservers Moved: Tracing a Registrar Account Takeover
The challenge
Larkpay's domain showed a fake login for hours. Line up registrar alerts with the DNS history. Name the nameserver the hijacker switched to.
What you'll learn
- Explain why whoever controls a domain's nameservers controls every record of it
- Read passive DNS output to see when a nameserver set first and last appeared
- Build one timeline from registrar alerts, a status page and DNS history
- Tell a lookalike nameserver domain from the real provider with WHOIS
- Name the controls that stop a registrar account takeover
Skills tested
Prerequisites
- What DNS does
- What a domain registrar is
How it works
A domain's nameservers (its NS records, set at the registrar and published by the registry) decide who answers every DNS question about it: the website, the login page, the mail servers. Change them, and the new nameservers can hand out any address they like. That is why the registrar account is one of the most powerful accounts a company owns: whoever gets into it can redirect the whole domain without touching a single server.
Passive DNS databases record the answers resolvers see over time. A tool like dnsdbq prints each distinct answer set with the first and last time it was observed (record times). Short-lived sets stand out, but planned changes such as a failover drill are short-lived too, so a set only becomes suspicious once it lines up with something nobody planned. Identical answer sets are merged, so the real provider's range can look continuous across the incident.
Certificate Transparency logs list every publicly trusted certificate. Because domain validation trusts DNS, a hijacker who controls the nameservers can get a valid certificate within minutes, and that issuance is logged.
Common mistakes
- Answering ns1.skyline-edge-ns.example or ns2.skyline-edge-ns.example. They were short-lived and at night too, but on 14 November, during the failover drill the status page announced, and WHOIS shows skyline-edge-ns.example belongs to Skyline Edge, Inc. since 2016.
- Answering ada.ns.skyline-edge.example or rob.ns.skyline-edge.example. Their names look odd and their passive DNS range runs across the incident night, but they are the real Skyline Edge nameservers from the planned 10 November move. Passive DNS merges identical answer sets, so the hours they were replaced do not show as a gap.
- Taking the first change after two-step verification dropped. The 10 and 14 November changes came first, but both were Larkpay's own maintenance. The hijack is the change that follows the 02:47 sign-in from an unknown device.
- Trusting the official-looking name.
ns1andns2under skyline-edge-dns.example look like a DNS provider's servers, which is the point of a lookalike. WHOIS gives it away: created two days before the attack, owner hidden. - Answering the sign-in IP. 203.0.113.58 is where the account was opened from, not the nameserver the domain was moved to.
How to defend against it
- Protect registrar accounts with phishing-resistant MFA (security keys or passkeys) and re-check it after any registrar migration or acquisition.
- Turn on a registrar lock, or a registry lock for critical domains, so nameserver changes need an out-of-band confirmation (
serverUpdateProhibited). - Monitor your own NS and A records and CT logs, and page someone on any change you did not schedule, day or night.
- Use a shared role mailbox for registrar alerts that someone actually watches, and keep the registrar account separate from day-to-day staff logins.
- After a hijack, revoke certificates issued during the window and force password resets for anyone who signed in.