← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing DNS Zone Transfer AXFR Reconnaissance Dataset

This hunt uses a simulated authoritative-DNS-server dataset (dns_axfr_recon_2022-12-16T044500.json) capturing T1590.002: Gather Victim Network Information: DNS, where an external actor requests a full zone transfer (AXFR) from an authoritative DNS server misconfigured to allow transfers from arbitrary sources, instantly revealing the organization's entire internal and external DNS namespace - hostnames, internal IP ranges, and infrastructure naming conventions - in a single query.

Step 1: Hypothesis Formation

Hypothesis: An authoritative DNS server receives a DNS query with QTYPE=AXFR (or IXFR) from a source IP that is not one of the organization's registered secondary/slave name servers, and the server responds with a successful (non-refused) transfer, indicating the zone is misconfigured to allow unrestricted transfers and has just disclosed its complete DNS record set to an unauthorized party. Indicators:

Null Hypothesis: The request originates from a legitimate, newly-added secondary DNS provider or a DNS-health-monitoring service performing an authorized transfer as part of a documented DNS-infrastructure change. Invalidate by checking the source IP against the current NS-delegation records and any recent DNS-infrastructure change tickets.

Rationale: A successful AXFR to an unauthorized source is one of the highest-value, lowest-effort reconnaissance techniques available to an external attacker because a single query can return the organization's entire hostname inventory and internal addressing scheme at once, information that would otherwise require extensive individual subdomain brute-forcing to assemble.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (4 shown) confirm ns1.corp-example.com completed a full, unauthenticated AXFR zone transfer to an unrecognized external IP, disclosing 214 DNS records including 12 internal-only hostnames.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-12-16 04:45:03ns1.corp-example.comDNS Query Logqtype=AXFR, zone=corp-example.com, src_ip=45.155.205.87, rcode=NOERRORSuccessful-Transfer IOC: a NOERROR response to an AXFR request means the server actually performed the zone transfer rather than correctly rejecting it with REFUSED, confirming a transfer-restriction misconfiguration.
2022-12-16 04:45:04 - 04:45:11ns1.corp-example.comDNS Query Log (aggregate)214 resource records transferred, response size 38.4 KB, single TCP sessionVolume IOC: this record count matches the organization's actual total known zone size, confirming a complete - not partial - namespace disclosure occurred in one transaction.
--(Registered-secondary check)45.155.205.87 does not appear in the NS-delegation or secondary-DNS-provider registration recordsUnauthorized-Source IOC: this IP has no legitimate operational relationship with the organization's DNS infrastructure.
--(Zone-content review)Transferred records include vpn-gw.corp-example.com, db-prod-01.corp-example.com, and 10 additional internal-facing hostnames with public-routable A recordsDisclosure-Impact IOC: these internal-infrastructure hostnames were not intended for public discovery and now provide the requester with a targeted map of high-value internal systems for follow-on reconnaissance or attack.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an unauthorized external source successfully requested and received a complete, unrestricted AXFR zone transfer from a misconfigured authoritative DNS server, disclosing 214 records including sensitive internal infrastructure hostnames!