Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 50 guests and 1 member online
 
Free Business and Tech Magazines and eBooks

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Forensicsarrow Decrypting Network Traffic (email)
EH-Net
May 20, 2013, 02:57:38 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Decrypting Network Traffic (email)  (Read 10044 times)
0 Members and 1 Guest are viewing this topic.
i_admit_iam_a_geek
Newbie
*
Offline Offline

Posts: 5


View Profile
« on: May 12, 2009, 09:57:45 AM »

First... Hi all.

a bit of a question google cant seem to give me the answer to:

I have been very much getting into the use of network traffic capture of late, e.g. wireshark and my tool of choice DataEcho.

Mainly regarding email, all but the senders name seems to be encrypted or encoded. Is there anyway to make the data sent understandable?

Cheers if anyone can help.

Shocked)
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #1 on: May 12, 2009, 10:10:49 AM »

They are likely to be BASE64 encoded.  It's not encryption, so its easily reversible.    I believe that NetWitness Investigator's email parser will decode base64, but I am not positive.  I don't have it installed on my machine here.

I know for a fact that Cain and Abel has a nice decoder for base64, as well as a few websites out there.   I am surprised that wireshark's SMTP parser doesn't decode base64 on the fly though.
Logged

~~~~~~~~~~~~~~
Ketchup
i_admit_iam_a_geek
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #2 on: May 12, 2009, 12:18:40 PM »

Thanks for your response,

I will have a look into some of the programs you have name checked thanks.

The system in particular I was experimenting with was Microsoft Exchange Server based so wasn't sure if it used something a little different to normal SMTP traffic.

But now I know the base I should be well away with a bit of a play.

Thanks again
Logged
Kev
Sr. Member
****
Offline Offline

Posts: 428


View Profile
« Reply #3 on: May 12, 2009, 01:06:53 PM »

You might try the Ferret tool from Errata security. I have had some hit and miss success with it.
Logged
i_admit_iam_a_geek
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #4 on: May 12, 2009, 01:35:30 PM »

Interesting Ill have a look,

For now I have super quick knocked up my own BASE64 encode/decode application in C#. I had a look on the web but didn't come up with any that had a user interface that made life as easy as it needed to be for my needs.

Ill have to wait until the morning to give it a spin on the work network so ill report back if it did the trick with a link to my application, simple as it is, in case it is of use to anyone.

With regards to wireshark and BASE64, google seems to indicate that it does not currently do conversion... or at least it is on the wireshark wiki wishlist.
Logged
former33t
Full Member
***
Offline Offline

Posts: 226


View Profile
« Reply #5 on: May 12, 2009, 05:41:28 PM »

Please let us know if it worked for you.  I'd be interested to see the UI you came up with.
Logged

Certifications: CREA, MCSE: Security, CCNA, Security+, other junk
i_admit_iam_a_geek
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #6 on: May 13, 2009, 03:46:55 AM »

No luck at the moment, it seems the data that comes out its not base64 or at least not all of it. There is allot of squares? and question marks in the text. Ill keep at it and see what comes of it.
Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #7 on: May 13, 2009, 07:13:26 AM »

Can you post a sample?   I've never seen just email addresses encrypted, although I haven't done much analysis on Exchange 2007 yet.   Whenever I see scrambled email addresses, bodies, etc, they have always been base64 encoded.    Does the data look anything like this and end in a '='?

?koi8-r?B?U2hlIHdvbpJ0IG5lZWQgYSBtYWduaWZ5aW5nIGdsYXNzIGZyb20gbm93?=
Logged

~~~~~~~~~~~~~~
Ketchup
BillV
Hero Member
*****
Offline Offline

Posts: 1892


View Profile WWW
« Reply #8 on: May 13, 2009, 11:13:22 AM »

For now I have super quick knocked up my own BASE64 encode/decode application in C#. I had a look on the web but didn't come up with any that had a user interface that made life as easy as it needed to be for my needs.

Give this a shot: SNEAK
Logged
timmedin
Sr. Member
****
Offline Offline

Posts: 469



View Profile WWW
« Reply #9 on: May 14, 2009, 07:33:10 AM »

If you are looking at SMTP traffic, then that would not be encrypted or encoded, so it leads me to believe you must be looking at traffic between the client and server.

I believe Outlook and Exchange 2007 use encryption by default for their communication. If you don't have the key, good luck.
Logged

twitter.com/timmedin | http://blog.securitywhole.com
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #10 on: May 14, 2009, 09:44:43 AM »

Yeah, MAPI can be tough to parse, although Wireshark has a built in parser for MAPI.     SMTP does encode, just think attachments.  They are MIME encoded most often.   Some servers/clients will also encode email addresses and subjects, and sometimes the entire message.   I spent a good deal of time writing various parsers for email and have seen an enormous amount of variation in interpretation of standards.   
Logged

~~~~~~~~~~~~~~
Ketchup
i_admit_iam_a_geek
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #11 on: May 15, 2009, 03:52:12 AM »

Cheers guys!

Not had much luck with it all to be honest. It is an exchange server and to be honest its not looking good. I can say 100% that the data is not BASE64.



Logged
Ketchup
Hero Member
*****
Offline Offline

Posts: 1021



View Profile
« Reply #12 on: May 15, 2009, 07:06:59 AM »

It sounds like you could be looking at MAPI traffic.   It doesn't like RPC over HTTPS, because everything should be encrypted.   If you don't mind, post a small capture file of something non-sensitive (like SPAM).   Maybe we can help you figure it out.   Which version of Exchange is it?

   
Logged

~~~~~~~~~~~~~~
Ketchup
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.078 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.