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.

Evidence collection and the chain of custody

Practical, exam-focused notes on how to collect, preserve and document digital evidence and maintain an unbroken chain of custody so evidence stays admissible and credible.

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

Investigating cyber incidents and computer crimes requires that any digital evidence be collected and handled so it remains authentic and admissible in court or in internal disciplinary processes. Engineers use these procedures when seizing devices, creating forensic images, handing evidence to lab analysts, or writing incident reports so findings are accepted by legal, regulatory and management audiences.

Key ideas

Start from definitions (each bolded when defined the first time):

  • Evidence — any physical or electronic item or data that may support or refute a fact in an investigation. Examples: hard drives, log files, memory dumps, emails.

  • Chain of custody — the chronological documentation that records the seizure, custody, control, transfer, analysis and disposition of physical or electronic evidence. This is the formal record proving where evidence has been, who handled it, and when.

  • Forensic image — a bit-for-bit copy of a storage medium (also called a disk image) that preserves the original data layout, including deleted and slack space, without modifying the original.

  • Write-blocker — a hardware or software tool that prevents any write operations to a storage device while allowing read access. Use a write-blocker to avoid changing original evidence during imaging.

  • Volatile evidence — data that exists only while the system is powered (for example, RAM contents, active network connections). If the system will be powered down, volatile evidence is lost. Typical order of volatility (most to least): CPU registers and cache, routing/ARP tables, process lists and network connections, RAM, temporary files, disk, remote logs, archival media.

  • Non-volatile evidence — data stored on persistent media (disk, SSD, flash) that remains when power is off.

  • Authentication — the process of demonstrating that a piece of evidence is what it claims to be (for example, the disk image corresponds to the original disk). Authentication relies on documentation and technical verification such as cryptographic hashes.

  • Integrity — property that evidence has not been altered. Verified by comparing cryptographic hash values taken before and after transfers.

  • Provenance — the recorded origin and history of an item of evidence: where it came from and how it has been handled.

Key legal-technical principles (stated as exam-style definitions):

  • Exact statement: Chain of custody is the continuous and documented control of evidence from time of collection to final disposition, including each person who had physical possession, location, date/time, reason for transfer and condition of evidence. Assumption: a documented chain limits reasonable doubt about tampering.

  • Exact statement: The authentication of digital evidence can be achieved by (a) demonstrating a reliable method of acquisition, (b) establishing identity of the media, and (c) showing unbroken custody or acceptable explanation for gaps. Assumption: the court accepts commonly used forensic methods and tools.

Practical steps (derive the common sequence investigators are expected to follow — describe each so you could draw it in a flowchart):

  1. Identification — locate potential evidence (devices, storage, accounts).
  2. Preservation — secure scene, prevent remote change (isolate network, remove batteries if safe), photograph items and mark positions.
  3. Collection (seizure) — use appropriate tools (write-blocker, imaging tool); document seizures on a Chain-of-Custody form.
  4. Transport — package items to prevent damage and tampering (anti-static bags, tamper-evident seals), note environmental conditions.
  5. Receipt and storage — lab logs intake, store evidence in controlled-access storage.
  6. Analysis — work only on forensic images or copies; keep originals untouched.
  7. Reporting and disposition — prepare report, return items or follow legal orders for retention/destruction.

What to record for each custody entry (exact list universities expect):

  • Unique item identifier (serial, tag)
  • Description of item
  • Who seized it, date and time, location
  • Reason for seizure
  • Condition (powered on/off, connected networks)
  • Actions taken (imaging, hash calculation) with tool names and versions
  • Transfers: from whom to whom, date/time, signature
  • Storage location and final disposition
  • Tamper-evident seal number(s) applied and later verified
  • Time zone for timestamps and time source/synchronization method (e.g., UTC with NTP)

What to draw (diagram descriptions to include on answer paper):

  1. Chain-of-custody diagram: draw a horizontal timeline with boxes. Label leftmost box "Seizure: Item ID, date/time, seizing officer". Draw arrows to subsequent boxes: "Transport", "Lab intake", "Imaging/Analysis", "Transfer to court/storage", each box annotated with person, date/time, and signature line.

  2. Evidence collection scene sketch: draw device positions (PC, laptop, mobile), label powered state, network cables, connected devices, and note evidence priority (e.g., RAM first).

Assumptions you must state in answers: that tools were functioning correctly, write-blockers used for storage imaging, and that policies/law (for example, need for a warrant) were followed — if not, explain exception.

Formulas

t = S / B — t is time to transfer or image the data, S is size of data transferred (bytes, B), B is throughput (bytes per second, B·s⁻¹). Use when estimating imaging time or network transfer time.

Symbols: t (s), S (B), B (B·s⁻¹). Applies to steady-rate transfers; if overhead or retries occur, actual time > t.

H = hash(data) — H is the cryptographic hash value computed from data using a hash function (example: SHA-256). Use to prove integrity.

Symbols: H (bit string, typically represented hex), data (byte sequence). No SI unit. Applies where the hash algorithm is collision-resistant and implemented correctly.

P_collision ≈ 1 / 2^n — approximate probability of a random collision for an n-bit hash (assumes ideal hash behaves like random function). Use to explain why 256-bit hashes are safe for practical purposes.

Symbols: P_collision (dimensionless), n (bits). Example: for n=256, P_collision ≈ 1 / 2^256 (negligible). Note: for m independent random hashes, the probability of at least one collision is approximately m(m-1)/2^{n+1} (birthday bound), so collisions become likely at around 2^{n/2} samples.

Worked examples

Example 1 — Imaging time calculation (numerical) Given: a suspect drive size S = 1 TB (assume 1 TB = 10^12 bytes for exam), and imaging throughput B = 100 MB/s (1 MB = 10^6 bytes). Compute t. Step 1: Convert units: S = 1 × 10^12 B; B = 100 × 10^6 B·s⁻¹ = 1 × 10^8 B·s⁻¹. Step 2: Use t = S / B. Step 3: t = (1 × 10^12) / (1 × 10^8) = 1 × 10^4 s. Step 4: Convert to hours: 1 × 10^4 s ÷ 3600 s·h⁻¹ ≈ 2.78 h. Answer: Imaging will take approximately 2.78 hours.

Example 2 — Chain-of-custody record (short model answer) Question: Write a model chain-of-custody entry for seizing a laptop at a workplace. Model answer (stepwise):

  1. Item ID: Tag 2025-001; Device: Dell Latitude Serial X12345; Seized by: S. Kumar, Investigator ID 45; Date/time: 2025-09-15 10:05 IST; Location: Finance Dept, Desk 3.
  2. Condition: Powered on; plugged to network; stickers: none; visible user logged in as "finance_user".
  3. Actions at scene: Photographed (photo IDs 001–005); isolated network (unplugged Ethernet and disabled Wi-Fi/Bluetooth or placed in a Faraday bag) without powering off; acquired RAM image first using tool LiveDump v2.1; computed SHA-256 of RAM: H1 = hash(RAM) = <hex>; then performed a controlled shutdown; removed the internal drive and connected it via a hardware write-blocker to an acquisition workstation; imaged the disk sector-by-sector using FTK Imager v4.3; computed SHA-256 of disk image H2 = <hex>.
  4. Transport: Handed to Evidence Locker A by S. Kumar at 11:40; sealed with tamper-evident tape TE-09; signature S. Kumar.
  5. Lab receipt: Received by Analyst R. Singh on 2025-09-15 14:20; verified seals intact; stored in Shelf 2, Locker A; signature R. Singh.

Example 3 — Model answer to an exam long question (theory) Question: Explain why chain of custody is necessary and how gaps affect admissibility. Model answer points (concise but complete):

  • Definition of chain of custody.
  • Purpose: to establish authenticity and integrity; to provide provenance and reduce risk of tampering, contamination or substitution.
  • Methods: detailed logs, tamper-evident packaging, hashes, photographs, use of write-blockers, secure storage.
  • Effects of gaps: unexplained gaps in custody create reasonable doubt about integrity; court may exclude evidence or allow it with caution and expert testimony explaining reliability. State that local statutory law (for example, Indian Evidence Act provisions and IT Act) and case law guide admissibility — mention to cite in actual exam if required.

Common mistakes

  • Powering down a live system without evaluating volatile evidence first (RAM lost).
  • Working on the original device instead of on a forensic image.
  • Using undocumented or unvalidated tools without recording versions and settings.
  • Poor packaging causing physical damage or environmental degradation (heat, moisture).
  • Not sealing or labeling evidence correctly or failing to photograph the scene.

For your exam

Question types you will be asked:

  • Definitions and short notes (e.g., define chain of custody; what is a write-blocker?).
  • Long-answer theory (explain steps and justify priorities like volatile-first).
  • Procedure/flowchart (draw chain-of-custody diagram and label entries).
  • Practical/ numerical (calculate imaging time, estimate storage needs).
  • Case analysis (given a scenario with custody gaps, argue admissibility and propose remedial steps).

What full-marks answers include:

  • Precise definitions (bold terms in your answer if asked to define).
  • Explicit assumptions (tool correctness, unit definitions, legal compliance).
  • Stepwise procedure with dates/times, tools and versions, and sample log entries.
  • If asked for diagrams, follow the guidance above and label every box and arrow.
  • For numerical problems show unit conversions and carry units through to final answer.

Quick check

  1. What is a write-blocker and why is it used?
  2. List three items that must appear on every chain-of-custody entry.
  3. If a 500 GB drive is imaged at 50 MB/s, how long in hours will imaging take? (Assume 1 GB = 10^9 bytes and 1 MB = 10^6 bytes.)

Answers: 1) A write-blocker is a device or software that prevents write operations to a storage medium during acquisition; it is used to avoid changing original evidence. 2) Item ID, person handling (with signature), date/time of transfer (also description and action taken). 3) S = 500×10^9 B, B = 50×10^6 B·s⁻¹ => t = (500×10^9)/(50×10^6) = 10^4 s ≈ 2.78 h.

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

Stuck on something here?