🆕 Introducing HTB CDEP: Certified Detection Engineering Principal Learn More

Forensic Acquisition and Triage

mini-module tag Mini-Module

End of this module, you will learn how you acquire evidence and triage infected machines. With our hands-on labs, you can practice what you learned. That way will be great to learn it.

Created by letsdefendio

Hard Defensive

Summary

The Forensic Acquisition and Triage module is designed for

  • Incident Responders. Throughout this module, students will develop
  • Triage analysis and
  • Learn how to acquire evidence.

Recommended prior knowledge:

  • Basic knowledge about memory analysis

Introduction to Forensics Acquisition and Triage


Forensics acquisition, also known as Forensics imaging or data acquisition, is the process of creating an exact duplicate (or "image") of data from a specific storage device or media for the purpose of preserving the original data for legal or investigative purposes. The image can then be analyzed and examined for evidence without altering the original data. This process is used in criminal investigations, civil litigation, and computer security incident investigations to gather and preserve digital evidence.

Forensics acquisition typically involves using specialized software and hardware to create a bit-by-bit copy of the entire storage device, including deleted and unallocated space. This ensures that all relevant data, including hidden or deleted files, is captured and preserved. The acquired data is then hashed to ensure the integrity of the data, and the original storage device is not modified. Another important aspect of forensics acquisition is the proper handling and documentation of the original storage device and the acquired data. This includes identifying and labeling the device, and maintaining a chain of custody to ensure that the integrity of the evidence is not compromised.

After the acquisition process, the next step is triage. The triage is the process of identifying and prioritizing the data that is relevant to the investigation. This is done by analyzing the acquired data and identifying files, emails, or other data that may contain evidence. This process can be conducted manually or by using specialized software. Triage helps focusing the investigation and it saves time by eliminating unnecessary data analysis. In some cases, the amount of data that needs to be analyzed can be overwhelming. In such cases, automated triage tools can be used to help filter out irrelevant data and identify potential evidence. This can include keywords searches, filtering by file type, and identifying specific file patterns. Automated triage tools can significantly speed up the process and make it more efficient, however, it's important to note that they may not be able to find all relevant data, so manual analysis is still necessary.

Triage is also an important way to identify and isolate any malicious software or malware that may be present on the storage device. This is important for security incidents, as it can help prevent the malware from spreading to other systems and causing further damage. Triage also helps identify the scope and impact of an incident, which will help to determine the appropriate response. Overall, forensics acquisition and triage are critical steps in the process of collecting and analyzing digital evidence.

The process of acquisition and triage go side by side. In triage, the data acquired from the acquisition is analyzed to identify any related evidence to support in the incident investigation.

Let's take an example scenario:


Scenario

In this scenario, the SOC Team receives an alert that their production server has been compromised. They suspect that sensitive customer data, including credit card information, has been stolen. The SOC manager assigns a team of forensics and incident response analysts to the case.

The first step in the investigation is the Forensics acquisition of the server. The Forensics investigators use acquisition tools like “KAPE”, “FTK imager”, “Magnet RAM Capture” to create a bit-by-bit copy of the entire storage device and the memory. They also acquire all the computers in the network and the servers to ensure that all relevant data is captured and preserved. The acquired data is then hashed to ensure the integrity of the data, and the original storage device is not modified.

After the acquisition process is completed, the next step is the “triage”. The forensics investigators use tools like “KAPE”, “FireEye Redline”, “Volatility” to analyze the acquired data and identify files, memory or other data that may contain evidence. They also use keyword searches and filtering by file type to identify potential evidence. The investigators also manually review the data to ensure that all relevant information is captured.

They found out that the hacker had gained access to a system via a phishing email, and had been exfiltrating data for several weeks before it was detected. They also found that the hacker had installed malware on the system which was still active. The investigators needed to isolate the malware where it was located to prevent it from spreading further.

The investigation team should prioritize the data that is relevant to the case which eliminates unnecessary data analysis. They use the data to identify the IP addresses used by the hacker and trace it back to a specific individual. With the IOCs they gathered they were able to identify some more compromised workstations in the network from where the attacker laterally moved to, ultimately compromising the production server.

The Forensics acquisition and triage process played a critical role in the investigation by preserving the original data and identifying relevant evidence, which ultimately led to the containing the incident impact and reducing the damage.

It's important to note that the acquisition and triage step is very crucial to an investigation as any tampering with the data can cause false evidence and mislead the investigation. The goal is to acquire the data while leaving as much less footprint as possible. It's not possible to acquire a disk image or memory from a device in the same state when it was compromised. We need to interact with the system to gather the data we need, so the less interaction the better. Commercial acquisition tools like “Belkasoft Remote Acquisition”, “Magnet Axiom” are excellent examples for the software that leave very minimal footprint, leaving the evidence as close to the original state as possible. Free tools also don't leave many footprints behind meaning they work almost as well as the commercial tools too.

These acquisition and triage tools are often run from a USB attached to the system, or from a network file share or in some other way remotely. Running like this leaves less footprints as opposed to directly installing tools on the device and then running them.

The tools we will be discussing in this module are all available for free. Most of them can be run from a USB or remotely, but for practical purposes and convenience, we will be using them directly from the system by installing it. The rest of the methodology will be the same only the medium from which software is run would be changed.

The tools we will discuss are:

1- FTK Imager (Windows)

2- Belkasoft Live RAM Capture (Windows)

3- AVML (Linux)

4- KAPE (Windows)

5- FireEye Redline (Windows)

6- Autopsy (Windows and Linux)

Sign Up / Log In to Unlock the Module

Please Sign Up or Log In to unlock the module and access the rest of the sections.