Blog | G5 Cyber Security

BitLocker Key Management: A Practical Guide

TL;DR

This guide explains how BitLocker uses Windows DPAPI to protect recovery keys and provides practical steps for managing them, including backup, recovery, and auditing. It covers key storage locations and methods for secure access.

Understanding BitLocker & DPAPI

BitLocker drive encryption protects your data by encrypting entire volumes. The encryption process relies on several keys, most importantly the Volume Master Key (VMK). The VMK itself is protected using the Data Protection API (DPAPI), which ties the key to a user account or computer.

1. Backing Up BitLocker Recovery Keys

The recovery key is essential if you forget your password or encounter issues with TPM. Here’s how to back it up:

  1. During Setup: When enabling BitLocker, choose to save the recovery key to a Microsoft account (recommended) or a file.
  2. After Setup – Control Panel:
    • Open Control PanelSystem and SecurityBitLocker Drive Encryption.
    • Select the drive you want to back up.
    • Click Back up recovery key.
    • Choose a location (USB drive, file on another partition, Microsoft account).

2. Key Storage Locations

BitLocker recovery keys can be stored in several places:

3. Recovering a BitLocker Key

If you forget your password or encounter boot issues, follow these steps:

  1. At the Boot Screen: When prompted for a password and unable to enter it, select ‘More options’.
  2. Enter Recovery Key: Choose ‘Enter recovery key’ and paste or type in the 48-digit recovery key.

4. Accessing Keys from Microsoft Account

To retrieve a key stored with your Microsoft account:

  1. Sign in to your Microsoft account on another computer.
  2. Navigate to SecurityAdvanced security optionsBitLocker recovery keys.
  3. Locate the key for the relevant device and copy it.

5. Auditing BitLocker Key Usage (PowerShell)

Use PowerShell to monitor BitLocker events:

Get-BitLockerVolume | Select-Object MountPoint, ProtectionStatus, VolumeType, RecoveryMethod

This command displays the status of each BitLocker volume, including where the recovery key is stored.

6. Managing Keys in Active Directory (for IT Administrators)

If your computer is joined to a domain:

7. Protecting DPAPI Keys

DPAPI relies on user accounts and computer security. Ensure:

Exit mobile version