Lion Cipher Lab

Enumerate an entire domain through an open DNS zone transfer (AXFR) — then lock it down

Why it matters

Reconnaissance is the quiet first move of every real attack, and DNS is the richest, cheapest source of it there is. Before an attacker sends a single packet at your applications, they want a map: what hosts exist, what they are called, what they do. Names are enormously informative — a host called `jenkins` runs a build server, `backup` holds copies of everything, `vpn-old` is a decommissioned gateway nobody patched, `db-prod` is the production database. Normally an attacker has to piece that map together slowly and noisily, guessing names one at a time. An open DNS zone transfer hands them…

What you'll learn

Steps in this lab

  1. What DNS is, and what a zone transfer (AXFR) actually is
  2. Build the isolated lab: an authoritative BIND 9 server on your machine only
  3. Pull the whole zone — the finding, in one query, from the attacker container
  4. Why a list of names is a serious finding — read the dump like an attacker
  5. The fix, part 1: restrict the transfer — none, or specific secondaries — then measure
  6. The fix, part 2: authenticate the transfer with a TSIG key (the real answer)
  7. Honest negatives — say these out loud so the finding stays accurate
  8. Do it better — how to recognise, report, and prevent an open transfer

Open the full interactive lab →