DEFCON 2011 Network Forensics Puzzle: Inception
*Note* I am in no way affiliated with the contest and if you couldnt tell the post below contains my solution for the round
After extracting the contents from round_2.tc, you are left with a pcap and a html page outlining the challenge:
Ann, afraid that someone may be watching her, decides to capture all of her home traffic. She mentions her fear to Mr. X and explains that she has been capturing her home traffic for days and will be sending the packets out for analysis later in the day. She sends her captures to the one person she knows can trust. After their discussion, Mr. X rushes to his lab, to see if he can intercept Ann’s outbound message and use her capture to get more detail on her upcoming activities..
Use the packet capture in this folder to answer the following question:
1. What is the date, as it appears in the capture, of the cryptographer’s speaking engagement? (hint: It isn’t at Defcon)
Again, I start with trying to narrow down what I am looking for, we know that Ann is looking to send a packet capture of her home network. I make an initial assumption that Ann will continue to use email as her form of communication (after round 1).
echo "ann1smysterious > ~/keywords.txt
echo "capture" >> ~/keywords.txt
echo "cap" >> ~/keywords.txt
echo "pcap" >> ~/keywords.txt
tcpflow -r ~/Evidence02.pcap -c | grep -i -f ~/keywords.txt
After reviewing the output of the above command you will notice that Ann is communicating with “Mr. X”, which is really d_tangent@aol.com (To field of email). The email confirms that Ann is sending “Mr. X” a packet capture, the email contains an attachement.
The attachment is call Help.pcap with a length of 263982 bytes. Since we need to extract the pcap from the data stream (pcap from pcap ~ Inception, Nice) we need to know the file header: File Signatures – Gary Kessler. In this case A1 B2 C3 D4.
We will use tcpxtract to pull out the embedded pcap. First add the pcap file type to tcpxtract.conf
cp /etc/tcpxtract.conf /etc/tcpxtract.conf_BAK
echo "pcap(2638139, \xd4\xc3\xb2\xa1);" > /etc/tcpxtract.conf
tcpxtract -f ~/Evidence02.pcap
This will output a pcap file named 00000000.pcap. Running chaosreader against 00000000.pcap will produce some interesting results.
chaosreader -r 00000000.pcap
Open the resulting index.html and click on the images report tab. You will notice a great deal of images of Bruce Schneier. Googling Mr. Bruce Schneier will confirm that he is a renowned cryptographer. Now we just need to find when his speaking engagement is scheduled.
Looking at Mr. Bruce Schneier’s speaking engagement schedule you will see that the date in question is October 6-7, 2011.