Digital Forensics — the backbone of Cyber Security

What it is

Digital forensics is the blue-team side of hacking: recovering and analysing evidence from disks, memory and networks after an incident — what happened, when it happened, and who did it. This page collects hands-on lab material you can work through on your own machine: a full Sleuth Kit tutorial, a real case dataset, a network forensics lab, and the script that sets the lab up. Every file is hosted right here on hackthepalnte.co.uk — nothing on this page links out to GitHub or anywhere else.

blkcat output on a disk image: a hex dump with a hidden message recovered from the unused part of the disk
What forensics actually finds — blkcat pulls a hidden message out of the unused part of a disk image. From the Sleuth Kit tutorial.

Sleuth Kit Tutorial

The Sleuth Kit (TSK) 4.9.0 is the classic open-source toolkit for disk forensics: it opens disk images, reads FAT and NTFS file systems, lists allocated and deleted files, and rebuilds timelines from file activity. This tutorial walks through the TSK layers and the tools in each one — fsstat, fls, ffind and the rest — and how Autopsy, the graphical front end, fits on top of them.

Autopsy and The Sleuth Kit: the graphical front end and the command-line toolkit behind it
Autopsy and The Sleuth Kit — the graphical front end and the command-line toolkit behind it. From the tutorial.
istat output on a real case file, INCOME.XLS: allocated entry with written, accessed and created times and its sector list
istat on a real case file — directory entry 13, INCOME.XLS: allocated, with its timestamps and sector list. From the tutorial.
Download the tutorial (PPT, 11.4 MB)Read in your browser (PDF, 3.8 MB, 40 pages)

The tools are command-line — this is what mmls and fls look like on a real case image:

kali — terminal
$ mmls cfreds_2015_data_leakage_pc.dd DOS Partition Table Offset Sector: 0 Units are in 512-byte sectors Slot Start End Length Description 000: Meta 0000000000 0000000000 0000000001 Primary Table (#0) 001: ------- 0000000000 0000002047 0000002048 Unallocated 002: 000:000 0000002048 0000204799 0000202752 NTFS / exFAT (0x07) 003: 000:001 0000204800 0000414719 0000209920 NTFS / exFAT (0x07) 004: ------- 0000414720 0000419439 0000004720 Unallocated $ fls -o 2048 cfreds_2015_data_leakage_pc.dd r/r 4: $AttrDef r/r 8: $BadClus r/r 9: $Bitmap d/d 11: $Extend r/r 27: $LogFile d/d 30: $RECYCLE.BIN

Forensic Report Template

Finding evidence is half the job — writing it up so someone else can follow it is the other half. This template is the standard structure for a forensic case report: case details, evidence handling, findings, and conclusions.

Download the template (PDF, 378 KB)

STIX Case Dataset — Illegal Possession of Images

A real forensic case, encoded as structured threat-intelligence data in STIX 2.1 format: investigators, the case itself, and the linked indicators and observables. Open the JSON in any text editor or feed it to a STIX tool; the one-page PDF is the visual map of the same case.

Download the dataset (JSON, 40 KB)Case map (PDF, 795 KB)

Kali Lab Setup Script

One bash script that turns a Kali or Ubuntu machine into a forensics lab: it creates a lab folder and installs the forensic toolkit — Volatility for memory analysis, RegRipper for the Windows registry, analyzeMFT for the NTFS master file table, and the rest — then writes an installation report so you can see what succeeded. Read it before you run it, and run it only on a machine you own.

Download the script (9 KB)
chmod +x kali-forensics-setup.sh
./kali-forensics-setup.sh

Network Forensics Lab — SYN Flood Investigation

A hands-on lab that reconstructs a SYN flood attack from captured traffic with TShark, the command-line half of Wireshark. Work through the capture, find the attack, and write up what the packets prove.

Diagram of the TCP three-way handshake: client and server move from CLOSED to ESTABLISHED, and the SYN flood breaks it by never sending the final ACK
The TCP three-way handshake — a SYN flood breaks it by never sending the final ACK. From the network forensics lab.
Download the lab (PPT, 805 KB)

The workflow

Every case follows the same three moves — get the evidence safely, pull the story out of it, then write it up.

1 · Acquire

Image the disk and hash it. Work on the copy — never on the original.

2 · Analyze

List files, carve deleted data and rebuild the timeline with the Sleuth Kit.

3 · Report

Write up what you found so someone else can follow it, using the template.

How to use this page

  1. Set up the lab. Install Kali Linux in a virtual machine, then run the setup script above to install the forensic toolkit.
  2. Open the Sleuth Kit tutorial. Work through the TSK layers on a disk image you own — start with fls and fsstat before touching anything else.
  3. Work a case. Reconstruct the SYN flood from the network lab, then open the STIX dataset and trace how a real case is documented.
  4. Write it up. Use the report template to turn your findings into a case report someone else can follow.
Mounting a disk image read-only with losetup before examining it
Mount the image read-only before you touch it — never work on the original. From the tutorial.
Use it responsibly. Only analyse disks, memory and traffic you own or have permission to examine. The large NIST and P2P case disk images are not hosted here — each one is tens of gigabytes — so this page sticks to the labs and datasets that are light enough to download.
All tools