Digital Forensics Guide

Part 3: Encrypted workstationsChapter 8 of 17About 9 minutes

Chapter 8 of 17

8. Windows

On a Windows machine with BitLocker, one wrong click can turn an unlocked volume into one nobody can open. The order of actions matters more here than anywhere else in the guide.

The quick version

  • At the sign-in screen, the disk is usually already unlocked. The Windows password unlocks the session, not the volume.
  • Powered on: no shutdown, restart or sleep. Mains in, isolate, then capture memory first.
  • Record the recovery password with manage-bde -protectors -get C: and keep the output under evidence custody.
  • Never touch BIOS, UEFI, Secure Boot, the TPM or BitLocker settings. Any of them can lock you out for good.
  • Powered off: leave it off, image first, then work the escrow sources for a recovery password.

Open this when: you are facing a Windows workstation or laptop that may be running BitLocker or has a startup PIN or password.

In this chapter

  1. Windows workstations: BitLocker and protected startup (section 13)

13. Preservation, acquisition, analysis

Windows workstations: BitLocker and protected startup

In short: keep a live machine alive and capture memory before anything else; leave a dead one off and image it; never change anything the TPM measures.

This section applies the general method to a Windows system with full-disk encryption (BitLocker, or a third-party product behaving similarly) and password- or PIN-protected startup. A single wrong action here can convert an unlocked volume into one that cannot be opened.

Know BitLocker's components apart

BitLocker uses layered keys. Reports that treat them as interchangeable are wrong in ways an opposing examiner will notice.

ComponentWhat it does
Full volume encryption key (FVEK)Encrypts the data on the volume. It is what the disk cannot be read without.
Volume master key (VMK)Encrypts the FVEK. It is what the protectors protect.
ProtectorsThe ways the VMK can be unlocked: the TPM alone; the TPM with a startup PIN; the TPM with a startup key on USB; a password (on volumes without a TPM); a 48-digit recovery password; and a recovery key file (a .BEK file). A volume commonly has several at once, and the recovery password unlocks it regardless of the state of the TPM or the PIN.
TPMReleases its share of the VMK only when the measured boot state (firmware, Secure Boot configuration, boot loader, boot order and related measurements) matches what it sealed against. Any change to those measurements makes the TPM refuse, and the system asks for the recovery password.

Why the sign-in screen is good news

On a TPM system the user's Windows password is not a BitLocker protector: it unlocks the session, not the volume. The volume is unlocked at boot by the TPM (and PIN, if set), before the user signs in. So a powered-on Windows machine at the sign-in screen normally has its system volume already unlocked and its FVEK in memory.

Powered on and unlocked

  1. Do not shut down, restart or sleep the machine. Connect mains power if it is a laptop. Everything below assumes the session stays alive.
  2. Photograph and document the screen state, the signed-in user (visible in the start menu or a locked-screen name), connected devices, visible applications, network state (tray icons, link lights) and the displayed date and time against your reference clock (section 3).
  3. Isolate from the network by the physical methods in section 4. Disconnecting a cable or removing an adaptor does not end the session or lock the screen, but the screen-saver timer might, so work promptly. If the screen does lock, the volume stays unlocked and the keys stay in memory, but you will need a credential to continue (section 2).
  4. Acquire memory before anything else (section 7): WinPmem or Magnet RAM Capture from write-protected media, output to your own drive, tool hash and command recorded. Memory may contain the FVEK and VMK, VeraCrypt or other container keys, Windows credentials and hashes, Kerberos tickets, browser session tokens, cached passwords and the plaintext of open documents.
  5. Record encryption and system state with the fewest commands that give it (details below).
  6. Take a logical or live volume acquisition of the decrypted filesystem where the volume cannot be decrypted later with confidence, or where speed matters (details below).
  7. Shut down and acquire the physical storage (section 8). Removing power is usually preferred; record the method. The physical image contains the BitLocker volume as ciphertext together with its metadata, and can be decrypted later with any key recovered.
  8. Hash and verify the memory image, the logical acquisition and the physical image (section 9), and record which of them are plaintext and which are ciphertext.

Record encryption and system state (step 5)

From an elevated prompt:

  • manage-bde -status reports each volume's encryption state, method and protector types.
  • manage-bde -protectors -get C: lists the protectors and, where a recovery password protector exists, prints the 48-digit recovery password itself with its identifier.

That output is key material

Record it to your own media, hash the record and keep it under evidence custody. It is the most direct route back into the volume after power-off.

Then, as needed:

  • tasklist /v for processes.
  • quser for sessions.
  • netstat -ano for connections with owning processes.
  • mountvol and Get-Volume for mounted volumes.
  • Get-Tpm to record that a TPM is present and ready.

Reading state is safe, but every command is still an interaction. Record each with its time and output (photograph the window or redirect to your media).

Take the live acquisition (step 6)

OptionWhat you getWatch for
Logical acquisition: a tool run from your media copies the live volume's files with their metadata to your drive, or into a logical image in a container formatThe decrypted files, as a derived artefact taken from a running system.Files open for writing may be inconsistent. The tool's reads may update last-access times, depending on the volume's last-access setting, which varies with the Windows version and volume size: record it rather than assume it.
Block-level image of the decrypted volume, from the live system, with a forensic imager that can read a logical volume (often better)A plaintext filesystem image including unallocated space.It is still taken from a running system; record the tool and command.

Avoid the actions that remove access permanently

Do not do any of the following on the original machine unless a documented decision, with authority, requires it:

  • Rebooting. Clears memory, ends the session and, if any measured component has changed, drops the machine into recovery mode at the next boot.
  • Changing BIOS or UEFI configuration, including boot order to boot a forensic USB. This changes the measurements the TPM sealed against. A machine that was unlocking itself at boot will ask for a recovery password you may not have.
  • Changing Secure Boot settings, for the same reason.
  • Disturbing TPM state: clearing the TPM, updating its firmware, or physically moving the drive to another machine. A cleared TPM destroys its share of the VMK; only a recovery password or key can open the volume afterwards.
  • Suspending, disabling or modifying encryption (manage-bde -protectors -disable, manage-bde -off, or the control panel equivalents). Suspending writes the VMK to the disk in the clear and changes the volume's state; turning encryption off rewrites the whole volume. Both alter the evidence and neither is needed to acquire it.
  • Adding or changing protectors "to make sure we can get back in". It changes BitLocker metadata on the evidence. Recover keys through the routes below instead.

Stop and think

Booting a forensic USB means changing the boot order, and that alone can make the TPM refuse to unlock the disk ever again without a recovery password. There is no undo.

Powered off

  1. Leave it off. Do not attempt to boot it, and do not try passwords or PINs at a pre-boot prompt: the TPM's anti-hammering logic and the recovery-mode trigger both count against you.
  2. Image the storage first (section 8), through a write blocker. The image is complete evidence whether or not it is ever decrypted.
  3. Identify the mechanism from the image. BitLocker's volume signature and metadata (readable with the libbde tools or a forensic suite) give the encryption method, the protector types and the recovery password identifier. A third-party product is identified by its boot loader, driver files and configuration on the system volume.
  4. Work the lawful recovery sources in section 12, in the order they are likely to succeed for a Windows machine (list below).
  5. Decrypt a working copy to a new image with a recovery password or key (section 12), for example with the dislocker or libbde tools, which present a read-only decrypted view that is then imaged and hashed. An FVEK recovered from a memory image is applied the same way. Record which component was used.

Recovery sources for Windows, most likely first:

  1. Active Directory: BitLocker recovery passwords escrowed against the computer object.
  2. Microsoft Entra ID: escrowed against the device record, for joined or registered devices.
  3. The enterprise key management or endpoint encryption console.
  4. The user's Microsoft account, which stores recovery keys for devices encrypted under a personal account and can be accessed by the account holder or under lawful process.
  5. Authorised password managers.
  6. Recovery keys on other seized media: .BEK files on USB devices, printed 48-digit passwords, or text files.

Know where to look in the examination

Beyond the filesystem work in sections 18 and 19, these artefacts most often matter on Windows:

  • Registry hives: system, software, security, and each user's.
  • Event logs.
  • Execution: prefetch, shimcache and amcache.
  • File access: link files and jump lists.
  • Devices: the USB device and mounted-device keys.
  • NTFS history: the change journal and log file (section 18).
  • Volume shadow copies: earlier versions of files and of the hives.
  • Hibernation file and page file (section 7).
  • Per-user application data.
  • NTFS alternate data streams: covered in section 17.

Example

A laptop sits at the sign-in screen, powered on, with a BitLocker padlock shown in the tray of a second user's session in the switch-user list. The system volume is unlocked; the sign-in screen is not a pre-boot prompt. The examiner isolates the machine, obtains the local administrator credential from IT with authority, signs in (recorded), captures memory, and records the BitLocker status: a TPM-and-PIN protector with no escrowed recovery password. They image the unlocked system volume logically, then remove power and image the drive. Later, the FVEK found in the memory image decrypts the physical image to the same file hashes as the logical acquisition, which is recorded as corroboration of both.

Before you move on

  • You can say which of FVEK, VMK, protector and TPM you are dealing with.
  • Live machine: kept awake, isolated, memory captured before anything else.
  • Recovery password output recorded, hashed and under evidence custody.
  • No change made to BIOS, UEFI, Secure Boot, the TPM or BitLocker protectors.
  • Every acquisition hashed and labelled as plaintext or ciphertext.