HackBlue

Labs / DNS investigation

A burst of names that do not exist

A workstation asked for dozens of random domains in a few minutes and almost all failed. Find it, count the failures, and find the one name that answered.

  • Terminal mission
  • Intermediate
  • 4 objectives
  • 0 of 4 solved

What you’re looking at

A workstation asked for dozens of random domains in a few minutes and almost all failed. Find it, count the failures, and find the one name that answered.

Your goal: Find the infected workstation by its flood of failed lookups and the one generated name that answered.

Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
Walkthrough
the numbered path. Each step says what to type and what you should see. Hints open one at a time.
Answer boxes
under each question step. Type what you found and press Check.

Words you will meet

DGA
domain generation algorithm, malware that invents random domain names
IP
Internet Protocol address, the number that identifies a machine on a network

Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.

Briefing

Some malware does not hard-code its server. It generates many domain names from the date and tries them until one resolves. That pattern is called a domain generation algorithm, or DGA.

The resolver exports a tab-separated log to /var/log/dns/queries.tsv with the columns ts, client, query, qtype, rcode, and answer. The one generated name that resolves is the name the operator registered.

analyst@resolver-02

resolver-02 · DNS investigation

Type help for the command list and objectives for your tasks. Everything runs in this browser.

Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.

The whole walkthrough

Every step in order, written to be read aloud: 292 words, about 2 min. It gives away every answer, so try the steps first.