Evidence, rules and the first hour

Unit 1 of 5 in Digital forensics basics.

You will be able to name the four forensic phases, apply the main rules for handling evidence and keep notes that others can trust.

Lesson

The four phases

NIST SP 800-86 describes the forensic process as four basic phases. Collection means identifying the possible sources of data and acquiring data from them. Examination means assessing and extracting the relevant pieces from what was collected. Analysis means studying the extracted data to draw conclusions, or to decide that no conclusion can yet be drawn. Reporting means preparing and presenting the results. The guide notes that other models name the phases differently and says organizations should pick the model that suits them.

For collection, SP 800-86 recommends a three-step process: make a plan, acquire the data, and verify the integrity of what you acquired. The plan prioritizes sources by three factors: likely value, volatility and the effort required. The guide warns that there may be too many sources to acquire all of them, so written plans and procedures help analysts choose.

The guiding principles

RFC 3227, a 2002 best-practice document, lists principles for collecting evidence. Capture as accurate a picture of the system as possible. Minimize changes to the data as you collect it, including file and directory access times. Remove external avenues for change. When you have to choose between collection and analysis, collect first and analyze later. Keep detailed notes with dates and times, note the difference between the system clock and UTC, and say for each timestamp which one you used.

It also says to make a bit-level copy of the system's media and, if you want to do forensic analysis, to make a bit-level copy of that evidence copy and work on the second one, because analysis will almost certainly alter file access times. It says your methods should be transparent and reproducible, so that independent experts could test them, and that on a single system collection should be done step by step.

Three practical cautions come from the same document. Do not shut the machine down before collection is finished, because evidence is lost and an attacker may have altered the shutdown scripts. Do not trust the programs on the system. And do not run programs that change the access time of every file, such as tar or xcopy. The document is 24 years old and written for the systems of its day; the ideas have lasted better than the tool names.

Chain of custody and the evidence log

Chain of custody is the written record of what happened to a piece of evidence. RFC 3227 says you should be able to describe how it was found, how it was handled and everything that happened to it, and lists what to document: where, when and by whom it was discovered and collected, where, when and by whom it was handled or examined, who had custody and when, how it was stored, and how and when custody was transferred. It says access should be extremely restricted and documented, and that unauthorized access should be detectable.

NIST SP 800-61 Rev. 2 gave a plain list for the evidence log: identifying information such as hostname, serial number and addresses, the name and contact details of everyone who collected or handled the evidence, the date and time including the time zone of each handling, and where it was stored. Revision 2 has been replaced by Revision 3 (April 2025), which keeps the idea in shorter form: it says formal evidence handling with chain of custody might not be performed for every incident, that collected incident data is still evidence, and that organizations should collect and retain it under their own evidence preservation procedures and data retention policies, weighing the possibility of prosecution against the cost of keeping it.

Where feasible, RFC 3227 suggests generating checksums and cryptographically signing collected evidence to help preserve a strong chain, without altering the evidence while doing so. The checksum labs here use SHA-256; SP 800-86, written in 2006, names MD5 and SHA-1 as the common algorithms of that time.

Your own notes are evidence too

RFC 3227 says to keep detailed notes, to record an automatic copy of your terminal session if possible (it suggests the Unix script program) and not to write that recording to media that is part of the evidence. It also says to be prepared to describe your actions, perhaps years later. The logging lab builds this on a Linux terminal: a named tmux session, a timestamp on every prompt, a replayable recording with script, and a SHA-256 manifest that seals the originals, with a copy kept off the machine. It also shows what shell history alone quietly loses, such as when a shell is killed before it writes its history.

The manifest lab goes one step further and checks a whole folder of 34 evidence files against a hash manifest, showing what changes when evidence is mishandled and ending on the limit: a manifest stored beside the evidence proves little if someone can alter both.

Privacy, law and where this class stops

RFC 3227 lists qualities evidence needs if it is to be used in court: admissible, authentic, complete, reliable and believable. It also says its guidelines may not suit every jurisdiction and that once you have written your own procedures you should have law enforcement in your jurisdiction confirm they are adequate. On privacy it says to respect your company's rules and your jurisdiction's law, to avoid collecting from areas such as personal file stores unless there is a real indication of an incident and to make sure what you collect is available only to people who would normally have access.

This class is education, not legal advice. Whether a piece of evidence is admissible, what you are allowed to collect from a workplace or a person and who may do it are questions for lawyers and the organization's policies. Never practice on a device or account you do not own.

Key points

Sources

Lecture

The first hour of a forensic investigation: A short talk that walks the first hour in order: preserve first, order of volatility, images and hashes, chain of custody and notes.

Practice in the labs

Keep a sealed log, audit an evidence folder and drill the evidence order. All on files and a machine you own.

Knowledge check

  1. Which is the right order for the four forensic phases in SP 800-86? Answer: Collection, examination, analysis, reporting. SP 800-86 describes the process as collection, examination, analysis and reporting, each building on the last, though it notes that other models split the phases differently.
  2. RFC 3227 says you should make a bit-level copy of the media. What should the analysis be done on? Answer: A second copy made from the evidence copy. RFC 3227 says analysis will almost certainly alter file access times, so make a copy of your evidence copy for analysis and avoid doing forensics on the evidence copy itself.
  3. Why does RFC 3227 tell you to note the difference between the system clock and UTC? Answer: So every timestamp can be placed correctly against other evidence. Evidence from several machines is only comparable if each timestamp says whether it is UTC or local time and how far the system clock was off. The document asks you to record both.
  4. A manager asks whether your evidence will be admissible in court. What is the honest answer in this class? Answer: That is a legal question for lawyers and local law, and RFC 3227 itself says to have law enforcement confirm your procedures. RFC 3227 says its guidelines may not be appropriate in all jurisdictions and recommends confirming procedures with law enforcement. Hashing and notes help, but admissibility is decided under local law.

Back to the syllabus or see all classes.

Related