Forensic image · 01 How it works

Forensic image: how bit-for-bit duplication works

Sectors, unallocated space, RAW and E01 formats: what really happens when a forensic image is created.

A disk is divided into sectors, small units of storage (usually 512 bytes or 4 KB) that the operating system groups together to build files. When we delete a file, the operating system usually marks those sectors as free but does not wipe them: the content stays there until something overwrites it. That is why a copy reproducing all sectors — not only those occupied by files — preserves information that would otherwise be lost.

From device to image

The acquisition program reads the medium from the first to the last sector and writes the data, in the same order, to a file or a series of files: the image. While reading, it computes the hash of the data stream; at the end it recomputes it on the image to check that the two match.

  1. 01
    Reading

    The medium is read sector by sector through a write blocker.

  2. 02
    Writing

    The data goes into an image file on a clean, dedicated destination drive.

  3. 03
    Hashing

    The hash is computed during reading (on the original) and then on the image.

  4. 04
    Verification

    The two values are compared: if they match, the copy is faithful.

The most common formats

FormatHow it is builtWhen it is used
RAW (dd, .001)Bare copy of the sectors, no metadataMaximum compatibility with every tool
E01 (Expert Witness)Data compressed in blocks, with case metadata and integrity checksThe de facto standard in laboratories
AFF4Open format designed for large volumes and partial acquisitionsComplex environments and memory

The E01 format is widespread because it stores the case number, the examiner’s name, notes and hash values inside the image itself, and because it compresses data losslessly.

Physical or logical

A physical acquisition copies the whole medium; a logical acquisition copies only certain files or folders (for example a mailbox on a server). The latter is faster and sometimes the only option — think of the cloud — but it loses unallocated space. The choice must be justified and documented in the report.

Continue with
02 Step-by-step procedure

Forensic image: the step-by-step procedure

From photographing the device to verifying the hash: the stages of an acquisition done properly.

↑