vol-rs README

The project's README from github.com/daffainfo/vol-rs. As one markdown file: README.md.

vol-rs

A port of the Volatility 3 memory forensics framework from Python to Rust. It reads the same memory images, runs the same plugins with the same options, and prints the same output, byte for byte, a good deal faster.

License

This project is a port of Volatility 3 and is therefore an "Addition" under the Volatility Software License 1.0, so it is published under that same license. The full text is in LICENSE and online at https://www.volatilityfoundation.org/license/vsl-v1.0. Every source file keeps the notice recording what it was derived from.

This project is not affiliated with or endorsed by the Volatility Foundation. The name Volatility is used only to say what this is a port of.

Building

Rust 1.85 or newer, then:

cargo build --release

The binary lands at target/release/vol-rs. Nothing optional is needed. Symbol decompression, RC4, DES, AES, YARA matching, PNG writing and tar archives are all built in, where the Python version reaches for pycryptodomex, yara-python and pillow. Instructions are decoded by capstone 5.0.6, the same library the Python version uses for the same columns, compiled in rather than installed alongside.

Using it

./target/release/vol-rs -f memory.raw windows.pslist.PsList
./target/release/vol-rs -f memory.lime linux.bash.Bash
./target/release/vol-rs -f memory.raw -r csv windows.netscan.NetScan
./target/release/vol-rs windows.malfind.Malfind --help
./target/release/vol-rs --list-plugins

Every option the Python version takes is taken here too, with the same names and the same defaults, including -o, -r, -s, -c, -e, --filters, --hide-columns, --save-config, --stackers and --single-swap-locations. Each plugin's own options match as well, which the help pages show: all 197 of them are identical to the Python ones, character for character.

Symbols

Symbol packs go in $XDG_DATA_HOME/vol-rs/symbols, or ~/.local/share/vol-rs/symbols when that variable is not set. A pack somewhere else is named with --symbol-dirs or through the VOLRS_SYMBOL_PATH environment variable. A Windows kernel that no pack describes is looked up on the Microsoft symbol server, and the database found there is turned into a symbol file and kept, so the fetch happens once. The database itself is cached under ~/.cache/vol-rs and the symbol file is written beside the packs.

What has been checked

Both sides were run against the same captures and diffed, header framing and trailing newlines included:

Capture Plugins run Identical
Windows 11 24H2, build 26100, 4.3 GB crash dump 113 105
Ubuntu 22.04, kernel 6.5.0-41, 4.3 GB VMware snapshot 69 61
Windows 10 19041, 2.0 GB crash dump 114 112
Windows XP, 512 MB raw capture 114 113
Linux 3.2, 512 MB raw capture 60 60

The eight plugins that take a pattern or a rule were given one, the same on both sides, rather than left out. Three of the differences found that way were defects in this port and are fixed.

Other check Result
Files written by extracting plugins 24,441 compared, every one equal
Plugin help pages 197 of 197 identical
Renderers csv, json, jsonl, quick and pretty compared on several plugins, all identical

Instructions are decoded by the same library the Python version uses, compiled in at version 5.0.6, which is the version the reference was pinned to for these comparisons. Version 5.0.7 decodes one more instruction form, which changes how about two percent of windows.mbrscan's lines are spelled on the Windows 10 capture and nothing else.

Windows symbols for the captures used here come from the symbol packs the Volatility Foundation publishes, read by both tools, except the Windows 11 24H2 kernel, which no pack describes and whose description is built from the database Microsoft publishes. For an earlier Windows 10 19045 capture the description this port builds that way matched the one the Python version builds from the same database exactly, across all 16 base types, 293 enumerations, 1,653 structures and 40,007 symbols.

Speed

The ten widest gaps on each capture. Every figure, and every plugin compared, is in BENCHMARKS.md.

Windows 11 24H2 crash dump, 4.3 GB

Plugin Rust Python Faster
windows.malfind.Malfind 0.494 s 392 s x793
windows.malware.suspicious_threads.SuspiciousThreads 0.621 s 488 s x786
windows.malware.malfind.Malfind 0.569 s 393 s x691
windows.suspicious_threads.SuspiciousThreads 0.739 s 461 s x624
windows.hollowprocesses.HollowProcesses 0.646 s 326 s x504
windows.malware.hollowprocesses.HollowProcesses 0.661 s 322 s x487
layerwriter.LayerWriter 0.044 s 17.4 s x395
configwriter.ConfigWriter 0.046 s 16.7 s x363
windows.vadinfo.VadInfo 1.36 s 488 s x358
windows.verinfo.VerInfo 0.541 s 159 s x294

Ubuntu 22.04 VMware snapshot, 4.3 GB

Plugin Rust Python Faster
linux.sockstat.Sockstat 6.36 s 2030 s x319
timeliner.Timeliner 9.56 s 1070 s x112
linux.lsmod.Lsmod 0.282 s 29.0 s x103
linux.psscan.PsScan 1.09 s 111 s x102
linux.mountinfo.MountInfo 0.697 s 70.3 s x101
yarascan.YaraScan 0.909 s 79.6 s x88
linux.malware.netfilter.Netfilter 0.6 s 49.9 s x83
linux.ptrace.Ptrace 0.253 s 20.4 s x81
linux.pstree.PsTree 0.213 s 16.2 s x76
linux.ip.Link 0.22 s 16.4 s x74

Windows 10 19041 crash dump, 2.0 GB

Plugin Rust Python Faster
windows.malware.suspicious_threads.SuspiciousThreads 0.677 s 346 s x511
windows.suspicious_threads.SuspiciousThreads 0.677 s 343 s x507
windows.malfind.Malfind 0.734 s 320 s x436
windows.hollowprocesses.HollowProcesses 0.565 s 244 s x432
windows.malware.malfind.Malfind 0.73 s 313 s x429
windows.vadinfo.VadInfo 0.983 s 412 s x419
windows.malware.hollowprocesses.HollowProcesses 0.648 s 240 s x370
configwriter.ConfigWriter 0.043 s 14.5 s x337
layerwriter.LayerWriter 0.039 s 11.9 s x304
windows.registry.hivelist.HiveList 0.038 s 7.54 s x198

Windows XP raw capture, 512 MB

Plugin Rust Python Faster
windows.suspicious_threads.SuspiciousThreads 0.184 s 34.5 s x188
windows.malware.suspicious_threads.SuspiciousThreads 0.2 s 33.2 s x166
windows.malware.hollowprocesses.HollowProcesses 0.209 s 31.0 s x148
windows.vadinfo.VadInfo 0.263 s 38.5 s x146
windows.hollowprocesses.HollowProcesses 0.207 s 28.1 s x136
windows.mftscan.ResidentData 0.205 s 27.6 s x135
windows.malfind.Malfind 0.203 s 26.3 s x130
windows.mftscan.MFTScan 0.393 s 48.2 s x123
windows.malware.malfind.Malfind 0.24 s 28.2 s x118
windows.verinfo.VerInfo 0.215 s 25.1 s x117

Linux 3.2 raw capture, 512 MB

Plugin Rust Python Faster
linux.library_list.LibraryList 0.525 s 917 s x1747
linux.pscallstack.PsCallStack 0.31 s 98.8 s x319
linux.lsmod.Lsmod 0.059 s 9.58 s x162
linux.malware.check_idt.Check_idt 0.11 s 15.2 s x138
linux.check_idt.Check_idt 0.115 s 15.1 s x131
linux.tty_check.tty_check 0.114 s 14.3 s x125
linux.malware.tty_check.Tty_Check 0.129 s 15.0 s x116
linux.malware.check_modules.Check_modules 0.055 s 5.74 s x104
linux.kallsyms.Kallsyms 0.278 s 28.9 s x104
linux.capabilities.Capabilities 0.056 s 5.82 s x104

Known differences

These are deliberate, and will not change:

Not reproducible

Nothing here can match, because the output is not the same twice even from one tool:

Where the Python version stops first

These differ because the Python version ends early and this port does not. Every line the Python version wrote before stopping is reproduced exactly, and the rest is what it did not reach:

Plugin What happens
windows.hashdump, windows.cachedump, windows.lsadump the Python version raises on a hive page that is not resident, where this port reports what it could read and carries on
linux.kallsyms TypeError: pointer_to_string takes a Pointer after 196,399 of 208,258 rows
linux.kmsg, linux.hidden_modules AttributeError: 'NativeTable' object has no attribute 'producer' before the first row
linux.pagecache.RecoverFs AttributeError: StructType has no attribute: page.mapping after 3,639 of 34,625 rows on the Ubuntu capture
linux.library_list, linux.pscallstack still running after 45 minutes, where this port finishes in seconds

isfinfo is in neither list. Without --live the Python version lists its own identifier database in that database's order, where this port lists the symbol directories, so neither answer is derivable from the other.

To do

Everything below is ported and builds, but has not been run against real evidence yet:

Credit

Volatility 3 is the work of the Volatility Foundation and its contributors. This is a port of their design, their plugin set and their output format, and it exists because that work is open.

vol-rs (daffainfo/vol-rs)

Searching Database…

What is this?'vol-rs' is a line-by-line port of the Volatility 3 memory forensics framework from Python to Rust. It reads the same memory images, runs the same plugins with the same options, and prints byte-for-byte identical output, just much faster.
Is this a command-line tool or a library I import into my code?It's a standalone command-line binary ('vol-rs') that mirrors the Volatility 3 CLI exactly: same flag names, same defaults, same plugin options — not a library to embed in other code.
How do I build and run it?Build it with Rust 1.85 or newer via Cargo; the compiled binary ends up at target/release/vol-rs and accepts the same flags as Volatility 3, such as -o, -r, -s, -c, -e, --filters and --stackers.
Do I need Python, YARA, or other libraries installed separately?No, everything is built into the single binary: symbol decompression, RC4/DES/AES, YARA matching, x86 disassembly, PNG writing and tar archives, replacing pycryptodomex, yara-python, capstone and pillow from the Python version.
Is every plugin fully verified against real-world evidence?Windows and Linux plugins are checked byte-for-byte against the Python output, but the 23 macOS plugins still need a real Mac capture, 32-bit images are untested, and crash dump, AVML, QEMU, ELF core and Xen formats remain unproven.
Which operating systems' memory images can it analyze?It handles the same targets as Volatility 3: Windows and Linux captures are thoroughly tested and diffed against the Python output, while macOS (Darwin 10.10–10.15) plugins are implemented and symbol-checked but not yet run on a real Mac image.
How much faster is vol-rs than the Python Volatility 3?On a full no-argument plugin sweep, the Windows run takes 273 seconds here versus 5723 seconds in Python, and the Linux run 68 seconds versus 3130 seconds; individual plugins like SuspiciousThreads run up to 599x faster.
Where do symbol packs go and how are Windows symbols fetched?Symbol packs live in $XDGDATAHOME/vol-rs/symbols (or ~/.local/share/vol-rs/symbols by default); Windows symbols are fetched automatically from the Microsoft symbol server on demand and cached under ~/.cache/vol-rs.
How closely does its output match the original Volatility 3?Very closely: 99 of 100 Windows plugins, 56 of 57 Linux plugins, all 43 argument-taking runs, 1,747 extracted files, and all 197 plugin help pages matched the Python tool exactly.
Creator
daffainfo
Size
1.3 MB
Stars
201
Age
3mo
Commits · 90 Days