Artificial Intelligence & Data Science is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Computer forensics software and hardware tools

Practical notes on the common software and hardware tools used in computer forensics: what they are, how they work, commands and procedures, worked examples, common mistakes and exam guidance.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Computer forensics engineers use specialized software and hardware tools to capture, preserve and analyse digital evidence without changing it. Correct use of these tools preserves integrity and maintains admissibility of evidence in investigations and court.

Key ideas

Start from first principles and definitions. Bolded words are defined on first use.

  • Digital evidence: any information stored or transmitted in binary form that may be relied on in court. Assumes the evidence has been handled so it is authentic and unaltered.

  • Forensic image (bit‑stream image): an exact binary copy of storage media, sector-by-sector, including slack space and deleted data. Exactness means the image reproduces every bit from the original medium in the same order.

  • Hash value (cryptographic hash): a fixed-length string computed from data that (practically) uniquely represents that data. A hash function H maps arbitrary-length input to a fixed-length output: H(data) → digest. Properties usually used in forensics: preimage resistance, second-preimage resistance, and collision resistance (assume known weaknesses for MD5 and SHA‑1; prefer SHA‑256 or stronger).

  • Write-blocker: a device or software mode that prevents any write operations to the suspect storage while allowing read access. Two types: hardware write-blocker (physical device placed between disk and host) and software write-blocker (driver/OS mode). Exam diagram: draw a horizontal line with three labelled boxes left-to-right: "Suspect PC / Drive" -> "Write-blocker (hardware)" -> "Forensic workstation". Draw arrows showing data flow only from suspect drive to workstation, and a cross on any arrow pointing the other way.

  • Live acquisition: collecting volatile data (RAM, running processes, network connections) from a running system. Dead-box acquisition: imaging powered-off storage devices. Assumption: live acquisition may alter the system; document every change.

  • Forensic workstation: a secured computer used to receive images, run analysis, and store logs. It should have separate storage for evidence and write-protected final archives. Auto-mounting of attached media must be disabled to prevent writes.

  • Forensic tool classes:

    • Acquisition tools: produce images (dd, dcfldd/dc3dd, FTK Imager, Guymager, EnCase, Atola TaskForce/Insight Forensic).
    • Verification tools: compute hashes and compare digests (md5sum, sha256sum, FTK, HashCalc).
    • Analysis suites: parse file systems, recover files, timeline analysis (Autopsy, The Sleuth Kit, FTK, X‑Ways, Magnet AXIOM).
    • Memory acquisition and analysis tools: acquire RAM from live systems (DumpIt, winpmem, LiME) and analyse memory images (Volatility/Volatility 3).
    • Hardware duplicators: fast physical duplicators (Atola, Logicube) for bulk copying and imaging with verification.
    • Evidence image formats: raw (dd), E01/EWF, AFF4; note metadata support, optional compression/splitting, and embedded integrity hashes.
  • Evidence container and chain of custody: evidence must be labelled, sealed and tracked with a clear history of handling. A complete entry includes who handled it, when, why, and how (refer to the subject topic "Evidence collection and the chain of custody").

  • Exact procedure principles universities expect and often test: always use a write-blocker for dead-box imaging, log every command/output, compute and record hash of the original device and of the copied image, label devices and storage, store the original in secure storage.

Diagrams to draw for exams:

  • A block diagram showing: suspect drive -> hardware write-blocker -> forensic workstation -> evidence storage. Label arrows "read only" and label each box with its role.
  • A flowchart of an evidence acquisition: Identify -> Photograph -> Label -> Connect write-blocker -> Create image -> Compute hash -> Verify -> Store image and original -> Update chain of custody.

Formulas

t = size / rate — time to transfer or image; t in seconds (s), size in bytes (B) or multiples (MB, GB, TB), rate in bytes per second (B/s). Use consistent units; convert MB↔MiB if required. Applies to linear copying over known sustained throughput.

H = Hash(data) — digest from a cryptographic hash function. H is a fixed-length string; data is the byte sequence hashed. No SI units. Use for verification: if Hash(original) == Hash(image) then image integrity is confirmed (subject to hash collision risk).

size (B) = N × unit — unit conversions, e.g. 1 MB (decimal) = 1 000 000 B; 1 MiB (binary) = 1 048 576 B. State which you use.

Common commands/syntax to remember (treated here as short formulae because these are memorised exam items): dd if=/dev/sdX of=/path/image.dd conv=noerror,sync status=progress — Linux low-level copy; if = input file (device), of = output file (image).

dcfldd if=/dev/sdX of=/evidence/image.dd hash=sha256 hashlog=/evidence/hash.log — forensic-friendly dd variant that computes hash during imaging.

md5sum image.dd and sha256sum image.dd — compute MD5 and SHA-256 digests on Unix.

fls -r -m / image.img (The Sleuth Kit) — list files in an image assuming a mountpoint; options depend on the filesystem.

Worked examples

Example 1 — Time to image a 1 TB drive at 100 MB/s (decimal MB): Assumption: use decimal units: 1 TB = 1 000 000 MB. Use formula t = size / rate.

  1. size = 1 TB = 1 000 000 MB.
  2. rate = 100 MB/s.
  3. t = 1 000 000 MB / (100 MB/s) = 10 000 s.
  4. Convert to hours: 10 000 s ÷ 3600 s/h = 2.777... h = 2 h 46 min 40 s. Final answer: 2 h 46 min 40 s.

Example 2 — Hash verification workflow (commands and checks): Scenario: You have imaged /dev/sdb to /evidence/disk1.img using dcfldd.

  1. During imaging, the tool produced a SHA‑256 hash for the source and the image in /evidence/hash.log.
  2. After imaging, compute hash independently: sha256sum /evidence/disk1.img → gives digest D_img.
  3. Compare D_img to the recorded digest for the original. If D_img == D_original record "verified" in your log. If not equal, state and re-run imaging or note possible device failure. Model answer (exam style): list commands used, show the two identical hashes, state the significance (integrity verified). Mention risk: collisions are astronomically unlikely for SHA‑256.

Example 3 — Using dd with error handling and verification (step-by-step):

  1. Connect the suspect disk through a hardware write-blocker to your forensic workstation.
  2. Run: dd if=/dev/sdb of=/evidence/disk2.img conv=noerror,sync status=progress.
  3. This reads the entire device, noerror continues on read errors, sync pads blocks so offsets remain consistent.
  4. After completion, compute MD5 and SHA‑256: md5sum /evidence/disk2.img and sha256sum /evidence/disk2.img, and compute the same hashes for the source device (e.g., sha256sum /dev/sdb via the hardware write‑blocker) or compute them during imaging with a tool that logs hashes (dcfldd/dc3dd, FTK Imager, Guymager); then compare the results.
  5. Document all commands and console output into the case log.

Common mistakes

  • Mixing decimal and binary units without stating assumptions (MB vs MiB); leads to wrong time or capacity calculations.
  • Failing to compute and record hashes for both the original and the image, or failing to log the hashing tool and version.
  • Running acquisition commands directly on a suspect live system without documenting the changes made by the acquisition software.
  • Forgetting to seal and label original devices or not updating the chain-of-custody form after transfers.

For your exam

Types of questions you will see: definitions (define write-blocker, forensic image, hash), short notes (compare tools, describe steps for imaging), procedure derivations (step-by-step imaging workflow), command-line questions (write dd or dcfldd command with options), diagram drawing (block diagram of write-blocker setup), and small numericals (calculate imaging time).

What a full-marks answer includes:

  • For definitions: precise term and at least one key property (e.g., for hash: fixed length, resistances).
  • For procedures: ordered steps, safety checks (write-blocker), logging and hashing, and what to do if errors occur.
  • For commands: correct syntax and explanation of options used (e.g. conv=noerror,sync).
  • For diagrams: neat labelled blocks showing data flow, and annotation showing "read only" and points where hashes and logs are produced.
  • For numericals: state unit assumptions (MB vs MiB), show formula t = size/rate, show steps, and final answer with units.

Quick check

  1. What is a write-blocker and why is it used?
  2. Write the dd command to image /dev/sdc to /evidence/drive.img and continue on read errors.
  3. If you image a 500 GB drive at 50 MB/s (decimal), how long does it take? Show result in hours and minutes. Answers: 1) A device or software that prevents writes to suspect media so the original is not altered; used to preserve evidence integrity. 2) dd if=/dev/sdc of=/evidence/drive.img conv=noerror,sync status=progress. 3) 500 GB = 500 000 MB; t = 500000/50 = 10000 s = 2 h 46 min 40 s.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?