RTFM_ security field notes

LUKS: brute force and header extraction

Test a LUKS passphrase offline, or open and mount a volume once it is known.

Brute force

bruteforce-luks

bruteforce-luks -f `fzf-wordlist` -t50 <LUKS DISK>

Manual extraction

Legacy LUKS1 extraction recipe

This offset-based recipe and Hashcat mode are not generic LUKS2 instructions. Check the LUKS version, keyslots and tool support first; work from a copy.

cryptsetup luksDump <LUKS DISK> | grep 'Payload offset' # Add 1 to the result
dd if=<LUKS DISK> of=headers bs=512 count=<OFFSET +1>
hashcat -m 14600 -a 0 -w 3 headers `fzf-wordlist`

The header can be copied out and tested offline, which avoids repeated attempts against the volume itself. Add one to the payload offset reported by luksDump and use that value as the sector count.

Reading

cryptsetup open --readonly <LUKS_DISK> dump
mount -o ro /dev/mapper/dump /mnt

Opening requires a valid passphrase/key and suitable privileges. For forensic work, use an image and filesystem-specific options to prevent journal replay; mount -o ro alone is not a universal no-write guarantee.

Provenance and confidence
Version
2
Sources reviewed
2026-11-23
Confidence
medium — Legacy RTFM; v2 editorial review on 2026-11-23 limits the extraction recipe to its historical context and clarifies read-only handling. No volume test.

Also searched as: luks, chiffrement de disque, cassage luks, bruteforce luks, volume chiffré