Research: Understand BitLocker PIN behavior
Goal
| User story |
|---|
| As an IT admin, |
| I want to know what happens with PIN if it's set and host is migrated |
| so that I know what's state of the host. |
- [ ] Test what happens if the user has a PIN set already, and the host is migrated from another MDM solution. Is the same PIN still valid?
- [ ] Update the relevant docs.
Test Plan
Setup
- [ ] Provision a Windows test VM with BitLocker enabled
- [ ] Enroll the VM in a third-party MDM (e.g., JumpCloud)
- [ ] Set a BitLocker startup PIN on the VM via the third-party MDM (or manually via
manage-bde -protectors -add C: -TPMAndPIN) - [ ] Confirm the PIN is active: reboot the VM and verify it prompts for the PIN before Windows loads
- [ ] Note the recovery key from the third-party MDM for later reference
Core flow
- [ ] Migrate the host from the third-party MDM into Fleet
- [ ] After migration completes, reboot the VM and verify whether the BitLocker PIN prompt still appears
- [ ] Log in to Fleet and navigate to the host's detail page — check the reported BitLocker/encryption status
- [ ] Attempt to unlock the drive using the original PIN — record whether it succeeds or fails
- [ ] Check if Fleet has escrowed a recovery key for the host (Host details > Actions > Show recovery key)
- [ ] If Fleet triggered a key rotation, verify the original recovery key from the third-party MDM is no longer valid
- [ ] Document the observed behavior: PIN status (active / deactivated / unknown), recovery key status, and any Fleet UI messaging
Edge cases
- [ ] Test with a PIN set via Group Policy vs. set manually via
manage-bde— verify behavior is consistent - [ ] Test migration when the host has a TPM+PIN protector vs. TPM-only — confirm Fleet correctly identifies the protector type
- [ ] Verify what happens if Fleet attempts to enforce its own BitLocker policy on a host that already has a PIN set — does it overwrite, preserve, or error?
- [ ] Check the Fleet
GET /api/v1/fleet/hosts/{id}API response for encryption-related fields before and after migration to confirm the reported state is accurate - [ ] Test with Fleet's BitLocker enforcement policy disabled — confirm Fleet does not alter the existing PIN state
API
- [ ] Confirm
GET /api/v1/fleet/hosts/{id}accurately reflects BitLocker protector type (TPM+PIN vs TPM-only) post-migration - [ ] Confirm
GET /api/v1/fleet/mdm/hosts/{id}/encryption_keyreturns the correct recovery key (or an appropriate error if not yet escrowed)
Docs PR to update: https://github.com/fleetdm/fleet/pull/43915/changes
This can be picked up by an engineer.
I can dig into this once 4.91.0 QA is completed.
Based on the code, Fleet generates a new recovery key but leaves the PIN alone, so the existing PIN should continue to work.
Now, what if previous MDM had PIN, but Fleet does not require PIN? Fleet adds a TPM-only protector and does not remove the existing TPM+PIN protector. Does that mean that no PIN is required on reboot?
I will include this in my 4.93.0 migration smoke test so I can verify.
Actually... This ended up being reviewed and resolved in https://github.com/fleetdm/fleet/issues/52159 and will be released as part of 4.93.0
So, to answer the original question that was asked, since I accidentally ended up reviewing this issue as part of the previously mentioned one...
| User story resolution |
|---|
| As an IT admin, |
| If a host is migrated with a Bitlocker PIN already set, |
| The host escrows a new recovery key, but does not affect the set PIN, and does not require the user to change it. |
Hosts cross mountain pass old PIN echoes in the stone new key lights the way