If you can see this check that

Main Page

Data Acquisition and Verification


Data Acquisition and Verification

User:
Password:

This lab deals with the acquisition and verification of data from a target hard disk and image file (dd file). There are many ways in which data can be acquired from a target machine, but in this instance we are using a disk that is directly connected to the analysis machine. We are not using a write blocker in this tutorial due to the physical limitations of the lab environment. Please not that this is NOT standard practice, and normally a hardware write blocker is necessary.

CAINE has a policy of not mounting non-CAINE-related disks, and when a disk is found, mounting should be performed in a strict read-only manner. In this lab, we will mount the disk that it attached to the machine; the device is listed in the /dev/ directory and we use raw image (dd file) located in /images directory.

Note in caine, which is Ubuntu based, there is no password for root. You log in as user "caine" password "caine". To do things as root you use "sudo command", where command is what you want to do as root. For example

   sudo su -                   become root
   sudo mkdir /root/test       create a directory as root in /root/test

Question 1: Connect USB pen drive

Click the button to connect the USB thumb drive you will be analysing to your virtual machine. It will be connected as device "/dev/sdd".

Tests - not attempted
Successfully connected USB drive UNTESTED

Question 2: Initial Verification of Media

Create directory /home/caine/evidence where you will save all the evidence from your investigation. Make sure the user "caine" owns the directory, and it is in the appropriate group.

Before we perform any form of activities in relation to the suspect disk, we need to make an initial set of integrity hashes of the device /dev/sdd and dd image file called CBarrow.dd. Calculate hash signature for /dev/sdd and CBarrow.dd, using md5sum command, and save the output in to two separate files called sdd.hash and CBarrow.hash (put both files in to /home/caine/evidence directory).

Tests - not attempted
/home/caine/evidence exists UNTESTED
Hash Present for /dev/sdd UNTESTED
Hash Present for CBarrow UNTESTED

Question 3: Activity 2: mmls and fsstat

This activity will introduce you to the tools required in order to analyse the partitions that are present on the disk. These tools are: mmls, and fsstat.

They are part of The Sleuth Kit http://www.sleuthkit.org, which is a set of command line tools designed for digital investigations. Before using these tools, please read about them by following these links:

    mmls command
    fsstat command

Perform an initial analysis of the disk and CBarrow.dd image with mmls.

What is the total size (in Bytes) of the disk and dd image?
sdd size (bytes):
dd size (bytes):

Tests - not attempted
sdd Size UNTESTED
dd Size UNTESTED

What is the size (in Bytes) of each partition on the disk and the dd image?
sdd partition 1 size (bytes):
dd partition 1 size (bytes):

Tests - not attempted
sdd Partition Size UNTESTED
dd Partition Size UNTESTED

What are the start and end sectors on last of the unallocated space on CBarrow.dd image? Do not include leading "0" characters in your answer.
Start Sector:
End Sector:

Tests - not attempted
Start Sector UNTESTED
End Sector UNTESTED

Question 4: Perform a partition analysis with fsstat

Use fsstat command to analyse disk and CBarrow.dd image.

Hint: Use fsstat command with and without the '-o 63' switch.

What was the importance of supplying 63 after the -o switch?

Tests - not attempted
Sector info UNTESTED

What is the type of a file system installed on each partition?

sdd partition 1 :
dd partition 1 :

Tests - not attempted
sdd partition 1 type UNTESTED
dd partition 1 type UNTESTED

From output of CBaroow.dd image: in which cluster the MFT is located?
First MFT:

Tests - not attempted
MFT cluster UNTESTED

What operating system is installed on the CBarrow.dd image?

Tests - not attempted
OS Installed UNTESTED

Question 5: Creating an image of the entire drive with dcfldd

This activity will show you how to make an image of an entire drive using the tool dcfldd. You will make an image of the device /dev/sdd.

Before you begin, read the documentation for dcfldd, and familiarise yourself with the following options by going to the following URL (make notes on the next page if necessary):

   dcfldd command

Execute the following command:

    dcfldd if=/dev/sdd of=/home/caine/evidence/sdd.dd bs=512 hashlog=/home/caine/evidence/sdd_Hash.hash

Verify that hash value in the sdd_Hash.hash file is the same as the hash value from Activity 1.

Are the hash values the same?

Tests - not attempted
sdd.dd created UNTESTED
sdd.hash created UNTESTED
hash check UNTESTED

Why is this important?

Tests - not attempted
Importance? UNTESTED

Question 6: Image verification in Autopsy (refer to Lab 1)

Open the CBarrow.dd image in Autopsy (refer to Lab 1). Identify the case using the name "cbarrow1" (plus a descriptive description), and with host "cbarrow". Add the image as a Disk, and import as a symlink. Use the hash in question 1 to validate the image when adding it to Autopsy by getting the add image to calculate the hash.

Tests - not attempted
Autopsy running on port 9999 UNTESTED
Case file exists for 'cbarrow1' UNTESTED
Case file has a description UNTESTED
Host file exists for 'cbarrow' UNTESTED
Image has been symlinked UNTESTED
Image parameters are correct UNTESTED

Click on Analyse, and Analyse the whole Disk. Then select Image Details. How big is the Meta entry for slot 00 in bytes?
Meta Size:

Tests - not attempted
Meta Size UNTESTED

The output from the Image Details is similar to which tool?

Tests - not attempted
Which Tool UNTESTED

Why are certain buttons greyed out and not available?

Tests - not attempted
Why grey UNTESTED

Click the close button.

The select the partition labelled C: and click on the Analyze button.

Click on the Image Details button.

The output from the Image Details is similar to which tool?

Tests - not attempted
Which tool UNTESTED

Question 7: Manual verification of MBR

A disk that is organized using DOS partitions has an MBR in the first 512-byte sector. The MBR contains boot code, a partition table, and a signature value. The boot code contains the instructions that tell the computer how to process the partition table and locate the operating system. The partition table has four entries, each of which can describe a DOS partition.

The first 446 (0x1be) bytes contain boot code. The next 64 (0x40) bytes contain four partition tables (16 bytes each). The last 2 bytes contain signature value of 0xAA55. The signature is reversed (0x55aa) due to endian ordering.

To analyse MBR execute the following command:

    sudo dd if=/images/CBarrow.dd bs=512 skip=0 count=1 | xxd

MBR Analysis:

At offset 440 (0x1b8), for a length of 4 bytes is the Windows Disk signature. This is unique for a drive and can be considered to be a forensic artifact. This value is stored in the registry, under "Mounted Devices", and can be used to match a hard drive to a computer, even if the data has been deleted/wiped.

What is the Windows Disk signature for CBarrow.dd? Use the format "**** ****", e.g. "ffff ffff". Keep it in its native endian.

Tests - not attempted
Windows Disk Signature UNTESTED

At offset 446, for a length of 1 byte, is a value which states if the partition is active or not, In this example the value is set to "80" which means the partition is active.

At offset 450, for a length of 1 byte, is the partition type indicator. This tells the computer what type of partition to expect, NTFS, FAT32, EXT2, etc. Each partition type has its own unique number. In this case it is 0x7, which indicates NTFS.

At offset 454 the location of the partition is given. A single byte at offset 454 states the number of sectors before the start of the partition, from the MBR. In this example, and in most .standard. systems, the value is 0x3F. 0x3F in hex is 63 in decimal. This means that the partition starts at sector 63.

At offset 458, for a length of 4 bytes, is the size of the first partition, in sectors.

What is the hex value of the partition size? Format you answer using lower case hex and include the leading 0x, e.g. 0x123456.

Tests - not attempted
Partition Size UNTESTED

Conversion of this value will provide the size of the volume in sectors (not bytes or clusters).

This value first needs to be converted from little endian to big endian and then it needs to be converted in to decimal.

What is the big endian order of the partition hex value?? Again use a format like 0x00345678

Tests - not attempted
Hex big endian UNTESTED

What is the decimal value of the hex?

Tests - not attempted
Decimal big endian UNTESTED

Is the decimal value the same as shown in mmls command output?

Tests - not attempted
Same as mmls? UNTESTED

Based on the above exercise inspect MBR of the SDD disk...

What is the Windows Disk signature? Use the format "**** ****", e.g. "ffff ffff". Keep it in its native endian.

Tests - not attempted
Disk Signature UNTESTED

Is this partition active?

Tests - not attempted
is active? UNTESTED

What is the partition type indicator? Format your answer like 0x00.

Tests - not attempted
Partition Type UNTESTED

What is the partition type? Hint - use Google.

Tests - not attempted
Partition Type UNTESTED

In which sector does the partition start?

Tests - not attempted
Partition start UNTESTED

What is the hex value of the partition size?

Tests - not attempted
Native partition size UNTESTED

What is the big endian order of the partition hex value?

Tests - not attempted
Big endian size UNTESTED

What is the decimal value of the hex?

Tests - not attempted
Decimal Size UNTESTED

Is the decimal value same as shown in mmls command output?

Tests - not attempted
Same as mmls UNTESTED

Question 8: Unplug USB pen drive

Click the button to unplug the USB drive you were analysing.

Tests - not attempted
Successfully unplugged USB drive UNTESTED


Linux tutorials: intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2
Caine 3.0: Essentials | Basic | Search | SysIntro | 5a | 5b | 5c | 6 | 7 | 8a | 8b | WebBrowserA | WebBrowserB | Registry
Useful: Quiz | Forums | Privacy Policy | Terms and Conditions
Site Links:XMLZoo ActiveSQL ProgZoo SQLZoo

Copyright @ 2004-2012 Gordon Russell. All rights reserved.