0% found this document useful (0 votes)
195 views8 pages

Memory Forensics: Techniques and Tools

Memory forensics allows investigators to analyze the contents of a computer's memory, capturing a snapshot that reveals processes, open files, network activity, and other real-time system information. This provides crucial details about unauthorized activity that may not be found through conventional hard drive analysis. Key tools like Volatility and Rekall support examining memory dumps from Windows, Linux, and Mac systems to help track malware, decrypt application data, and determine the initial time of system compromise. Analyzing process time stamps, open files, and decoded applications in memory are common approaches used to build evidence and strengthen cyber investigation cases.

Uploaded by

fantasticlala06
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
195 views8 pages

Memory Forensics: Techniques and Tools

Memory forensics allows investigators to analyze the contents of a computer's memory, capturing a snapshot that reveals processes, open files, network activity, and other real-time system information. This provides crucial details about unauthorized activity that may not be found through conventional hard drive analysis. Key tools like Volatility and Rekall support examining memory dumps from Windows, Linux, and Mac systems to help track malware, decrypt application data, and determine the initial time of system compromise. Analyzing process time stamps, open files, and decoded applications in memory are common approaches used to build evidence and strengthen cyber investigation cases.

Uploaded by

fantasticlala06
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
  • Introduction of Memory Forensics
  • Memory Forensics: Acquisition Methods
  • The Best Memory Forensic Tools on the Market
  • Further Readings
  • Disclaimer

UNIT – 3

Memory Forensics

Introduction of Memory Forensics


Computer Forensics: Memory Forensics

What is Memory Forensics?


Memory forensics is a vital form of cyber investigation that allows an investigator to

identify unauthorized and anomalous activity on a target computer or server. This is


usually achieved by running special software that captures the current state of the

system’s memory as a snapshot file, also known as a memory dump. This file can then be
taken offsite and searched by the investigator.

This is useful because of the way in which processes, files and programs are run in

memory, and once a snapshot has been captured, many important facts can be
ascertained by the investigator, such as:

 Processes running

 Executable files that are running


 Open ports, IP addresses and other networking information

 Users that are logged into the system, and from where
 Files that are open and by whom

Already we can see how much this information can help an investigator as they seek out
system anomalies, and by being able to capture the volatile information inside the

system’s memory, they are able to create a permanent record of the system’s state as it
was.
This means that suspicious programs such as computer viruses and malware can be

tracked down in a lab environment and traced back to the source if possible. This is vital
in instances where malware leaves no trace of its activity on a target system’s hard drive,
making memory forensics especially important as a means to identify such activity.

How is Memory Forensics Different from Hard Drive Forensics?


Memory forensics can be thought of as a current snapshot of a system that gives
investigators a near real time image of the system while in use. Hard drive forensics is

normally focused on data recovery and decryption, usually made from an image of the
drive in question.

One can think of memory forensics as a live response to a current threat, while hard drive

forensics can be seen as more of a post mortem of events that have already transpired.
Memory forensics is time sensitive, as the information that is required is stored in volatile

system memory, and if the system is restarted or powered off, then that information is

flushed from system memory. Hard drives, on the other hand, are a non-volatile form of
computer storage. There are some volatile elements to hard drives, such as cache and
buffer stores, so this also needs to be taken into account by the forensic investigator.

Depending on the nature of the investigation, either technique can be used to gain further
information about the system in question. Likewise, both methods can be used on the

same system if necessary, and investigators will have to use their discretion and select the
appropriate action where necessary.
Memory Forensics: Acquisition Methods
The angle of investigation that you take during this acquisition phase will depend mostly
on the scenario that you are presented with and the requirements of the case. This

depends largely on the operating system that your host is running, or what the perceived
issue is that needs to be investigated at the time of the incident. How you go about

capturing the image also depends on what you are trying to establish through your
investigative process, and what it is that you are trying to prove or disprove.

Generally your investigation will focus on the activities of the user on the system, or
evidence that proves that the system in question has been compromised. Sometimes even

encryption keys and passwords can be uncovered if they are part of the evidentiary
requirements of your case. There must be a clear understanding of what needs to be
established on the target system, and how it can help to advance your investigation.

Forensic investigators are highly skilled and can identify activity on a system that should
not be present, allowing them to prove that a system has been compromised. It allows

them to identify rootkits and malware, to find unusual processes, and reveal covert
communication, which can shed light on what is happening currently in a target system.

Here are some examples of acquisition formats that are used in memory forensics. There
are many different memory acquisition types, but these are five of the most common
methods and formats that are used today:

 RAW Format – Extracted from a live environment


 Crash Dump – Information gathered by the operating system

 Hibernation File – A saved snapshot that your operating system can return to after
hibernating

 Page File – This is a file that stores similar information that is stored in your system
RAM
 VMWare Snapshot – This is a snapshot of a virtual machine, which saves its state
as it was at the exact moment that the snapshot was generated

Once you have acquired your data, you can begin the process of examining the system, and any
suspicious activities will then be uncovered as you proceed. Data carving is a commonly used
approach, and depending on the desired outcomes of your particular case, there are many other
approaches that can be looked at as well. Below is a list of some commonly used tools in the field
that allow for these different approaches to be utilized.

The Best Memory Forensic Tools on the Market


There are both free and commercial products available on the market, and many forensics
investigators will have their own personal preferences. Some investigators may find that

they need to use commercial products only, however many professionals will use a wide
array of both free and paid tools to get the job done. Here are some examples:

 Volatility Suite: This is an open source suite of programs for analyzing RAM, and has
support for Windows, Linux and Mac operating systems. It can analyze RAW, Crash,
VMWare, and Virtualbox dumps with no issues.
 Rekall: This is an end-to-end solution for incident responders and investigators, and
features both acquisition and analysis tools. It can be thought of as more of a forensic
framework suite than just a single application.
 Helix ISO: This is a bootable live CD as well as a standalone application that makes it very
easy for you to capture a memory dump or memory image of a system. There are some
risks associated with running this directly on a target system, namely an acquisition
footprint, so make sure that it fits your requirements.
 Belkasoft RAM Capturer: This is another forensic tool that allows for the volatile section
of system memory to be captured to a file. First responders will find that the functionality
and wide range of tools available in this software package will allow for their investigations
to start off as quickly as possible.
 Process Hacker: This is an open source process monitoring application that is very useful
to run while the target machine is in use. It will give the investigator a better understanding
of what is currently affecting the system before the memory snapshot is taken, and can go
a long way to help uncover any malicious processes, or even help to identify what
processes have been terminated within a set period of time.

Once you have captured the data that you need, you can start to examine it, while trying
to find meaningful information on the target PC that you are interrogating.

Memory Forensics: Examining Your Captured Data


There are many avenues for an investigator to take when it comes to analyzing a target
system. We will instead take a look at some common approaches that can be used by an
investigator when trying to glean more information via memory forensics.

 Open Files Associated With Process: This is an extremely useful approach, as it shows
which files are open by a suspicious process on the target system. Malware can often be
identified just by the location of the associated files that are open, and knowing where
these files are located is also beneficial to the overall investigation, especially if these files
are storing logs of user inputs via the keyboard. This would mean that the user’s passwords
could have been inadvertently divulged to the malware authors that created the software.
This will help to strengthen the case that the investigator is building.
 Decoded Applications in Memory: Sometimes, the author of the malware that is present
on the target system will be encrypted, making it impossible for anyone but the
perpetrator to successfully make use of the data that it has been collecting. However,
sometimes a decrypted version of the application can be caught in the memory snapshot,
which allows the investigator to more accurately examine the application’s activities. The
investigator might even be able to identify the hash or cipher that was used for the
encryption, thus allowing them to read previously inaccessible data associated with the
malware instance on the target machine.
 Timestamp Comparison: In some instances, malware can interfere with the target host’s
timestamps on the system files, making them appear to be untouched by the infection.
This is known as time stomping, and can seriously inhibit an investigator’s ability to
discover when the infection first occurred. By capturing the memory dump, investigators
can compare the process time stamps to the system file timestamps to establish when the
system was first compromised. Once a date and time has been established, records such
as emails and browser history can be looked at to help identify the possible cause of the
infection by finding any correlations in time and date between the process timestamps
and the application time frames.
 Network Information: Once the infected processes have been identified, then the specific
network communications surrounding the infection can be further dissected. This can
reveal a virtual treasure trove of information, such as:
o Source IP Addresses such as where the malware instance is reporting back to
o Compromised ports on the host machine
o The frequency at which the malware was communicating over the network
o Understanding how the infection spreads itself over the network
 User Activity: By looking at the information that was acquired during all of the previous
steps, the forensic investigator can start to piece together a fairly accurate series of events
that led to the main incident. This can be determined via the system log files that were
captured earlier, and can help to ascertain to what extent, if any, that a user on site may
have been involved. Remote unauthorized access can also be detected, which can help
with determining the extent to which the network protocols of the organization have been
compromised.

Once the findings have been made, the investigator can work with his or her team to

establish if there are any other sources of information that need to be looked at further,
and if any additional techniques need to be applied to the target machine or data set.
Further readings:

/memory-forensics-power-introduction/

/memory-forensics/

/memory-forensics-and-analysis-using-volatility/
Disclaimer

The slides/contents are based on the textbook and other sources, including several other
fine textbooks, web resources and case studies for the concepts course of Cyber Forensic
Procedures and Analysis.

Common questions

Powered by AI

Memory forensics assists in identifying unauthorized and anomalous activities by capturing the current state of the system's memory in a snapshot file, or memory dump. This allows investigators to identify processes, executable files, open ports, IP addresses, users logged into the system, and open files. By analyzing this volatile information, which would otherwise disappear when a system is turned off, investigators can create a permanent record of the system's state. This is crucial in instances where malware leaves no trace on a hard drive, enabling the tracking and source tracing of suspicious programs like viruses and malware in a controlled environment .

Timestamps in memory forensics are crucial for reconstructing the timeline of a system compromise. Malware can sometimes alter system file timestamps to appear unaltered, a technique known as "time stomping," which can obscure the actual infection timeline. By comparing timestamps from memory dumps with those in system files, investigators can establish when a compromise first occurred. This comparison can also align events logged in emails or browser history with known malware behavior, thus clarifying the incident's timeline and aiding in identifying the infection's entry point .

The acquisition footprint of Helix ISO can significantly impact a forensic investigation as it can alter the target system it is used on. Running this tool directly on a live system may leave traces or change data, affecting the integrity of the evidence collected. An acquisition footprint can become a point of contention in court, as it might introduce questions about the authenticity of the evidence. Therefore, investigators must ensure that the tool's use is justified and necessary, potentially opting for other methods or ensuring thorough documentation to validate any procedural impact .

The acquisition methods in memory forensics vary depending on the operating system and case requirements because different operating systems have unique ways of handling memory, and the objectives of an investigation can dictate what information must be collected. The choice of method depends on what the investigator aims to prove or disprove, such as user activity or evidence of system compromise. Methods include capturing RAM via RAW format, using hibernation files, or taking snapshots in virtual environments, like VMWare Snapshots. Each method serves different analytical purposes, such as retrieving encryption keys, revealing covert communications, or identifying rootkits and malware .

In memory forensics, tools like Volatility Suite and Rekall are essential for analyzing memory dumps across various operating systems. Volatility Suite is an open-source toolset specifically designed to handle different types of memory dumps, including RAW and crash dumps, across Windows, Linux, and Mac OSs. Rekall, on the other hand, is an end-to-end forensic framework that includes both acquisition and analysis capabilities, making it more comprehensive for incident responders. The key difference is that Volatility is more focused on RAM analysis, while Rekall provides a broader suite of forensic functions, enhancing its adaptability for different investigative scenarios .

Memory forensics and hard drive forensics differ primarily in the type of data they focus on. Memory forensics deals with volatile data, providing a snapshot of a system's current state while in use, making it time-sensitive and useful for capturing live responses to threats. In contrast, hard drive forensics focuses on non-volatile data, typically involving data recovery and decryption from a drive image, analyzing events that have already transpired. Memory forensics is vital for identifying active threats and processes such as malware in real-time, whereas hard drive forensics is more suited for post-mortem analysis of past events .

Examining open files associated with suspicious processes is critical in memory forensics because these files can reveal malware presence and activity on a system. Identifying open files helps determine which files are being accessed by a suspect process, potentially uncovering malware attempting to record keystrokes or steal data. It provides insights into the processes' intentions and behaviors, supporting the investigator in linking these behaviors to specific activities, ultimately reinforcing the investigation's findings with concrete evidence of unauthorized system interactions .

Virtual snapshots, such as VMWare Snapshots, offer significant advantages in memory forensic investigations by providing a stable and comprehensive snapshot of a system's state, including all current processes and data configurations, at a specific moment. This allows investigators to analyze the system's entire environment without the interference or volatility associated with live analysis on operational systems. Furthermore, virtual snapshots can be easily replicated and shared without impacting the original system, facilitating collaborative investigations and enabling detailed comparisons over time or across similar incidents .

Analyzing network communications in memory forensics enhances the understanding of a system's compromise by revealing crucial data about how malware functions and communicates with external entities. Investigating network activity can disclose source IP addresses, compromised ports, and communication frequencies, uncovering how malware spreads and operates on the network. This analysis helps establish patterns of malicious activity, pinpoints exfiltration of data, and can even trace communications back to their origins. Such insights enable investigators to map out the full extent and impact of a compromise, guiding effective remediation actions .

Using both memory and hard drive forensics is essential in scenarios where comprehensive evidence is needed to understand real-time activities and historical data. Memory forensics provides insights into current processes, including malware running in RAM, while hard drive forensics can reveal artifacts from actions taken on the system, such as file creation or deletion events that may not be present in volatile memory. Combining both methods allows investigators to piece together a complete picture, identifying both active threats and their origins or impacts, thereby informing mitigation strategies and bolstering case evidence .

UNIT – 3 
Memory Forensics 
Introduction of Memory Forensics  
Computer Forensics: Memory Forensics 
What is Memory Forensics
This means that suspicious programs such as computer viruses and malware can be 
tracked down in a lab environment and traced
Memory Forensics: Acquisition Methods 
The angle of investigation that you take during this acquisition phase will depend mos
 
VMWare Snapshot – This is a snapshot of a virtual machine, which saves its state 
as it was at the exact moment that the s
 
Process Hacker: This is an open source process monitoring application that is very useful 
to run while the target machine
 
Timestamp Comparison: In some instances, malware can interfere with the target host’s 
timestamps on the system files, mak
Further readings: 
/memory-forensics-power-introduction/ 
/memory-forensics/  (https://resources.infosecinstitute.com/memory-
Disclaimer 
 
The slides/contents are based on the textbook and other sources, including several other 
fine textbooks, web

You might also like