This site is in BETA. Labs are still being adjusted and re-structured and may not work as intended.

image

DNS Query Analysis

A security analyst is reviewing DNS logs from a workstation on the internal network.

They notice the following query repeated dozens of times over the last hour:

Query: aGVsbG8gd29ybGQ=.update.totallylegit-cdn.com
Type: A

The domain totallylegit-cdn.com was registered 3 days ago and has never been seen before on this network.

Question 1 - Easy

Sign in to take this quiz

Your answers are saved against your account, so you can come back to them and pick up where you left off.

Sign in

Spotting Tunneled Traffic

You are reviewing firewall logs after an alert fires on an internal host.

You notice the following pattern over a 30-minute window:

10:02:14  DNS query  ->  c2.exfil-test.net        (subdomain length: 48 chars)
10:02:44  DNS query  ->  c2.exfil-test.net        (subdomain length: 52 chars)
10:03:14  DNS query  ->  c2.exfil-test.net        (subdomain length: 50 chars)
10:03:44  DNS query  ->  c2.exfil-test.net        (subdomain length: 47 chars)

Queries are being made every 30 seconds, even though no user is actively using the machine.

Question 2 - Easy

Sign in to take this quiz

Your answers are saved against your account, so you can come back to them and pick up where you left off.

Sign in

C2 Beacon Identification

During a threat hunt, your SIEM flags a host for unusual DNS behavior. You pull the following log excerpt:

Host: DESKTOP-4F9KL
Timeframe: 08:00 – 10:00

08:00:01  TXT query  ->  cmd.beacon-relay.io   Response: "whoami"
08:00:03  A   query  ->  cm9vdA==.beacon-relay.io
08:15:01  TXT query  ->  cmd.beacon-relay.io   Response: "ipconfig /all"
08:15:04  A   query  ->  MTkyLjE2OC4xLjU=.beacon-relay.io
08:30:01  TXT query  ->  cmd.beacon-relay.io   Response: "net user"
08:30:05  A   query  ->  QWRtaW5pc3RyYXRvcg==.beacon-relay.io

The subdomains in the A queries decode from Base64 to:

  • cm9vdA== -> root
  • MTkyLjE2OC4xLjU= -> 192.168.1.5
  • QWRtaW5pc3RyYXRvcg== -> Administrator

Question 3 - Medium

Sign in to take this quiz

Your answers are saved against your account, so you can come back to them and pick up where you left off.

Sign in

Full DNS C2 Reconstruction

Your team responds to an incident at a mid-sized company. You have full packet captures from the affected host over a 2-hour window. You identify the following activity:

Phase 1 – Initial Check-in

DNS TXT query  ->  init.drop-updates.org
Response:        "sleep=30&jitter=5&key=0xDEADBEEF"

Phase 2 – Tasking (repeating every ~30s)

DNS TXT query  ->  task.drop-updates.org
Response:        "Y21kIC9jIHdob2FtaQ=="   (Base64: "cmd /c whoami")

Phase 3 – Exfiltration

A query  ->  5a0b3c.drop-updates.org
A query  ->  1f4e9d.drop-updates.org
A query  ->  8c2a7f.drop-updates.org

The subdomains are hex-encoded chunks of a file.
Reassembled and decoded, they produce the contents of C:\Users\jsmith\Documents\credentials.txt.

Phase 4 – Persistence

DNS TXT query  ->  task.drop-updates.org
Response:        "cmVnIGFkZCBIS0xNXC4uLg=="  (Base64: "reg add HKLM\...")

Question 4 - Hard

Sign in to take this quiz

Your answers are saved against your account, so you can come back to them and pick up where you left off.

Sign in


Something not quite right? Let us know!

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.

Something went wrong. A browser extension may be interfering with this page. Reload ×