Memory analysis can be conducted with different tools, using distinct approaches:
| Tool | Analyzed systems | Approach |
|---|---|---|
MemProcFS |
Windows | Presents the memory as files in a virtual file system (processes, network connections, registry, etc.), with a forensic mode producing timelines and FindEvil detections. |
MemNixFS |
Linux (x86-64) |
Presents the memory as files in a virtual file system, similarly to MemProcFS. |
Volatility 3 (and Volatility 2) |
Windows, Linux, and macOS | Command line framework, composed of numerous plugins executed individually. |
MemProcFS and MemNixFS allow browsing and searching the memory artefacts
with any tool, and provide a quick triage of the memory image (with their
FindEvil detections notably), while Volatility provides more granular
plugins, for instance to detect specific malware or rootkit techniques. The
tools are complementary and can be used together.
The acquisition of memory images is detailed in the memory acquisition overview and in the Windows, Linux, and virtual machines memory acquisition notes.
General analysis steps
The memory analysis of a compromised system depends on the context of the
investigation. For example, if a workstation is suspected to have been
compromised through a phishing attack, extracting the .pst / .ost files
associated with Outlook (using the filescan and dumpfiles plugins) for
analysis may be a good first step.
The following general, context-independent, steps can be followed to investigate the memory of a system:
-
Review of the processes hierarchy, looking for suspicious parent / child relationships, such as
outlook.exeoriexplore.exespawningcmd.exeorpowershell.exeprocesses. -
Identification of rogue / unlinked processes and of process injection (using the
psxviewandmalfindplugins for instance). - Review of the network connections and artefacts, looking notably for
suspicious patterns, such as:
- network activity of processes that do not normally interact over the network.
- connections on non-web ports established by web browsers.
- connections to known malicious IP addresses.
- Scan of the memory for known patterns / strings, using
YARArules.
References
-
Black Hat - Investigating Malware Using Memory Forensics - A Practical Approach
-
OpenClassrooms - Récupérez les informations importantes de la mémoire Windows pour l’analyse
View on GitHub