Join our Newsletter — 33% off our NHI Course
Home› Guides› DNS Hijack Playbook: Responding to Tampered DNS Records…
Template Incident Response & Forensics

DNS Hijack Playbook: Responding to Tampered DNS Records and Resolvers

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 26 October 2026 11 min read
On this page

Whoever can change your DNS records can redirect your web traffic and email, and can obtain valid TLS certificates for your domains without touching a single server you own. CISA described exactly this pattern in its January 2019 DNS infrastructure hijacking alert: stolen credentials for a DNS or registrar account, altered A, MX or NS records, then trusted certificates that let the attacker decrypt redirected traffic. This template gives [Organisation] a ready-to-adopt playbook for responding to tampered authoritative records, delegation changes and compromised resolvers. It is written for DNS and network administrators, security operations, the identity team and the managers who must approve registrar and certificate actions. Replace every [bracketed] placeholder and complete the provider sheet now, while you still control the accounts.

How to use this template

  • Adopt, then tailor: copy sections 1 to 8 into your incident response plan. See the Incident Response Plan Template and, for architecture, the DNS Security Guide.
  • Base it on ED 19-01: CISA Emergency Directive 19-01 required US federal agencies to audit public DNS records, change passwords on every account able to change DNS, add MFA to those accounts and monitor Certificate Transparency logs. Those four actions are the spine of sections 3 to 6 and apply to any organisation.
  • Know where the change happened: at the DNS hosting provider (records), at the registrar or registry (delegation), or at a resolver you run (answers to your own users). Each has a different owner and fix.
  • If the registrar account itself is lost, also run the Domain Registrar Compromise Playbook.
  • Review annually and after every incident or provider change. Owner: [Head of Network Operations].

1. Scope and triggers

1.1 This playbook covers unauthorised changes to DNS data for domains [Organisation] owns or operates: authoritative zone records, NS delegation and DS records at the parent zone, registrar contact and transfer settings, and the configuration of internal or customer-facing recursive resolvers.

1.2 Scenarios covered.

ScenarioWhere the change isTypical signATT&CK
Record tamperingDNS hosting provider zoneA, AAAA, CNAME or MX record points to unknown IPT1584.002 DNS Server (adversary use of your DNS)
Delegation hijackRegistrar or registryNS records at the parent differ from your provider; DS removed or changedT1584.002
Domain theft or expiryRegistrarRegistrant contact changed, transfer started, domain lapsedT1583.001 Domains
Resolver compromise or poisoningYour recursive resolvers, routers, DHCPInternal users get different answers from public resolversT1557 Adversary-in-the-Middle
Dangling record takeoverYour zone pointing at a released cloud resourceSubdomain serves content you did not publishT1584.002

1.3 Triggers: DNS monitoring alert on a changed record or SOA serial; a Certificate Transparency alert for a certificate you did not request; registrar notification of a contact, lock or transfer change; email delivery failure or DMARC report anomalies; users reporting certificate warnings or wrong sites; provider audit log entries from unknown sessions or API tokens.

2. Roles and contacts

RoleNamed ownerResponsibilities
Incident Lead[Security Operations Manager]Declares the incident, keeps the decision log and timeline
DNS Lead[DNS or Network Operations Lead]Record audit, provider and registrar actions, resolver fixes
PKI Lead[Certificate or PKI owner]CT log review, CA contact, revocation and reissue
Identity Lead[IAM Lead]Account and API token resets, MFA, session revocation
Email Lead[Messaging Administrator]MX, SPF, DKIM, DMARC checks, mail flow and possible interception
Communications Lead[Head of Communications]Customer, staff and press messages
Legal Counsel[General Counsel]Proof of ownership, law enforcement, regulator notices

2.1 Provider sheet: for each registrar, DNS host, CDN and certificate authority record the 24/7 security contact, account numbers, the people authorised to request emergency changes, how the provider verifies identity, and the registrar's procedure for reclaiming a hijacked domain. The NCSC advises keeping registration documents that prove ownership. Store the sheet offline.

2.2 Do not rely on email at the affected domain for coordination: MX records may be redirected. Use an out-of-band channel.

3. Detection and triage

  1. Capture the current state: query the affected names against your authoritative servers directly, against the parent zone (NS and DS), and against two or more public resolvers. Save outputs with timestamps, plus WHOIS or RDAP data for the domain.
  2. Audit records against the baseline: as ED 19-01 required, confirm every public record on primary and secondary authoritative servers resolves to the intended place, starting with NS records and records for key services (web, MX, VPN, SSO, API endpoints).
  3. Locate the change: parent NS differs from your provider: registrar or registry. Records differ inside your provider: DNS hosting account or API token. Only internal answers differ: resolver or network device.
  4. Search CT logs: list certificates issued for your domains and subdomains since the earliest possible change. An unexpected certificate is strong evidence that an attacker controlled your DNS. See the Certificate Transparency Guide.
  5. Assess impact: what traffic was redirected (web logins, email, API clients), for how long (consider record TTLs and resolver caching), and whether credentials or mail could have been captured.

Decision point A: if MX or SSO records were redirected, treat all credentials entered and mail sent during the window as exposed and start the credential response in section 5 in parallel.

Evidence to preserve: query outputs and zone exports; provider and registrar audit logs (logins, record changes, API calls, IP addresses); registrar notification emails; CT log entries and certificate details; resolver logs; DMARC aggregate reports; mail gateway logs for the window. Record hashes and chain of custody.

4. Containment

  1. Regain control of the account: from a clean device, change passwords and revoke all sessions and API tokens on the DNS host and registrar. If you are locked out, call the provider's security line using the provider sheet.
  2. Restore correct records from your version-controlled zone source or last good export. Lower TTLs only after restoration if you expect further changes.
  3. Restore delegation at the registrar: correct NS and DS records, registrant contacts and transfer lock (clientTransferProhibited). Ask the registrar to apply registry lock where the TLD supports it.
  4. Revoke rogue certificates: report every certificate you did not request to the issuing CA and request revocation, as ED 19-01 required.
  5. Fix resolvers: for internal compromise, restore resolver and DHCP configuration, flush caches, and block resolution of known attacker infrastructure.

Decision point B: if the registrar cannot restore control quickly and the domain is critical, the Incident Lead and Legal Counsel decide whether to escalate to the registry operator and whether to publish alternative service addresses to customers.

Decision point C: do not delete attacker-created records or users before exporting them as evidence.

5. Eradication

5.1 Close the entry path: phished admin, reused password, account without MFA, leaked API token, compromised reseller, or an exploited resolver or router.

5.2 Credential and NHI resets.

CredentialAction
Registrar and DNS host user accountsNew passwords, phishing-resistant MFA, remove former staff and shared logins
DNS provider API tokens and keys (Terraform, ACME DNS-01, CDN, external-dns)Revoke all, reissue scoped to single zones and record types, set expiry, restrict source IP where supported
TSIG keys for zone transfers and dynamic updatesRegenerate and redistribute to secondaries
DNSSEC signing keysRoll the KSK and ZSK if the signing system or key material may be exposed; update DS at the parent
Credentials entered on redirected sitesForce reset for affected users and service accounts; revoke tokens issued in the window
Mailbox and SMTP credentials if MX was redirectedReset and review forwarding rules

5.3 Remove dangling records that point to released cloud resources. See the Secrets Rotation Runbook Template.

6. Recovery

  1. Confirm correct answers from many public resolvers and regions, and wait out the longest TTL that applied to tampered records before declaring traffic restored.
  2. Re-enable or validate DNSSEC: check the chain from the parent DS to your DNSKEY validates. ICANN called in 2019 for DNSSEC on all unsecured domain names, while noting it does not stop every attack.
  3. Keep enhanced monitoring for [30] days: record-change alerts, registrar notifications and daily CT checks.
  4. Close the incident once the review is complete and the Business Owner signs off.

7. Communication and notification

AudienceWhenOwnerContent
Registrar, DNS host, CAImmediatelyDNS Lead and PKI LeadUnauthorised changes, revocation requests
ExecutivesWithin [1] hourIncident LeadRedirected services, exposure window, decisions
Users and customersIf credentials or mail may have been capturedCommunications LeadWhat to reset, how to verify the real site
RegulatorsIf personal data was intercepted, within statutory deadlines (for example 72 hours under UK GDPR and GDPR Art. 33)Legal CounselBreach notification
National CERT and law enforcementFor targeted or state-linked campaignsLegal CounselIndicators, attacker IPs, certificates
Partners consuming your APIsSame dayIncident LeadWindow, endpoints affected, tokens to rotate

8. Post-incident review

8.1 Within [10] business days review: time from change to detection, to correct records, to certificate revocation; how the account was accessed; which tokens could change DNS and who owned them. See the Post-Incident Review and Root Cause Analysis Template.

8.2 Track actions: registry lock on high-value domains, MFA on every DNS-capable account, a register of DNS API tokens, CAA records, and zone files under version control.

Implementation guidance

Preventive controls and their trade-offs.

ControlProtects againstTrade-off
MFA on registrar and DNS accountsCredential theft, the vector in the 2019 campaignShared or legacy accounts must be eliminated first
Registrar transfer lockUnauthorised transfersDoes not stop changes made from a compromised registrar account
Registry lockNS and contact changes, even from the registrar accountExtra cost, slower legitimate changes, not available for every TLD
DNSSEC signingForged responses; detects unauthorised changes made outside the signing systemKey management complexity; some cloud and GSLB services lack support (NCSC)
CAA recordsCertificate issuance by CAs you do not useAn attacker with zone control can change CAA too
CT log monitoringDetects certificates obtained after a hijackDetection, not prevention; needs an owner to triage alerts
Record-change monitoringFast detection of tamperingNeeds a maintained baseline to avoid noise

Rollout.

  1. Inventory every domain, registrar, DNS host and every human account and API token able to change DNS.
  2. Consolidate registration under one team with auto-renewal on an organisation payment method, as the NCSC advises.
  3. Move zones into version control and deploy changes through reviewed pipelines with narrowly scoped tokens.
  4. Enable MFA, then transfer lock, then registry lock for the top [10] domains; add CT and record monitoring.
  5. Pilot DNSSEC on a low-risk zone, test key rollover and a rollback (removing DS at the parent, then unsigning after TTLs expire) before signing critical zones.
  6. Run a tabletop each year using the 2019 campaign as the scenario.

Small vs large organisations. A small organisation with a handful of domains can get most of the benefit from MFA, transfer lock, auto-renewal and a free CT monitor. A large one needs registry lock, central token governance and resolver monitoring.

Metrics. Percentage of DNS-capable accounts with phishing-resistant MFA; DNS API tokens without owner or expiry; critical domains under registry lock; mean time to detect a record change; mean time from unexpected certificate to revocation request; days since the provider sheet was verified.

Framework mapping.

FrameworkReferences
NIST CSF 2.0DE.CM-09 monitoring of software and data; RS.MA-01 coordinated response; RS.CO-02 stakeholder notification; RC.RP-01 recovery execution
NIST SP 800-53 Rev. 5SC-20 Secure Name/Address Resolution Service (Authoritative Source); SC-21 (Recursive or Caching Resolver); SC-22 Architecture and Provisioning; IR-4; IR-6; IA-2; CM-3
MITRE ATT&CKT1584.002 DNS Server; T1583.001 Domains; T1557 Adversary-in-the-Middle; T1078 Valid Accounts

Where identity fits. DNS control is held by a small set of human accounts and a growing set of non-human ones: infrastructure-as-code tokens, ACME DNS-01 automation, Kubernetes external-dns and CDN integrations. Each can rewrite your domains. Give them an owner, a single-zone scope and an expiry. See the API Key Management Guide.

Standards and references

Related NHI Mgmt Group resources: DNS Security Guide · Certificate Transparency Guide · Domain Registrar Compromise Playbook · Incident Response Plan Template · Website Defacement Playbook

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 26 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.