The Most/Recent Articles

Showing posts with label extended mapi. Show all posts
Showing posts with label extended mapi. Show all posts

Daily Blog #428: Forensic Lunch 7/20/18 - Discussion with Arman Gungor on Defcon CTF

Discussion with Arman Gungor on Defcon CTF



Hello Reader,
            We had a great Forensic Lunch today with our guest Arman Gungor (@armangungor) from metaspike.com, talking about his research posted on the meridian discovery blog (like this one https://www.meridiandiscovery.com/articles/email-attachment-timestamps-forensics-outlook/ ) and his work on Forensic Email Collector. Matt and I also talked about the upcoming Defcon CTF and our planned live streams from Defcon providing commentary.

The video got split into two due to broadcasting software issues so here is the first video with Arman:



And here is the second video with Matt and I talking about 
the CTF



There will be another Forensic Lunch next Friday 7/27/18, looking forward to seeing you then!

owa

Daily Blog #418: Exploring Extended MAPI Part 19

Exploring Extended MAPI Part 19 by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
         Since my last test that showed that the Extended MAPI data wasn't be updated when I modified a message in OWA in my local outlook client I've been testing ways to get this updated data.

First I tried to download my mailbox, but apparently I need to get a working EWS url first. So I'll try that again tomorrow.

Second I went into the compliance center and searched for and found my test message I've been experimenting with. In doing this I downloaded the original message in EML format (the only option given) and I still did not find the updated extended MAPI data as seen below:

Exploring Extended MAPI Part 19 by David Cowen - Hacking Exposed Computer Forensics Blog

Here the Last Modification time got set to when I downloaded the message from Compliance Center and the original submission time exists. But I have no Last Verb time or code showing this message was replied too.

Third I emailed myself the message in OWA as an attachment by drag and dropping the message into a new email, this actually put the message as a MSG attached to the email message. Once I accessed this within Outlook in my local system I was able to see the expected data:

Exploring Extended MAPI Part 19 by David Cowen - Hacking Exposed Computer Forensics Blog


Here you can see that we finally have the expected Last Verb time showing when the message was replied to and when it was replied to. The Last Modification has been updated to reflect when I sent the message to myself as an attachment.


So I now need to download the mailbox fresh and then look into my local outlook account to see if this data has finally been updated.


This is a 19-part series on Exploring Extended MAPI. You can find the rest of the posts here. 
owa

Daily Blog #414: Exploring Extended MAPI Part 18

Exploring Extended MAPI Part 18 by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
         I'm in the BKK airport heading to Phuket today in my continued adventures. Got here nice and early so now I'm at the gate writing a blog post! After my last post I'm very curious now about what other actions I take in OWA will effect my already downloaded Outlook mail. So to get a base line I'm doing something that I think will for sure modify the message on both sides, I'm reply to the message.

In my initial testing, replying to a message in OWA for a message I sent through Outlook connected to the same account, I brought up the original message and inspected the Extended MAPI to find there was No Change!

Meaning that the message wasn't marked a replied to and within outlook it didn't recognize the conversation thread within the message. Something very interesting is happening.

I'm going to attempt to restart Outlook and see if I can get it resync everything but this certainly changes how I'm going to have to approach these investigations. I need to start pulling the data from exchange directly to see if doing that will update the metadata.


This is a 19-part series on Exploring Extended MAPI. You can find the rest of the posts here. 

Daily Blog #413: Exploring Extended MAPI Part 17

Exploring Extended MAPI Part 17 by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
            With all the talk about the Office 365 API I thought it might be worth testing how OWA (Outlook Web Access) accesses in Office 365 modified my local sync'd Outlook OST. This is important as there are many situations where the victim and the attacker are accessing the same mailbox in different forms and knowing what to expect when you do your analysis is important.

So the first thing I did today was to mark an item unread in OWA and then I sync'd my Outlook folders and saw the message go unread. After which I pulled up the Extended MAPI data within Outlook Spy and well, it didn't go as I expected.

When I looked at the last modification I found this:

Exploring Extended MAPI Part 17 by David Cowen - Hacking Exposed Computer Forensics Blog

Which is showing that even though the message was marked unread and read again that the last modification time didn't change from the time it was originally. In fact going through all the dates i didn't find any updates made at all.

I think next I need to retrieve the message directly to test it again but tomorrow I'll be doing more Outlook testing.

This is a 19-part series on Exploring Extended MAPI. You can find the rest of the posts here. 

Daily Blog #411: Exploring Extended MAPI Part 16

Exploring Extended MAPI Part 16 by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
                 I decided to test a Microsoft Word attachment this time to see if the results would be any different. In the end the results were the same but I need to do one more test tomorrow to see if the internal metadata varies from the file system metadata if their is any difference.

Here is the original file metadata:

Exploring Extended MAPI Part 16 by David Cowen - Hacking Exposed Computer Forensics Blog


This is the Extended MAPI properties of the attachment

Exploring Extended MAPI Part 16 by David Cowen - Hacking Exposed Computer Forensics Blog

Again the creation time is being set to when the message was sent, this is different than Arman's testing so I'm trying to see what I'm doing different. I'll know for sure when he comes on the Forensic Lunch this month.

Here is the resulting metadata of the saved file:

Exploring Extended MAPI Part 16 by David Cowen - Hacking Exposed Computer Forensics Blog

More testing to come!


This is a 19-part series on Exploring Extended MAPI. You can find the rest of the posts here. 

Daily Blog #408: Exploring Extended MAPI Part 15

Exploring Extended MAPI Part 15 by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
            Another Friday where I'm not able to get a forensic test kitchen done due to my travel and teaching schedule but next week should be better!

Instead lets continue our outlook attachment testing, in the prior post I tested a png file. Let's test an Microsoft Excel document now to see how a file with a metadata structure Outlook would know effects our testing.

First here is the metadata on the file on the disk:

Exploring Extended MAPI Part 15 by David Cowen - Hacking Exposed Computer Forensics Blog

Here is the extended mapi properties of the attachment when I sent the message a minute after creating the file.

Exploring Extended MAPI Part 15 by David Cowen - Hacking Exposed Computer Forensics Blog


As you can see the last modification time is being preserved again but the creation time is actually being set to the message creation time as seen in the delivery time below.

Exploring Extended MAPI Part 15 by David Cowen - Hacking Exposed Computer Forensics Blog

I then made sure it wasn't just a rounding issue by sending the same attachment the next day

Exploring Extended MAPI Part 15 by David Cowen - Hacking Exposed Computer Forensics Blog

which shows that the creation time is being sent to the date the message was sent and the modification time of the file is being preserved.

Saving the attachment back to the disk gives the following dates


Exploring Extended MAPI Part 15 by David Cowen - Hacking Exposed Computer Forensics Blog

As we can see the creation time is being set to when the message was sent and the modification time is being reapplied. The Access date appears to be updated but really that's just the real creation time before Microsoft Outlook rolled back the date.

More to come as we test other formats!


This is a 19-part series on Exploring Extended MAPI. You can find the rest of the posts here. 

Daily Blog #407: Exploring Extended MAPI Part 14

Exploring Extended MAPI Part 14 by David Cowen - Hacking Exposed Computer Forensics Blog



Hello reader,
        In yesterdays post I showed how saving an attachment applied the modification date that was stored within the attachment extended mapi properties. I was wondering how from a filesystem perspective you could tell the actual date the file was saved to the disk and as it turns out the filename attribute metadata has the dates the attachment was actually saved to the disk as seen below:


This is a png file, in the upcoming posts I'll be trying other file types to see if Outlook shows any different behaviors.


This is a 19-part series on Exploring Extended MAPI. You can find the rest of the posts here.