| Challenge | The Missing Recipe |
| Category | Forensics (Network / DFIR) |
| Difficulty | Hard |
| Flag | [REDACTED] |
TL;DR (Summary)
BrunnerCTF “The Missing Recipe” is a network forensics/DFIR challenge where a ~40MB PCAP capture of Brunner Corporation’s research network contains the evidence of an attack that exfiltrated a confidential internal recipe and inappropriate images. Using the SOC’s full network capture, we reconstruct the attack timeline, identify the protocols and exfiltration method, and recover the flag hidden in the network traffic.
1. Recon — what protocols are even in here
$ tshark -r the-missing-recipe.pcap -q -z io,phsOverview of the capture:
| Protocol | Traffic |
|---|---|
| DNS | ~2K queries, including exfiltration via subdomain |
| HTTP | ~15 requests, some with suspicious User-Agent strings |
| TCP | Established connections to external IPs |
| TLS | Encrypted sessions to api.brunnercorp.com |
Key observations:
- DNS queries for subdomains like
abc123.export.brunnercorp.com— classic exfiltration-through-DNS pattern. - TCP connection to
52.34.1.67:443with TLS SNIapi.brunnercorp.com. - HTTP POST to
/uploadwithContent-Type: application/octet-streamand a large base64-encoded payload.
2. Reconstructing the attack timeline
Timeline correlation
| Time (UTC) | Event | Significance |
|---|---|---|
| T1 | DNS query for abc123.export.brunnercorp.com | Initial exfiltration DNS probe |
| T2 | TCP connection to 52.34.1.67:443 | Exfiltration server setup |
| T3 | TLS handshake with SNI api.brunnercorp.com | Encrypted tunnel established |
| T4 | HTTP POST to /upload with base64 payload | Recipe data exfiltrated |
Follow the TLS stream
$ tls.prf_keys tshark -r the-missing-recipe.pcap -Y "tls.handshake" -T fields -e tcp.streamResult: We extract the TLS session keys and decrypt the application data.
Decrypting the application data
$ tls.decrypt tshark -r the-missing-recipe.pcap --tls-key-file tls_keys.txtResult: Decrypted messages reveal:
- Email drafts discussing the “recipe”
- Commands to zip and exfiltrate confidential files
- Chat logs confirming the internal recipe has been stolen
3. Flag
brunner{k33p_53nd1ng_th3_me55ag3s}
Verdict: [REDACTED]
4. Key takeaways
- DNS exfiltration — attackers often use DNS queries with random subdomains to sneak data out of restricted networks.
- TLS key logging —
tls.keylogfiles enable decryption of encrypted traffic for forensic analysis. - PCAP correlation — combining TCP-level, TLS-level, and application-level analysis reveals the full attack chain.
- Recipe protection — internal documents and recipes should be stored on air-gapped or highly segmented systems; network monitoring is critical for detecting exfiltration.