Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Mac Forensics


Published on

Published in: Technology

Mac Forensics

  1. 1. MacIntosh Forensics A presentation by Special Agent Thomas R. Nesbitt Federal Bureau of Investigation With assistance from presentations Prepared by John Mallory And Wayne Mitchell
  2. 2. The Mothership
  3. 3. WHY MAC FORENSICS? <ul><li>Mac’s are rapidly gaining market share. </li></ul><ul><li>Why? </li></ul><ul><li>iPod and iPhone have increased interest in other Apple products </li></ul><ul><li>Many people now consider Vista more difficult to use than Mac’s. </li></ul>
  4. 5. MAC CLASSIC <ul><li>OS 8.0 and OS 9.0 </li></ul><ul><li>HFS and HFS+ on Motorola CISC architecture </li></ul><ul><li>Significant enhancements were made throughout the upgrades on these systems - but they are very different from Windows based systems. </li></ul>
  5. 6. MAC CLASSIC <ul><li>To conduct a forensic exam you will have to go back to: </li></ul><ul><ul><li>Tech tools </li></ul></ul><ul><ul><li>Norton Unerase for Mac </li></ul></ul><ul><ul><li>Specific separate tools that conducted specific tasks </li></ul></ul>
  6. 7. MAC FORENSICS <ul><li>HFS - Hierarchical File System </li></ul><ul><ul><li>Most interesting component is the Resource Fork - which allows a file to have multiple forks (normally a data and a resource fork). This was much more advanced than comparable file systems like DOS’s FAT at the time. </li></ul></ul><ul><ul><li>Introduced the Catalog File, which replaced the flat table structure of MFS (previous). Much faster lookup and recall. </li></ul></ul>
  7. 8. MAC FORENSICS <ul><li>HFS+ </li></ul><ul><ul><li>It is now the preferred file system on the MAC OS X. It supports journaling, quotas, byte-range locking, Finder information in metadata, multiple encodings, hard and symbolic links, aliases, support for hiding file extensions on a per-file basis. </li></ul></ul><ul><ul><li>It only journals metadata, but this is very useful for recovery (First introduced with MacServer for recovery) </li></ul></ul>
  8. 10. MAC OS X <ul><li>Cheetah, Puma, Jaguar and Panther were still on the Motorola CISC Architecture - but the kernel is now on a modified BSD Unix platform (Darwin). </li></ul><ul><li>This created a stable platform that will respond to Unix-type commands </li></ul><ul><ul><li>Can be a powerful tool at the command line if you choose to conduct your forensic analysis at that level. </li></ul></ul>
  9. 12. MAC FORENSICS <ul><li>Mac OS 10.4.4 “Tiger” is the first MacIntosh OS to be on the Intel platform (instead of the Motorola CISC platform) </li></ul><ul><li>WHY?? - Because Apple felt that the Intel x86 would be the better chip platform for the future </li></ul>
  10. 13. OS X <ul><li>OS X is Linux based and when a file is deleted is often unrecoverable </li></ul><ul><li>OS X does not create INFO2 records that record when a file was deleted </li></ul><ul><li>OS X does have unallocated space, but it contains far less useable data due to the way files are deleted. </li></ul><ul><li>OS X has a built in wiping (erasing) utility that effectively destroys any chance of recovering data </li></ul>
  11. 14. OS X <ul><li>OS X does not create temporary link files. </li></ul><ul><li>OS X does not record what devices were attached to the computer (except while they are still attached) </li></ul><ul><li>OS X only tracks Accessed and Modified times. </li></ul><ul><li>OS X records a sequential File ID each time a file is created or written to the volume on the hard drive. </li></ul>
  12. 15. OS X <ul><li>OS X Mail and third party Email clients cannot be processed into the standard forensic tools </li></ul><ul><li>OS X stores the Internet Cache in one contiguous file and is limited compared to the PC Internet Cache </li></ul><ul><li>OS X stores user data primarily in the “user folder” for a particular user. </li></ul><ul><li>OS X stores configuration data in multiple files and locations unlike Windows Registry </li></ul>
  13. 16. OS X <ul><li>One other good thing about OS X </li></ul><ul><ul><li>Relatively MalWare and Virus free </li></ul></ul>
  14. 17. ACQUISITION <ul><li>Once you have decided that an image of a MacIntosh computer is necessary you need to make some determinations </li></ul><ul><li>If you have a Mac laptop and there is no obvious hard drive cover, you’re probably not going to get the hard drive out. </li></ul>
  15. 19. ACQUISITION <ul><li>iMAC’s - If you find yourself with one of the old colored models, there are disassembly instructions on Apple’s website - takes a bit of digging. </li></ul>
  16. 20. ACQUISITION <ul><li>Mac Desktop Pro - The only machine that you can be reasonably assured of being able to remove the hard drive and physically image by conventional means </li></ul>
  17. 21. ACQUISITION <ul><li>Target Mode </li></ul><ul><li>Apple has built-in to all late model Mac computers, a technology that allows direct access to the drive in a protected mode. </li></ul>
  18. 22. ACQUISITION <ul><li>Target Disk Mode </li></ul><ul><li>This technology allows the MacIntosh to become an external Firewire hard drive providing access to the contents contained within </li></ul><ul><li>Target Disk Mode only connects the Master ATA drive - no Slave ATA, ATAPI or SCSI drives. </li></ul>
  19. 23. ACQUISITION <ul><li>Once you have determined that Target Disk Mode is the necessary process </li></ul><ul><li>Power on the Mac and IMMEDIATELY hold down the Option key. </li></ul><ul><li>It will then boot into either the “Startup Manager” or “Open Firmware Password” </li></ul>
  20. 24. ACQUISITION <ul><li>If you are presented with bootable partitions, you have booted into Startup Manager. </li></ul><ul><li>Power off the Mac by holding down the Power button until it shuts down </li></ul>
  21. 25. ACQUISITION <ul><li>If the screen looks like this, there is an Open Firmware Password on the machine </li></ul><ul><li>You cannot boot into Target Disk Mode until the password is removed </li></ul>
  22. 26. ACQUISITION <ul><li>Removing the Open Firmware Password: </li></ul><ul><li>Turn on the Computer AND </li></ul><ul><li>Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears. </li></ul><ul><li>Hold the keys down until the computer restarts and you hear the startup sound for the second time </li></ul><ul><li>Release the keys </li></ul><ul><li>This resets the password - BTW they will know that you just blew away their password </li></ul>
  23. 27. ACQUISITION <ul><li>Restart the computer while holding down the “T” key </li></ul><ul><li>You should now see the firewire symbol on the computer screen. </li></ul><ul><li>Now it is time to turn on your examination machine BUT you must make sure that disk arbitration is off. </li></ul><ul><li>AND YOU MIGHT WANT TO THINK ABOUT </li></ul>
  24. 28. ACQUISITION <ul><li>Single User Mode </li></ul><ul><ul><li>This can be used to gain root access by mounting the internal drive as read only. </li></ul></ul><ul><ul><li>This creates the ability to gather additional system information: </li></ul></ul><ul><ul><li>It is accessed by holding down the apple and S key when turning on the computer </li></ul></ul>
  25. 29. ACQUISITION <ul><li>It is command line based </li></ul><ul><li>Commands and information gleaned about the computer: </li></ul><ul><ul><li>uname -v - displays the OS kernel version </li></ul></ul><ul><ul><li>sw_vers - current OS version (important) </li></ul></ul><ul><ul><li>date - displays system date and time </li></ul></ul>
  26. 30. ACQUISITION <ul><li>ioreg -c ATADeviceNub - displays the internal hard drive serial number model and make </li></ul><ul><li>uptime - display the system up time </li></ul><ul><li>hostinfo - display network information </li></ul><ul><li>nvram -p Non-Volital Read Access Memory - display system preferences stored in RAM </li></ul>
  27. 31. ACQUISITION <ul><li>ls /dev/disk* - displays all attached hard drives </li></ul><ul><li>pdisk - display hard drive partition information </li></ul><ul><ul><li>Example: pdisk /dev/disk* -dump </li></ul></ul>
  28. 32. ACQUISITION <ul><li>pmap - displays similar information to pdisk in addition to further information </li></ul><ul><li>Command: hdiutil pmap /dev/disk# </li></ul><ul><li>Unix reports partitions as disk#s0, disk#s1, disk#s2, etc. </li></ul><ul><li>The Mac Operating System starts partitions starting at 1 (you have to add 1 to each entry) - if pmap reports HFS partition disk1s7 you need to mount disk1s8 (not 7) </li></ul><ul><li>Use pmap if there is FAT32 or NTFS. </li></ul>
  29. 33. DISK ARBITRATION JAGUAR <ul><li>Important Path !!! </li></ul><ul><ul><li>/System/Library/StartupItems/Disks/Disks </li></ul></ul><ul><li>To edit file use sudo pico or vi </li></ul><ul><ul><li>vi /System/Library/StartupItems/Disks/Disks </li></ul></ul><ul><li>Go to line /sbin/autodiskmount -va and place or remove “#” comment front </li></ul><ul><ul><li># /sbin/autodiskmount -va </li></ul></ul><ul><li>In pico use ctrl+X to save changes, then y for Yes </li></ul>
  30. 34. DISK ARBITRATION PANTHER <ul><li>Diskarbitration is the main process used by Panther to manage and mount disk partitions </li></ul><ul><li>The presence of diskarbitration.plist (regardless of file name) in /etc/mach_init.d signifies Diskarbitration is active </li></ul><ul><ul><li>/etc/mach_init.d/diskarbitration.plist </li></ul></ul>
  31. 35. DISK ARBITRATION-DISABLING PANTHER <ul><li>Go to the /etc/mach_init.d Directory </li></ul><ul><ul><li>cd /etc/mach_init.d </li></ul></ul><ul><li>Create a directory /Library called DiskArb_Backup </li></ul><ul><li>Copy diskarbitrationd.plist to DiskArb_Backup (always make sure its there </li></ul><ul><ul><li>sudo cp /etc.mach_init.d/diskarbitrationd.plist /Library/DiskArb_Backup </li></ul></ul><ul><li>Now you can remove (delete) the file </li></ul><ul><ul><li>Sudo rm /etc/mach_init.d/diskarbitrationd </li></ul></ul><ul><li>Reboot the system </li></ul>
  32. 36. ACQUISITION TARGET MODE <ul><li>Suspect computer, acquisition computer </li></ul><ul><li>Turn off diskarbitration (autodiskmounting in Jaguar) on acquisition computer, reboot and shutdown </li></ul><ul><li>All computers must be of when connecting cables </li></ul><ul><li>Connect FireWire cable from suspect computer to acquisition computer </li></ul>
  33. 37. ACQUISITION TARGET MODE <ul><li>Verify Firmware password does not exist, power on holding the option key down, if lock is present, power down. </li></ul><ul><li>Reboot suspect computer, hold down the “T” key </li></ul><ul><li>Continue until you see a blue screen with the Firewire symbol </li></ul>
  34. 38. ACQUISITION -BLACK BAG <ul><li>Not all Macs support FireWire target mode </li></ul><ul><ul><li>Boot CD is a good alternative here. </li></ul></ul><ul><li>Once the blue screen and the floating FireWire symbol appear, you can start the acquisition computer (make sure diskarbitration is OFF) </li></ul><ul><li>Confirm a new disk appears in </li></ul><ul><ul><li>ls /dev/disk* </li></ul></ul><ul><li>Verify with sudo ioreg -c “IOMedia” </li></ul><ul><li>Imaging is ‘pretty’ fast over FireWire </li></ul><ul><ul><li>28 minutes for 10 Gb. </li></ul></ul>
  39. 43. ACQUISITION <ul><li>If you need to do the imaging from the command line: </li></ul><ul><ul><li>dd if=/dev/disk2 of=/tmp/case123 </li></ul></ul><ul><ul><li>dd if=/dev/disk2 of=/dev/disk3/case123 </li></ul></ul><ul><ul><li>dd if=/dev/disk2 of=/dev/disk3/case123.dmg </li></ul></ul><ul><ul><li>dcfldd provides status and MD5 automatically </li></ul></ul><ul><ul><li>dcfldd if=/dev/disk conv=noerror,sync hashwindow=0 bs=1024 |split - -b2000m /dev/case123 - Here the image will be split into 2 Gb segments and do and MD5 of the entire drive. </li></ul></ul>
  40. 44. EXAMINATION <ul><li>To mount the drive for Mac examination the image segments will have to end with .dmg </li></ul><ul><li>If they are .001 then they will have to be renamed. </li></ul><ul><li>If not, then if you have it, you could use Blackbag Tech’s DMGRename. </li></ul><ul><li>Once a .dmg image, then you should lock it before opening. </li></ul>
  41. 45. EXAMINATION <ul><li>You can open it by double-clicking on the .dmg file. </li></ul><ul><li>If you have Blackbag Forensics then you can use Shadowmounter. </li></ul><ul><ul><li>This will lock it and mount it as read only </li></ul></ul>
  42. 46. EXAMINATION <ul><li>Once it is safely mounted: </li></ul><ul><ul><li>You will need to look for the files associated with the pertinent acitivities. </li></ul></ul><ul><ul><li>Internet activity and history </li></ul></ul><ul><ul><li>Email </li></ul></ul><ul><ul><li>Text documents </li></ul></ul><ul><ul><li>Graphics </li></ul></ul><ul><ul><li>Multimedia </li></ul></ul><ul><ul><li>Chat and P2P </li></ul></ul>
  43. 47. EXAMINATION <ul><li>The top level of the Mac OS X Filesystem contains four permanent folders </li></ul><ul><ul><li>Applications, Library, System, Users </li></ul></ul><ul><ul><li>Applications - contains any pre-installed applications and those installed for use by any user (if you want to hide an app. then it should be placed in the user’s directory) </li></ul></ul><ul><ul><ul><li>Setting read/write permissions. The top level account is root or superuser and is automatically disabled by Mac OS X </li></ul></ul></ul>
  44. 48. EXAMINATION <ul><li>Users - allows users to own their own files and provide a means of controlling other user’s access to these files. </li></ul><ul><li>This can be considered the home directory and files and folders stored within are protected from other users. </li></ul>
  45. 49. EXAMINATION <ul><li>Library - storage location for systemwide application preferences, application libraries and information that should be accessible to any user. </li></ul><ul><li>There is also a Library folder under each user and this is where you will find the individual information that we are probably looking for. </li></ul>
  47. 51. EXAMINATION <ul><li>System- </li></ul><ul><ul><li>By default the System folder contains another folder, called Library </li></ul></ul><ul><ul><li>This Library folder is reserved for use by Apple’s software. Within this folder are the components that make up the core of the Mac OS X. Any modifications here can easily render your computer unbootable. </li></ul></ul>
  48. 52. GRAB - Built in Utility
  49. 53. Common Email Clients <ul><li>Mail (Apple) </li></ul><ul><li>Microsoft Entourage </li></ul><ul><li>America Online </li></ul>
  50. 54. Software Tools <ul><li>Emailchemy </li></ul><ul><li>Native application (Apple Mail, Entourage, AOL, etc) </li></ul><ul><li>CanOpener </li></ul>
  51. 55. Email <ul><li>For Mac OS X mail you can play the substitution game. </li></ul><ul><ul><li>Create a new user on your MacIntosh and then substitute the user/Library/Mail folder that you want to look at for the new users. </li></ul></ul><ul><li>If you don’t want to do this and have some money (or its not Mac OS x mail): </li></ul><ul><ul><li>Emailchemy is probably the most versatile for the price - shareware around $30.00 </li></ul></ul>
  52. 56. Apple Mail <ul><li>Bundled with OS X </li></ul><ul><li>Each message is stored as an individual file (.emlx) </li></ul><ul><li>Previous versions of Mail used mbox containers. </li></ul><ul><li>Is not recognized in FTK as email, but can still be viewed. </li></ul>
  53. 57. Apple Mail - file locations <ul><li>cache: ~/Library/Caches/Mail/* </li></ul><ul><li>acct & email: ~/Library/Mail/* </li></ul><ul><li>property list: ~/Library Preferences/ </li></ul>
  54. 58. Microsoft Entourage <ul><li>Comes with Microsoft Office </li></ul><ul><li>Very much like Microsoft Outlook in appearance/use </li></ul><ul><li>The main user database file (the equivalent of the .pst file in windows) can not be processed in FTK, Encase, or IEA </li></ul><ul><li>Two ways to process </li></ul><ul><ul><li>“ Transplant” the user folder to your examination station or import the data into your installed version of Entourage </li></ul></ul><ul><ul><li>Emailchemy - can import into Mail then print to PDF </li></ul></ul>
  55. 59. Microsoft Entourage - file locations <ul><li>user data: ~/Documents/Microsoft User Data </li></ul><ul><li>user database: ~/Documents/Microsoft User Data/Office {X/2004} Identities/Main Identity/Database </li></ul><ul><li>prefs: ~/Library/Preferences/Microsoft/ </li></ul>
  56. 60. Microsoft Entourage - Processing <ul><li>Copy user files to your workstation </li></ul><ul><li>Emailchemy </li></ul><ul><ul><li>Import “mbox” files into Apple Mail </li></ul></ul><ul><ul><li>Select all - Print to PDF - saved to appropriately named folder </li></ul></ul>
  57. 61. America Online 10.3.7 <ul><li>As an email client </li></ul><ul><li>Email is not saved to the local client by default </li></ul><ul><li>Email can not be processed by FTK or Encase </li></ul><ul><li>Best way to process email is to “transplant” the AOL version in use and the user data to your workstation </li></ul>
  58. 62. America Online - file locations <ul><li>user folder : ~/Library/Preferences/America Online/ (profiles, history cache et. al) </li></ul><ul><li>property list : ~/Library/Preferences/ </li></ul><ul><li>filing cabinet : /Users/Shared/America Online/<user>’s Filing Cabinet (email) </li></ul><ul><li>contacts : /Users/Shared/America Online/<user>’s Contacts </li></ul><ul><li>favorites : /Users/Shared/America Online/<user>’s Favorites </li></ul><ul><li>buddy list : /Users/Shared/America Online/<user>’s Feedbag </li></ul><ul><li>address book : /Users/Shared/America Online/Address Book </li></ul>
  59. 63. America Online - Processing <ul><li>Application: /Applications/AOL </li></ul><ul><li>Recommended to copy over subject’s version </li></ul><ul><li>Must use command line for proper permission transfer </li></ul><ul><ul><li>*** As “root” issue command: </li></ul></ul><ul><ul><ul><li>“ cp -r -p /{evidence}/Applications/AOL /Applications/” </li></ul></ul></ul><ul><ul><li>Can drag-drop: </li></ul></ul><ul><ul><ul><li>~/Library/Preferences/America Online/ </li></ul></ul></ul><ul><ul><ul><li>/Users/Shared/America Online/ </li></ul></ul></ul><ul><ul><li>Run AOL to see subject login name - select name </li></ul></ul><ul><ul><ul><li>(no need to login) </li></ul></ul></ul><ul><ul><li>View File Cabinet, etc. and print to PDF </li></ul></ul>
  60. 64. Emailchemy
  61. 65. Common Browsers <ul><li>Safari (Apple) </li></ul><ul><li>Firefox </li></ul><ul><li>America Online </li></ul><ul><li>Internet Explorer (no longer supported) </li></ul><ul><li>Opera </li></ul>
  62. 66. Browser Data <ul><li>bookmarks - user saved favorite URLs </li></ul><ul><li>cache files - text & pictures of visited web pages </li></ul><ul><li>cookies - tokens stored by websites </li></ul><ul><li>downloads - list of files that user has transferred to his computer </li></ul><ul><li>history - list of previously visited websites </li></ul><ul><li>typed URLs - user entered URLs </li></ul><ul><li>recent search terms </li></ul>Forensic data recovered from browsers typically includes the following:
  63. 67. Software Tools <ul><li>BBT Safari Tools </li></ul><ul><li>Property List Editor (included with Xcode installation) </li></ul><ul><li>CanOpener (Vendor) </li></ul>
  64. 68. Safari Browser <ul><li>Bundled with OS X (default browser) </li></ul><ul><li>cache files are stored as numbered folders and files with a .cache extension </li></ul><ul><li>cache files are actually container files and cannot be viewed directly, they must be extracted </li></ul><ul><li>history, bookmarks, downloads and cookies are stored as property list (.plist) files. </li></ul><ul><li>Best way to process is to use the BBT Safari Tools </li></ul><ul><li>Processing with FTK possible through data carve, but is not an aesthetic advantage </li></ul>
  65. 69. Safari - file locations <ul><li>cache : ~/Library/Caches/Safari/* </li></ul><ul><li>cookies : ~/Library/Cookies/cookies.plist </li></ul><ul><li>bookmarks : ~/Library/Safari/bookmarks.plist </li></ul><ul><li>downloads : ~/Library/Safari/downloads.plist </li></ul><ul><li>history : ~/Library/Safari/history.plist </li></ul><ul><li>property list : ~/Library/Preferences/ </li></ul><ul><li>browser icons : ~/Library/Safari/Icons/* </li></ul><ul><li>metadata : ~/Library/Metadata/Safari/ </li></ul><ul><li>~ = /Users/{account name}/ </li></ul>
  66. 70. Firefox Browser <ul><li>Stores cache, history, etc. similar to Netscape/ Mozilla </li></ul><ul><li>cache, cookies, history data is recognized by FTK </li></ul><ul><ul><li>Categorizes file types, GIF, JPG, etc. by header </li></ul></ul><ul><ul><li>Possible string search advantages </li></ul></ul>
  67. 71. Firefox - file locations <ul><li>profile folder : ~/Library/Application Support/Firefox/* (bookmarks, cookies, history) </li></ul><ul><li>cache : ~/Library/Caches/Firefox/Profiles/* </li></ul><ul><li>registry : ~/Library/Preferences/Mozilla Registry </li></ul><ul><li>config : ~/Library/Application Support/FullCircle/ </li></ul>
  68. 72. America Online 10.3.7 <ul><li>As an internet browser </li></ul><ul><li>Stores cache, history, etc. similar to Netscape/ Mozilla </li></ul><ul><li>cache, cookies, history and buddy list (feedbag) data is recognized by FTK </li></ul><ul><li>Demo/practical shown later with email </li></ul>
  69. 73. Microsoft Internet Explorer <ul><li>history/cache : ~/Library/Caches/MS Internet Cache/*. waf </li></ul><ul><li>downloads : ~/Library/Preferences/Explorer/Download Cache. waf </li></ul><ul><li>favorites : ~/Library/Preferences/Explorer/Favorites.html </li></ul><ul><li>property list : ~/Library/Preferences/ </li></ul>waf files are container files which hold the browser cache or downloaded files. Usually 10MB by default. Microsoft has discontinued support for IE and it is no longer available for download.
  70. 74. MS IE - Processing <ul><li>Property List Editor (Xcode) - Good Examples </li></ul><ul><ul><li>~/Library/Preferences/“” </li></ul></ul><ul><ul><ul><li>Shows Applications and Documents </li></ul></ul></ul><ul><ul><li>~/Library/Preferences/”” </li></ul></ul><ul><ul><ul><li>RecentSearchStrings </li></ul></ul></ul>
  71. 75. Opera Browser <ul><li>Stores cache, history, etc. similar to Netscape/ Mozilla </li></ul><ul><li>cache, cookies, history data is recognized by FTK </li></ul><ul><ul><li>Not necessarily flagged or categorized appropriately </li></ul></ul><ul><ul><li>No real advantage to import into FTK except: </li></ul></ul><ul><ul><ul><li>Indexed searches </li></ul></ul></ul><ul><ul><ul><li>Thumbnail graphic view </li></ul></ul></ul><ul><li>Iview Media Pro - drag/drop </li></ul><ul><ul><li>Keep in mind limitation on amount of files per catalog (128,000) </li></ul></ul>
  72. 76. Opera - file locations <ul><li>~/Library/Application Support/Opera (mail) </li></ul><ul><li>~/Library/Preferences/Opera Preferences </li></ul><ul><li>~/Library/Preferences/Opera Preferences/Icons </li></ul><ul><li>~/Library/Caches/Opera/Cache </li></ul><ul><li>~/Library/Caches/Opera/CacheOp </li></ul>
  73. 77. Opera - file locations <ul><li>Recent/TypedURLs : ~/Library/Preferences/Opera Preferences/Sessions/ </li></ul><ul><li>Bookmarks : ~/Library/Preferences/Opera Preferences/Bookmarks </li></ul><ul><li>Contacts : ~/Library/Preferences/Opera Preferences/contacts.adr </li></ul><ul><li>Cookies : ~/Library/Preferences/Opera Preferences/cookies4.dat </li></ul><ul><li>Downloads : ~/Library/Preferences/Opera Preferences/download.dat </li></ul><ul><li>History : ~/Library/Preferences/Opera Preferences/Opera Global History </li></ul><ul><li>Typed History : ~/Library/Preferences/Opera Preferences/Opera Direct History </li></ul><ul><li>All but COOKIES are readable, clear text. </li></ul>
  74. 78. iChat <ul><li>Bundled with OS X </li></ul><ul><li>Compatible with AOL/AIM </li></ul><ul><li>Chats can be encrypted when both parties are using iChat </li></ul><ul><li>Does not log chats by default </li></ul><ul><li>Video conferencing is possible </li></ul><ul><ul><li>Video may be captured by 3rd party software </li></ul></ul><ul><ul><li>Saves as QuickTime clips/movies </li></ul></ul><ul><li>Best way to view saved chats is to use iChat (native application) </li></ul>
  75. 79. iChat file locations <ul><li>saved chats : ~/Documents/iChats/ (default, can be changed) </li></ul><ul><li>buddy icons : ~/Library/Caches/ </li></ul><ul><li>cache : ~/Library/Caches/iChat/* </li></ul><ul><li>recent pics : ~/Library/Images/iChat Recent Pictures (self icons) </li></ul><ul><li>property lists : </li></ul><ul><ul><li>~/Library/Preferences/iChat.AIM.plist </li></ul></ul><ul><ul><li>~/Library/Preferences/iChat.Jabber.plist </li></ul></ul><ul><ul><li>~/Library/Preferences/iChat.plist </li></ul></ul><ul><ul><li>~/Library/Preferences/iChat.SubNet.plist </li></ul></ul><ul><ul><li>~/Library/Preferences/iChatAgent.plist </li></ul></ul>
  76. 80. Other Chat Programs <ul><li>AOL Instant Messenger (AIM) </li></ul><ul><li>Yahoo! Messenger (YIM) </li></ul><ul><li>Fire (multi protocol capability - no longer being developed/supported) </li></ul><ul><li>Adium (multi protocol capability - developers jumped from FIRE) </li></ul><ul><li>Aqua (X-Chat using IRC engine) </li></ul><ul><li>Jabber </li></ul><ul><li>MSN Messenger </li></ul><ul><li>Charla </li></ul><ul><li>Camfrog </li></ul><ul><li>I’m sure there’s tons more… this was just a 5 minute search on Google. </li></ul>
  77. 81. STRING SEARCHES - Common Techniques <ul><li>Spotlight </li></ul><ul><li>Command line (Find + Grep) </li></ul><ul><li>BBT Active File Searcher </li></ul>
  78. 82. Spotlight <ul><li>Axiomatic </li></ul><ul><li>Index located as “/.Spotlight-V100/ContentIndex.db” </li></ul><ul><li>Metadata indexed as “/.Spotlight-V100/store.db” </li></ul><ul><li>By default, indexes all Home folders (local and network-based, as well as FileVault and non-FileVault) </li></ul><ul><ul><li>Includes the Documents, Movies, Music, and Pictures folders </li></ul></ul><ul><ul><li>The Trash of all users and each mounted volume </li></ul></ul><ul><ul><li>~/Library/Metadata/ </li></ul></ul><ul><ul><li>~/Library/Caches/Metadata/ </li></ul></ul><ul><ul><li>~/Library/Mail/ </li></ul></ul><ul><ul><li>~/Library/Caches/ </li></ul></ul><ul><ul><li>~/Library/PreferencePanes/ </li></ul></ul><ul><ul><li>Spotlight also searches these non-Home folder locations by default: </li></ul></ul><ul><ul><ul><li>/Library/PreferencePanes/ </li></ul></ul></ul><ul><ul><ul><li>/System/Library/PreferencePanes/ </li></ul></ul></ul><ul><ul><ul><li>/Applications </li></ul></ul></ul>
  79. 83. Spotlight <ul><li>Pros: </li></ul><ul><ul><li>Quick index search for terms </li></ul></ul><ul><ul><li>Finds keywords inside files as well as file names (also inside PDF) </li></ul></ul><ul><li>Cons: </li></ul><ul><ul><li>Doesn’t search within containers/package files (plugins needed) or compressed (ZIP) </li></ul></ul><ul><ul><ul><li>MS Office installs plugin </li></ul></ul></ul><ul><ul><ul><li>Most new APPS installs plugin </li></ul></ul></ul><ul><ul><li>Doesn’t index all files; just areas like those mentioned before </li></ul></ul><ul><ul><li>Use with write-blockers is “flaky” at best </li></ul></ul>
  80. 84. Spotlight <ul><li>System Preferences - Spotlight Preferences </li></ul><ul><ul><li>Privacy Tab - can “+” (add) areas NOT to include in the search </li></ul></ul><ul><li>If you use it, keep in mind the limitations </li></ul><ul><li>I really only use it to search for: </li></ul><ul><ul><li>VPC, VHD, Sparse, DMG, HDD </li></ul></ul><ul><ul><li>Large sized files (over 10MB) </li></ul></ul><ul><ul><ul><li>Demo - put anything in Spotlight to start it. </li></ul></ul></ul><ul><ul><ul><li>Click “+” next to Save, then change Kind to Size </li></ul></ul></ul><ul><ul><ul><li>Greater Than = 10MB or 100MB </li></ul></ul></ul><ul><ul><ul><li>Remove the “anything” from above to get all items </li></ul></ul></ul>
  81. 85. Command Line (Find + Grep) <ul><li>Axiomatic </li></ul><ul><li>Pros: </li></ul><ul><ul><li>Once you have the syntax down, it’s easy and fast </li></ul></ul><ul><li>Cons: </li></ul><ul><ul><li>Doesn’t search within containers/package files (PDF) or compressed (ZIP) </li></ul></ul><ul><ul><li>Syntax can cause headaches </li></ul></ul><ul><ul><li>Have to run two separate searches </li></ul></ul><ul><ul><ul><li>Either filenames with keyword hits </li></ul></ul></ul><ul><ul><ul><li>Or within the contents of files </li></ul></ul></ul><ul><ul><li>Hits on folder names may give you too much </li></ul></ul>
  82. 86. Command Line <ul><li>Find + Grep examples for filenames: </li></ul><ul><ul><li>“ find [path to evidence] -depth | grep “keyword” | tee [path/filename of log] | cpio -pdm [path to output/extract to]” </li></ul></ul><ul><ul><li>“ find [path to evidence] -depth | grep -f [path/filename of multiple terms] | tee [path/filename of log] | cpio -pdm [path to output/extract to]” </li></ul></ul>
  83. 87. Command Line <ul><li>Find + Grep examples for contents: </li></ul><ul><ul><li>“ find [path to evidence] -depth -type f -exec grep -abHirl “keyword” {} ; | tee [path/filename of log] | cpio -pdm [path to output/extract to]” </li></ul></ul><ul><ul><li>“ find [path to evidence] -depth -type f -exec grep -abHirlf [path/filename of multiple terms] {} ; | tee [path/filename of log] | cpio -pdm [path to output/extract to]” </li></ul></ul>
  84. 88. BBT Active File Searcher <ul><li>Perhaps the easiest to use </li></ul><ul><li>Most likely to be used by non-command line or non-Unix examiner </li></ul><ul><li>Pros: </li></ul><ul><ul><li>Finds keywords in file names and content within (not PDF) </li></ul></ul><ul><ul><li>Searches through some containers and package files (not compressed ZIP) </li></ul></ul><ul><ul><li>Easy to copy files out and save report </li></ul></ul><ul><li>Cons: </li></ul><ul><ul><li>Doesn’t search through image (DMG) files </li></ul></ul><ul><ul><li>Report saved as simple text document versus HTML </li></ul></ul><ul><ul><li>Doesn’t copy files in absolute path </li></ul></ul><ul><ul><ul><li>Uses numerical prefix to avoid duplicate file names </li></ul></ul></ul>