If you can see this check that

Main Page


Web Browser Forensics

User:
Password:

Objectives

This practical will guide you through a small investigation using Linuxzoo Caine.
***WARNING THE LAB HAS NOT YET BEEN EDITED FOR AUTOPSY 4.12***. Everything should still work, but the instructions will be out of date.

You will analyse Firefox forensic artefacts, which are stored mainly in SQLite databases, and explore what happens to deleted history.

It is expected that you use additional reference material as appropriate – some useful references are listed in the lecture slides. A starting point could be:

Morrill, D (2011), Firefox Forensics and SQLite Tables for Computer Forensics Analysis, available at https://resources.infosecinstitute.com/topics/digital-forensics/firefox-and-sqlite-forensics/ , gives a good overview of the different SQLite files and tables that Firefox uses to store user data.

Scenario

From CCTV, the police identified a female suspect entering an internet cafe in Edinburgh at approx. 19:30 on Sunday 15/2/15. Her name is as yet unknown. After she left the internet cafe at approx. 20:55, the police obtained a warrant to seize the PC she was using. During the acquisition, they found a USB stick connected to the PC, which may belong to the suspect. While it is known through the manager of the cafe that the suspect did use the internet, no traces of relevant browsing history were found on the PC itself, and the router is configured not to store packet content information. It is now your task to analyse the USB stick. The police would like to know:

To reset all the check buttons from a previous attempt click here

Question 1: Initial Inspection

/images/found_usb/USB_dd.001 is a forensic disk image of the USB stick found. Unfortunately you cannot access it directly from Autopsy in its current location, so first copy it to /home/caine/USB_dd.001.

cp /images/found_usb/USB_dd.001 /home/caine

Create a new case in Autopsy. Add a data source. Choose "Disk Image or VM File" and browse to /home/caine/USB_dd.001. Make sure that ONLY "recent activity" is checked in the Ingest modules. Click Next and Finish, and wait for the ingest to complete.

Which browser was used by the suspect?

Tests - not attempted
Browser Identified UNTESTED

Question 2: Firefox History - SQLite files

Where are the SQLite files stored that contain the Firefox history? Enter the full directory path as shown by Autopsy. (The answer is case sensitive, and you should use "/" to delimit directories. Do not include the filename itself nor the final slash.).
Full path:

Tests - not attempted
Full Path UNTESTED

What is the filename of the database which should contain the websites visited and bookmarks?
filename:

Tests - not attempted
Filename UNTESTED

You can export the file to /home/caine and view it in an external viewer, or you can just click on it and inspect it in the view pane.

To extract and view externally, you select the file in Autopsy and click "Export" from the list below the directory listing. Try saving it to /home/caine.

Open the exported file in SQLite Database Browser (Forensics Tools > Database menu) or in the FireFox SQLite plugin (instructions for how to install this can be found in moodle).

The database contains 11 tables. Which table is used to store the main browsing history?
table:

Tests - not attempted
table name UNTESTED

Inspect this table. Which two entries look specifically useful for this investigation by suggesting the suspect may be planning to travel? Enter the ids stored in the table, not the row numbers. (Separate entries by commas but no spaces and list in ascending order. For example, 4,18
table ids:

Tests - not attempted
ids UNTESTED

To which cities? (enter the city names in the order in which they appear in the history, separated by comma but no spaces). You can use google to verify the information.
cities:

In which country are theose cities? (Case Sensitive). Again Google can help with this question.
country:

Tests - not attempted
cities UNTESTED
country UNTESTED

From this database table alone, do we know whether the relevant websites were visited during the time in question, i.e. the evening of the 15/2/2015?

Tests - not attempted
Time is evidence UNTESTED

Is there evidence that browsing history was deleted?

Tests - not attempted
Deleted UNTESTED

Is there evidence that private browsing was used?

Tests - not attempted
Deleted UNTESTED

Now look at the table moz_bookmarks. Which of these statements are true?

moz_bookmarks contains no additional information
moz_bookmarks contains URLs identifying additional websites that are directly relevant to the investigation
if a URL is bookmarked, this confirms that it was visited deliberately
the bookmark records include timestamps
The fk values for bookmarks 21 and 22 confirm that both sites identified in moz_places were bookmarked

Tests - not attempted
Correct Answers UNTESTED

When was the Expedia search bookmarked?


Enter the timestamp value:

Tests - not attempted
Time is evidence UNTESTED

In which format does Firefox store timestamps?

Tests - not attempted
Time format UNTESTED

Now convert the timestamp to human readable format (you can use an SQL query to do this or an online converter - I like http://www.epochconverter.com/. Enter it as dd/mm/yyyy hh:mm:ss).


Human readable timestamp value:

Tests - not attempted
Time is right UNTESTED

Question 3: Firefox History - cache and sessionstore.js

Where is the browser cache stored?
A - In the Cache subfolder, in the same folder as the SQLite files
B - Caching must have been disabled by the user, as there is no Cache subfolder on the USB.
C - Cache is always disabled in FF Portable to decrease disk size and the number of writes to the disk
D - Cache is stored on the hard drive of the host machine rather than the USB, to decrease disk size

Tests - not attempted
Browser cache stored UNTESTED

sessionstore.js is used by FireFox to:
A - allow a previous session to be restored after a crash
B - store security certificate settings
C - store user preference settings
D - store information for later forensic analysis

Tests - not attempted
Sessionstore usage UNTESTED

Like all JSON files, sessionstore.js can be opened in any text editor but the layout isn’t ideal for humans. In Autopsy I recommend using the "Text" tab. From there, you could copy and paste the contents into a JSON viewer such as http://jsonviewer.stack.hu/. Then click "Format" for a much nicer view.

Note: use the current sessionstore.js file (not a deleted one). A copy of the file is also available in moodle for download, which you may find more convenient.

If you get errors with the online viewer try Internet Explorer. Also in Linuxzoo we have added it to the safe pages in Firefox.

Based on your inspection of places.sqlite and sessionstore.js, fill in the table below with the potential travel plans you found. Enter all dates in the format dd/mm/yyyy. Order the entries by date and leave blank any fields that are not applicable.

Trip toArrival dateDeparture DateNo of AdultsNo of ChildrenChild Age

Tests - not attempted
Early trip - row 1 UNTESTED
Later trip - row 2 UNTESTED

Question 4: Deleted history

We discovered earlier that some browsing history seems to have been deleted.

SQLite by default keeps deleted data, but marks it internally as deleted. It also offers a SECURE_DELETE option, where data is overwritten with zeroes when deleted.

Which of the settings is used by Firefox? (Hint: inspect places.sqlite in a hex editor or in Autopsy using the Hex display option)

Tests - not attempted
Delete mode UNTESTED

Question 5: Unallocated Space

You have now pretty much exhausted the information available from files in allocated space.

Now search unallocated space to see what else you can discover. How you do this is up to you.

Here are some suggestions:

  1. You can view the unallocated space directly in Autopsy, but it is probably a better idea to extract the unallocated space only into a separate file and then work with that. In Caine, use the command blkls to do this. Alternatively you can download a zipped copy from moodle and use a windows hex editor such as HxD.
  2. Once you have all the unallocated space extracted, you can
    1. open the unallocated space directly in a hex editor and inspect / search there and/or
    2. use the strings command to extract readable text. (use the -t d option to include the byte offset where the string was found - this will allow you to search the string's context later. Also, send the output to a text file so that you don't have to redo strings for each search. You can then search the text file with grep, or inspect it.
  3. To carry out any searches, you need to think of some potentially useful strings you could search for. There are some fairly obvious ones like "http", "mail", "@", but these are not all that specific. Others you could try are "flight", "travel", or the place names that you discovered already, or look up the three letter abbreviations for the airports at these places (for example, Edinburgh has the code EDI) and search for them. Some searches may be better case sensitive, others case insensitive.
  4. You know from earlier work which search engine was used. All searches carried out with this search engine will have a common string as part of the URL. This could also be used for searches.

Using strategy 4, look through the data and identify the common search string used for all searches (do not include http:// or https:// as some searches could use either one).
Search string

Similarly, what string would be part of all map searches?
Map string

Tests - not attempted
Search String UNTESTED
Map search String UNTESTED

With the strategies discussed above, you should be able to find all the information to complete the questions below.

Information about people - fill in the table below. Use dd/mm/yyyy format for dates and enter everything else exactly as found.

traveller012
first nameJoanJohn
surname
date of birth
postcode
city
address
mobile number
email
Tests - not attempted
Traveller 0 UNTESTED
Traveller 1 UNTESTED
Traveller 2 UNTESTED

Enter flight information (for return trips enter each leg separately. Leave empty any cells that you have no information for. Enter dates in the format dd/mm/yyyy and times hh:mm. Separate flight numbers with commas but no space). Put them in date order.

datetimeairlinefromtoviaflight numbersadultschildren
Tests - not attempted
First flight UNTESTED
Second flight UNTESTED
Third flight UNTESTED

How do you know that these travel plans were searched for during the time in question in the internet cafe?
A - as this is deleted information there are no timestamps, so we don't know
B - cacheKey and/or lastUpdate timestamps that confirm that the websites were visited during the time in question
C - there are timestamps which confirm that that the websites were not visited during the time in question

Tests - not attempted
Reason correct? UNTESTED

The police believe that the suspect may be planning to flee the country and not return to the UK. Does the evidence you found support this belief?

From the USB analysis alone, is there any indication that the suspect sent/received emails while in the internet cafe?

Tests - not attempted
Police correct? UNTESTED
Internet cafe confirmed? UNTESTED


Centos 7 intro: Paths | BasicShell | Search
Linux tutorials: intro1 intro2 wildcard permission pipe vi essential admin net SELinux1 SELinux2 fwall DNS diag Apache1 Apache2 log Mail
Caine 10.0: Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Mock Exam |
Caine 13.0: Essentials | Basic | Search | Acquisition | SysIntro | grep | MBR | GPT | FAT | NTFS | FRMeta | FRTools | Browser | Registry | Mock Exam |
CPD: Cygwin | Paths | Files and head/tail | Find and regex | Sort | Log Analysis
Kali: 1a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7a | 8a | 8b | 9 | 10 |
Kali 2020-4: 1a | 1b | 1c | 2 | 3 | 4a | 4b | 5 | 6 | 7 | 8a | 8b | 9 | 10 |
Useful: Quiz | Forums | Privacy Policy | Terms and Conditions

Linuxzoo created by Gordon Russell.
@ Copyright 2004-2024 Edinburgh Napier University