Evidence Acquisition, Handling, and Chain of Custody Questions
Soundly collecting, preserving, and maintaining the provenance of digital evidence throughout its lifecycle. Covers forensic imaging and disk-acquisition techniques, write-blocking, device-specific collection procedures, evidence-acquisition planning and strategy, forensic tools and equipment, and recovering data from damaged or corrupted media, together with chain-of-custody procedures and documentation, evidence preservation and handling, evidence and discovery management, and the audit trail that proves evidence was not altered from seizure to presentation. The technical and procedural discipline that produces a defensible, unaltered copy of the source and keeps it usable, distinct from downstream analysis and from courtroom admissibility law.
You encounter a drive with multiple bad sectors and intermittent read failures. Explain how ddrescue (or a similar tool) differs from dd for this situation. Provide a step-by-step ddrescue strategy (including options) you would use to maximize recovery while preserving evidence integrity.
Sample Answer
Direct answer
dd is a plain byte copier: it reads sequentially and, on many implementations, stops or skips blindly on a read error with no memory of what it already recovered. GNU ddrescue is purpose-built for damaged media: it keeps a persistent "mapfile" tracking exactly which regions were successfully read, which failed, and which are unread, and it uses that map to run smarter, less damaging passes and to resume cleanly if interrupted.
Structured elaboration
- Why ddrescue instead of dd here. With multiple bad sectors and intermittent failures,
ddgives you no record of exactly what's missing and no ability to retry selectively without restarting or hammering already-failing sectors again.ddrescue's mapfile is the key difference: it's both a progress record and evidence in its own right, showing precisely which byte ranges could not be recovered. - Forensic prerequisites before running anything. Attach the source through a hardware write-blocker. Work on a forensic workstation with validated tools. Log the device's identifiers (serial, firmware), the exact
ddrescue --versionoutput, and the exact commands you run, and preserve the mapfile itself as part of the evidence, it documents gaps in the final image that a hash alone won't explain. - How ddrescue's phases actually work, because the option choices only make sense against them. A single
ddrescuerun moves through up to four phases: copying (large reads, skipping ahead on error), trimming (reading inward from the edges of each failed area), scraping (reading the remaining failed area cluster by cluster), and retrying (re-reading blocks already marked bad).-nskips scraping,--no-trimskips trimming, and the retrying phase runs only if you ask for it:-rdefaults to 0, meaning no retry passes at all. That default is the single most common mistake in a staged recipe, a pass you describe as "retry the stubborn sectors" does nothing unless you actually pass-r Nwith N greater than zero (or-1for unlimited). - A staged ddrescue strategy. The idea is to get all the easy data first with minimal stress on a failing drive, then progressively spend more time and more aggressive retries only on what's left:
# Pass 1: fast copy, skip the scraping phase, grab everything that reads cleanly
ddrescue -n -v /dev/sdb /evidence/image.dd /evidence/image.map
# Pass 2: reverse-direction pass over what pass 1 left behind, sometimes
# recovers different sectors on drives with degrading heads
ddrescue -R -n -v /dev/sdb /evidence/image.dd /evidence/image.map
# Pass 3: allow trimming and scraping, with bounded retries on bad blocks
ddrescue -r 3 -v /dev/sdb /evidence/image.dd /evidence/image.map
# Pass 4: smaller reads, bypassing OS caching, with retries explicitly enabled.
# -d is direct input access; the long form is --idirect. There is no --direct
# option in current GNU ddrescue, and passing one aborts the run.
ddrescue -d -c 16 -r 3 -v /dev/sdb /evidence/image.dd /evidence/image.map
# If pass 3 already exhausted its retries, the remaining areas are marked
# bad-sector and a further -r pass will skip them. Reset them first:
ddrescue -M -d -c 16 -r 3 -v /dev/sdb /evidence/image.dd /evidence/image.map
-n skips the scraping phase (fastest, safest first pass), -R reads in reverse, -r N sets how many retry passes run over bad blocks, -c N sets the cluster size in sectors (default 128, so -c 16 reads in much smaller chunks), -d forces direct input access so the kernel page cache cannot hand you stale or coalesced reads, and -M re-marks some failed blocks as non-trimmed so a later pass will try them again. Because ddrescue always consults the mapfile, later passes never re-read regions already marked good, so you're not adding wear to a drive that's already failing.
- Verify the option names against the binary you actually have.
ddrescue --helpis the authority, and the names have moved: what is-d, --idirecttoday was spelled--directin releases before 1.17, and-nwas--no-splitbefore it became--no-scrape. A recipe copied from an old blog post will fail on a current build, which is exactly the kind of thing you do not want to discover at 2am with a dying drive attached. - Preservation and verification. Once you're satisfied with recovery (or have decided further passes aren't worth the risk to the drive), hash the resulting image and keep it with the mapfile and full command log:
sha256sum /evidence/image.dd > /evidence/image.dd.sha256
The mapfile stays unchanged and travels with the image, it's the honest record of exactly which sectors are missing. Note that the image hash is not comparable to a hash of the source device, because unrecovered regions are zero-filled in the image, so the two will legitimately differ. What you attest to is the image's own hash plus the mapfile's account of the gaps, not a source-to-image match.
Worked example
A 1 TB drive with roughly 40 bad sectors clustered near one region. Pass 1 (-n) has to read the whole device, so at a healthy-sector rate of 100 to 200 MB/s that pass alone is roughly 1.5 to 3 hours, not minutes, and slower still where the drive stalls and retries internally. It recovers the overwhelming majority of the surface and leaves the mapfile showing a small number of unread ranges around the cluster, typically tens of megabytes rather than the 20 KB the 40 bad sectors themselves occupy, because the copying phase skips ahead in large steps on error and only trimming narrows those edges back down. Pass 2 (-R) picks up a few more sectors by approaching them from the other direction. Passes 3 and 4 spend the bulk of the remaining time on that one clustered region specifically, because the mapfile tells ddrescue exactly where to focus instead of re-scanning the whole drive. The final mapfile documents perhaps a few hundred KB still unrecoverable, which is now a precise, defensible statement instead of a vague "some data was lost."
Trade-offs and pitfalls
If the drive shows physical distress during imaging (clicking, unusual heat, repeated disconnects), stop and consider hardware-level recovery or a specialized lab rather than continuing to hammer it with retries, more attempts on a mechanically failing drive can make things permanently worse. Set -E/--max-error-rate or -T/--timeout if you want the tool to stop on your behalf rather than relying on you to notice. Adjust -b (sector size) for 4K native drives and -c for alignment, mismatched sizes reduce the mapfile's granularity and effectiveness. Never quote a completion time from the healthy-media rate alone, the damaged region dominates the schedule and a single stubborn area can take longer than the entire rest of the drive. Never discard the mapfile once you're done, it's the artifact that lets you and anyone reviewing your work state precisely what was and wasn't recovered, rather than relying on your memory of how the acquisition went.
You must transport a sealed evidence bag containing a hard drive from a remote crime scene to a central lab two hours away. Describe the step-by-step transport procedure you would follow to preserve chain of custody: securing the bag, documenting the handoff, vehicle security practices, transit logging, environmental protections, and contingency handling for vehicle theft or delay.
Sample Answer
Direct answer
Moving a sealed evidence bag two hours to the lab safely comes down to three things: keep it sealed and out of anyone's unsupervised control, log every handoff and checkpoint as it happens rather than after arrival, and have a pre-agreed plan for what to do if the transport itself is interrupted. The procedure below walks through each step.
Step-by-step procedure
- Securing the bag
- Verify seal integrity and unique evidence ID on bag and item.
- Photograph bag, seal, and scene tag with timestamp and GPS.
- Apply redundant tamper-evident tape if required; record seal serials.
- Documenting handoff
- Complete Evidence Transfer Form: case number, item ID, date/time, location, collector name, recipient name, signatures.
- Attach copy of form to bag; retain electronic copy and photos.
- Vehicle security practices
- Use a locked evidence compartment or tamper-evident evidence box anchored in vehicle.
- Store bag out of public view; never leave unattended.
- Two-person transport when possible (driver + custodian).
- Transit logging
- Maintain continuous log: departure time, route, checkpoints every 30 minutes, arrival time.
- Use GPS tracking and periodic check-ins with dispatch; record any stops and reasons.
- Environmental protections
- Use anti-static bag and padding; place hard drive in shock-absorbing container.
- Control temperature (avoid extreme heat/cold); keep dry and upright.
- Contingency handling (theft or delay)
- If vehicle compromised: immediately notify dispatch and law enforcement; do not chase.
- Record incident time/location; request secondary transport unit; preserve chain notes (who was notified, actions taken).
- If delayed, document reason/time and continue secure monitoring; if transfer to another custodian, repeat full handoff documentation and photograph seals.
Worked example
Examiner M. Chen transports sealed bag EVD-2026-0212 (seal PS-88213 intact) from the scene to the lab. She logs departure at 10:05, checkpoints at 10:35, 11:05 and 11:35 each with GPS coordinates, a fuel stop entered as 11:14 to 11:24 with the reason recorded and the vehicle in her sight throughout, and arrival at 12:02. Read the timeline back against the procedure before you file it: the longest interval between consecutive entries is 30 minutes at the start and 27 minutes from the last checkpoint to arrival, so the log actually keeps the cadence it claims, and the stop that did happen is in it. A log that asserts checkpoints every 30 minutes and then shows a 57-minute hole is worse than one that never claimed a cadence, because it invites the question of what else the log says happened that did not.
Closing
At lab arrival, perform seal inspection, photograph, complete a final receipt, and store the item in a secured evidence locker. All actions are logged to maintain admissibility and integrity.
Trade-offs and pitfalls
What gets challenged about a transport is almost never the seal, it is a hole in the timeline: a stop that happened and was not written down, or a cadence the procedure promises that the log does not deliver. Every interval longer than your stated checkpoint spacing is a question you will be answering from memory months later, so either keep the cadence or do not put it in the procedure. Two-person transport is the stronger control, since it means no single person ever had unobserved access, but it is not always staffable and a single custodian is perfectly defensible provided the vehicle log, the GPS trace and the fact that the bag never left the locked compartment are all recorded as the transit happens. That last condition is the one that fails in practice: reconstructing the transit log on arrival from the GPS history produces a document written at the lab about events at the roadside, and opposing counsel will characterise it exactly that way. The other quiet failure is environmental. A locked compartment in a vehicle parked in the sun is not a controlled environment, and "kept dry and upright" is a claim you cannot support after the fact unless somebody noted the conditions at the time.
Describe how you would handle a device that is physically damaged (cracked PCB, corroded connectors) but is suspected to contain critical evidence. Outline non-destructive first actions, vendor/lab escalation criteria, and how you would document chain-of-custody and attempted recoveries for court.
Sample Answer
Direct answer
I treat a physically damaged device as high-value, fragile evidence: document exhaustively before touching it, attempt only genuinely non-destructive steps myself, and escalate to a specialist lab the moment the damage exceeds what I can safely image in-house. The chain of custody, meaning the signed trail of who held the device at each moment and what they did to it, and the record of every attempted step matter as much as whatever data eventually comes off the device.
Structured elaboration
- Non-destructive first actions. Photograph the device from every angle with a scale/forensic ruler, capturing the damage itself (cracked PCB, corrosion location and extent) before any handling. Bag it anti-static, label it, and store it in a controlled, dry environment, if there's corrosion or moisture ingress, a sealed container with desiccant (silica gel) to stop further degradation is appropriate before any attempt to power or connect it. Do not power on or connect a damaged device to test it "just to see," each attempt on a compromised board risks a short or further physical failure that destroys data permanently.
- When imaging is genuinely safe. If the storage itself (the flash chip or platters) is intact and only a connector or cable is damaged, a careful adapter-based connection through a write-blocker (a device that sits between the drive and your machine, passing reads through but physically refusing to let any write reach the evidence), with a current-limited bench power supply and a documented risk assessment, may let you image without lab intervention. Hash immediately once you get a successful read.
- Escalation criteria to a specialized lab. Damage to the PCB or ball-grid-array (BGA) components themselves, failed or error-prone imaging attempts, or storage that's sealed/encrypted such that recovery would require chip-off (desoldering the memory chip off the board and reading it directly in a dedicated chip reader) or board-level microsoldering repair, all of these are past what a field examiner should attempt. The risk of an amateur attempt destroying recoverable data outweighs the time saved.
- Documentation for court. Log every handling step with who, when, and why, timestamped and signed. Record every attempted action (successful or not), the tool and settings used, and any errors encountered, including screenshots and error logs from failed imaging attempts, a failed attempt is still evidence of due diligence. For vendor/lab work, document the transfer authorization, the lab's scope of work and qualifications, and require a final report with methodology, what was recovered, and verification hashes.
Worked example
A phone recovered from a fire has a visibly cracked PCB near the charging port but the storage chip itself looks intact. You: (1) photograph the damage and the whole device, (2) do not attempt to power it on, since a cracked board near a power path risks a short that could destroy the flash chip, (3) document the decision to escalate, citing the specific visible damage as the reason, (4) transfer it to a lab capable of chip-off extraction with a documented chain of custody and scope of work, and (5) when the lab returns a recovered image and hash, verify that hash matches what the lab reported at handoff and file their methodology report alongside your own acquisition log.
Trade-offs and pitfalls
The most common mistake is attempting one more power-on "just to check" before escalating, that single attempt is often what turns recoverable data into unrecoverable data. Weigh cost against evidentiary value honestly and document that reasoning, a lab chip-off extraction can be expensive and slow, and for a low-value device that trade-off should be made explicitly, not skipped past. A failed non-destructive attempt is not a wasted step if you documented it properly, it shows the court you tried the least invasive option first before escalating to something irreversible.
You discover, after a report has been released and disclosed to external parties, that evidence in a case was altered due to a lab process error. Outline the immediate containment and preservation steps you would take, how and when you would notify stakeholders and counsel, the re-analysis plan, root-cause and corrective actions, disclosure obligations to courts, and steps to restore trust and prevent recurrence in the lab.
Sample Answer
Because the report is already out and disclosed, my first move is containment and prompt, honest notification, not a quiet correction. Staying quiet after external disclosure is itself a disclosure violation, and a bigger risk to the case and to the lab than the original process error.
Immediate containment and preservation (first 0-4 hours)
I stop any further processing of the affected evidence and isolate the impacted lab workstations. I secure the original media, write-protect any existing images, and create fresh verified bit-for-bit images if the originals are still accessible. I capture current system logs, tool logs, and hash values, and document every timestamp and personnel action in the chain-of-custody record. I photograph workstations, evidence labels, and any error messages, and place affected items in evidence storage with unique identifiers.
Notification (within 24 hours)
I notify the senior forensics manager and legal counsel immediately, by phone with a follow-up email, giving a factual, non-speculative summary. I advise the retaining or prosecuting counsel and, per policy, opposing or defense counsel, coordinating with legal on the timing and content of any further external disclosure so I don't prejudice the proceedings while still meeting disclosure obligations.
Re-analysis plan
I suspend any reliance on the altered results. I re-image the originals under strict controls, using validated tools and a different examiner than the one involved in the original error, to avoid any appearance of self-review bias. I cross-validate the findings with an independent toolset, preserve every interim artifact, and produce a supplemental report explaining exactly what differs from the original and why.
Root cause and corrective actions
I run a structured root-cause analysis, looking at process, tooling, and human factors together rather than stopping at the first plausible cause. Immediate fixes include rolling back the faulty process, updating the standard operating procedure (SOP), re-validating tool versions, and adding mandatory peer review and hash-verification checkpoints at the step that failed. Medium-term, I look at retraining, change control for lab software updates, and enhanced logging so a similar error is caught before a report ever ships.
Disclosure obligations to the court
I prepare a transparent supplemental disclosure and affidavit describing the error, the affected scope, the re-analysis results, and the remediation taken. I coordinate timing with counsel, file the corrected report, and make the full evidence set available for independent review or a court-ordered retest.
Restoring trust and preventing recurrence
I offer an independent external audit or third-party re-examination and share the results with stakeholders. I publish the updated SOPs internally, add quality-assurance (QA) metrics tracking this failure mode specifically, schedule periodic audits and proficiency tests, and communicate the lessons learned to the wider team, not just the people directly involved.
Worked example
Suppose the process error is an imaging tool's recompression step that was silently reapplied during archival, degrading fidelity on three exhibits after the original hashes were already recorded and disclosed. I would treat the recompression itself as the process defect (it changed data after the point where I had certified it), re-image from any surviving originals or, if none exist, from the earliest surviving verified copy, and disclose plainly that the recompression step is the specific defect, not something I'm characterizing as tampering, while still being explicit that the affected exhibits' original certified state can no longer be independently reproduced from the altered copies alone.
Trade-offs and pitfalls
There's real tension between disclosing quickly and disclosing completely: I don't wait for a finished root-cause analysis before telling counsel something is wrong, I use a phased disclosure, here's what we know now, here's what we're still confirming, rather than waiting for certainty and risking that the delay itself looks like concealment. I'm also careful to distinguish a process error from something that looks intentional early on, since that distinction changes the notification and disclosure obligations significantly, and a defensive or overly legalistic first communication tends to damage trust worse than a plainly worded, transparent one.
Compare acquisition and analysis approaches for volatile memory on a Windows server, a Linux web server, and an Android device. For each platform, list recommended acquisition tools, common artifacts to extract (for example credentials, network sockets, loaded modules), and platform-specific constraints you must be aware of.
Sample Answer
Direct answer
The acquisition mechanics differ sharply across these three platforms because each one gates access to raw memory differently: Windows needs a signed kernel driver, Linux needs a loadable kernel module (or a static binary that avoids one), and Android usually needs root or an exploit before you can touch physical memory at all. The artifacts you're hunting for (credentials, sockets, loaded code) are conceptually the same everywhere, but what's actually recoverable depends heavily on that access constraint.
Structured elaboration
Windows server
- Tools:
Magnet RAM Capture,Belkasoft Live RAM Capturer,DumpIt, or FTK Imager's live-capture mode for quick, driver-based acquisition; WinPMEM for a more research-grade capture compatible with Rekall/Volatility. - Artifacts: plaintext or hashed credentials, LSASS (Local Security Authority Subsystem Service, the Windows process that handles credential validation) process memory, the running process list, loaded drivers and modules, open network sockets and handles, DPAPI-protected key material (Windows' Data Protection API, used to encrypt secrets tied to a user or machine), and Event Log buffers not yet flushed to disk.
- Constraints: security software can terminate an acquisition tool mid-capture, so prefer signed, trusted tools and document their hash and signature. Kernel driver-signing enforcement on 64-bit Windows limits which tools can even load. Any live tool alters system state (its own process, its own network handle), so capture and log a process/network baseline before and after.
Linux web server
- Tools:
LiME(Linux Memory Extractor, a loadable kernel module) for a full RAM capture;fmemas a lighter-weight alternative;AVML(Acquire Volatile Memory for Linux, a Microsoft-built static binary that needs no kernel module or compilation, useful specifically when you can't load a kernel module, such as on a locked-down cloud VM). - Artifacts: process list and
/procstructures held in memory, in-memory web-application secrets (API keys, session tokens), SSH private keys, open sockets and network connections, loaded shared libraries, cached credentials, and command-history fragments still resident in a shell's memory. - Constraints:
LiMEneeds a kernel module matching the running kernel version, which can be a real obstacle on a hardened or minimal system,AVML's static binary exists precisely to route around that limitation. Cloud instances frequently restrict kernel module loading entirely, in which case a provider-level snapshot (hypervisor or cloud-rescue snapshot) may be the only path in. Watch for memory compression (zswap) potentially masking or relocating data you're looking for.
Android device
- Tools:
ADB(Android Debug Bridge) against a rooted device,LiMEcompiled for Android, or a commercial mobile-forensics suite (Cellebrite UFED or MSAB XRY, both mobile-extraction hardware/software platforms) that handles extraction and app-data decoding together. - Artifacts: app-level credentials and auth tokens, the Dalvik/ART runtime heap (loaded classes and strings, useful for reconstructing what an app was doing), open network sockets, keystore-derived key remnants, and messaging/browser session data still resident in memory.
- Constraints: most production devices are locked and unrooted, and live RAM access generally requires root or an exploit chain, which may simply not be available or authorized for a given device. Secure Boot and SEAndroid (Android's SELinux-based mandatory access control) can block memory access even with root. Hardware-backed keystores mean some key material never appears in RAM as plaintext at all. Keep the device powered throughout to avoid losing volatile state, and document every step precisely because these acquisitions are the most invasive of the three.
Worked example
A single incident spans all three: a compromised Windows domain controller, a Linux web server it pivoted through, and an employee's Android device with a suspicious app. On the Windows host, WinPMEM captures memory and Volatility later pulls LSASS artifacts showing credential theft. On the Linux server, since it's a cloud VM with kernel-module loading disabled, AVML's static binary captures memory without needing a module, and analysis finds a web-shell process and its network sockets still resident. On the Android device, with a signed consent form and the device rooted for extraction purposes, LiME for Android captures the app's heap, showing the malicious app's auth token in memory. Three different tools, chosen for three different access constraints, feeding the same kind of artifact (in-memory credentials and network state) into one timeline.
Trade-offs and pitfalls
Across all three platforms, the tool you can actually use is often dictated by what access you're permitted or able to obtain (root, kernel module loading, driver signing), not by which tool is theoretically best, plan your toolset around the platform's real constraints rather than a single preferred tool. Document tool versions, exact commands, and timestamps on every platform, and validate each capture's integrity (hash it) before treating it as reliable. Prioritize the least invasive method that will actually work: a signed userland tool over an unsigned kernel module, a provider snapshot over forcing kernel-module loading on a locked-down cloud instance, root-required extraction only when the case genuinely needs it.
Unlock Full Question Bank
Get access to all Evidence Acquisition, Handling, and Chain of Custody interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.