Difference between pages "Tools:Data Recovery" and "Google Chrome"

From Forensics Wiki
(Difference between pages)
Jump to: navigation, search
(Carving)
 
(Example queries)
 
Line 1: Line 1:
= Partition Recovery =
+
Google Chrome is a [[Web Browser|web browser]] developed by Google Inc.
  
*[http://www.stellarinfo.com/recover-windows-nt.htm NTFS Partition Recovery]
+
== Configuration ==
: Stellar NTFS Data Recovery Software to recover data from Windows based NTFS/NTFS5 file systems
+
The Google Chrome configuration can be found in the '''Preferences''' file.
  
*[http://www.infinadyne.com/cddvd_diagnostic.html CD/DVD Diagnostic]
+
On Linux
: Recover data and video from CDs/DVDs/Blu-Ray.  This is specifically not for forensic purposes but for data recovery.  A different tool called CD/DVD Inspector is for forensic examination of optical media.
+
<pre>
 +
/home/$USER/.config/google-chrome/Default/Preferences
 +
</pre>
  
*[http://www.ptdd.com/index.htm Partition Table Doctor]
+
On MacOS-X
: Recover deleted or lost partitions (FAT16/FAT32/NTFS/NTFS5/EXT2/EXT3/SWAP).
+
<pre>
 +
/Users/$USER/Library/Application Support/Google/Chrome/Default/Preferences
 +
</pre>
  
*[http://www.diskinternals.com/ntfs-recovery/ NTFS Recovery]
+
On Windows XP
: DiskInternals NTFS Recovery is a fully automatic utility that recovers data from damaged or formatted disks.
+
<pre>
 +
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences
 +
</pre>
  
*[http://www.stud.uni-hannover.de/user/76201/gpart/ gpart]
+
On Windows Vista and later
: Gpart is a tool which tries to guess the primary partition table of a PC-type hard disk in case the primary partition table in sector 0 is damaged, incorrect or deleted.
+
<pre>
 +
C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Preferences
 +
</pre>
  
*[http://www.cgsecurity.org/wiki/TestDisk TestDisk]
+
Or for '''Chromium'''
: [[TestDisk]] is an OpenSource software and is licensed under the GNU Public License (GPL).
+
  
*[http://www.stellarinfo.com/partition-recovery.htm Partition Recovery Software]
+
On Linux
: Partition Recovery software for NTFS & FAT system that examines lost windows partition of damaged and corrupted hard drive.
+
<pre>
 +
/home/$USER/.config/chromium/Default/Preferences
 +
</pre>
  
== See Also ==
+
On MacOS-X
 +
<pre>
 +
/Users/$USER/Library/Application Support/Chromium/Default/Preferences
 +
</pre>
  
* [http://support.microsoft.com/?kbid=166997 Using Norton Disk Edit to Backup Your Master Boot Record]
+
On Windows XP
 +
<pre>
 +
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Chromium\User Data\Default\Preferences
 +
</pre>
  
== Notes ==
+
On Windows Vista and later
 +
<pre>
 +
C:\Users\%USERNAME%\AppData\Local\Chromium\User Data\Default\Preferences
 +
</pre>
  
* "fdisk /mbr" restores the boot code in the [[Master Boot Record]], but not the partition itself. On newer versions of Windows you should use fixmbr, bootrec, mbrfix, or [[MBRWizard]]. You can also extract a copy of the specific standard MBR code from tools like bootrec.exe and diskpart.exe in Windows (from various offsets) and copy it to disk with dd (Use bs=446 count=1). For Windows XP SP2 c:\%WINDIR%\System32\diskpart.exe the MBR code is found between offset 1b818h and 1ba17h.
+
=== Plugins ===
  
= Data Recovery =
+
Information about plugins can be found under the "plugins section" of the Preferences file.
The term "Data Recovery" is frequently used to mean forensic recovery, but the term really should be used for recovering data from damaged media.  
+
  
* [http://www.stellarinfo.com/ Stellar Data Recovery]
+
=== DNS Prefetching ===
: Data recovery software services & tools to recover lost data from hard drive.
+
  
*[http://www.salvationdata.com/data-recovery-equipment/hd-doctor.htm HD Doctor Suite]
+
DNS is prefetched for related sites, e.g. links on the page.
: HD Doctor Suite is a set of professional tools used to fix firmware problem
+
This behavior is controlled by the setting "Predict network actions to improve page load performance", which is enabled by default.
  
*[http://www.salvationdata.com SalvationDATA]
+
If enabled the Preferences file contains:
: Claims to have a program that can read the "bad blocks" of Maxtor drives with proprietary commands.
+
<pre>
 +
  "dns_prefetching": {
 +
      "enabled": true,
 +
</pre>
  
*[http://www.toolsthatwork.com/bringback.htm BringBack]
+
If disabled the Preferences file contains:
: BringBack offers easy to use, inexpensive, and highly successful data recovery for Windows and Linux (ext2) operating systems and digital images stored on memory cards, etc.
+
<pre>
 +
  "dns_prefetching": {
 +
      "enabled": false,
 +
</pre>
  
*[http://www.runtime.org/raid.htm RAID Reconstructor]
+
== Start-up DNS queries ==
: Runtime Software's RAID Reconstructor will reconstruct RAID Level 0 (Striping) and RAID Level 5 drives.
+
  
* [http://www.e-rol.com/en/ e-ROL]
+
When Chrome starts it queries for several non-existing hostnames that consists of a 10 random characters, E.g.
: Erol allows you to recover through the internet files erased by mistake. Recover your files online for free.
+
<pre>
 +
ttrgoiknff.mydomain.com
 +
bxjhgftsyu.mydomain.com
 +
yokjbjiagd.mydomain.com
 +
</pre>
  
* [http://www.recuva.com/ Recuva]
+
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].
: Recuva is a freeware Windows tool that will recover accidentally deleted files.
+
  
* [http://www.snapfiles.com/get/restoration.html Restoration]
+
== Disk Cache ==
: Restoration is a freeware Windows software that will allow you to recover deleted files
+
The Google Chrome disk cache can be found in:
  
* [http://www.undelete-plus.com/ Undelete Plus]
+
On Linux
: Undelete Plus is a free deleted file recovery tool that works for all versions of Windows (95-Vista), FAT12/16/32, NTFS and NTFS5 filesystems and can perform recovery on various solid state devices.
+
<pre>
 +
/home/$USER/.config/google-chrome/Default/Application Cache/Cache/
 +
</pre>
  
* [http://www.data-recovery-software.net/ R-Studio]
+
On MacOS-X
: R-Studio is a data recovery software suite that can recover files from FAT(12-32), NTFS, NTFS 5, HFS/HFS+, FFS, UFS/UFS2 (*BSD, Solaris), Ext2/Ext3 (Linux) and so on.
+
<pre>
 +
/Users/$USER/Caches/Google/Chrome/Default/Cache/
 +
</pre>
  
* [http://www.deepspar.com/ DeepSpar Disk Imager]
+
On Windows XP
: DeepSpar Disk Imager is a dedicated disk imaging device built to handle disk-level problems and to recover bad sectors on a hard drive.
+
<pre>
 +
C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Cache\
 +
</pre>
  
* [http://digital-assembly.com/products/adroit-photo-recovery/ Adroit Photo Recovery]
+
On Windows Vista and later
: Adroit Photo Recovery is a photo recovery tool that uses validated carving and is able to recover fragmented photos. Adroit Photo Recovery is able
+
<pre>
: to recover high definition RAW images from Canon, Nikon etc.
+
C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Cache\
 +
</pre>
  
* [http://sourceforge.net/projects/freerecover/ FreeRecover]
+
The Chrome Cache contains different files with the following file names:
: FreeRecover is a small program that can recover deleted files from NTFS drives.
+
* index
 +
* data_#; where # contains a decimal digit.
 +
* f_######; where # contains a hexadecimal digit.
  
See also [[Data Recovery Stories]]
+
For more info see Chrome developers site [http://www.chromium.org/developers/design-documents/network-stack/disk-cache].
  
=Carving=
+
== History ==
*[http://www.datalifter.com/products.htm DataLifter® - File Extractor Pro]
+
Chrome stores the history of visited sites in a file named '''History'''. This file uses the [[SQLite database format]].
: Data carving runs on multiple threads to make use of modern processors
+
  
* [http://sourceforge.net/projects/defraser/ NFI Defraser]
+
The '''History''' file can be found in same location as the '''Preferences''' file.
: "Defraser is a forensic analysis application that can be used to detect full and partial multimedia files in datastreams. It is typically used to find (and restore) complete or partial video files in datastreams (for instance, unallocated diskspace)." Written in C#; runs on Windows.
+
  
*[http://www.simplecarver.com/ Simple Carver Suite]
+
There is also '''Archived History''' that predates information in the '''History''' file.
: Simple Carver Suite is a collection of unique tools designed for a number of purposes including data recovery, forensic computing and eDiscovery. The suite was originally designed for data recovery and has since expanded to include unique file decoding, file identification and file classification.  
+
Note that the '''Archived History''' only contains visits.
  
*[http://foremost.sourceforge.net/ Foremost]
+
=== Timestamps ===
: Foremost is a console program to recover files based on their headers, footers, and internal data structures.  
+
The '''History''' file uses the different timestamps.
  
*[http://www.digitalforensicssolutions.com/Scalpel/ Scalpel]
+
==== visits.visit_time ====
: Scalpel is a fast file carver that reads a database of header and footer definitions and extracts matching files from a set of image files or raw device files. Scalpel is filesystem-independent and will carve files from FATx, NTFS, ext2/3, or raw partitions.
+
  
*[[EnCase]]
+
The '''visits.visit_time''' is in (the number of) microseconds since January 1, 1601 UTC
: EnCase comes with some enScripts that will do carving.
+
  
*[[CarvFs]]
+
Some Python code to do the conversion into human readable format:
: A virtual file system (fuse) implementation that can provide carving tools with the possibility to do recursive multi tool zero-storage carving (also called in-place carving). Patches and scripts for scalpel and foremost are provided. Works on raw and encase images.
+
<pre>
 +
date_string = datetime.datetime( 1601, 1, 1 )
 +
            + datetime.timedelta( microseconds=timestamp )
 +
</pre>
  
*[[LibCarvPath]]
+
Note that this timestamp is not the same as a Windows filetime which is (the number of) 100 nanoseconds since January 1, 1601 UTC
: A shared library that allows carving tools to use zero-storage carving on carvfs virtual files.
+
  
*[http://greg-kennedy.com/nwserver/?p=10 midi-carver]
+
==== downloads.start_time ====
: midi-carver is a data carver for MIDI files.  
+
  
*[http://www.cgsecurity.org/wiki/PhotoRec PhotoRec]
+
The '''downloads.start_time''' is in (the number of) seconds since January 1, 1970 UTC
: PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from Hard Disks and CDRom and lost pictures (thus, its 'Photo Recovery' name) from digital camera memory.
+
  
*[http://www.datarescue.com/photorescue/ PhotoRescue]
+
Some Python code to do the conversion into human readable format:
: Datarescue PhotoRescue Advanced is picture and photo data recovery solution made by the creators of IDA Pro. PhotoRescue will undelete, unerase and recover pictures and files lost on corrupted, erased or damaged compact flash (CF) cards, SD Cards, Memory Sticks, SmartMedia and XD cards.
+
<pre>
 +
date_string = datetime.datetime( 1970, 1, 1 )
 +
            + datetime.timedelta( seconds=timestamp )
 +
</pre>
  
* [https://www.uitwisselplatform.nl/projects/revit RevIt]
+
=== Example queries ===
: RevIt (Revive It) is an experimental carving tool, initially developed for the DFRWS 2006 carving challenge. It uses 'file structure based carving'. Note that RevIt currently is a work in progress.
+
Some example queries:
  
* [http://jbj.rapanden.dk/magicrescue/ Magic Rescue]
+
To get an overview of the visited sites:
: Magic Rescue is a file carving tool that uses "magic bytes" in a file contents to recover data.
+
<pre>
 +
SELECT datetime(((visits.visit_time/1000000)-11644473600), "unixepoch"), urls.url, urls.title FROM urls, visits WHERE urls.id = visits.url;
 +
</pre>
  
* [[FTK]]
+
Note that the visit_time conversion looses precision.
: FTK2 includes some file carvers
+
 
 +
To get an overview of the downloaded files:
 +
<pre>
 +
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 a newer variant of the previous query is:
 +
<pre>
 +
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>
 +
 
 +
== See Also ==
  
* [[X-Ways]]
+
* [[SQLite database format]]
: X-Ways Forensic provides a robust list of file types as well as the ability to specific custom file headers/trailers.  File types are available for carving, identification and filtering.
+
  
*[[Adroit Photo Forensics]]
+
== External Links ==
: Adroit Photo Forensics supports data carving of popular image formats. Also supports fragmented carving using [[File_Carving:SmartCarving|SmartCarving]] and [[File_Carving:GuidedCarving|GuidedCarving]].
+
* [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://computer-forensics.sans.org/blog/2010/01/21/google-chrome-forensics/ Google Chrome Forensics] by [[Kristinn Guðjónsson]]
 +
* [http://www.useragentstring.com/pages/Chrome/ Chrome User Agent strings]
 +
* [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://belkasoft.com/bfc/en/forensic_carver.asp Belkasoft Forensic Carver], [http://belkasoft.com/bec/en/evidence_center.asp Belkasoft Evidence Center]
+
[[Category:Applications]]
: Belkasoft Forensic Carver and Belkasoft Evidence Center support data carving for Instant Messenger and Browser artifacts. These tools support carving of physical or logical Windows drives as well as popular forensic image formats like Encase Evidence Files, DD or SMART.
+
[[Category:Web Browsers]]

Revision as of 00:51, 20 April 2013

Google Chrome is a web browser developed by Google Inc.

Contents

Configuration

The Google Chrome configuration can be found in the Preferences file.

On Linux

/home/$USER/.config/google-chrome/Default/Preferences

On MacOS-X

/Users/$USER/Library/Application Support/Google/Chrome/Default/Preferences

On Windows XP

C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Default\Preferences

On Windows Vista and later

C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Preferences

Or for Chromium

On Linux

/home/$USER/.config/chromium/Default/Preferences

On MacOS-X

/Users/$USER/Library/Application Support/Chromium/Default/Preferences

On Windows XP

C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Chromium\User Data\Default\Preferences

On Windows Vista and later

C:\Users\%USERNAME%\AppData\Local\Chromium\User Data\Default\Preferences

Plugins

Information about plugins can be found under the "plugins section" of the Preferences file.

DNS Prefetching

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:

   "dns_prefetching": {
      "enabled": true,

If disabled the Preferences file contains:

   "dns_prefetching": {
      "enabled": false,

Start-up DNS queries

When Chrome starts it queries for several non-existing hostnames that consists of a 10 random characters, E.g.

ttrgoiknff.mydomain.com
bxjhgftsyu.mydomain.com
yokjbjiagd.mydomain.com

This is used to determine if your ISP is hijacking NXDOMAIN results [1].

Disk Cache

The Google Chrome disk cache can be found in:

On Linux

/home/$USER/.config/google-chrome/Default/Application Cache/Cache/

On MacOS-X

/Users/$USER/Caches/Google/Chrome/Default/Cache/

On Windows XP

C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Google\Chrome\User Data\Cache\

On Windows Vista and later

C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\Cache\

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 [2].

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:

date_string = datetime.datetime( 1601, 1, 1 )
            + datetime.timedelta( microseconds=timestamp )

Note that this timestamp is not the same as a Windows filetime which is (the number of) 100 nanoseconds since January 1, 1601 UTC

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:

date_string = datetime.datetime( 1970, 1, 1 )
            + datetime.timedelta( seconds=timestamp )

Example queries

Some example queries:

To get an overview of the visited sites:

SELECT datetime(((visits.visit_time/1000000)-11644473600), "unixepoch"), urls.url, urls.title FROM urls, visits WHERE urls.id = visits.url;

Note that the visit_time conversion looses precision.

To get an overview of the downloaded files:

SELECT datetime(downloads.start_time, "unixepoch"), downloads.url, downloads.full_path, downloads.received_bytes, downloads.total_bytes FROM downloads;

How the information of the downloaded files is stored in the database can vary per version of Chrome a newer variant of the previous query is:

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;

See Also

External Links