Evidence and Chain of Custody
Chapters and transcript
Evidence and Chain of Custody Digital evidence is fragile. A single click can change a file timestamp. Turning a computer off can erase what was in memory. So investigators make an exact copy without changing the original, and record every step. In this lesson, you will learn how to collect evidence in the right order, copy it safely, prove it has not changed, and keep a chain of custody.
Trustworthy evidence Good evidence should be four things. Authentic: you can show where it came from. Complete: it tells the whole story, not only one side. Reliable: it was collected in a way that did not change it. And documented: every step taken with it is written down. If any of these is missing, a lawyer, a judge or your own manager may refuse your findings.
Order of volatility Volatility means how quickly data is lost. A guide called R F C thirty-two twenty-seven says: collect the most volatile data first. CPU registers change every fraction of a second. RAM is lost when power is removed. Temporary files and swap are overwritten in normal use. The disk survives power off. Remote logs may be deleted after some days. And backups are made to last. So if the computer is still running, think about capturing memory first.
Order of volatility Mobile phones need special care. A phone that stays connected can receive a remote wipe command that erases it. To stop this, investigators put the phone in airplane mode, or in a Faraday bag, a bag that blocks radio signals. Now the wipe command cannot reach the phone.
Forensic images Investigators almost never analyse the original device. They make a forensic image: a bit-for-bit copy of a whole storage device. It copies everything, not only visible files. That includes deleted files not yet overwritten, unallocated space, which is marked free but may hold old data, and hidden areas and file system records. Drag-and-drop copying is not an image. It misses deleted data and changes some timestamps.
Forensic images Images are saved in common formats. A raw image is a plain copy, often with the extension dot D D or dot raw. An E zero one file uses the Expert Witness format, which can also store case notes and hashes. Free tools such as F T K Imager can create images in these formats.
Write blockers When you connect a drive, the operating system may write small changes to it automatically. So investigators use a write blocker between the evidence drive and the forensic computer. Reading is allowed. But any write is blocked, so the original stays unchanged. A hardware write blocker is a small device. A software write blocker uses settings or a program. It is cheaper, but needs careful testing.
Write blockers Here is the basic workflow. Connect the evidence drive through a write blocker. Calculate the hash of the original drive. Create the forensic image. Calculate the hash of the image, and check that it matches. And store the original safely, and analyse only copies of the image.
Hashing A hash is a short fixed-length value calculated from data. It works like a fingerprint. If even one bit changes, the hash changes completely. Common algorithms are M D 5 and SHA one. Both have known weaknesses. So SHA two fifty-six is the better choice today. Many investigators record more than one hash.
Hashing Hashes prove integrity, which means the data has not changed. On Linux, the command is sha256sum, followed by the file name. It prints a long string of letters and numbers. Write it in your notes and in the chain of custody form. Later, hash the image again. The two values match, so the data is exactly the same.
Hashing On Windows PowerShell, use Get-FileHash with the algorithm SHA two fifty-six. Try it on a small text file of your own. Hash it twice without changing it, and the value is the same. Now add one full stop to the text and save it. Hash it again. The whole hash is different. This is why hashing is the foundation of trustworthy evidence.
Chain of custody The chain of custody is a written record of who had the evidence, when, where, and what they did with it. It runs from collection to the end of the case. It records who handled it, when, where it was stored, and what was done. If there is a gap, someone can argue that the evidence was changed or swapped.
Chain of custody Here is a chain of custody form. The item has a unique evidence number, and a description with the make, model and serial number. The image hash is recorded. Now the investigator, Imran, records a transfer: he releases the laptop to evidence locker two, for storage after imaging. Every transfer gets a date, a time, who gave it, who received it, and why.
Documentation habits Good investigators also keep case notes for the whole job. Write down the date, time and time zone of each action. What you saw before you touched anything. Every tool you used, with its version. And anything unexpected, such as an error during imaging. Take photos of the device, its cables and its screen before you move it. Another investigator should be able to repeat your work and get the same result.
Quick check Quick check. You have a hard drive from a suspect computer, and you are about to start imaging. Which step comes first? Think about the workflow, then choose.
Key takeaways Let us put it together. Collect the most volatile data first. Work on a forensic image, never the original. Use a write blocker so the original stays unchanged. Hashes prove the evidence has not changed. And the chain of custody records every hand the evidence passes through. Next, you will look inside disks and files. Now read the lesson below, and answer the quiz.
Evidence is only useful if people can trust it. In this lesson you will learn how investigators collect digital evidence in the right order, make exact copies without changing the original, and record every step so that nobody can later say the evidence was changed.
What makes evidence trustworthy
Digital evidence is fragile. A single click can change a file's timestamp. Turning a computer off can erase what was in memory. Because of this, investigators follow rules that make evidence trustworthy. Good evidence should be:
- Authentic: you can show where it came from.
- Complete: it tells the whole story, not only the parts that support one side.
- Reliable: it was collected in a way that did not change it.
- Documented: every step taken with it is written down.
If any of these is missing, a lawyer, a judge or even your own manager may refuse to accept your findings. A brilliant analysis built on badly handled evidence has little value.
The order of volatility
Some data disappears in seconds. Other data lasts for years. Volatility means how quickly data is lost. The order of volatility is the rule that you collect the most volatile data first. A well-known guide on evidence collection, RFC 3227, describes this idea.
A simplified order, from most to least volatile:
| Order | Evidence | Why it is volatile |
|---|---|---|
| 1 | CPU registers and cache | Change every fraction of a second |
| 2 | RAM: running programs, network connections, logged-in users | Lost when power is removed |
| 3 | Temporary files and swap space | Overwritten during normal use |
| 4 | Hard drive or SSD | Survives power off, but can be overwritten or wiped |
| 5 | Remote logs, such as a SIEM or firewall | May be deleted after a set number of days |
| 6 | Backups and archived media | Designed to last a long time |
In practice, a beginner cannot collect CPU registers. The key lesson is simple: if the computer is still running, think about capturing memory before you turn it off.
Mobile phones need special care. A phone that stays connected to a network can receive a remote wipe command that erases it. Investigators often put phones in airplane mode or in a Faraday bag, a bag that blocks radio signals, to stop this.
Write blockers and forensic images
Investigators almost never analyse the original device. Instead, they make an exact copy and work on the copy.
A forensic image is a bit-for-bit copy of a whole storage device. It copies everything, not only the visible files. This includes:
- Deleted files that have not yet been overwritten
- Unallocated space, which is space marked as free but which may still hold old data
- Hidden areas and file system records
Copying files with drag-and-drop is not a forensic image. It misses deleted data and changes some timestamps.
Common image formats include raw images (often with the extension .dd or .raw) and E01 files (the Expert Witness format, which can also store case notes and hashes). Free tools such as FTK Imager can create images in these formats.
When you connect a drive to a computer, the operating system may write small changes to it automatically. To stop this, investigators use a write blocker:
- A hardware write blocker is a small device placed between the evidence drive and the forensic computer. It allows reading and blocks writing.
- A software write blocker uses settings or a program on the forensic computer to block writes. It is cheaper but needs careful testing.
The basic workflow looks like this:
- Connect the evidence drive through a write blocker.
- Calculate the hash of the original drive.
- Create the forensic image.
- Calculate the hash of the image and check that it matches.
- Store the original safely and analyse only copies of the image.
Hashing to prove integrity
A hash is a short fixed-length value calculated from data. It works like a fingerprint. If even one bit of the data changes, the hash changes completely. Common hash algorithms are MD5, SHA-1 and SHA-256. MD5 and SHA-1 have known weaknesses, so SHA-256 is the better choice today. Many investigators record more than one hash.
Hashes are used to prove integrity, which means the data has not changed. You hash the evidence when you collect it, and again whenever you need to prove it is unchanged. If the two hashes match, the data is the same.
You can try this on your own computer. On Linux:
sha256sum evidence.dd
On Windows PowerShell:
Get-FileHash .\evidence.dd -Algorithm SHA256
Each command prints a long string of letters and numbers. Write it down in your notes and in the chain of custody form.
Chain of custody
The chain of custody is a written record that shows who had the evidence, when, where, and what they did with it, from the moment it was collected until the end of the case. If there is a gap, someone can argue that the evidence was changed or swapped.
A chain of custody form usually records:
- A unique evidence number, such as
CC-2026-014-01 - A description: make, model and serial number of the device
- Where and when it was collected, and by whom
- The hash values of any images made
- Every transfer: date, time, who gave it, who received it, and why
- Where it was stored, such as a locked evidence cabinet
Here is a short example:
| Date and time | Released by | Received by | Purpose |
|---|---|---|---|
| 03 Mar 2026, 10:40 | Sana (IT, chaicorp.example) | Imran (investigator) | Collection from office |
| 03 Mar 2026, 15:10 | Imran | Evidence locker 2 | Storage after imaging |
Documentation habits
Beyond the chain of custody, a good investigator keeps case notes during the whole job. Write down:
- The date, time and time zone of each action
- What you saw before you touched anything, such as what was on the screen
- Every tool you used, with its version
- Anything unexpected, such as an error during imaging
Take photos of the device, its cables and its screen before you move it. Notes should be clear enough that another investigator could repeat your work and get the same result.
Try it yourself
You can practise these ideas safely with your own files:
- Create a small text file on your computer and type a sentence in it.
- Calculate its SHA-256 hash using the command for your system above. Write the hash down.
- Calculate the hash again without changing the file. It should be exactly the same.
- Now add one full stop to the text and save it. Hash it again. The whole hash will be different.
- Write a mini chain of custody entry for the file: what it is, when you created it, its hash, and where it is stored.
This simple exercise shows why hashing is the foundation of trustworthy evidence.
Check your understanding
Answer every question correctly to complete this lesson. If you miss one, try the quiz again.
1. An investigator arrives at a running computer. Which should normally be collected first?
2. The SHA-256 hash of a disk image taken today is different from the hash recorded when the image was made last month. What does this tell you?
3. What is the main purpose of a write blocker?
Locked: answer every quiz question above correctly to complete this lesson.
Spotted a mistake or something unclear? Report a mistake