Processing crime and incident scenes
Clear, exam-focused notes on processing digital crime and incident scenes: securing, documenting, collecting, preserving and transporting digital evidence with chain-of-custody and live vs static acquisition procedures.
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
Processing a crime or incident scene correctly preserves digital evidence so it can be used reliably in technical analysis and in court. Engineers use these procedures when responding to security incidents, performing digital forensics, or preparing evidence for legal or organisational investigations.
Key ideas
Volatile data: data that is lost when power is removed from a device (for example, RAM contents, running processes, active network sessions). Volatile data requires live acquisition if it must be preserved. Follow the order of volatility (most to least): RAM, running processes and network connections, temporary system state, then non-volatile storage and backups.
Non-volatile data: data retained without power (for example, files on hard disks, SSDs, flash drives, ROM). Non-volatile data can usually be collected by static acquisition after the device is made safe.
Live acquisition: capturing data from a running system without powering it down. Use when volatile data (RAM, open network connections, process lists) is important. It risks changing the system state and should be performed by trained personnel only.
Static acquisition: imaging non-volatile storage (for example, making a bit-for-bit copy of a hard disk) while preventing any writes to the source. This preserves file system metadata exactly.
Write-blocker: a hardware or software device which allows read-only access to storage media. Use a write-blocker during static acquisition to prevent any write commands from reaching the original media.
Image (forensic image): a bit-for-bit copy of storage media. An image must be exact and repeatable to preserve evidence integrity. Common formats include raw (dd), E01/Ex01, and AFF4; record image metadata and hashes at acquisition and verification.
Cryptographic hash function: a deterministic function H that maps data of arbitrary size to a fixed-size string of bits called the hash or digest. A good cryptographic hash is preimage-resistant, second-preimage-resistant, collision-resistant, and computationally efficient. Common examples: MD5, SHA-1, SHA-256 (note: MD5 and SHA-1 have known weaknesses; prefer SHA-256 for legal evidence where possible).
Exact statement used in forensics: If H(original) = H(copy) and H is collision-resistant, then with high probability the copy is identical to the original. Assumption: H has negligible collision probability at the chosen security level for adversarially or accidentally chosen inputs; equal digests strongly indicate identical data.
Chain of custody: a written, unbroken record of all persons who had custody of an item of evidence, plus time, date, and reason for transfer. It proves the evidence seen in analysis is the same evidence taken from the scene.
Contamination: any change to evidence caused by an investigator or environment (for example, writing to a disk, changing timestamps, or touching hardware without gloves). Prevention is central to scene processing.
Scene processing steps (high level, and the usual order):
- Secure and isolate the scene (prevent further changes to devices and network). For mobile/wireless devices, use RF shielding (Faraday bag/box) or enable airplane mode to prevent remote access or wiping.
- Document the scene in-place (photographs, notes, sketches, device state).
- Identify and prioritise devices (which hold volatile data, which can be imaged later).
- Collect evidence (live data capture if needed, static imaging with write-blocker for storage).
- Preserve and package evidence (anti-static bags, tamper-evident seals).
- Transport evidence to a forensic lab following chain of custody.
- Analyse only the duplicates in the lab and record all steps.
- Report findings with methods, tools, hashes, and chain-of-custody documentation.
Documentation items to record at the scene: date/time, location, investigator names, device make/model/serial, power state, user sessions, IP addresses, MAC addresses, attached peripherals, photographs, and sketches. Also note the system timezone and time source (e.g., NTP), observed device clock time and any skew from a trusted reference, and encryption status (e.g., full-disk encryption enabled/unlocked).
Sketch to draw for a physical scene: top-down (plan) view. Label north arrow, scale (e.g., 1 m = 1 cm), fixed reference points (walls, doors), numbered evidence items, distances from two fixed points to each item, and a legend describing each numbered item.
Network diagram to draw when digital devices are networked: show routers, switches, firewalls, servers, clients, IP addresses, MAC addresses, timestamps for logs, and where network taps or packet captures are taken. Label directions of traffic and time sync source (NTP) if known.
Legal/ethical assumption: always follow local law and organisational policy when seizing devices. Where law is unclear, document decision and get supervisor/legal approval. Obtain appropriate legal authority (e.g., warrant, court order, or informed consent) and respect scope/privilege limitations; document these in your notes.
Formulas
H = Hash(data) — H is the digest produced by a cryptographic hash function applied to data. No SI unit. Applies when producing/verifying integrity values for images or files.
If H(image_original) = H(image_copy) and H is collision-resistant ⇒ image_copy == image_original (with high probability) — used to validate forensic images. No SI unit.
Commands/syntax to remember (examples):
dd if=/dev/sdX of=/path/to/image.dd bs=4M conv=sync,noerror — bit-for-bit copy on Unix-like systems.
dc3dd if=/dev/sdX of=/path/to/image.dd hash=sha256 log=/path/to/log.txt — forensic imaging with hashing (tool-specific).
md5sum image.dd or sha256sum image.dd — compute digest for verification.
tcpdump -i eth0 -w capture.pcap — capture network traffic to a pcap file (use with care on live systems).
(These are common command syntaxes; tools and flags differ by distribution and version.)
Worked examples
Example 1 — Laptop seizure (step-by-step model answer): Scenario: A user laptop (Serial ABC123) at an office workstation is suspected of being used to steal confidential files. The laptop is powered on and shows a screen with active user session. Steps (numbered):
- Secure scene: isolate the laptop from the network by unplugging Ethernet and disabling Wi-Fi if possible (document action and time). Photograph the laptop and screen with visible time, showing desktop and any open windows.
- Record state: note power state (ON), user logged in (username), visible applications, attached devices, serial number, MAC/IP addresses (use
ipconfig/ifconfigor photograph system information). Record date/time. - Because the system is ON, perform live acquisition for volatile data: collect RAM and a list of running processes. Example commands (record exact commands):
ps aux > processes.txt,netstat -an > netstat.txt(orss -antuon modern Linux), and run a memory acquisition tool (e.g.,winpmemon Windows,LiMEoravmlon Linux) for RAM. If full-disk encryption (e.g., BitLocker/FileVault/LUKS) is suspected and the system is unlocked, attempt to capture encryption keys/key material from RAM before shutdown. Save outputs to external media (use write-once or write-protected media; record mountpoints). Compute a hash of the memory dump:sha256sum ram_dump.mem→ store the hash value in the log. - After secure live capture, prepare for static acquisition: politely power down the laptop if policy and case allow (document method: AC adapter disconnected, proper OS shutdown vs hard power-off). Note: powering off may lose volatile data — justify decision in notes.
- Remove the storage device if required and image using a hardware write-blocker: connect drive to write-blocker, then to imaging workstation, run
dc3ddorddto create image.dd and computesha256sum image.dd. - Place original drive in anti-static bag, seal with tamper-evident tape, record seal ID, store in evidence container. Fill chain-of-custody form: time, date, investigator, action, signature.
- Verify hashes again at lab before analysis. If
sha256sum(image_copy)equals recorded hash, document verification and proceed to analysis on the copy only. Final answer should show recorded hashes (example: SHA-256: 3a7bd3... — use real tool output in real cases), full chain-of-custody entries, and all photographs.
Example 2 — Network incident live capture (algorithmic trace of actions): Scenario: IDS alerts show suspicious outbound traffic from server S (IP 10.0.1.10). Steps:
- Note alert time and capture IDS log snippet. Draw quick network diagram showing server S, internal switch, firewall, and uplink.
- Place a network tap or mirror port to capture traffic to/from 10.0.1.10:
tcpdump -i eth1 host 10.0.1.10 -w serverS_capture.pcap(record start time). - Capture for a defined interval or until incident ends. Compute hash of pcap:
sha256sum serverS_capture.pcapand record hash. - Preserve device logs: copy /var/log/syslog, firewall logs, and application logs, compute hashes for each, and record chain-of-custody for copies. Do not modify original log files; copy read-only if possible. Prefer methods that preserve metadata (e.g., rsync -a or cp --preserve=timestamps) and avoid updating atime (e.g., mount with noatime or copy over the network from a forensic boot environment).
- Transport captured files to secure analysis host, verify hashes, and begin analysis of pcap with Wireshark or CLI tools.
Common mistakes
- Poor or missing documentation: incomplete chain-of-custody, no timestamps, no signatures.
- Failing to photograph the scene and device positions before moving equipment.
- Re-using evidence labels or not using tamper-evident seals.
- Relying on weak hashes (MD5 or SHA-1) alone when stronger hashes are easily available — although MD5/SHA-1 are sometimes used for legacy compatibility, always record algorithm used.
- Capturing live network traffic without legal/managerial authorisation or without preserving privacy minimisation where required.
For your exam
Question types you will see: definitions (define chain of custody, digital evidence), short notes (steps to process a scene, live vs static acquisition), procedure/derivation (justify using hashes and describe verification steps), diagram questions (draw a plan view of a scene or a network capture diagram), and long scenario answers (step-by-step handling of a seized device). What full-marks answers include:
- Clear definitions with bold term explained.
- Ordered steps with reasons (e.g., why live capture before shutdown), risks and mitigations.
- Diagrams described and labelled (for physical scenes: north arrow, scale, fixed points, numbered items; for network: devices, IPs, capture points).
- Exact commands or syntax examples when asked (mention tool name and parameters, and state you must record command output and compute hashes).
- Chain-of-custody entries showing who, when, why, and signatures.
Quick check
- Define "chain of custody" in one sentence.
- Name two items of volatile data on a running computer.
- What is the first photographic item you should take when you arrive at a digital scene?
Answers: 1. A written, unbroken record of all persons and actions handling an item of evidence, with times and reasons. 2. RAM contents and active network connections (also running processes, loaded drivers). 3. A photograph of the whole scene that shows the device in its original position and power state (wide-angle) including any on-screen information.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?