Sub topic 12
Protecting data at rest with BitLocker and EFS
Data at rest is data stored on a drive, as opposed to data moving across a network. If someone steals a laptop or pulls a drive from a PC, file permissions do not stop them. They can boot another operating system and read the files directly. Encryption closes that gap.
This chapter assumes you know Windows accounts, groups, and NTFS permissions from the earlier chapters. It covers the two Windows encryption tools the A+ exam tests: BitLocker and the Encrypting File System (EFS).
Why permissions are not enough
NTFS permissions are enforced by the running Windows operating system. If an attacker removes the drive and connects it to another machine, that machine's operating system does not honor the original permissions. Encryption scrambles the data so it is unreadable without a key. This supports the confidentiality part of the CIA triad.
Two tools, two scopes
| Feature | BitLocker | EFS |
|---|---|---|
| What it protects | An entire volume (drive or partition) | Individual files and folders |
| Also known as | Full-disk or full-volume encryption | File-level encryption |
| Editions | Pro, Enterprise, and Education (Home has a limited "device encryption" feature) | Pro, Enterprise, and Education (not Home) |
| Requires NTFS | Yes for the OS volume | Yes |
| Key tied to | Hardware (TPM), PIN, USB key, or recovery key | The user's account certificate |
| Protects against | Offline attack, such as a stolen laptop or removed drive | Other users on the same computer |
The two tools can be used together. BitLocker covers a lost device, and EFS adds protection between users who share one machine.
BitLocker
BitLocker encrypts every sector of a volume. Windows then decrypts and encrypts data transparently as it reads and writes, so users notice little difference.
The TPM
A Trusted Platform Module (TPM) is a chip on the motherboard that stores encryption keys and checks that the boot process has not been changed. With a TPM, BitLocker can unlock the drive automatically at startup, but only if the boot files and firmware look unmodified. If someone moves the drive to a different computer, the TPM is missing, so the drive stays locked.
Common startup authentication options are:
- TPM only. The drive unlocks automatically when the system is unchanged.
- TPM with a PIN. The user types a PIN before Windows starts.
- TPM with a USB startup key. The user inserts a USB drive that holds a key.
- Password or USB key without a TPM. This needs a Group Policy setting that allows BitLocker without a compatible TPM.
The recovery key
BitLocker generates a recovery key, a 48-digit number. You need it when the TPM detects a change, such as a BIOS update or a hardware change, or when the user forgets the PIN. Store it somewhere other than the encrypted drive. Typical places are a Microsoft account, a printout in a safe, a USB drive, or Active Directory in a business.
A lost recovery key can mean permanently lost data, so back it up before you finish enabling BitLocker.
BitLocker To Go
BitLocker To Go encrypts removable drives such as USB flash drives. The user unlocks the drive with a password or smart card. This protects data if the drive is lost.
Checking status from the command line
The manage-bde tool reports BitLocker status. Run it from an elevated command prompt.
manage-bde -status C:The output shows the conversion status (for example "Fully Encrypted"), the percentage encrypted, the protection status (On or Off), and the key protectors such as TPM or Numerical Password.
How BitLocker unlocks a drive
EFS
EFS encrypts individual files or folders on an NTFS volume. A user turns it on in a file's Properties, under Advanced Attributes, by selecting "Encrypt contents to secure data." The encrypted file name usually appears in green in File Explorer.
EFS uses a certificate and key pair tied to the user account that encrypted the file.
- The same user opens the file normally, because Windows decrypts it automatically.
- A different user gets an "Access denied" error, even an administrator who has full NTFS permissions.
- If the user profile is deleted or the certificate is lost, the file cannot be opened.
For that reason, users should export their EFS certificate and private key to a safe location. Encrypted files that are copied to a FAT32 volume, or sent through many email and cloud tools, can lose their encryption or fail to copy. Moving to NTFS keeps the encryption.
The cipher command manages EFS from the command line. Its /w switch is a different job: it overwrites free space so that deleted files cannot be recovered.
cipher /w:C:\Moving and copying behavior
- Encrypted file copied or moved within the same NTFS volume: stays encrypted.
- Encrypted file copied to a non-NTFS volume: decrypted copy.
- Unencrypted file moved into an encrypted folder: becomes encrypted.
Choosing between them
Use this order of reasoning for exam scenarios:
- A laptop might be lost or stolen: use BitLocker.
- A USB drive carries sensitive files: use BitLocker To Go.
- Several people share one PC and one user needs private files: use EFS.
- A company needs both: use BitLocker on the volume and EFS for sensitive folders.
Common errors and gotchas
- Enabling BitLocker without saving the recovery key. If the TPM later locks the drive, the data is gone.
- Assuming BitLocker protects a running, unlocked machine. Once the user signs in, the volume is unlocked. Malware that runs as that user can read the files. Encryption covers data at rest, not data in use.
- Assuming EFS works on Windows Home. It does not.
- Expecting an administrator to open another user's EFS file. Administrators can only do so if a recovery agent or the key exists.
- Confusing encryption with deletion. Encrypting a drive does not remove old data. See the data destruction chapter for wiping methods.
- Turning off BitLocker by mistake. Suspending protection leaves the data encrypted but stores the key unprotected until you resume it. Administrators suspend it briefly before BIOS or firmware updates.
Worked example
A sales manager's laptop holds customer records. The company policy says lost devices must not expose data. Your steps:
- Confirm the laptop runs Windows Pro and has a TPM.
- Enable BitLocker on the C: drive with TPM and PIN.
- Save the recovery key to the company directory and print a copy for the IT safe.
- Run
manage-bde -status C:and confirm "Fully Encrypted" and protection "On." - Record the work in the ticket.
If the laptop is stolen, the thief cannot read the drive. Without the PIN or recovery key, the data stays encrypted.
Exercise
A user shares a Windows 11 Pro workstation with a coworker. The user wants one folder of personal files to be unreadable by the coworker, including when the coworker has local administrator rights. Which encryption tool fits best, and why?
Show answer
EFS. It encrypts at the file and folder level using a certificate tied to the user's account, so other accounts, even administrators, get "Access denied." BitLocker would not help because the volume is unlocked once any user signs in.
Exercise
A technician updates the BIOS on a BitLocker-protected laptop, and at the next boot Windows asks for a 48-digit key. What happened, and how could it have been avoided?
Show answer
The TPM detected a change to the boot environment and treated it as a possible attack, so it withheld the key. The user must enter the recovery key. The technician could have suspended BitLocker protection before the update and resumed it afterward.