Sub topic 12
Protecting data at rest with BitLocker and EFS
This chapter assumes you know how NTFS permissions work and what a user account and a drive volume are. Data at rest is data stored on a drive, as opposed to data moving across a network. Permissions do not protect it if someone removes the drive and reads it on another computer. Encryption does.
Two tools, two scopes
Windows offers two built-in encryption tools. They work at different levels.
| Feature | BitLocker | EFS |
|---|---|---|
| Scope | Whole volume | Individual files and folders |
| Also called | Full-disk encryption | Encrypting File System |
| Key tied to | Volume key, protected by TPM, PIN, or recovery key | User's certificate |
| Requires | Pro, Enterprise, or Education edition | NTFS volume, Pro or higher |
| Protects against | Lost or stolen device | Other users on the same PC |
BitLocker encrypts everything on the volume, including the operating system, swap files, and temporary files. EFS encrypts only the items you mark, and only the owner's account can open them transparently.
How BitLocker works
BitLocker stores its encryption key in a protector. The most common protector is the Trusted Platform Module (TPM), a chip on the motherboard that releases the key only if the boot files are unchanged. You can add a startup PIN for stronger protection. Without a TPM, you can use a USB startup key.
BitLocker also creates a recovery key. This 48-digit number unlocks the drive if the TPM fails, the motherboard is replaced, or the boot configuration changes. Save it to a Microsoft account, Active Directory, or a printout stored securely. If you lose both the protector and the recovery key, the data cannot be recovered.
BitLocker To Go encrypts removable drives such as USB flash drives. It uses a password or smart card instead of a TPM.
Check the status of a drive from an elevated command prompt:
manage-bde -status C:The output shows the conversion status, the percentage encrypted, and the key protectors.
How EFS works
EFS encrypts a file with a random key. It then protects that key with the user's certificate. To use it, open the file's Properties, select Advanced, and check "Encrypt contents to secure data". Encrypted files usually appear with green names in File Explorer.
Back up the EFS certificate and private key. If the profile is deleted or the account is reset, the files stay unreadable without that certificate. Copying an encrypted file to a FAT32 drive removes the encryption, because FAT32 does not support EFS.
Common errors
- Turning on BitLocker without saving the recovery key.
- Forgetting that a signed-in session can read the data. Encryption protects a powered-off or locked device.
- Assuming EFS protects files from administrators who hold the recovery agent certificate.
- Moving EFS files to a non-NTFS volume.
Exercise
A laptop with a TPM is stolen. It holds customer records in several folders. Which tool protects the data best, and what must the IT team have saved so the owner can still recover the drive after a hardware change?
Show answer
BitLocker, because it encrypts the whole volume and protects against theft. The team needs the BitLocker recovery key, the 48-digit number used to unlock the drive when the TPM or boot configuration changes.
Exercise
A user copies an EFS-encrypted spreadsheet to a FAT32 USB drive. What happens to the encryption?
Show answer
It is removed. FAT32 does not support EFS, so the copy is not encrypted.