Safari is a web browser developed by Apple and is included as part of the Apple Macintosh OS X operating system. It has been the default browser on all Apple computers since Mac OS X version 10.3 Panther and its first public release was in 2003. Safari is currently at major version 5 released in June 2010.
In June 2007, Apple released a version of Safari for the Microsoft Windows operating systems. The version of Safari at this time was version 3. Windows versions have been updated in parallel with Mac OS X versions ever since and are also at the time of writing at version 5.
Forensic Analysis of Safari
NetAnalysis® supports the analysis of all versions of Safari. Safari runs on Microsoft Windows and Apple Macintosh OS X operating systems. The data created by Safari is file based and the structure of the data it creates is similar between operating systems.
Safari Browser Versions 3 – 5
Safari, like all web browsers, aggressively prompts the user to update to the latest version to incorporate new security patches. This means that you are likely to find the most recent version on computers currently in use, which at the time of writing is Version 5.
Internet History and Cache data is stored within each users profile, the exact location will vary depending on the operating system in use.
Safari stores Internet history records within an Apple property list file entitled history.plist (as shown in Figure 1). Property list files have the file extension .plist and therefore are commonly referred to as plist files. Plist files may be in either an XML format or a binary format. For earlier versions of Safari (both Windows and Macintosh variants) the history.plist file was in the XML format. Later and current versions utilise the binary plist format. NetAnalysis® has support for both the XML and binary formatted history plist files.
Safari versions 3 to 5 store the cache in SQLite 3 database files entitled cache.db (as shown in Figure 2). Earlier versions of Safari stored cache in files that had the file extension .cache.
Stage 1 – Recovery of Live Safari Data
To process and examine Safari live Internet history and cache with NetAnalysis®, the following methodology should be used. In the first instance, it is important to obtain the live data still resident within the file system (web pages can only be rebuilt from live cache data).
This can be done in either of the following three ways:
- Export all of the data (preferably in the original folder structure) utilising a mainstream forensic tool
- Mount the image using a forensic image tool
- Access the original disk via a write protection device
Once the data has been extracted to an export folder, open NetAnalysis® and select File » Open All History From Folder. Select the folder containing your exported Safari data.
Stage 2 – Recovery of Deleted Safari Data
HstEx® is a Windows-based, advanced professional forensic data recovery solution designed to recover deleted browser artefacts and Internet history from a number of different source evidence types. HstEx® supports all of the major forensic image formats.
HstEx® currently supports the recovery of Safari XML and Binary plist data. Figure 4 shows HstEx® processing an E01 image for Apple Safari web data.
Please see the following link for information on using HstEx® to recover browser data:
Please ensure you select the correct Data Type prior to processing. Safari v5 stores history data in binary plist files. When HstEx® has finished processing, it will open a window similar to the one shown in Figure 5. These files can now be imported into NetAnalysis® v1 by either selecting File» Open History and selecting all of the files, or select File » Open All History From Folder and selecting the root recovery folder.
Default Folder Locations
Apple Safari data can be found in the following default folder locations (Figure 6):