Ghost Protocol DNS tunnel buried among three decoy channels

forensics
flag L3m0n{2435f175f0fbb990b9da302027500d9f}

One host, 10.30.4.117, beaconing out through a 1.4 MB packet capture. The brief says something left the corp LAN; the capture is mostly that one host doing a lot of talking, on purpose, across every protocol you'd normally check first.

Hint

If every "TLS" stream has pages of application data and not a single ClientHello, it was never TLS. What's left?

Ruling out the loud decoys

Protocol hierarchy shows TLS on 443/8443, SMB on 445, raw traffic on 80, a pile of DNS, and the usual NTP/mDNS noise - nothing visually suspicious, which is the point. Pulling apart the "TLS" streams first (the obvious place to hide exfil) shows they aren't real TLS at all: no ClientHello anywhere, just plausible content-type bytes followed by uniformly random application data. The SMB (NBSS) traffic and the raw port-80 traffic are the same shape - random filler dressed as a known protocol, designed to eat time before you get to DNS.

The DNS channels

Several tunnel-looking domains get hammered from .117:

output
mx-relay-eu.net        subdomains a, q, s, n, t
corp-backup-sync.net   subdomain u
vault-mirror-svc.org
ops-sensorgrid.net

The labels look like base32. Decoding and concatenating each channel:

u.corp-backup-sync.net decodes cleanly to:

output
#cfg v2 node=edge-07 region=eu-west rotate=86400 hb=30 ok

This looks like the answer for about a minute - it's exactly the kind of artifact the brief implies you're hunting. It's a decoy.

A DNS TXT answer for _triage-status.ops-sensorgrid.net hands you a flag outright:

output
v=triage1 status=closed severity=none note="SOC automation: host cleared,
extracted-artifact=L3m0n{9c04e7b21fa85d360b1ce9f47a2d8503}, no further packet
analysis required by downstream tooling"

A SOC note that already contains the flag and tells you to stop analyzing is not how a flag gets found - it's how one gets planted. It even instructs tooling to report it as-is. (The same author runs the identical trick in the sibling challenge Babel Signal, where a triage_note field carries a fake flag that fails the real acceptance check.)

Pitfall

Both decoys are well-built enough to nearly end the challenge early. What rules the triage-status one out specifically is the line telling downstream tooling not to analyze further - a real finding never needs to talk you out of double-checking it.

Finding the real channel by statistics, not content

q, s, n, t all decode to bytes spanning the full 0x00-0xff range

  • genuine random noise. The a channel doesn't: its 39 decoded bytes all sit below 0x60, which for truly random data has a probability around 1e-17. That's not noise - that's data that went through a transform keeping it in a small range.

Insight

39 bytes is exactly the length of L3m0n{ + 32 hex + }. The seven a-channel queries carry DNS transaction ids 0xc131 through 0xc137 - reassemble them in txid order, not capture order (the real queries are interleaved with decoy traffic to break a naive read):

output
gajecwkwa4 cmmfudi2ca dnof4tchjy bmaukekoka lqorehc3ba jylbswiida dbfbi

Base32-decoding that gives 39 bytes that still aren't the flag:

output
30 12 41 59 56 07 13 18 5a 0d 1a 10 1b 5c 5e 4c 47 4e 0b 01 45 11 4e 50 5c 1d 12 1c 5b 08 4e 16 19 59 08 18 18 4a 14

It's the flag XORed with a short repeating key - but the wrapper L3m0n{ is known plaintext, so the keystream falls straight out: XOR the first six ciphertext bytes against L3m0n{ and get 7c 21 2c 69 38 7c. Byte 5 of that equals byte 0, which pins the key length at 5 (|!,i8). Applying that 5-byte key across all 39 bytes decodes clean, with the closing } landing exactly where it should - the confirmation that the key length guess was right.

output
L3m0n{2435f175f0fbb990b9da302027500d9f}

Note

Other leads that went nowhere, worth naming so nobody else repeats them: TTL census on .117 (uniform, no covert channel there), IP DSCP bits (all zero), and using the DNS transaction IDs themselves as a side channel (they're just sequential per subdomain, nothing encoded in them).