Lesson 1 of 2 Investigations and Digital Forensics

Evidence Collection and Handling

Evidence is only useful if it is collected properly and its integrity can be proven. This lesson covers evidence types, admissibility, the order of volatility and the chain of custody.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe evidence types and the requirements for admissibility.
  • Explain the order of volatility and the chain of custody.

Types of evidence and admissibility

Evidence types include real evidence (physical objects such as a hard drive), documentary evidence (records, logs and files), testimonial evidence (witness statements) and demonstrative evidence (charts and models that help explain other evidence). The best evidence rule prefers original documents over copies, although properly verified forensic copies of digital evidence are generally accepted. Hearsay, a second-hand statement, is generally inadmissible unless an exception applies, such as business records made in the normal course of business.

To be admissible, evidence must be relevant (it relates to a fact in question), material (that fact matters to the case) and competent (obtained legally and reliably).

Logs show how these rules apply to digital evidence. A web server log is documentary evidence. Because it is produced automatically in the normal course of business, rather than written afterwards by a person recounting events, it can usually be admitted under the business records exception to hearsay, provided the organisation can show that logging is routine, reliable and protected from tampering. A summary of the logs prepared by an analyst for a meeting is weaker, because it is someone's interpretation; the original log, with its hash, is the best evidence.

Evidence obtained unlawfully can be excluded however relevant it is. An investigator who reads an employee's personal cloud account using a password found on a note, without authorisation, may have committed an offence and produced evidence that a court will not accept. This is why the competence test, legal and reliable collection, depends on authorisation and documented procedures.

Sort into groups

Name the evidence type

Exam skills 7.1.1

Classify each item by its type of evidence.

Log in to try this activity Interactive activities are free with an account.

Collecting digital evidence

Volatile evidence disappears when a system is powered off, so collection follows the order of volatility (RFC 3227): CPU registers and cache; routing tables, ARP cache, process table and memory; temporary file systems; disk; remote logs and monitoring data; physical configuration and network topology; and finally archival media.

The scene is documented and photographed, and actions are recorded as they happen. Disks are imaged bit for bit using write blockers, and the original and the image are hashed to prove they match. Analysis is performed on copies, never on the original.

The write blocker and hashes together prove integrity. Simply connecting a disk to a computer can change it, because the operating system may update timestamps or write metadata. A hardware or software write blocker allows reading but prevents any write. The examiner then computes a hash, such as SHA-256, of the original disk and of the image; identical values show that the image is an exact copy. Months later, recomputing the hash of the image and finding the same value proves that it has not changed since acquisition, which answers any challenge in court.

Cloud and remote systems change the practicalities. An investigator usually cannot seize a cloud provider's disk, so evidence is collected through the provider's interfaces: snapshots of virtual machine disks, exported logs and memory captures where the platform supports them. The same principles apply: document what was collected, how and when, hash it and store it securely. Because cloud logs may be kept only for a limited time by default, preserving them early is often urgent.

The following diagram shows the order of actions on a running system.

Collecting evidence from a running system in the order of volatility. Shutting it down would destroy memory, which may hold the key evidence, such as memory-only malware. The responder captures memory and other volatile data with trusted tools, isolates the system from the network, documents every action and then images the disk with a write blocker.
Order of volatility as in RFC 3227.
Put in order

Order of volatility

Exam skills 7.1.1

Arrange the sources of evidence in the order RFC 3227 recommends collecting them.

Log in to try this activity Interactive activities are free with an account.

Chain of custody

The chain of custody records every person who collected, handled, transferred or stored the evidence, when, where and why. Evidence is labelled, sealed in tamper-evident packaging and kept in secure storage. A gap in the chain allows the opposing side to argue that the evidence could have been altered, which can make it inadmissible.

A chain of custody form travels with each item. It records the item's description and unique identifier, such as the serial number of a laptop, where and when it was collected and by whom, and then one entry for every transfer: who released it, who received it, the date and time, and the reason, such as "transferred to forensic laboratory for imaging". If a laptop sits unrecorded on an analyst's desk over a weekend, the defence can argue that anyone might have tampered with it, and even a strong hash record of later stages cannot prove what happened before it was taken.

Start at the highest standard

Handle evidence to criminal standards from the start, even in an internal investigation; it is impossible to raise the standard later.

Select all that apply

Completing the custody form

Exam skills 7.1.1

Identify what a chain of custody form records.

Log in to try this activity Interactive activities are free with an account.
Worked example

A running machine

An incident responder finds a server that appears to be running malware that exists only in memory. The system administrator wants to shut it down immediately. What should the responder do?

Shutting down would destroy the most important evidence, because the malware lives in memory. Following the order of volatility, the responder should capture memory and other volatile data first using trusted tools, isolate the server from the network to contain the threat, document every action, then image the disk with a write blocker. Containment by isolation preserves evidence that a shutdown would lose.

Check yourself

Which should be collected first: disk contents or memory?

Show answer

Memory, because it is more volatile and is lost when the system is powered off.

Exam Tips

Remember for the exam

  • Collect volatile data first: memory before disk.
  • Image with a write blocker and verify with hashes.
  • A broken chain of custody can make evidence inadmissible.