Урок 4 з 4 · 8 хв
Digital forensics basics: preserving evidence you can trust
How investigators collect digital evidence without destroying it, why the order of collection matters, and what chain of custody means.
Поки що ця сторінка англійською.
Digital forensics is the careful collection and analysis of evidence from computers, phones and networks, in a way that can be trusted later: by the organisation deciding what to fix, by an insurer, or by a court. It sounds like something from a crime series, but its core rules are simple and apply to any investigation, even an internal one.
Rule one: do no harm to the evidence
The moment you start poking around a compromised machine, you change it. Opening files updates timestamps, running tools writes to disk and memory, and rebooting erases everything that was only in memory. NIST’s guide to integrating forensic techniques into incident response (SP 800-86) and the long-standing Internet guidance on evidence collection (RFC 3227) both stress the same point: preserve first, analyse later, and work on copies, not originals.
The order of volatility
Some evidence disappears faster than other evidence. RFC 3227 recommends collecting from the most volatile to the least volatile, so nothing fragile is lost while you deal with what will keep:
| Order | Evidence | Why it is fragile |
|---|---|---|
| 1 | CPU state, memory contents, running processes | Lost when the machine is switched off or rebooted |
| 2 | Network connections and routing information | Change from second to second |
| 3 | Temporary files and system state | Overwritten during normal use |
| 4 | Disk contents | Persist, but are altered by continued use |
| 5 | Remote logs and monitoring data | Usually safe, if they were sent off the machine in time |
| 6 | Archives and backups | Most stable |
This is why the first instinct of switching off an infected computer is often wrong. Isolating it from the network stops the damage, while keeping it powered on preserves what is in memory, which can include keys, running malicious code and network connections that never touched the disk.
Memory analysis versus disk analysis
Memory analysis looks at a snapshot of what was running: processes, their network connections, loaded code, sometimes passwords or encryption keys. It is powerful against attacks that live only in memory, but the snapshot has to be taken before shutdown and requires specialised tools. Disk analysis works on a bit-for-bit copy of the storage, called a forensic image: files, deleted data that can still be recovered, logs, browser history and persistence items. Investigators usually verify each image with a cryptographic hash, so anyone can later check that the copy has not changed.
Chain of custody
Chain of custody is the documented history of every piece of evidence: who collected it, when, how, where it was stored and who handled it since. NIST defines it as a process that tracks the movement of evidence through its collection, safeguarding and analysis lifecycle. In practice this is a form or a log that travels with the evidence. Without it, even a perfect analysis can be dismissed, because nobody can prove the evidence was not altered.
When to call professionals
- If the incident may lead to legal action, criminal charges or an insurance claim.
- If personal data of customers, students or patients may have been exposed.
- If you suspect a targeted attack against a journalist, activist or executive.
In those cases, the most valuable things you can do are to isolate, not wipe, and to write down everything you have already done. A clear record of your own actions is part of the evidence too.
What a network record adds
Investigators love an independent record of network activity, because an attacker on the machine cannot easily rewrite what another system already recorded. On a Mac, FireAI’s connection history shows which app contacted which address and when, and it is kept locally. It does not replace a forensic image, but it can quickly answer questions like “when did this app first contact that server?” and help decide which machines need a full investigation.
Головне
- Preserve first, analyse later, and work on verified copies, not originals.
- Collect from most to least volatile: memory and network state before disk.
- Isolating a machine usually beats switching it off: memory holds valuable evidence.
- Chain of custody documents every hand the evidence passed through; without it, evidence can be challenged.
Перевірте себе
1. According to the order of volatility, what should be collected first?
- Backups
- Memory contents and running processes — Правильно.
- Printed documents
- Archived emails
Memory is lost at shutdown, so it is collected before more stable evidence like disk contents.
2. What is chain of custody?
- A type of encryption
- The documented record of who collected, handled and stored each piece of evidence — Правильно.
- A firewall rule
- A list of suspects
It proves the evidence was handled properly and not altered.
3. Why do investigators hash forensic images?
- To compress them
- To let anyone verify later that the copy has not changed — Правильно.
- To hide their contents
- To make them faster to read
A matching hash shows the image is identical to what was originally collected.
Застосуйте на практиці з FireAI
Застосуйте цей урок на своєму Mac.
- Активність: кожен застосунок, що виходив в мережу, і пошук за історією звичайною мовою — Побачте кожен застосунок, що виходив у мережу сьогодні, і дійте щодо будь-якого з них в один клік.
- Сторінка Загрози: що виглядає не так, і чому — Побачте жменьку з’єднань, що заслуговують на вашу увагу, замість прокручування тисяч.
- Дослідіть з’єднання — Вирішуйте, маючи факти перед собою, а не розпливчасте попередження.
- Аварійний вимикач — Відріжте свій Mac від інтернету в один клік, коли щось здається не так.
Джерела
- NIST SP 800-86: Guide to Integrating Forensic Techniques into Incident Response
- RFC 3227: Guidelines for Evidence Collection and Archiving
- NIST CSRC Glossary: chain of custody
- Apple Platform Security: System security overview
Застосуйте це на своєму Mac
Усі функції безкоштовно на 17 днів, без банківської картки.