Difference between pages "Google Chrome" and "Mac OS X"

From ForensicsWiki
(Difference between pages)
Jump to: navigation, search
(Extension Cookies)
 
m (EFI boot)
 
Line 1: Line 1:
Google Chrome is a [[Web Browser|web browser]] developed by Google Inc.
+
{{Expand}}
  
== Configuration ==
+
Apple Inc.'s Macintosh OS X (pronounced "'''OS Ten'''") is the operating system distributed with Apple computers. It includes heavily used several programs by default, including [[Apple Mail]], a web browser called [[Apple Safari | Safari]], and an [[Apple Address Book]], and [[iCal]].  
The Google Chrome configuration can be found in the '''Preferences''' file.
+
  
On Linux
+
== EFI boot ==
<pre>
+
* Configuration in nvram
/home/$USER/.config/google-chrome/Default/Preferences
+
</pre>
+
  
On MacOS-X
+
The firmware looks for the boot partition in nvram.
<pre>
+
/Users/$USER/Library/Application Support/Google/Chrome/Default/Preferences
+
</pre>
+
  
On Windows XP
+
Mac OS X EFI boot process supports both MZ-PE/COFF and EFI fat binary type [[Executable executables]].
 
<pre>
 
<pre>
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences
+
/com.apple.recovery.boot/boot.efi
 +
/System/Library/CoreServices/boot.efi
 +
/usr/standalone/i386/boot.efi
 
</pre>
 
</pre>
  
On Windows Vista and later
+
== Disk image types ==
<pre>
+
 
C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Preferences
+
Mac OS X has support for various disk image types build-in, some of which are:
</pre>
+
* read-write disk image (.dmg) some of which use the [[Raw Image Format]]
 +
* [[Sparse Image format|Sparse disk image (.spareimage)]]
 +
* [[Sparse Bundle Image format|Sparse bundle disk image (.sparsebundle)]]
  
Or for '''Chromium'''
+
== Burn Folder ==
  
On Linux
+
Mac OS X Burn Folder:
 
<pre>
 
<pre>
/home/$USER/.config/chromium/Default/Preferences
+
$NAME.fpbf
 
</pre>
 
</pre>
  
On MacOS-X
+
This folder normally contains [[Mac OS X Alias Files|alias files]] (similar to LNK files under Windows). Which should have the following signature.
 
<pre>
 
<pre>
/Users/$USER/Library/Application Support/Chromium/Default/Preferences
+
00000000  62 6f 6f 6b 00 00 00 00  6d 61 72 6b 00 00 00 00  |book....mark....|
 
</pre>
 
</pre>
  
On Windows XP
+
These [[Mac OS X Alias Files|alias files]] contain additional date and time values.
 +
 
 +
Also check the following files for references to deleted .fpbf paths:
 
<pre>
 
<pre>
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Chromium\User Data\Default\Preferences
+
/Users/$USERNAME/Library/Preferences/com.apple.finder.plist
 +
/Users/$USERNAME/Library/Preferences/com.apple.sidebarlists.plist
 
</pre>
 
</pre>
  
On Windows Vista and later
+
Actual burning of optical media is logged in:
 
<pre>
 
<pre>
C:\Users\%USERNAME%\AppData\Local\Chromium\User Data\Default\Preferences
+
/var/log/system.log
 +
/Users/$USERNAME/Library/Logs/DiscRecording.log
 +
/private/var/.logs_exporter/cache/Users/$USERNAME/Library/Logs/DiscRecording.log
 
</pre>
 
</pre>
  
=== Plugins ===
+
== HFS/HFS+ date and time values ==
  
Information about plugins can be found under the "plugins section" of the Preferences file.
+
In HFS+ date and time values are stored in an unsigned 32-bit integer containing the number of seconds since January 1, 1904 at 00:00:00 (midnight) UTC (GMT). This is slightly different from HFS where the date and time value are stored using the local time. The maximum representable date is February 6, 2040 at 06:28:15 UTC (GMT). The date values do not account for leap seconds. They do include a leap day in every year that is evenly divisible by four. This is sufficient given that the range of representable dates does not contain 1900 or 2100, neither of which have leap days. Also see: [http://web.archive.org/web/20090214212148/http://developer.apple.com/technotes/tn/tn1150.html Technical Note TN1150 - HFS Plus Volume Format]
  
=== DNS Prefetching ===
+
Converting HFS/HFS+ date and time values with Python:
 +
<pre>
 +
import datetime
  
DNS is prefetched for related sites, e.g. links on the page.
+
print datetime.datetime( 1904, 1, 1 ) + datetime.timedelta( seconds=0xCBDAF25B )
This behavior is controlled by the setting "Predict network actions to improve page load performance", which is enabled by default.
+
 
+
If enabled the Preferences file contains:
+
<pre>
+
  "dns_prefetching": {
+
      "enabled": true,
+
 
</pre>
 
</pre>
  
If disabled the Preferences file contains:
+
== Launch Agents ==
 +
System-wide:
 
<pre>
 
<pre>
  "dns_prefetching": {
+
/Library/LaunchAgents
      "enabled": false,
+
/System/Library/LaunchAgents
 
</pre>
 
</pre>
  
== Start-up DNS queries ==
+
Per user:
 
+
When Chrome starts it queries for several non-existing hostnames that consists of a 10 random characters, E.g.
+
 
<pre>
 
<pre>
ttrgoiknff.mydomain.com
+
/Users/$USERNAME/Library/LaunchAgents
bxjhgftsyu.mydomain.com
+
yokjbjiagd.mydomain.com
+
 
</pre>
 
</pre>
  
This is used to determine if your ISP is hijacking NXDOMAIN results [http://www.google.com/support/forum/p/Chrome/thread?tid=3511015c72a7b314&hl=en].
+
These directories contain  [[Property list (plist)]] files.
  
== Disk Cache ==
+
== Launch Daemons ==
Google Chrome uses multiple caches, from [http://src.chromium.org/viewvc/chrome/trunk/src/net/base/cache_type.h?view=markup]:
+
System-wide:
 
<pre>
 
<pre>
// The types of caches that can be created.
+
/Library/LaunchDaemons
enum CacheType {
+
/System/Library/LaunchDaemons
    DISK_CACHE,  // Disk is used as the backing storage.
+
    MEMORY_CACHE,  // Data is stored only in memory.
+
    MEDIA_CACHE,  // Optimized to handle media files.
+
    APP_CACHE,  // Backing store for an AppCache.
+
    SHADER_CACHE, // Backing store for the GL shader cache.
+
    PNACL_CACHE, // Backing store the PNaCl translation cache
+
};
+
 
</pre>
 
</pre>
  
The Google Chrome disk cache can be found in:
+
These directories contain [[Property list (plist)]] files.
 
+
On Linux
+
  
 +
== Startup Items ==
 
<pre>
 
<pre>
/home/$USER/.cache/chromium/Default/Cache/
+
/Library/StartupItems/
/home/$USER/.cache/google-chrome/Default/Cache/
+
/System/Library/StartupItems/
/home/$USER/.config/chromium/Default/Cache/
+
/home/$USER/.config/google-chrome/Default/Cache/
+
 
</pre>
 
</pre>
  
 +
== Crash Reporter ==
 
<pre>
 
<pre>
/home/$USER/.cache/chromium/Default/Media Cache/
+
/Library/Application Support/CrashReporter
/home/$USER/.cache/google-chrome/Default/Media Cache/
+
/home/$USER/.config/chromium/Default/Media Cache/
+
/home/$USER/.config/google-chrome/Default/Media Cache/
+
 
</pre>
 
</pre>
  
<pre>
+
Contains text files named .crash, .diag, .spin
/home/$USER/.config/chromium/Default/Application Cache/Cache/
+
/home/$USER/.config/google-chrome/Default/Application Cache/Cache/
+
</pre>
+
  
 +
== Diagnostic Reports ==
 
<pre>
 
<pre>
/home/$USER/.config/chromium/Default/GPUCache/
+
/Library/Logs/DiagnosticReports
/home/$USER/.config/google-chrome/Default/GPUCache/
+
 
</pre>
 
</pre>
  
 +
== Internet Plug-Ins ==
 +
System-wide:
 
<pre>
 
<pre>
/home/$USER/.cache/chromium/PnaclTranslationCache/
+
/Library/Internet Plug-Ins
/home/$USER/.cache/google-chrome/PnaclTranslationCache/
+
 
</pre>
 
</pre>
  
On MacOS-X
+
Per user:
 
<pre>
 
<pre>
/Users/$USER/Caches/Chromium/Default/Cache/
+
/Users/$USERNAME/Library/Internet Plug-Ins
/Users/$USER/Caches/Google/Chrome/Default/Cache/
+
 
</pre>
 
</pre>
  
On Windows XP
+
== Quarantine event database ==
<pre>
+
See [http://menial.co.uk/blog/2011/06/16/mac-quarantine-event-database/]
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Chromium\User Data\Cache\
+
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Cache\
+
</pre>
+
  
On Windows Vista and later
+
Snow Leopard and earlier
 
<pre>
 
<pre>
C:\Users\%USERNAME%\AppData\Local\Google\Chromium\Default\Cache\
+
/Users/$USER/Library/Preferences/com.apple.LaunchServices.QuarantineEvents
C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Cache\
+
 
</pre>
 
</pre>
  
The Chrome Cache contains different files with the following file names:
 
* index
 
* data_#; where # contains a decimal digit.
 
* f_######; where # contains a hexadecimal digit.
 
 
For more info see Chrome developers site [http://www.chromium.org/developers/design-documents/network-stack/disk-cache].
 
 
== History ==
 
Chrome stores the history of visited sites in a file named '''History'''. This file uses the [[SQLite database format]].
 
 
The '''History''' file can be found in same location as the '''Preferences''' file.
 
 
There is also '''Archived History''' that predates information in the '''History''' file.
 
Note that the '''Archived History''' only contains visits.
 
 
=== Timestamps ===
 
The '''History''' file uses the different timestamps.
 
 
==== visits.visit_time ====
 
 
The '''visits.visit_time''' is in (the number of) microseconds since January 1, 1601 UTC
 
 
Some Python code to do the conversion into human readable format:
 
 
<pre>
 
<pre>
date_string = datetime.datetime( 1601, 1, 1 )
+
SELECT datetime(LSQuarantineTimeStamp + 978307200, "unixepoch") as LSQuarantineTimeStamp, LSQuarantineAgentName, LSQuarantineOriginURLString, LSQuarantineDataURLString from LSQuarantineEvent;
            + datetime.timedelta( microseconds=timestamp )
+
 
</pre>
 
</pre>
  
Note that this timestamp is not the same as a Windows filetime which is (the number of) 100 nanoseconds since January 1, 1601 UTC
+
Lion and later
 
+
==== downloads.start_time ====
+
 
+
The '''downloads.start_time''' is in (the number of) seconds since January 1, 1970 UTC
+
 
+
Some Python code to do the conversion into human readable format:
+
 
<pre>
 
<pre>
date_string = datetime.datetime( 1970, 1, 1 )
+
/Users/$USER/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2
            + datetime.timedelta( seconds=timestamp )
+
 
</pre>
 
</pre>
  
=== Example queries ===
+
== sleepimage ==
Some example queries:
+
This file is similar to the hibernation file on Windows.
 
+
To get an overview of the visited sites:
+
 
<pre>
 
<pre>
SELECT datetime(((visits.visit_time/1000000)-11644473600), "unixepoch"), urls.url, urls.title FROM urls, visits WHERE urls.id = visits.url;
+
/private/var/vm/sleepimage
 
</pre>
 
</pre>
  
Note that the visit_time conversion looses precision.
+
Also see: [http://osxdaily.com/2010/10/11/sleepimage-mac/]
  
To get an overview of the downloaded files:
+
== Last shutdown logs ==
 
<pre>
 
<pre>
SELECT datetime(downloads.start_time, "unixepoch"), downloads.url, downloads.full_path, downloads.received_bytes, downloads.total_bytes FROM downloads;
+
/private/var/log/com.apple.launchd/launchd-shutdown.system.log
 +
/private/var/log/com.apple.launchd/launchd-shutdown.system.log.1
 
</pre>
 
</pre>
  
How the information of the downloaded files is stored in the database can vary per version of Chrome as of version 26:
+
== Package Files (.PKG) ==
<pre>
+
Package Files (.PKG) are XAR archives [http://en.wikipedia.org/wiki/Xar_(archiver)] that contain a cpio archive and metadata [http://s.sudre.free.fr/Stuff/Ivanhoe/FLAT.html].
SELECT datetime(((downloads.start_time/1000000)-11644473600), "unixepoch"), downloads.target_path, downloads_url_chains.url, downloads.received_bytes, downloads.total_bytes \
+
FROM downloads, downloads_url_chains WHERE downloads.id = downloads_url_chains.id;
+
</pre>
+
  
== Cookies ==
+
== Also see ==
Chrome stores the cookies in a file named '''Cookies'''. This file uses the [[SQLite database format]].
+
* [[MacOS Process Monitoring]]
 +
* [[Acquiring a MacOS System with Target Disk Mode]]
 +
* [[Converting Binary Plists]]
 +
* [[FileVault Disk Encryption]]
 +
* [[File Vault]]
  
=== Extension Cookies ===
+
=== Formats ===
Chrome stores the cookies used by extensions in a file named '''Extension Cookies'''. This file uses the [[SQLite database format]].
+
* [[Basic Security Module (BSM) file format]]
 +
* [[Property list (plist)]]
  
<pre>
+
== External Links ==
SELECT datetime(((cookies.creation_utc/1000000)-11644473600), "unixepoch"), cookies.host_key, cookies.name, cookies.value, cookies.path, \
+
* [http://www.apple.com/macosx/ Official website]
datetime(((cookies.expires_utc/1000000)-11644473600), "unixepoch"), cookies.secure, cookies.httponly, datetime(((cookies.last_access_utc/1000000)-11644473600), "unixepoch"), \
+
* [http://en.wikipedia.org/wiki/OS_X Wikipedia entry on OS X]
cookies.has_expires, cookies.persistent, cookies.priority FROM cookies;
+
* [http://menial.co.uk/blog/2011/06/16/mac-quarantine-event-database/ Quarantine event database]
</pre>
+
* [http://www2.tech.purdue.edu/cit/Courses/cit556/readings/MacForensicsCraiger.pdf Mac Forensics: Mac OS X and the HFS+ File System] by P. Craiger
 +
* [http://web.me.com/driley/iWeb/Previous_files/Directory_Services_Overview.pdf Mac OS X Directory Services Integration including Active Directory]
 +
* [http://digitalinvestigation.wordpress.com/2012/04/04/geek-post-nskeyedarchiver-files-what-are-they-and-how-can-i-use-them/ NSKeyedArchiver files – what are they, and how can I use them?]
 +
* [http://krypted.com/mac-os-x/command-line-alf-on-mac-os-x/ Command Line ALF on Mac OS X]
 +
* [http://newosxbook.com/DMG.html Demystifying the DMG File Format]
 +
* [https://code.google.com/p/mac-security-tips/wiki/ALL_THE_TIPS mac-security-tips]
  
== See Also ==
+
=== Apple Examiner ===
 +
* [http://www.appleexaminer.com/ The Apple Examiner]
 +
* [http://www.appleexaminer.com/MacsAndOS/Analysis/USBOSX/USBOSX.html USB Entries on OS X]
 +
* [http://www.appleexaminer.com/Downloads/MacForensics.pdf Macintosh Forensics - A Guide for the Forensically Sound Examination of a Macintosh Computer] by Ryan R. Kubasiak
  
* [[SQLite database format]]
+
=== EFI ===
 
+
* [http://ho.ax/posts/2012/02/carving-up-efi-fat-binaries/ Carving up EFI fat binaries], by snare, February 24, 2012
== External Links ==
+
* [http://en.wikipedia.org/wiki/Google_Chrome Wikipedia article on Google Chrome]
+
* [http://www.chromium.org/user-experience/user-data-directory The Chromium Projects - User Data Directory]
+
* [http://www.chromium.org/developers/design-documents/network-stack/disk-cache Chrome Disk Cache]
+
* [http://www.google.com/support/forum/p/Chrome/thread?tid=3511015c72a7b314&hl=en Chrome support forum article random 10 character hostnames on startup]
+
* [http://www.useragentstring.com/pages/Chrome/ Chrome User Agent strings]
+
* [http://computer-forensics.sans.org/blog/2010/01/21/google-chrome-forensics/ Google Chrome Forensics] by [[Kristinn Guðjónsson]], January 21, 2010
+
* [http://linuxsleuthing.blogspot.ch/2013/02/cashing-in-on-google-chrome-cache.html?m=1 Cashing in on the Google Chrome Cache], [[John Lehr]], February 24, 2013
+
* [http://www.obsidianforensics.com/blog/history-index-files-removed-from-chrome/ History Index files removed from Chrome v30], by Ryan Benson, October 2, 2013
+
* [https://hindsight-internet-history.googlecode.com/files/Evolution_of_Chrome_Databases.png Evolution of Chrome Databases], by Ryan Benson, November 12, 2013
+
  
== Tools ==
+
=== iCloud ===
=== Open Source ===
+
* [http://support.apple.com/kb/HT4865?viewlocale=en_US&locale=en_US iCloud: iCloud security and privacy overview]
* [https://code.google.com/p/hindsight-internet-history/ hindsight-internet-history]
+
  
[[Category:Applications]]
+
[[Category:Mac OS X]]
[[Category:Web Browsers]]
+
[[Category:Operating systems]]

Revision as of 05:03, 25 June 2014

Information icon.png

Please help to improve this article by expanding it.
Further information might be found on the discussion page.

Apple Inc.'s Macintosh OS X (pronounced "OS Ten") is the operating system distributed with Apple computers. It includes heavily used several programs by default, including Apple Mail, a web browser called Safari, and an Apple Address Book, and iCal.

EFI boot

  • Configuration in nvram

The firmware looks for the boot partition in nvram.

Mac OS X EFI boot process supports both MZ-PE/COFF and EFI fat binary type Executable executables.

/com.apple.recovery.boot/boot.efi
/System/Library/CoreServices/boot.efi
/usr/standalone/i386/boot.efi

Disk image types

Mac OS X has support for various disk image types build-in, some of which are:

Burn Folder

Mac OS X Burn Folder:

$NAME.fpbf

This folder normally contains alias files (similar to LNK files under Windows). Which should have the following signature.

00000000  62 6f 6f 6b 00 00 00 00  6d 61 72 6b 00 00 00 00  |book....mark....|

These alias files contain additional date and time values.

Also check the following files for references to deleted .fpbf paths:

/Users/$USERNAME/Library/Preferences/com.apple.finder.plist
/Users/$USERNAME/Library/Preferences/com.apple.sidebarlists.plist

Actual burning of optical media is logged in:

/var/log/system.log
/Users/$USERNAME/Library/Logs/DiscRecording.log
/private/var/.logs_exporter/cache/Users/$USERNAME/Library/Logs/DiscRecording.log

HFS/HFS+ date and time values

In HFS+ date and time values are stored in an unsigned 32-bit integer containing the number of seconds since January 1, 1904 at 00:00:00 (midnight) UTC (GMT). This is slightly different from HFS where the date and time value are stored using the local time. The maximum representable date is February 6, 2040 at 06:28:15 UTC (GMT). The date values do not account for leap seconds. They do include a leap day in every year that is evenly divisible by four. This is sufficient given that the range of representable dates does not contain 1900 or 2100, neither of which have leap days. Also see: Technical Note TN1150 - HFS Plus Volume Format

Converting HFS/HFS+ date and time values with Python:

import datetime

print datetime.datetime( 1904, 1, 1 ) + datetime.timedelta( seconds=0xCBDAF25B )

Launch Agents

System-wide:

/Library/LaunchAgents
/System/Library/LaunchAgents

Per user:

/Users/$USERNAME/Library/LaunchAgents

These directories contain Property list (plist) files.

Launch Daemons

System-wide:

/Library/LaunchDaemons
/System/Library/LaunchDaemons

These directories contain Property list (plist) files.

Startup Items

/Library/StartupItems/
/System/Library/StartupItems/

Crash Reporter

/Library/Application Support/CrashReporter

Contains text files named .crash, .diag, .spin

Diagnostic Reports

/Library/Logs/DiagnosticReports

Internet Plug-Ins

System-wide:

/Library/Internet Plug-Ins

Per user:

/Users/$USERNAME/Library/Internet Plug-Ins

Quarantine event database

See [1]

Snow Leopard and earlier

/Users/$USER/Library/Preferences/com.apple.LaunchServices.QuarantineEvents
SELECT datetime(LSQuarantineTimeStamp + 978307200, "unixepoch") as LSQuarantineTimeStamp, LSQuarantineAgentName, LSQuarantineOriginURLString, LSQuarantineDataURLString from LSQuarantineEvent;

Lion and later

/Users/$USER/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2

sleepimage

This file is similar to the hibernation file on Windows.

/private/var/vm/sleepimage

Also see: [2]

Last shutdown logs

/private/var/log/com.apple.launchd/launchd-shutdown.system.log
/private/var/log/com.apple.launchd/launchd-shutdown.system.log.1

Package Files (.PKG)

Package Files (.PKG) are XAR archives [3] that contain a cpio archive and metadata [4].

Also see

Formats

External Links

Apple Examiner

EFI

iCloud