volatility-filevault2: extract Apple FileVault 2 Volume Master Keys
This is a volatility plugin which attempts to extract Apple FileVault 2 Volume Master Keys.
How it works
Filevault appears to keep the volume master key in a consistently identifiable region of read-only kernel memory. The method used by the plugin is very simple, as all the information is already exposed by Volatility.
In a nutshell, the plugin searches through the memory map of kernel space, searching for a string that is aligned on a map boundary and repeated exactly 0x430 bytes later.
It was tested with OS X:
- 10.12 (macOS)
git clone https://github.com/tribalchicken/volatility-filevault2.git
filevault2.py is a plugin for the Volatility Framework. You can either place the plugin in the plugins directory at
volatility/plugins, or alternatively, you can place the plugin in a separate directory and point volatility to it with
For example, using a directory called “Plugins”:
voldev$ ls plugins
voldev$ volatility –plugins=plugins/ –profile=MacElCapitan_10_11_6_15G1004 -f osx10_11_6.vmem mac_filevault2
Volatility tells you it needs something to do
Volatility doesn’t know about the plugin. Check the location of the plugin, and run
volatility --info to determine if it is detected
“No suitable address space mapping found”
This isn’t an issue with the plugin, but either the profile selected does not match the memory image or the image is in a format that is not understood. Ensure you have the correct profile selected (Keep in mind in some cases there can be different builds of the same OS X version)
The plugin doesn’t find anything
There could be many causes.
- The drive is not FileVault protected.
- The memory image does not contain the key (Image captured after key is evicted from memory, overwritten during acquisition, etc)
- The key exists but the plugin doesn’t find it.