Guide 11 of 20 / Practical applications
AI in Digital Forensics
Preserve evidence, verify hashes and use AI cautiously to organise a case timeline.
Preserve the source
Digital forensics examines electronic material and records how conclusions were reached. Work within documented authority. A professional may preserve an original device or image, use controlled copies, record transfers and log every tool and action. The exact process depends on the incident and organisational requirements.
A cryptographic hash is a fixed-length fingerprint calculated from bytes. Matching SHA-256 hashes support a finding that compared files have matching content. They do not establish who made the files, whether acquisition was authorised or when a recorded event actually occurred.
Practise on fictional evidence
The commands use a fresh temporary directory, generate a text file and verify that its copy matches. Expect working.log: OK. The two short lines model a pair of source observations.
labdir=$(mktemp -d)
cd "$labdir"
printf '%s\n' '09:00Z export started' '09:02Z export completed' > original.log
cp -- original.log working.log
printf '%s %s\n' "$(sha256sum original.log | cut -d ' ' -f 1)" working.log > checksums.txt
sha256sum -c checksums.txt
Build a timeline with traceable claims
Use an assistant to group invented records or propose a chronological table. Preserve the original timestamp and note time zone or clock uncertainty. Keep a field for source file and line number. A model may silently reorder events, collapse similar entries or infer an actor unsupported by the evidence. A reviewer should be able to reproduce each finding from the preserved files.
Keep evidence decisions with qualified people
Drafting consistent summary language helps small incident teams hand over cases, and plain-language explanations help others follow the process. Real material can contain private or legally sensitive information. Use approved storage and tools, and keep audit records for methods, validation and any use of AI.
Practical exercise
Ask an assistant to produce a two-row timeline from the synthetic log. Add a fictional note saying a device clock might be two minutes fast. Check whether the tool preserves the original values and marks the uncertainty. Keep your corrected table beside the log.