Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon

Getting started with Digital forensics using Autopsy

Save for later
  • 10 min read
  • 24 May 2018

article-image

Digital forensics involves the preservation, acquisition, documentation, analysis, and interpretation of evidence from various storage media types. It is not only limited to laptops, desktops, tablets, and mobile devices but also extends to data in transit which is transmitted across public or private networks.

In this tutorial, we will cover how one can carry out digital forensics with Autopsy. Autopsy is a digital forensics platform and graphical interface to the sleuth kit and other digital forensics tools.

This article is an excerpt taken from the book, 'Digital Forensics with Kali Linux', written by Shiva V.N. Parasram.

Let's proceed with the analysis using the Autopsy browser by first getting acquainted with the different ways to start Autopsy.


Starting Autopsy


Autopsy can be started in two ways. The first uses the Applications menu by clicking on Applications | 11 - Forensics | autopsy:

digital-forensics-using-autopsy-img-0


Alternatively, we can click on the Show applications icon (last item in the side menu) and type autopsy into the search bar at the top-middle of the screen and then click on the autopsy icon:

digital-forensics-using-autopsy-img-1


Once the autopsy icon is clicked, a new terminal is opened showing the program information along with connection details for opening The Autopsy Forensic Browser.

In the following screenshot, we can see that the version number is listed as 2.24 with the path to the Evidence Locker folder as /var/lib/autopsy:

digital-forensics-using-autopsy-img-2


To open the Autopsy browser, position the mouse over the link in the terminal, then right-click and choose Open Link, as seen in the following screenshot:

digital-forensics-using-autopsy-img-3

Creating a new case


To create a new case, follow the given steps:

  1. When the Autopsy Forensic Browser opens, investigators are presented with three options.
  2. Click on NEW CASE:

digital-forensics-using-autopsy-img-4

  1. Enter details for the Case Name, Description, and Investigator Names. For the Case Name, I've entered SP-8-dftt, as it closely matches the image name (8-jpeg-search.dd), which we will be using for this investigation. Once all information is entered, click NEW CASE:

digital-forensics-using-autopsy-img-5

Several investigator name fields are available, as there may be instances where several investigators may be working together.


The locations of the Case directory and Configuration file are displayed and shown as created.  It's important to take note of the case directory location, as seen in the screenshot: Case directory (/var/lib/autopsy/SP-8-dftt/) created. Click ADD HOST to continue:

digital-forensics-using-autopsy-img-6

  1. Enter the details for the Host Name (name of the computer being investigated) and the Description of the host.
  2. Optional settings:
    • Time zone: Defaults to local settings, if not specified
    • Timeskew Adjustment: Adds a value in seconds to compensate for time differences
    • Path of Alert Hash Database: Specifies the path of a created database of known bad hashes
    • Path of Ignore Hash Database: Specifies the path of a created database of known good hashes similar to the NIST NSRL:

digital-forensics-using-autopsy-img-7

  1. Click on the ADD HOST button to continue.
  2. Once the host is added and directories are created, we add the forensic image we want to analyze by clicking the ADD IMAGE button:

digital-forensics-using-autopsy-img-8

  1. Click on the ADD IMAGE FILE button to add the image file:

digital-forensics-using-autopsy-img-9

  1. To import the image for analysis, the full path must be specified. On my machine, I've saved the image file (8-jpeg-search.dd) to the Desktop folder. As such, the location of the file would be /root/Desktop/ 8-jpeg-search.dd.


For the Import Method, we choose Symlink. This way the image file can be imported from its current location (Desktop) to the Evidence Locker without the risks associated with moving or copying the image file.

digital-forensics-using-autopsy-img-10

  1. If you are presented with the following error message, ensure that the specified image location is correct and that the forward slash (/) is used:

digital-forensics-using-autopsy-img-11

  1. Upon clicking Next, the Image File Details are displayed. To verify the integrity of the file, select the radio button for Calculate the hash value for this image, and select the checkbox next to Verify hash after importing?
  2. The File System Details section also shows that the image is of a ntfs partition.
  3. Click on the ADD button to continue:

digital-forensics-using-autopsy-img-12

  1. After clicking the ADD button in the previous screenshot, Autopsy calculates the MD5 hash and links the image into the evidence locker. Press OK to continue:

digital-forensics-using-autopsy-img-13

  1. At this point, we're just about ready to analyze the image file. If there are multiple cases listed in the gallery area from any previous investigations you may have worked on, be sure to choose the 8-jpeg-search.dd file and case:

digital-forensics-using-autopsy-img-14

  1. Before proceeding, we can click on the IMAGE DETAILS option. This screen gives detail such as the image name, volume ID, file format, file system, and also allows for the extraction of ASCII, Unicode, and unallocated data to enhance and provide faster keyword searches. Click on the back button in the browser to return to the previous menu and continue with the analysis:

digital-forensics-using-autopsy-img-15

  1. Before clicking on the ANALYZE button to start our investigation and analysis, we can also verify the integrity of the image by creating an MD5 hash, by clicking on the IMAGE INTEGRITY button:
  2. Unlock access to the largest independent learning library in Tech for FREE!
    Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
    Renews at €18.99/month. Cancel anytime

digital-forensics-using-autopsy-img-16

Several other options exist such as FILE ACTIVITY TIMELINES, HASH DATABASES, and so on. We can return to these at any point in the investigation.

  1. After clicking on the IMAGE INTEGRITY button, the image name and hash are displayed. Click on the VALIDATE button to validate the MD5 hash:

digital-forensics-using-autopsy-img-17

  1. The validation results are displayed in the lower-left corner of the Autopsy browser window:

digital-forensics-using-autopsy-img-18

  1. We can see that our validation was successful, with matching MD5 hashes displayed in the results. Click on the CLOSE button to continue.
  2. To begin our analysis, we click on the ANALYZE button:

digital-forensics-using-autopsy-img-19

Analysis using Autopsy


Now that we've created our case, added host information with appropriate directories, and added our acquired image, we get to the analysis stage.

After clicking on the ANALYZE button (see the previous screenshot), we're presented with several options in the form of tabs, with which to begin our investigation:

digital-forensics-using-autopsy-img-20


Let's look at the details of the image by clicking on the IMAGE DETAILS tab. In the following snippet, we can see the Volume Serial Number and the operating system (Version) listed as Windows XP:

digital-forensics-using-autopsy-img-21


Next, we click on the FILE ANALYSIS tab. This mode opens into File Browsing Mode, which allows the examination of directories and files within the image. Directories within the image are listed by default in the main view area:

digital-forensics-using-autopsy-img-22


In File Browsing Mode, directories are listed with the Current Directory specified as C:/.

For each directory and file, there are fields showing when the item was WRITTEN, ACCESSED, CHANGED, and CREATED, along with its size and META data:

  • WRITTEN: The date and time the file was last written to
  • ACCESSED: The date and time the file was last accessed (only the date is accurate)
  • CHANGED: The date and time the descriptive data of the file was modified
  • CREATED: The data and time the file was created
  • META: Metadata describing the file and information about the file:

digital-forensics-using-autopsy-img-23


For integrity purposes, MD5 hashes of all files can be made by clicking on the GENERATE MD5 LIST OF FILES button.

Investigators can also make notes about files, times, anomalies, and so on, by clicking on the ADD NOTE button:

digital-forensics-using-autopsy-img-24


The left pane contains four main features that we will be using:

  • Directory Seek: Allows for the searching of directories
  • File Name Search: Allows for the searching of files by Perl expressions or filenames
  • ALL DELETED FILES: Searches the image for deleted files
  • EXPAND DIRECTORIES: Expands all directories for easier viewing of contents

digital-forensics-using-autopsy-img-25


By clicking on EXPAND DIRECTORIES, all contents are easily viewable and accessible within the left pane and main window. The + next to a directory indicates that it can be further expanded to view subdirectories (++) and their contents:

digital-forensics-using-autopsy-img-26

To view deleted files, we click on the ALL DELETED FILES button in the left pane. Deleted files are marked in red and also adhere to the same format of WRITTEN, ACCESSED, CHANGED, and CREATED times.


From the following screenshot, we can see that the image contains two deleted files:

digital-forensics-using-autopsy-img-27

We can also view more information about this file by clicking on its META entry. By viewing the metadata entries of a file (last column to the right), we can also view the hexadecimal entries for the file, which may give the true file extensions, even if the extension was changed.


In the preceding screenshot, the second deleted file (file7.hmm) has a peculiar file extension of .hmm.

Click on the META entry (31-128-3) to view the metadata:

digital-forensics-using-autopsy-img-28


Under the Attributes section, click on the first cluster labelled 1066 to view header information of the file:

digital-forensics-using-autopsy-img-29

We can see that the first entry is .JFIF, which is an abbreviation for JPEG File Interchange Format. This means that the file7.hmm file is an image file but had its extension changed to .hmm.


Sorting files


Inspecting the metadata of each file may not be practical with large evidence files. For such an instance, the FILE TYPE feature can be used. This feature allows for the examination of existing (allocated), deleted (unallocated), and hidden files. Click on the FILE TYPE tab to continue:

digital-forensics-using-autopsy-img-30


Click Sort files into categories by type (leave the default-checked options as they are) and then click OK to begin the sorting process:

digital-forensics-using-autopsy-img-31


Once sorting is complete, a results summary is displayed. In the following snippet, we can see that there are five Extension Mismatches:

digital-forensics-using-autopsy-img-32


To view the sorted files, we must manually browse to the location of the output folder, as Autopsy 2.4 does not support viewing of sorted files. To reveal this location, click on View Sorted Files in the left pane:

digital-forensics-using-autopsy-img-33

The output folder locations will vary depending on the information specified by the user when first creating the case, but can usually be found at /var/lib/autopsy/<case name>/<host name>/output/sorter-vol#/index.html.


Once the index.html file has been opened, click on the Extension Mismatch link:

digital-forensics-using-autopsy-img-34


The five listed files with mismatched extensions should be further examined by viewing metadata content, with notes added by the investigator.

Reopening cases in Autopsy

Cases are usually ongoing and can easily be restarted by starting Autopsy and clicking on OPEN CASE:


digital-forensics-using-autopsy-img-35


In the CASE GALLERY, be sure to choose the correct case name and, from there, continue your examination:

digital-forensics-using-autopsy-img-36

To recap, we looked at forensics using the Autopsy Forensic Browser with The Sleuth Kit. Compared to individual tools, Autopsy has case management features and supports various types of file analysis, searching, and sorting of allocated, unallocated, and hidden files. Autopsy can also perform hashing on a file and directory levels to maintain evidence integrity.


If you enjoyed reading this article, do check out, 'Digital Forensics with Kali Linux' to take your forensic abilities and investigations to a professional level, catering to all aspects of a digital forensic investigation from hashing to reporting.

What is Digital Forensics?

IoT Forensics: Security in an always connected world where things talk

Working with Forensic Evidence Container Recipes