Last Thursday I had the pleasure of attending the Mac Forensics F3 training day.Â For those of you that do not know what F3 is, it is the â€˜First Forensic Forumâ€™.Â Most digital forensic investigators in the UK are linked to this organisation in some way and they offer training days every few months.
I thought that I would quickly note some items that were shared with us before I either forget about it or lose my notes.
This can be accomplished on either a Mac or a PC. If youâ€™re looking to image with a Mac there are a few options to choose from but one of the best is offered by the guys over at http://macosxforensics.com.Â Their Mac OS X Forensics Imager is based on libewf and offers a graphical interface to the console-driven acquisition tool.
Obviously there are the common everyday items such as DD and DCFLDD that are easily run on the Mac.
Although a write blocker is always recommended it is possible to image a drive without.Â In order to do this you need to turn off â€˜Disk Arbitrationâ€™. This is the process that automounts drives when they are connected to the computer.Â After turning this off any newly connected drives will not be mounted. Just donâ€™t forget to turn it back on once youâ€™re finished otherwise you may run into some difficulty.Â In order to turn this off just open Terminal and type:
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.diskarbitration.plist
To turn it back on type:
sudo launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitration.plist
Spotlight Files â€“ These maintain an index of the volume from which the file is taken.
Swap File – /private/var/vm/swapfile0
Sleepimage â€“ This file is like the hiberfile on Windows.
Log Files – /var/log â€“ can be opened with the Mac â€˜Consoleâ€™
Property Lists â€“ Two main types: XML and Binary â€“ plists are like the Windows registry. A plist editor is available on the Mac Developer Tools provided with a new Mac. There is also â€˜Pref Setterâ€™ (which has a nice search feature) and iPod Robot offers a plist reader for Windows.
Printing â€“ The Mac has an inbuilt PDF printer. This doubles up as a printer spool. This means that, regardless of the printer used, a PDF is created of anything that is printed from a Mac. Once the printing is finished the PDF is released into unallocated clusters. A file carve for PDFs in unallocated space will return items printed with the Mac. These PDFs will also contain metadata providing the application used to print.Â I thought that this was the most interesting part of the day. This may be worth some more investigation and a full article written.
PeekIt, iBored, Hex Fiend, File Juicer, Mactracker, and Firefox Add-ons â€“ CacheViewer and SQLiteManager.
4 responses to “Mac Forensics”
Can you please provide a bit more detail on the PDF creation during printing? I am intrigued by the prospect, but it seems a bit outlandish to think that Mac would waste the CPU cycles on such a pointless process. Unless Mac only send PDF’s to the printer spool. If this were the case then I could see it, but it doesn’t seem like an efficient way to process print jobs. By “released into unallocated clusters”, do you mean it simply deletes the PDF? Any additional information you can provide would be greatly appreciated.
Its just something they glossed over unfortunately. I’m trying to find the time to experiment with this a little and confirm these findings.
The day was meant to be a workshop instead of an in depth training day and the points I was trying to cover were about recovering deleted material not printing processes.
I have had success with recovering printed documents and from the testing I did the OS does create a PDF of documents printed before deleting it, I am not sure at which part of the process it does this but I wanted to let people know to look for it.
I will be doing more work on this and will try to publish my findings.
This may seem outlandish but some simple testing will show it does happen.
I would like to think that the day was put on to give forensic practitioners an insight in to Apple Mac forensics and show them areas to look into and allow them to then do their own research from there.
Mike, my apologies, I didn’t mean it to come off that way at all. It is definately something I want to look into in the future. Thanks for the heads up, I’m sure many people will find it invaluable.