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

From ForensicsWiki
(Difference between pages)
Jump to: navigation, search
(Disk Cache)
 
(Startup Items)
 
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
+
== Disk image types ==
<pre>
+
/home/$USER/.config/google-chrome/Default/Preferences
+
</pre>
+
  
On MacOS-X
+
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]]
/Users/$USER/Library/Application Support/Google/Chrome/Default/Preferences
+
* [[Sparse Image format|Sparse disk image (.spareimage)]]
</pre>
+
* [[Sparse Bundle Image format|Sparse bundle disk image (.sparsebundle)]]
  
On Windows XP
+
== Burn Folder ==
<pre>
+
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences
+
</pre>
+
  
On Windows Vista and later
+
Mac OS X Burn Folder:
 
<pre>
 
<pre>
C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Preferences
+
$NAME.fpbf
 
</pre>
 
</pre>
  
Or for '''Chromium'''
+
This folder normally contains [[Mac OS X Alias Files|alias files]] (similar to LNK files under Windows). Which should have the following signature.
 
+
On Linux
+
 
<pre>
 
<pre>
/home/$USER/.config/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 MacOS-X
+
These [[Mac OS X Alias Files|alias files]] contain additional date and time values.
<pre>
+
/Users/$USER/Library/Application Support/Chromium/Default/Preferences
+
</pre>
+
  
On Windows XP
+
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:
 
+
DNS is prefetched for related sites, e.g. links on the page.
+
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>
 
<pre>
  "dns_prefetching": {
+
import datetime
      "enabled": true,
+
</pre>
+
  
If disabled the Preferences file contains:
+
print datetime.datetime( 1904, 1, 1 ) + datetime.timedelta( seconds=0xCBDAF25B )
<pre>
+
  "dns_prefetching": {
+
      "enabled": false,
+
 
</pre>
 
</pre>
  
== Start-up DNS queries ==
+
== Launch Agents ==
 
+
When Chrome starts it queries for several non-existing hostnames that consists of a 10 random characters, E.g.
+
 
<pre>
 
<pre>
ttrgoiknff.mydomain.com
+
/System/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].
+
== Launch Daemons ==
 
+
== Disk Cache ==
+
The Google Chrome disk cache can be found in:
+
 
+
On Linux
+
 
<pre>
 
<pre>
/home/$USER/.config/google-chrome/Default/Cache/
+
/Library/LaunchDaemons/
 +
/System/Library/LaunchDaemons/
 
</pre>
 
</pre>
  
 +
== Startup Items ==
 
<pre>
 
<pre>
/home/$USER/.config/google-chrome/Default/Application Cache/Cache/
+
/Library/StartupItems/
 +
/System/Library/StartupItems/
 
</pre>
 
</pre>
  
 +
== Crash Reporter ==
 
<pre>
 
<pre>
/home/$USER/.config/google-chrome/Default/Media Cache/
+
/Library/Application Support/CrashReporter
 
</pre>
 
</pre>
  
On MacOS-X
+
== Diagnostic Reports ==
 
<pre>
 
<pre>
/Users/$USER/Caches/Google/Chrome/Default/Cache/
+
/Library/Logs/DiagnosticReports
 
</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\Google\Chrome\User Data\Cache\
+
</pre>
+
  
On Windows Vista and later
+
Snow Leopard and earlier
 
<pre>
 
<pre>
C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Cache\
+
/Users/$USER/Library/Preferences/com.apple.LaunchServices.QuarantineEvents
 
</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:
+
== 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, "unixepoch"), downloads.url, downloads.full_path, downloads.received_bytes, downloads.total_bytes FROM downloads;
+
</pre>
+
  
How the information of the downloaded files is stored in the database can vary per version of Chrome as of version 26:
+
== Also see ==
<pre>
+
* [[MacOS Process Monitoring]]
SELECT datetime(((downloads.start_time/1000000)-11644473600), "unixepoch"), downloads.target_path, downloads_url_chains.url, downloads.received_bytes, downloads.total_bytes \
+
* [[Acquiring a MacOS System with Target Disk Mode]]
FROM downloads, downloads_url_chains WHERE downloads.id = downloads_url_chains.id;
+
* [[Converting Binary Plists]]
</pre>
+
* [[FileVault Disk Encryption]]
 +
* [[File Vault]]
  
== See Also ==
+
=== Formats ===
 +
* [[Basic Security Module (BSM) file format]]
 +
* [[Property list (plist)]]
  
* [[SQLite database format]]
+
== External Links ==
 +
* [http://www.apple.com/macosx/ Official website]
 +
* [http://en.wikipedia.org/wiki/OS_X Wikipedia entry on OS X]
 +
* [http://menial.co.uk/blog/2011/06/16/mac-quarantine-event-database/ Quarantine event database]
 +
* [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]
  
== External Links ==
+
=== Apple Examiner ===
* [http://en.wikipedia.org/wiki/Google_Chrome Wikipedia article on Google Chrome]
+
* [http://www.appleexaminer.com/ The Apple Examiner]
* [http://www.chromium.org/user-experience/user-data-directory The Chromium Projects - User Data Directory]
+
* [http://www.appleexaminer.com/MacsAndOS/Analysis/USBOSX/USBOSX.html USB Entries on OS X]
* [http://www.chromium.org/developers/design-documents/network-stack/disk-cache Chrome Disk Cache]
+
* [http://www.appleexaminer.com/Downloads/MacForensics.pdf Macintosh Forensics - A Guide for the Forensically Sound Examination of a Macintosh Computer] by Ryan R. Kubasiak
* [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 13:07, 12 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.

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/Library/LaunchAgents/

Launch Daemons

/Library/LaunchDaemons/
/System/Library/LaunchDaemons/

Startup Items

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

Crash Reporter

/Library/Application Support/CrashReporter

Diagnostic Reports

/Library/Logs/DiagnosticReports

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]

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

iCloud