8. Puzzle2の状況設定
After being released on bail, Ann Dercover disappears!
Fortunately, investigators were carefully monitoring her
network activity before she skipped town.
“We believe Ann may have communicated with her
secret lover, Mr. X, before she left,” says the police chief.
“The packet capture may contain clues to her
whereabouts.”
You are the forensic investigator. Your mission is to
figure out what Ann emailed, where she went, and
recover evidence including:
9. Puzzle2の問題 (1/2)
1. What is Ann’s email address?
2. What is Ann’s email password?
3. What is Ann’s secret lover’s email address?
4. What two items did Ann tell her secret
lover to bring?
5. What is the NAME of the attachment Ann
sent to her secret lover?
10. Puzzle2の問題 (2/2)
6. What is the MD5sum of the attachment
Ann sent to her secret lover?
7. In what CITY and COUNTRY is their
rendez-vous point?
8. What is the MD5sum of the image
embedded in the document?
11. 1. What is Ann’s email
address?
• 聞かれているのは、メールアドレス。
= メールに関わる通信がある?
• SMTP(25/tcp), POP3(110/tcp),
IMAP(143/tcp),
submission-port(587/tcp) あたり?
• まずはポート番号を頼りに探してみる?
32. 3. What is Ann’s secret
lover’s email address?
まずはメールヘッダと本文を見てみますか。
Message-ID: <000901ca49ae
$89d698c0$9f01a8c0@annlaptop>
From: "Ann Dercover" <sneakyg33k@aol.com>
To: <sec558@gmail.com>
Subject: lunch next week
-----(中略)-----
Sorry-- I can't do lunch next week after all. Heading out of
town. =
Another time! -Ann
33. 3. What is Ann’s secret
lover’s email address?
状況設定を思い出してみると
Ann Dercover disappears!
ということなので、来週のランチの話を
してる sec558@gmail.com は違うかな。
34. 3. What is Ann’s secret
lover’s email address?
では、他のメールを探しますか。
こんな時に活躍しそうな
Wiresharkさんの便利な機能があります。
35. 3. What is Ann’s secret
lover’s email address?
1. ファイル読み込む
2. Statistics → Conversation List →
TCP(IPv4&IPv6)を選択
3. 適当なConversationを選択して Follow
Stream を実行!
36. 3. What is Ann’s secret
lover’s email address?
37. 3. What is Ann’s secret
lover’s email address?
実はTCPのセッションが2つしかなかった
ことが判明・・・。
これのいずれかですね。
38. 3. What is Ann’s secret
lover’s email address?
ここで、通信量に着目です。
添付ファイルある=通信量多いハズ。
というわけで、2つめの通信を見ます。
39. 3. What is Ann’s secret
lover’s email address?
Message-ID: <001101ca49ae$e93e45b0$9f01a8c0@annlaptop>
From: "Ann Dercover" <sneakyg33k@aol.com>
To: <mistersecretx@aol.com>
Subject: rendezvous
-----(中略)-----
Hi sweetheart! Bring your fake passport and a bathing suit. Address
=
attached. love, Ann
おまわりさん、コイツです!!
40. 4.What two items did Ann tell
her secret lover to bring?
問3で答え出てますね。
Hi sweetheart! Bring your fake passport
and a bathing suit. Address =
attached. love, Ann
41. 5. What is the NAME of the attachment
Ann sent to her secret lover?
これも同じ要領で。
------=_NextPart_000_000D_01CA497C.
9DEC1E70
Content-Type: application/octet-stream;
name="secretrendezvous.docx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="secretrendezvous.docx"
42. 6. What is the MD5sum of the
attachment Ann sent to her secret
lover?
43. 6. What is the MD5sum of the
attachment Ann sent to her secret
lover?
• Ann発の通信をファイルに保存。
• さらにBASE64でエンコードされた行だけを取り出し。
(たファイルが ann-mail.txt です)
% cat ann-mail.txt | base64 -D > secretrendezvous.docx
% md5 secretrendezvous.docx
MD5 (secretrendezvous.docx) =
9e423e11db88f01bbff81172839e1923
44. 7. In what CITY and COUNTRY
is their rendez-vous point?
docxファイルはZIPでばらせる。
% unzip -l ./secretrendezvous.docx
Archive: ./secretrendezvous.docx
Length Date Time Name
-------- ---- ---- ----
1495 01-01-80 00:00 [Content_Types].xml
590 01-01-80 00:00 _rels/.rels
.... (以下略)
45. 7. In what CITY and COUNTRY
is their rendez-vous point?
というわけで早速ばらしてみる。
% mkdir secretrendezvous
endor% unzip -d ./secretrendezvous ./secretrendezvous.docx
Archive: ./secretrendezvous.docx
inflating: ./secretrendezvous/[Content_Types].xml
inflating: ./secretrendezvous/_rels/.rels
inflating: ./secretrendezvous/word/_rels/document.xml.rels
inflating: ./secretrendezvous/word/document.xml
extracting: ./secretrendezvous/word/media/image1.png
...(以下略)
46. 7. In what CITY and COUNTRY
is their rendez-vous point?
document.xml をSafariで開いてみる。
47. 7. In what CITY and COUNTRY
is their rendez-vous point?
Chromeで見ると、
画像が含まれてるのが分かります。
48. 7. In what CITY and COUNTRY
is their rendez-vous point?
49. 8. What is the MD5sum of the
image embedded in the document?
% find ./secretrendezvous/ -name '*.png'
-o -name '*.jpg' -o -name '*.gif' | xargs
md5
MD5 (./secretrendezvous//word/
media/image1.png) =
aadeace50997b1ba24b09ac2ef1940b7
51. manなど引用してみる
NAME
strings - find the printable strings in a object, or other binary,
file
DESCRIPTION
Strings looks for ASCII strings in a binary file or standard
input.
Strings is useful for identifying random object files and
many other things. A string is any sequence of 4 (the
default) or more printing characters ending with a newline or
a null. Unless the - flag is given, strings looks in all
sections of the object files except the (__TEXT,__text) section.
If no files are specified standard input is read.
52. 1. What is Ann’s email
address?
% strings evidence02.pcap | grep '[A-z0-9-_]+@[A-z0-9.]+'
MAIL FROM: <sneakyg33k@aol.com>
RCPT TO: <sec558@gmail.com>
J@
Message-ID: <000901ca49ae$89d698c0$9f01a8c0@annlaptop>
From: "Ann Dercover" <sneakyg33k@aol.com>
To: <sec558@gmail.com>
MAIL FROM: <sneakyg33k@aol.com>
RCPT TO: <mistersecretx@aol.com>
Message-ID: <001101ca49ae$e93e45b0$9f01a8c0@annlaptop>
From: "Ann Dercover" <sneakyg33k@aol.com>
To: <mistersecretx@aol.com>
53. 2. What is Ann’s email
password?
% strings evidence02.pcap | less (Annのメールアドレスで検索&抜粋)
250-cia-mc06.mx.aol.com host-69-140-19-190.static.comcast.net
250-AUTH=LOGIN PLAIN XAOL-UAS-MB
250-AUTH LOGIN PLAIN XAOL-UAS-MB
AUTH LOGIN
334 VXNlcm5hbWU6
c25lYWt5ZzMza0Bhb2wuY29t
334 UGFzc3dvcmQ6
NTU4cjAwbHo=
235 AUTHENTICATION SUCCESSFUL
MAIL FROM: <sneakyg33k@aol.com>
(お断り:たくさん省略してます)
54. 3. What is Ann’s secret
lover’s email address?
% strings evidence02.pcap | less (Annのメールアドレスで検索&抜粋)
From: "Ann Dercover" <sneakyg33k@aol.com>
To: <sec558@gmail.com>
Subject: lunch next week
Date: Sat, 10 Oct 2009 07:35:30 -0600
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0006_01CA497C.3E4B6020"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01CA497C.3E4B6020
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sorry-- I can't do lunch next week after all. Heading out of town. =
Another time! -Ann こいつは違うほう
55. 3. What is Ann’s secret
lover’s email address?
Message-ID: <001101ca49ae$e93e45b0$9f01a8c0@annlaptop>
From: "Ann Dercover" <sneakyg33k@aol.com>
To: <mistersecretx@aol.com>
Subject: rendezvous
Date: Sat, 10 Oct 2009 07:38:10 -0600
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_000D_01CA497C.9DEC1E70"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
(次のスライドに続く)
56. 3. What is Ann’s secret
lover’s email address?
This is a multi-part message in MIME format.
------=_NextPart_000_000D_01CA497C.9DEC1E70
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_000E_01CA497C.9DEC1E70"
------=_NextPart_001_000E_01CA497C.9DEC1E70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi sweetheart! Bring your fake passport and a bathing suit. Address =
attached. love, Ann
おまわりさん、コイツです!!