You can write Volatility 3 commands with an LLM quickly, and most of the time the first draft won't run. Models learned memory forensics from a decade of Volatility 2 write-ups, so they reach for --profile, imageinfo and linux_pslist, or they write a short name like pslist that Volatility 3 can't resolve. They also make up plugins that sound right. In our lab, five model-style commands against a Linux memory image we built ourselves all failed before any analysis started. Two of the failures printed exactly the same message even though the causes were different, and a third case, symbols for the wrong kernel build, printed it too. The fix isn't a better prompt. You need to check the draft against the plugin list your installed Volatility prints, and know which errors mean "wrong name" and which mean "wrong symbols."
This post covers memory images. If you're reversing a sample statically, see GhidraMCP for malware analysis or r2ai with radare2. Those tools read the file on disk, and Volatility reads what was running in RAM.
What we ran, and what we didn't
Everything below was run on our lab box against a memory image we made. Nothing came from a third party or a real incident.
- Volatility 3 2.28.0 from PyPI, in a Python 3.13 virtual environment. We repeated the key commands on a later 2.28 point release and got the same plugin list and the same errors.
- A Linux guest we built: Debian 13's cloud kernel
6.12.107+deb13-cloud-amd64booted in QEMU with no network card and a tiny BusyBox userland. Its init script starts three processes: a web server on127.0.0.1:8080, asleepwith a marker environment variable (LAB_CASE=VOL-LAB-01), and anclistener on port 4444. - Acquisition: we paused the VM and ran QEMU's
dump-guest-memory, which writes an ELF core file. Volatility opens that format directly. - Symbols: we built a symbol table from Debian's matching
-dbgkernel package with dwarf2json.
The drafts below were written for this guide to reproduce mistakes models commonly make with Volatility. They aren't a captured model transcript, and we didn't call a model in the lab. We didn't test a Windows image. The Windows notes further down come from the installed plugin list, vol <plugin> -h and the official docs.
Why LLMs write Volatility 2 commands
Volatility 3 is a rewrite, not a new version of Volatility 2. Its changes page says it "no longer uses profiles." Instead it ships symbol tables and builds Windows ones from the image. Plugin names changed too, from linux_pslist to linux.pslist.PsList, from imageinfo to windows.info, and so on. Older blog posts, cheat sheets and CTF write-ups still use the old forms, and models picked them up.
Three Volatility 3 behaviors make this worse:
- Plugin names are matched by substring. The command line takes any fragment that matches exactly one plugin.
linux.pslistandsockstatboth work.pslistandenvarsfail because they match a plugin on more than one OS. - Plugin options go after the plugin name.
--pidbelongs to the plugin, not tovol. - Some plugins only load if optional dependencies are installed. If a plugin didn't load, the CLI treats its name as if it doesn't exist.
How to write Volatility 3 commands with an LLM
The workflow has four steps: give the model your real plugin list, match symbols to the kernel, run its draft and read the errors, then fix the commands.
Step 1: Get the real plugin names from your installed Volatility 3
Before you ask a model for anything, save the plugin list from your own install and paste the relevant part into the prompt. The list, and the plugins that failed to load, are at the end of vol -h:
python3 -m venv ~/vol3 && . ~/vol3/bin/activate
pip install "volatility3[full]"
vol -h > vol-plugins.txt
grep -A20 "could not be loaded" vol-plugins.txt
Install with the [full] extra if the plugins you need are absent. Our plain install omitted plugins that needed additional packages, including YARA-based memory inspection. The end of vol -h lists plugins it could not load. Run with -vv to see the missing dependencies. After installing volatility3[full], that warning disappeared.
Also check the per-plugin options with vol <plugin> -h. It works without an image:
$ vol linux.pslist -h
...
--pid [PID ...] Filter on specific process IDs
--threads Include user threads
--decorate-comm Show `user threads` comm in curly brackets, and `kernel
threads` comm in square brackets
--dump Extract listed processes
Step 2: Identify the kernel and get matching symbols
Linux and macOS images need a symbol table that matches the exact kernel build. The symbol tables page says Linux tables are generated from a DWARF file with dwarf2json, and that the standard kernel in most distributions has the debug information stripped. So start by asking the image what it is. banners doesn't need symbols:
$ vol -q -f lab-debian13.elf banners.Banners
Volatility 3 Framework 2.28.0
Offset Banner
0x190000e0 Linux version 6.12.107+deb13-cloud-amd64 (debian-kernel@lists.debian.org) (x86_64-linux-gnu-gcc-14 (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44) # SMP PREEMPT_DYNAMIC Debian 6.12.107-1 (2026-08-29)
...
That banner names the package to fetch: linux-image-6.12.107+deb13-cloud-amd64-dbg, version 6.12.107-1. With the debug vmlinux and the System.map from the matching image package:
dwarf2json linux --elf vmlinux-6.12.107+deb13-cloud-amd64 \
--system-map System.map-6.12.107+deb13-cloud-amd64 \
| xz > symbols/linux/debian13-6.12.107-cloud-amd64.json.xz
vol -q -s symbols isfinfo
isfinfo lists each symbol file and the banner inside it. Ours matched the image's banner. Volatility picks Linux symbol tables by that banner, so a table built from a different build of the same kernel version won't be used.
Windows works differently. Volatility looks up the kernel's PDB and, if it isn't cached, the docs say it is "downloaded from Microsoft's Symbol Server and converted." An analysis box that can't reach the internet needs those tables prepared ahead of time.
Step 3: Run the LLM's draft commands and read the errors
We gave the goal "list processes, their command lines and listening sockets on this Linux image" and wrote the drafts a model would typically produce. These are the exact results from 2.28.0, with the long usage: blocks and plugin lists trimmed.
Draft 1, Volatility 2 style:
$ vol -f lab-debian13.elf --profile=LinuxDebian13x64 linux_pslist
vol: error: argument PLUGIN: invalid choice linux_pslist (choose from banners.Banners, configwriter.ConfigWriter, ...)
[exit code: 2]
The error is about the plugin name, and it hides the second mistake. Fix only the name and you get the next one:
$ vol -q -s symbols -f lab-debian13.elf --profile=LinuxDebian13x64 linux.pslist
vol: error: unrecognized arguments: --profile=LinuxDebian13x64
[exit code: 2]
Draft 2, a short name:
$ vol -f lab-debian13.elf pslist
vol: error: argument PLUGIN: plugin pslist matches multiple plugins (linux.pslist.PsList, mac.pslist.PsList, windows.pslist.PsList)
[exit code: 2]
envars fails the same way (it matches linux.envars.Envars and windows.envars.Envars). sockstat happens to be unique and runs. Don't count on that. Use the OS prefix every time.
Draft 3, an invented plugin. netstat exists in Volatility 2 and as a Linux command, so models reach for it:
$ vol -f lab-debian13.elf linux.netstat
vol: error: argument PLUGIN: invalid choice linux.netstat (choose from banners.Banners, ...)
[exit code: 2]
The Linux plugin for sockets is linux.sockstat. Older Windows guides use connscan, which also fails as invalid choice in Volatility 3. The Windows plugin is windows.netscan.
Draft 4, the wrong OS:
$ vol -f lab-debian13.elf windows.pslist
Volatility 3 Framework 2.28.0
Unsatisfied requirement plugins.PsList.kernel.layer_name:
Unsatisfied requirement plugins.PsList.kernel.symbol_table_name:
A translation layer requirement was not fulfilled. Please verify that:
A file was provided to create this layer (by -f, --single-location or by config)
The file exists and is readable
The file is a valid memory image and was acquired cleanly
A symbol table requirement was not fulfilled. Please verify that:
The associated translation layer requirement was fulfilled
You have the correct symbol file for the requirement
The symbol file is under the correct directory or zip file
The symbol file is named appropriately or contains the correct banner
[exit code: 1]
Draft 5, the right plugin with no symbols:
$ vol -f lab-debian13.elf linux.pslist
Volatility 3 Framework 2.28.0
Unsatisfied requirement plugins.PsList.kernel.layer_name:
Unsatisfied requirement plugins.PsList.kernel.symbol_table_name:
A translation layer requirement was not fulfilled. Please verify that:
...
A symbol table requirement was not fulfilled. Please verify that:
...
[exit code: 1]
Drafts 4 and 5 printed the same requirement lines and the same advice, word for word. One was a Windows plugin run on a Linux image. The other was the right plugin without its symbol table. If you paste that output back to a model, it can't tell which mistake you made, and neither can you unless you check. -vv makes the difference clear. On draft 5 it logs:
INFO volatility3.framework.automagic.linux: No Linux banners found - if this is a linux plugin, please check your symbol files location
That line means Volatility found no Linux symbol tables at all. We also ran the same command with only a table built from a different Debian 6.12 kernel package. That printed the same generic error, and -vvv showed only "Symbol table requirement not yet fulfilled," with no banner line. So -vv tells you when symbols are missing, but not when they're wrong. For that case, compare isfinfo with banners.Banners. And if the plugin's OS prefix doesn't match the banner from Step 2, it's the wrong plugin.
One more pattern. A model may put the plugin option first, as in vol -f lab-debian13.elf --pid 137 linux.psaux, and the CLI reads the PID as the plugin name: invalid choice 137. Or it borrows an option from another plugin: linux.psaux --pid 137 --dump fails with unrecognized arguments: --dump, because --dump belongs to linux.pslist, not linux.psaux.
Step 4: The fixed Volatility 3 commands and what they found
With -s symbols pointing at the dwarf2json output and full plugin names, the same goals ran cleanly. linux.psaux shows the full command lines (output trimmed to the three lab processes):
$ vol -q -s symbols -f lab-debian13.elf linux.psaux --pid 136 137 138
Volatility 3 Framework 2.28.0
PID PPID COMM ARGS
136 1 busybox busybox httpd -p 127.0.0.1:8080 -h /tmp/www
137 1 busybox busybox sleep 9999
138 1 busybox busybox nc -l -p 4444
COMM is busybox for all three, because each one is the same binary. On a real host, that column alone tells you little, so read ARGS too. linux.envars found the marker we planted:
$ vol -q -s symbols -f lab-debian13.elf linux.envars --pid 137
PID PPID COMM KEY VALUE
137 1 busybox SHLVL 1
137 1 busybox HOME /
137 1 busybox LAB_CASE VOL-LAB-01
137 1 busybox TERM linux
137 1 busybox PATH /sbin:/usr/sbin:/bin:/usr/bin
137 1 busybox PWD /
137 1 busybox HISTFILE /root/.ash_history
linux.sockstat (columns trimmed) showed both listeners:
$ vol -q -s symbols -f lab-debian13.elf linux.sockstat
Process Name PID FD Family Type Proto Source Addr Source Port State
busybox 136 3 AF_INET STREAM TCP 127.0.0.1 8080 LISTEN
busybox 138 3 AF_INET6 STREAM TCP :: 4444 LISTEN
The nc listener is on an IPv6 socket (::). The guest's own /proc/net/tcp, which only lists IPv4 sockets, showed just the web server when we checked it before the dump. If you ask a model for a filter that finds listeners on 0.0.0.0 or 127.0.0.1, it will skip this one. Filter on the port, or on LISTEN, instead.
Two global options are worth knowing because models rarely use them. --filters matches inside columns, so you don't need grep. -r json gives you output you can feed into a script:
$ vol -q -s symbols -f lab-debian13.elf --filters "ARGS,4444" linux.psaux
PID PPID COMM ARGS
138 1 busybox busybox nc -l -p 4444
$ vol -q -s symbols -f lab-debian13.elf -r json linux.psaux --pid 137
[
{
"ARGS": "busybox sleep 9999",
"COMM": "busybox",
"PID": 137,
"PPID": 1,
"__children": []
}
]
linux.bash came back empty, which was correct, because the guest had no bash. linux.malware.malfind came back empty too. An empty table means the plugin ran and found nothing. It doesn't mean the command was wrong, and a model shouldn't "fix" it.
Watch for renamed plugins
The 2.28 plugin list includes both linux.malfind.Malfind and linux.malware.malfind.Malfind, along with similar pairs such as linux.check_syscall and linux.malware.check_syscall. On Windows there are both windows.malfind and windows.malware.malfind. The old names still run, but they warn:
$ vol -q -s symbols -f lab-debian13.elf linux.malfind
.../volatility3/framework/deprecation.py:28: FutureWarning: This API (volatility3.plugins.linux.malware.malfind.Malfind.run) will be removed in the first release after 2026-06-07. This plugin has been renamed, please call volatility3.plugins.linux.malware.malfind.Malfind rather than volatility3.plugins.linux.malfind.Malfind.
vol windows.malfind -h describes the alias as "(deprecated)." The official Linux tutorial still shows linux.malfind, so models will keep suggesting the short names. Use the malware. names in anything you script. A script built on a deprecated alias will break in a later release, and the error will be the same invalid choice as a typo.
Check every LLM-drafted Volatility command before you run it
All of the errors above happen before Volatility reads a byte of the image. That makes them cheap to catch. We wrote a short checker that loads the installed plugin list and applies the CLI's substring rule. It also flags Volatility 2 options, wrong-OS plugins, and plugin options that vol <plugin> -h doesn't list:
#!/usr/bin/env python3
"""Check an LLM-drafted Volatility 3 command against the installed plugins.
Usage: volcheck.py linux "vol -f mem.elf linux.psaux --pid 1"
"""
import shlex, subprocess, sys
import volatility3.plugins
from volatility3 import framework
VOL2_FLAGS = {"--profile", "--kdbg", "--dtb", "--location"}
GLOBAL_WITH_ARG = {"-f", "--file", "-s", "--symbol-dirs", "-p", "--plugin-dirs",
"-r", "--renderer", "-o", "--output-dir", "-c", "--config",
"-l", "--log", "--filters", "--cache-path", "-u"}
def main(os_name, cmd):
framework.import_files(volatility3.plugins, True)
names = sorted(framework.list_plugins())
argv = shlex.split(cmd)[1:]
problems, i = [], 0
while i < len(argv) and argv[i].startswith("-"):
flag = argv[i].split("=")[0]
if flag in VOL2_FLAGS:
problems.append(f"{flag} is a Volatility 2 option; Volatility 3 has no profiles")
if flag in GLOBAL_WITH_ARG and "=" not in argv[i]:
i += 1
i += 1
if i >= len(argv):
return problems + ["no plugin name found"]
plugin, rest = argv[i], argv[i + 1:]
if "_" in plugin and "." not in plugin:
problems.append(f"{plugin} looks like a Volatility 2 plugin name")
hits = [n for n in names if plugin in n] # the CLI's own matching rule
if not hits:
return problems + [f"{plugin}: no installed plugin matches (invented, renamed, or its dependency is missing)"]
if len(hits) > 1:
return problems + [f"{plugin}: ambiguous, matches {', '.join(hits)}"]
name = hits[0]
family = name.split(".")[0]
if family in ("windows", "linux", "mac") and family != os_name:
problems.append(f"{name} is not a {os_name} plugin")
helptext = subprocess.run(["vol", name, "-h"], capture_output=True, text=True).stdout
for tok in rest:
if tok.startswith("--") and tok.split("=")[0] not in helptext:
problems.append(f"{name} has no option {tok.split('=')[0]}")
return problems or [f"OK: resolves to {name}"]
if __name__ == "__main__":
for line in main(sys.argv[1], sys.argv[2]):
print(line)
Run against the drafts from Step 3, it reported:
--profile is a Volatility 2 option; Volatility 3 has no profiles
linux_pslist looks like a Volatility 2 plugin name
linux_pslist: no installed plugin matches (invented, renamed, or its dependency is missing)
pslist: ambiguous, matches linux.pslist.PsList, mac.pslist.PsList, windows.pslist.PsList
linux.netstat: no installed plugin matches (invented, renamed, or its dependency is missing)
windows.pslist.PsList is not a linux plugin
envars: ambiguous, matches linux.envars.Envars, windows.envars.Envars
linux.psaux.PsAux has no option --dump
OK: resolves to linux.sockstat.Sockstat
It reports both problems in draft 1 at once, which the CLI doesn't, and it separates the wrong-OS case from the missing-symbol case. It doesn't check symbols. That's still Step 2's banners and isfinfo check. The option check is a plain text match against the help output, so treat "OK" as "worth running," not as "correct."
Automate the loop: draft, check, run
The model drafts a command, the checker and Volatility judge it, and the exact output goes back to the model. The drafting side calls RedRouter's OpenAI-compatible endpoint (base URL https://redrouter.org/v1 with a Bearer key, per the RedRouter quickstart). We didn't call a model in the lab, so treat this as a sketch:
import os, shlex, subprocess
from openai import OpenAI
client = OpenAI(base_url="https://redrouter.org/v1",
api_key=os.environ["REDROUTER_API_KEY"])
PLUGINS = open("vol-plugins.txt").read() # output of `vol -h` from this install
BANNER = "Linux version 6.12.107+deb13-cloud-amd64 ..." # from banners.Banners
SYSTEM = ("You write one Volatility 3 command line. Volatility 3 has no profiles. "
"Use only full plugin names from the list given, with the OS prefix that "
"matches the banner. Plugin options go after the plugin name. "
"Always pass -q -s symbols -f lab.elf. Return the command and nothing else.")
GOAL = "List every process that has a listening TCP socket, with its command line."
def draft(feedback=""):
r = client.chat.completions.create(
model="glm-5.3-flash-red", temperature=0,
messages=[{"role": "system", "content": SYSTEM},
{"role": "user", "content": f"Plugins:\n{PLUGINS}\n\nBanner: {BANNER}\n\n"
f"Goal: {GOAL}\n\n{feedback}"}])
return r.choices[0].message.content.strip().strip("`").removeprefix("bash\n")
cmd = draft()
for _ in range(4):
check = subprocess.run(["python3", "volcheck.py", "linux", cmd],
capture_output=True, text=True).stdout
if not check.startswith("OK"):
cmd = draft(f"Your command:\n{cmd}\n\nThe checker said:\n{check}\nFix it.")
continue
run = subprocess.run(shlex.split(cmd), capture_output=True, text=True)
if run.returncode == 0:
break
cmd = draft(f"Your command:\n{cmd}\n\nVolatility printed:\n{run.stdout}{run.stderr}\nFix it.")
print(cmd)
Two details matter. The command runs as an argument list, not through a shell, so a stray ; or | from the model doesn't turn into a second command. And the loop only accepts exit code 0 from Volatility. An empty table with exit code 0 counts as a valid answer.
A goal like this one often needs two plugins, linux.sockstat for the sockets and linux.psaux for the command lines, joined on PID. Have the model write the two commands with -r json and do the join in your own script.
What to send the model
Memory images contain whatever was in RAM: credentials, session tokens, document fragments, customer data. The model only needs to know which commands to run, so don't send the image or bulk plugin output.
- Send the plugin list, the banner and the goal. That's enough to draft a command.
- Send Volatility's exact error back, not a paraphrase. Trim the long
choose fromlist. - If you want help reading results, send a few rows, with hostnames, usernames and environment values replaced by placeholders.
linux.envarsoutput from a real host is a common place for secrets to leak.
On RedRouter, Zero Data Retention is an opt-in setting and off by default. The data handling docs explain what's stored and how to turn it on, and what RedRouter keeps is the short version. Our security page covers how we handle security workloads.
Which model to use for Volatility 3 commands
For drafting Volatility commands, we'd start with GLM 5.3 Flash Red (glm-5.3-flash-red). On docs.redrouter.org/models it lists at $0.25 per 1M input tokens, $0.13 per 1M cached input tokens and $1.00 per 1M output tokens. The plugin list is the biggest part of the prompt, and it's the same on every call. For memory forensics inside a broader authorized red-team or incident-response engagement, red-cyber-1 (Beta) lists at $0.28 / $0.13 / $1.10 per 1M. Plans are on /pricing.
Common LLM mistakes in Volatility 3 commands
| Mistake in the draft | What Volatility 3 printed | Fix |
|---|---|---|
--profile=... | unrecognized arguments (hidden behind a bad plugin name) | Remove it; use symbol tables |
linux_pslist, imageinfo | invalid choice | linux.pslist, windows.info |
pslist, envars | matches multiple plugins | Add the OS prefix |
linux.netstat, windows.connscan | invalid choice | linux.sockstat, windows.netscan |
windows.* plugin on a Linux image | Unsatisfied layer and symbol requirements | Match the prefix to the banner |
| Right plugin, no symbols | The same requirement lines; -vv says "No Linux banners found" | dwarf2json from the matching -dbg kernel, -s to the folder |
| Right plugin, symbols for another build | The same requirement lines, no banner hint | Compare isfinfo with banners.Banners |
--pid before the plugin | invalid choice 137 | Plugin options after the plugin name |
linux.psaux --dump | unrecognized arguments: --dump | Check vol <plugin> -h |
Validation checklist
- The plugin name is copied from
vol -hon the install you'll run, and nothing is listed under "could not be loaded." - The OS prefix matches the
banners.Bannersoutput. - No
--profile,--kdbgor other Volatility 2 options. - Plugin options come after the plugin name and appear in
vol <plugin> -h. - For Linux and macOS,
isfinfoshows a symbol file whose banner matches the image exactly. - Requirement errors are checked against the banner,
-vvandisfinfobefore anyone changes the plugin. - Deprecated aliases are replaced with the
malware.orregistry.names in scripts. - Empty output is read as "nothing found," not as a broken command.
- The image is one you own or are authorized to analyze, and only placeholders leave the analysis box.
FAQ
Can an LLM write Volatility 3 commands that work the first time?
Sometimes, but plan on checking. In our lab, all five drafts failed before any analysis. Three failed on the plugin name, one ran a Windows plugin on a Linux image, and one was correct but had no symbols. Give the model your plugin list and the image's banner, and let the checker and Volatility judge the result.
Does Volatility 3 use profiles?
No. Volatility 3 uses symbol tables. Windows tables are built from the kernel's PDB, which is downloaded from Microsoft's symbol server if it isn't cached. Linux and macOS tables come from the matching debug kernel through dwarf2json. Any command with --profile came from Volatility 2.
What does "A symbol table requirement was not fulfilled" mean?
On our Linux image, it meant one of three things: the plugin was for a different OS, there was no Linux symbol table at all, or the only table was for a different kernel build. Volatility printed the same text for all three. Check the plugin's OS prefix against banners.Banners first. Then run with -vv: "No Linux banners found" means -s doesn't point at any Linux tables. If that line is missing, compare isfinfo with the image's banner and build the table from the matching debug kernel.
Is there an LLM Volatility3 plugin?
The plugins shipped with Volatility 3 2.28.0 don't include one, and we didn't evaluate third-party plugins. If you're asking a model to write a new Volatility 3 plugin, start from the plugin-writing guide in the official docs and apply the same rule as here: check every API and requirement against the framework version you run.
How is AI memory forensics with Volatility different from static analysis with an LLM?
Volatility reads a snapshot of RAM: processes, sockets, environment variables, injected memory. Static tools like Ghidra and radare2 read the file on disk. Memory forensics also turns up in CTFs, and our CTF workflow covers using a model across challenge categories and checking every flag with real tools. This post only covers getting the Volatility commands right.
Related guides
Only acquire and analyze memory from systems you own or are authorized to examine, and keep real images on analysis machines you control.