Linux/Mac
Using pyDFIRRam for Linux or macOS
Introduction
pyDFIRRam is a tool under development aimed at utilizing Volatility plugins for memory forensics on Linux and macOS systems.
Initial Setup
- Installation:
- Ensure Python 3.10 (or compatible version) is installed.
-
Install
pyDFIRRamusing Poetry or manually. Example:pip install pydfirram -
Setting up a Profile:
- Currently, there's no direct method via Python interface to add a profile. If you have a profile, place it in the Volatility symbols directory:
- For Linux/macOS:
$HOME/.local/lib/python3.10/site-packages/volatility3/symbols/ - For Poetry virtual environments:
$HOME/.cache/pypoetry/virtualenvs/pydfirram-qv9SWnlF-py3.10/lib/python3.10/site-packages/volatility3/symbols/
- For Linux/macOS:
Using pyDFIRRam
- Creating an Object:
-
Import necessary modules and create an object for your memory dump:
from pydfirram.core.base import Generic, OperatingSystem from pathlib import Path os = OperatingSystem.LINUX # Set to OperatingSystem.MACOS for macOS dumpfile = Path("dump.raw") # Replace with your actual memory dump path generic = Generic(os, dumpfile) -
Listing and inspecting plugins:
- Qualified names and metadata (cached per Volatility version and OS):
generic.list_plugins() # or list_plugins(os_filter=OperatingSystem.LINUX) generic.has_plugin("linux.pslist") generic.plugin_info("pslist") - Legacy list of
PluginEntryobjects:generic.get_all_plugins() -
See Plugins (SDK API) for cache details and migration.
-
Running plugins:
- Use
run_pluginwith the qualified Volatility name for your OS; it returns aRenderer:generic.run_plugin("linux.pslist", pid=[4]).to_list() -
Refer to Volatility plugin documentation for parameter names and types.
-
Legacy behaviour:
- Attribute-style access (
generic.pslist(...)) still works but emits aDeprecationWarning. Preferrun_plugin("linux.pslist", ...)(or the correct qualified name on your image).
Notes
- Ensure your memory dump file (
dump.rawin the example) is correctly specified. - Adjust paths and settings based on your specific environment and Python setup.