Digital Forensics - Investigating Cyber Incidents
About 2 min read
Digital forensics is a body of techniques for collecting, preserving, analyzing, and reporting digital evidence on computers and networks in a legally valid manner. It is used in situations that involve digital evidence, such as investigating cybercrime, examining internal corporate fraud, and determining root causes during incident response. The word "forensic" derives from the Latin "forensis" (of the forum or court), and the difference from ordinary troubleshooting is the requirement for a level of rigor that allows the evidence to be admitted in court.
The Principle of Evidence Preservation - Chain of Custody
One principle of digital forensics is maintaining the Chain of Custody, which proves the integrity of the evidence. From the moment evidence is collected until it is submitted to court, you must record who handled the evidence, when, and how, and prove that no tampering has occurred.
Locate the evidence
Acquire bit image
Build a timeline
Write the report
Court / management
In the preservation stage, you create a complete bit-for-bit copy of the target disk (a forensic image) and record the hash value of the original (for example, SHA-256). All subsequent analysis is performed on the copy, and the original is never touched. Neglecting this procedure risks having the evidence ruled inadmissible in court.
Live Forensics vs. Dead Forensics
| Item | Live forensics | Dead forensics |
|---|---|---|
| Target | A running system | Powered-off storage |
| Evidence obtainable | Memory, network connections, processes, encryption keys | Files on disk, deleted data, logs |
| Advantage | Can capture volatile data | Low risk of altering the evidence |
| Challenge | The act of investigating itself changes the system state | Evidence in memory has already been lost |
Among malware, "fileless malware" leaves no trace on disk. Because evidence in memory vanishes when the power is cut off, a memory dump is acquired as the initial response when an incident occurs.
The Importance of Memory Forensics
In memory forensics, you dump the contents of RAM and extract the following information.
Identify malware processes and suspicious parent-child relationships
Identify the IP addresses and ports of C2 server communications
Recover decryption keys for BitLocker or ransomware
Detect DLL injection and code injection
The Volatility Framework is an open-source tool for memory forensics. It supports memory dumps from Windows, Linux, and macOS, and can automate tasks such as reconstructing the process tree, extracting registry hives, and listing network connections.
Relationship to Incident Response
Forensics is conducted in earnest during the "post-containment" phase of incident response, but in practice you need to be conscious of evidence preservation from the very first response. Starting from an alert detected by a SIEM, forensic expertise shapes the quality of incident response across identifying the scope of impact, clarifying the attack path, and formulating measures to prevent recurrence. The EDR functionality of endpoint security products continuously collects the telemetry data needed for forensics, which helps post-incident investigation.
The Challenges of Cloud Forensics
In cloud environments, there are situations where traditional forensic methods cannot be applied as-is. Challenges include the impossibility of accessing the physical disk, the unsettled legal question of whether virtual machine snapshots are admissible as evidence, and the difficulty of isolating evidence in a multi-tenant environment. AWS and Azure provide APIs and logging services for forensics.
One example of a mistake is panicking after an incident and rebooting the server, thereby losing the evidence in memory.
Responding to data breaches is explained in detail in the article on data breach response, and incident response at the individual level is covered in the article on incident response for individuals. Please also refer to ransomware protection.
Was this article helpful?
Related Terms
- Privacy by Design - Building Privacy In from the StartPrivacy by Design embeds privacy into systems from the outset. Based on Ann Cavoukian's seven principles, it became a legal obligation under GDPR Article 25.
- Pretexting - Fabricated Scenarios for Data TheftPretexting is a social-engineering technique that fabricates a scenario to extract information. Impersonating IT support or HR is typical, and it often serves as the opening move in a BEC attack.
- Cyber Kill Chain - Seven Phases of an AttackThe Cyber Kill Chain is a framework that breaks cyberattacks into seven phases. Proposed by Lockheed Martin in 2011, it helps defenders systematically plan countermeasures at each stage.
- OSINT - Open Source IntelligenceOSINT gathers intelligence from publicly available sources such as social media, WHOIS, and DNS records. Both attackers in reconnaissance and defenders in threat analysis use it.