Skip to main content
Challenges DNS tunnel: accounting report
Digital forensics Hard Extracting a DNS tunnel: DHCP -> host, TXT key, base32 chunks, two domains, XOR + zlib Solves: 3

DNS tunnel: accounting report

Author: CyberSamSU
Points
95

In the SamSU accounting department network (10.30.x.0/24, .1 — gateway, DHCP, and DNS resolver on a single device), the SOC noticed a sharp spike in nighttime DNS queries. dns.pcap was captured from the switch's SPAN port. Suspicion: the accountant's computer BUX-PC-07 exfiltrated a confidential report outside via DNS. There is another host (BUX-PC-11) on the network behaving similarly — do not confuse it with that one.

Analyst's initial findings:

  • the hosts obtained their IP addresses via DHCP — the IPs are assigned at the beginning of the capture, while the hostname is in the DHCP request (option 12);
  • the tunnel client sends a "hello" query through the resolver at the start of the session and receives an 8-byte key (base64) in the TXT response;
  • the report was first compressed with zlib, then had repeating XOR applied with that key, split into 25-byte chunks, and each chunk was placed into a label of the query name using base32 (RFC 4648, lowercase, without padding);
  • the client works with two domains: if the primary domain stops responding, it switches to a backup domain and retransmits the chunks; packets may arrive out of order and some chunks may be duplicated;
  • normal traffic also contains TXT queries (SPF/DMARC) and CDN records with long random names — they are not the tunnel.

Recover the report sent by BUX-PC-07. There are two signatures at the end of the report: current and old (revoked); the required flag is the current signature. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
dns.pcap Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −9 pts Log in
Hint 2 −19 pts Log in
Hint 3 −28 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 25.11.2026
2. Asmaa Mottery 25.11.2026
3. Odam 25.11.2026