5.9.3. Evidence Integrity, System Images, and Investigation Stakeholders
💡 First Principle: Evidence is useful only if you can prove it has not changed and you captured the right form of it. An investigation also reaches beyond the security team: the people who decide what happens to an employee, a payment or a lawsuit need its findings, and their needs shape how evidence is handled.
File and log integrity — investigators must be able to show that a file or log is exactly what the system produced:
- Hashing — record a cryptographic hash (SHA-256) of evidence when it is collected; a matching hash later proves the copy is unchanged.
- File integrity monitoring (FIM) — tools that baseline the hashes of critical files (system binaries, configuration files) and alert when they change, so tampering is detected.
- Protecting logs — forward logs off the host in near real time to a central SIEM or collector, keep them on write-once (WORM) or immutable storage, and use log signing or hash chaining where available. An attacker with administrator rights on a host can edit its local logs but cannot easily reach copies that were already forwarded, and a gap in an otherwise continuous log is itself evidence.
System images — three ways to capture a system, each preserving something different:
| Capture | What it holds | Use it when |
|---|---|---|
| Memory dump | Contents of RAM: running processes, network connections, encryption keys, fileless and injected malware | The system is still running; collect it first, because it is the most volatile |
| Bit-level copy | Sector-by-sector image of the whole drive, including deleted files, slack and unallocated space | Forensic analysis and court use; made through a write blocker and verified by hash |
| Snapshot | Point-in-time state of a virtual machine or cloud volume (disk, and optionally memory) | Virtual and cloud systems, where it can be taken in seconds without shutting the system down |
An ordinary file copy or backup is no substitute for a bit-level image: it skips deleted data and can change file metadata such as access times.
Stakeholders — an investigation serves people outside the security team:
- Human Resources (HR) — involved whenever an employee is a suspect or a witness. HR handles disciplinary action and employment-law obligations, so the investigation must follow company policy and HR process for its findings to be usable.
- Accounts — the finance and accounting function, brought in when an incident touches payments, invoices or payroll (business email compromise, fraudulent transfers, a diverted vendor payment): it can stop or recall payments, supplies the transaction records, and tracks the incident's costs.
- Legal — decides on legal holds, law enforcement involvement, privilege over the investigation's findings, and notification duties. Bring legal in early, because some decisions (such as preserving evidence for litigation) cannot be undone later.
Log-parsing techniques — turning raw logs into answers:
- Filtering and searching —
grep,findstror a SIEM query for an IP address, user name or event ID. - Regular expressions — matching patterns such as IP addresses, failed-logon lines or Base64-encoded commands.
- Field extraction and counting —
awk,cutorjq(for JSON logs), or SIEM parsers, pull out fields so values can be counted and sorted;sort | uniq -cquickly shows the one address behind 4,000 failed logons. - Normalizing time — convert every source to one time zone (UTC) and format before building a timeline, because correlating sources depends on it.
- Aggregation and baselining — group by user, host or hour and compare against normal volume to find the outlier.
⚠️ Exam Trap: A memory dump captures what is running (processes, connections, keys, fileless malware) and is lost at power-off; a bit-level copy captures everything on the disk, including deleted data. If a scenario stresses fileless malware or encryption keys in use, the answer is a memory dump taken before shutdown. If it stresses recovering deleted files for court, the answer is a bit-level image verified by hash.