Studying memory with the Volatility memory dump analyzer
Debugging Profiles and Dwarf Standards
A profile for debugging comprises two files: system.map<kernel version>
and modules.dwarf
. Although the former usually exists in the /boot
directory, you need to create the latter yourself. To do so, use the dwarfdump
program from the usual popular repositories.
For more information about the Dwarf debugging file format or the Dwarf debugging standard (Dwarfstd) and specifications, check out the Dwarf website [11].
The volatility/tools/linux
directory contains all the files you need to create a modules.dwarf
. A call to make in this directory generates the file; you now need to compress this with zip along with the system map for the current system:
zip Ubuntu1304_3_8_0_26.zip modules.dwarf/boot/System.map-3.8.0-26-generic
The name of the ZIP file does not matter here, but an intuitive name will help later when you need to select the profile. For Volatility to recognize the ZIP file in the profile selection, you need to copy it to volatility/plugins/overlays/linux
. Then ./vol.py --info | grep Linux
should immediately show you the desired, newly created profile.
Dumps
The infected memory dump used here is from the Honeynet 2001 Project [12]. The image itself is also available as a download and goes by the name victoria-v8.memdump.img.zip
. The probability of such an image working easily on a lab machine with Volatility's kernel modules is very low when you consider the described requirements. For this reason, the following example analyzes the image to obtain more information about the kernel it uses (Listing 3) and discovers the fairly ancient Debian kernel 2.6.26-2.
Listing 3
Two Strings in Use
The next task is to install a virtual Debian with kernel 2.6.26-2-686 to create a profile file with the steps described above.
Testing
To determine whether everything is working properly, you can run a simple command that provides information on the installed CPU of the compromised system
vol.py -f victoria-v8.memdump.img --profile LinuxDebian5_26x86 linux_cpuinfo
(Listing 4). Given that this information comes from the memory dump of a system for which we have neither the hardware nor the hard drive, this is quite a remarkable result. The -f
parameter passes the name of the memory dump into Volatility, --profile LinuxDebian5_26x86
sets the appropriate profile file, and linux_cpuinfo
is the actual command.
Listing 4
vol.py --profile
To simplify the somewhat lengthy command line for future work, Volatility lets you export variables:
export VOLATILITY_PROFILE=LinuxDebian5_26x86 export VOLATILITY_LOCATION=file:///tmp/victoria-v8.memdump.img
This keeps the command line clear-cut and short: ./vol.py linux_cpuinfo
. All Linux-specific commands begin with linux_
; grep
commands provide further insights via pipes (Figure 1). Listing 5 provides a selection of the most interesting commands, from mounts and network commands to open ports and the Bash history.
Listing 5
vol.py Commands
« Previous 1 2 3 4 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.