Blog | G5 Cyber Security

VeraCrypt Brute Force: Password Recovery

TL;DR

This guide shows how to attempt a brute-force attack on a VeraCrypt volume when you’ve forgotten the password and don’t have a rescue disk. It uses Hashcat, a powerful password cracking tool. Warning: This is time-consuming and may not succeed. It also carries risks if done incorrectly; back up any important data before attempting this.

Prerequisites

Step 1: Determine the VeraCrypt Hash Algorithm

You need to know which hash algorithm VeraCrypt used when creating the volume. If you remember, great! Otherwise, we’ll try common ones.

Step 2: Dump the VeraCrypt Volume Hash

VeraCrypt provides a way to dump the hash needed for cracking.

  1. Open VeraCrypt.
  2. Select an empty slot in the volume list.
  3. Click “Volume Tools” and then “Dump Volume Header”.
  4. Choose your VeraCrypt volume file (.vc).
  5. Specify a filename for the hash dump (e.g., volume.txt). Make sure you know where this is saved!
  6. Click “OK”. This creates a text file containing the necessary hash information.

Step 3: Prepare Hashcat

Hashcat needs to know what kind of hash it’s dealing with.

  1. Open a command prompt or terminal.
  2. Navigate to the directory containing your volume.txt file and Hashcat executable.

Step 4: Run Hashcat – Basic Attack

This is where you start the brute-force attempt. We’ll begin with a simple wordlist attack.

hashcat -m 1600 volume.txt ?a?a?a?a?a?a rockyou.txt

Important: Replace 1600 with the correct hash mode and adjust the mask (?a?a?a…) to match your estimated password length.

Step 5: Run Hashcat – Rule-Based Attack

If a simple wordlist attack fails, try using rules to modify the words in the list. This can significantly increase your chances of success.

hashcat -m 1600 volume.txt ?a?a?a?a?a?a rockyou.txt -r /path/to/rules/best64.rule

Step 6: Monitor Progress and Adjust

Hashcat will display its progress on the screen.

Step 7: If Password Found

If Hashcat successfully cracks the password, it will display it on the screen.

Important Considerations

Exit mobile version