Hack Like a Pro: Digital Forensics Using Kali, Part 3 (Creating Cases in Autopsy & Sleuth Kit)

Jul 22, 2014 05:06 PM
Jul 22, 2014 05:11 PM
635416203155476043.jpg

Welcome back, my tenderfoot hackers!

In continuing my series on digital forensics using Kali, I want to introduce you to two complementary tools, both built right into Kali Linux. These are Brian Carrier's tools Autopsy and Sleuth Kit.

Carrier is one of the leading authorities on operating system file systems. His book, "File System Forensic Analysis", is a must-have classic for any serious student of digital forensics. He has built his open-source suite of tools, Sleuth Kit, to leverage his knowledge and understanding of file system forensics.

Autopsy was built to sit on top of the Sleuth Kit to offer an intuitive, GUI-based forensic suite that utilizes the strength of Sleuth Kit, while at the same time offering the basics of a case management tool.

Step 1: Fire Up Kali & Open Autopsy

Let's fire up Kali and then go to Applications -> Kali Linux -> Forensic Suites and select autopsy from the list.

635416168742975996.jpg

When you do so, you will open a screen that looks like that below. Notice that it asks you to open up a browser at http://localhost:9999/autopsy .

635407750228905624.jpg

Step 2: Open a Web Browser

Now, let's open any browser and navigate to the address above. This will simply take us to the local web server on our system (localhost) and access port 9999 where Autopsy is running. I am using the default browser in Kali, IceWeasel. When I navigate to that address, I get a webpage like that below.

635407751674858903.jpg

As I mentioned earlier, autopsy is just a GUI overlay on top of Brian Carrier's excellent suite of forensic tools, Sleuth Kit. Since Sleuth Kit only uses command line instructions, Autopsy makes working with it much simpler and more intuitive.

Step 3: Create a New Case

As in any real forensic investigation, you will need to create a case and organize all of your evidence and information. In this regard, autopsy requires that you start a case to get started.

Here, I have given this case a numerical case name (101) and a description of "Null Byte", and I have provided my name as the investigator (OTW). Please note that I can provide up to six (6) investigator names. In a real forensic investigation, you will seldom be working alone.

635407753134529822.jpg

After hitting the "NEXT" button in the previous screen, I will be greeted with a screen like below.

635407754066561701.jpg

This screen simply gives us the name of the case, where the case will be stored (/var/lib/autopsy/101), and where its configuration file will be stored (/var/lib/autopsy/101/case.aut). Our next step to add a host.

Step 4: Add a New Host

Click on the "Add Host" button below the line where you can select your name. When we click on that, it takes us to another screen where we can add information about our host like that below.

635407802217499255.jpg

Here we can add the host name (host1), a description (new case), and the time zone (GMT) we are working in. Of course, you can add your own host name, description, and time zone, as appropriate.

Step 5: Add an Image File

Next, we need to import an image file. An image file is a bit-by-bit copy of the storage device that we captured for evidence when we arrived at the crime scene. For instructions on making a forensically sound image, check out my previous guide on creating a forensic image of a hard drive.

635407803347655577.jpg

Below, I have captured a new image file using dcfldd of the hard drive sda (the first SATA or SCSI hard drive), and written it to a file /media/nullbyte with a block size of 512 bytes.

635407826822499022.jpg

Now, I can import that image to Autopsy by giving it the location where I saved the image (/media/nullbyte), tell autopsy what type of image (disk), and the import method (copy).

635416191210475812.jpg

Step 6: Data Integrity

Whenever we are creating an image or saving an image that might be used in any legal proceeding, it is critical to make certain that we can maintain the integrity of the image. This means that we can prove that the image has not been tampered with from the time that the image was captured until the time of the trial.

We can do that by creating a hash of the image.

635407861854221015.jpg

In this screen, Autopsy asks us whether we want to:

  • Ignore the hash value for this image,
  • Calculate the hash value for this image, or
  • Add the following MD5 hash value for this image.

If you did not calculate the hash value when you captured the image (best practice), now is the time to do that. If you have created a hash value when you created the image, you can attach it to the image file here.

Stay Tuned for More on Autopsy & Sleuth Kit

In my next tutorial, we will use Autopsy and the Sleuth Kit tools to analyze the image we saved here for artifacts that can lead us to reconstruct the events of the crime, so keep coming back, my greenhorn hackers!

Comments

No Comments Exist

Be the first, drop a comment!