An evil maid attack is any attack in which someone gets private, unobserved time with a powered-off, sleeping or locked laptop and tampers with it so that data, keys or the user's credentials can be taken later. The name comes from the hotel room scenario, but the same risk applies to a laptop left in a meeting room, a checked bag, a border inspection or a courier shipment. Full disk encryption alone does not settle it: what matters is whether the device was off or asleep, how the encryption key is released at boot, and whether anyone would notice the device had been opened. This guide covers the attack surfaces, the boot and encryption settings that close them, and the procedures for staff who travel. It is written for endpoint engineers and the security leads who look after travelling and high-risk staff. It describes defences only.
Key takeaways
- Power state decides most outcomes. A sleeping laptop holds its encryption keys in memory and needs no preboot authentication to resume; a shut down or hibernated laptop with a preboot PIN does not.
- TPM only is for opportunistic attackers. Microsoft recommends TPM with an enhanced PIN, plus hibernate or shutdown instead of sleep, for devices that face a skilled attacker with lengthy physical access.
- Secure Boot and measured boot stop silent boot chain swaps. A replaced bootloader or bootkit changes TPM measurements, so the key is not released, as long as Secure Boot is on and firmware settings are password protected.
- Tamper evidence turns an invisible attack into a visible one. Seals, recorded serial numbers and an inspection routine let a traveller know when to stop using a device and report it.
- Loaner devices limit what a successful attack is worth. A dedicated travel device with minimal data and accounts, reset after every trip, is the most reliable control for high-risk journeys.
What an evil maid attack is
The attacker has physical access but not the user's secrets. The goal is usually one of three things: read data directly from a device whose keys are still in memory, alter the boot chain or hardware so that the next time the user unlocks the device the key or password is captured, or plant an implant that gives remote access later. The attack is often repeated: one visit to tamper, a second visit (or a network connection) to collect.
In MITRE ATT&CK terms the relevant techniques include T1200 Hardware Additions (implanting a device or using an exposed port), T1542 Pre-OS Boot with its sub-techniques T1542.001 System Firmware and T1542.003 Bootkit, and T1056.001 Keylogging, which a hardware keylogger or modified boot screen achieves. The defensive counterparts in MITRE D3FEND are D3-DENCR Disk Encryption, D3-TBI TPM Boot Integrity and D3-FV Firmware Verification.
Microsoft's BitLocker countermeasures guidance splits attackers into two useful groups. The first is opportunistic, with limited skill or limited time, facing a device whose form factor does not expose buses or memory. The second is targeted, with skill and lengthy physical access, willing to open the case, solder and use specialist hardware. Microsoft notes that on some systems bypassing TPM only protection "might require opening the case and require soldering, but can be done for a reasonable cost". Decide which group each device population faces before choosing settings.
Attack surfaces on an unattended device
| Surface | What the attacker aims for | Main controls | Residual risk |
|---|---|---|---|
| Boot chain (bootloader, boot manager, boot drivers) | Swap or modify the bootloader so it records the PIN or password, or boot another OS | Secure Boot, Trusted Boot, TPM sealing to PCR 7 and PCR 11, firmware password | Low on a correctly configured device; rises if Secure Boot is off or the third party UEFI CA is trusted without need |
| System firmware (UEFI/BIOS) | Persistent implant below the OS (T1542.001) | Authenticated firmware updates (NIST SP 800-147), Intel Boot Guard or AMD Hardware Verified Boot, firmware admin password | Depends on platform support and vendor update quality |
| Memory while asleep or locked | Read keys or data from RAM (memory remanence, DMA) | Hibernate or shut down, preboot PIN, TCG Reset Attack Mitigation (MOR bit), Kernel DMA Protection | A sleeping device remains the weak point |
| External ports (Thunderbolt, USB4, ExpressCard) | DMA access or a malicious peripheral (T1200) | Kernel DMA Protection and DmaGuard policy, device control, port blockers | No Kernel DMA Protection during boot: firmware is responsible there |
| Keyboard path | Hardware keylogger inside the case or in a cable or dock (T1056.001) | Tamper seals on screws and seams, inspection, no untrusted docks or cables | Hard to detect without opening the device |
| TPM to CPU bus | Capture the key as the TPM releases it in TPM only mode | TPM plus PIN, which means the key is not released without the PIN | Low with an enhanced PIN and anti-hammering |
| Recovery environment | Abuse unencrypted recovery tooling to reach the protected volume | Prompt patching, preboot PIN | NCSC notes recovery environment bypasses recur; a PIN closes most |
DMA and peripheral attacks have their own detailed controls. See the Thunderbolt, DMA and Peripheral Attack Protection Guide.
Secure Boot, measured boot and TPM PINs
Boot integrity
- Secure Boot: UEFI firmware starts the bootloader only if it is signed by a trusted certificate. Microsoft states that it protects against bootkits that replace the bootloader. It is only as strict as its configuration: turning it off, or trusting the Microsoft 3rd Party UEFI CA where it is not needed, lets more bootloaders run. Secured-core PCs distrust that CA by default.
- Trusted Boot and ELAM: the bootloader verifies the kernel, the kernel verifies boot drivers, and Early Launch Anti-Malware checks non-Microsoft boot drivers against a trusted list before they load.
- Measured boot: firmware records hashes of firmware, bootloader and boot drivers in the TPM. BitLocker uses PCR 7 by default for integrity, so a changed Secure Boot state stops the key being released. A remote attestation service can also read a TPM-signed boot log and refuse network access to an unhealthy device. See Measured Boot vs Secure Boot.
- Firmware password: Microsoft recommends a password to change BIOS settings, because without one an attacker can change the boot order or turn off protections. Manage it centrally. See the BIOS and UEFI Settings Management Guide.
- Certificate expiry: Microsoft's original Secure Boot certificates are being replaced during 2026. That work is moving quickly; follow the Secure Boot Certificate Expiry 2026 guide rather than treating it as part of evil maid planning.
TPM only versus TPM plus PIN
| Option | Stops | Does not stop | Fits |
|---|---|---|---|
| TPM only (BitLocker default) | Drive removed and read elsewhere; rogue OS boot; boot chain changes that alter measurements | Attacks on a running or sleeping device; TPM bus capture on some hardware; recovery environment flaws | Office laptops facing opportunistic theft |
| TPM plus enhanced PIN | All of the above plus bus capture and most recovery environment bypasses; PIN guessing is limited by TPM anti-hammering | A sleeping device; a keylogger that captures the PIN before a second visit | Travel, executive and administrator devices |
| TPM plus startup key (USB) | Similar to PIN if the key is kept apart from the device | Loss of the key together with the laptop | Labs and kiosks with controlled key handling |
| Network Unlock with TPM plus PIN | Same as PIN once off the corporate wired network | Theft from inside the trusted network | Desktops that need unattended patch reboots |
The Group Policy settings are "Require additional authentication at startup" and "Allow enhanced PINs for startup". In August 2026 the NCSC called BitLocker without a PIN a "half measure" and pointed to WinRE bypasses, including one Microsoft patched quickly in 2026 and four similar bugs patched in 2025, as reasons to require a PIN. Where a PIN is impractical, the NCSC lists Network Unlock, a USB startup key or conditional access limits as alternatives. Configuration detail is in the BitLocker guide.
Choosing: small organisations can apply TPM plus PIN to everyone who travels and leave office-only desktops on Network Unlock. Large fleets usually tier: TPM only for low-risk staff, TPM plus enhanced PIN for anyone travelling to high-risk destinations, executives and holders of administrative rights, with Privileged Access Workstations always on PIN.
Disk encryption and shutdown versus sleep
Disk encryption protects data only while the key is not in memory. Microsoft is direct about sleep: running programs and documents stay in memory and users "aren't required to reauthenticate with a PIN or USB startup key", which "might lead to conditions where data security is compromised". In hibernate the drive is locked and the PIN is needed on resume. Microsoft notes the hibernate setting has no effect in TPM only mode, because there is no preboot secret to ask for.
- Windows: set "Allow standby states (S1-S3) when sleeping (plugged in)" and "(on battery)" to Disabled, and enable "Show hibernate in the power options menu". Microsoft lists these as not configured by default. Set lid close and idle timeouts to hibernate for travel devices.
- DMA while locked: on hardware without Kernel DMA Protection, BitLocker's "Disable new DMA devices when this computer is locked" applies. Microsoft states the two are incompatible and recommends turning the BitLocker countermeasure off where Kernel DMA Protection is present (check msinfo32 for "Kernel DMA Protection: On").
- macOS: on Apple silicon and T2 Macs all FileVault key handling occurs in the Secure Enclave and credentials are required at boot once FileVault is on. Escrow the 24 character recovery key through device management. Tell travellers to shut down rather than close the lid at borders and when leaving the device.
- Linux: LUKS with a passphrase or TPM plus PIN gives the same model. See the LUKS Disk Encryption Guide.
For the cross-platform encryption baseline and recovery key escrow, see the Disk Encryption Guide: BitLocker and FileVault.
Tamper evidence and travel procedures
Technical controls make tampering harder; procedures make it noticed. The Australian Signals Directorate's guidance on travelling with mobile devices (updated March 2024) is a practical baseline: use a pool of dedicated travel devices used solely for work, apply tamper seals to key areas and train staff to check them, remove non-essential accounts, functions and data, encrypt everything, and record serial numbers.
| Stage | Actions | Owner |
|---|---|---|
| Before travel | Issue a loaner from the travel pool; enrol it in management with TPM plus PIN, hibernate policy and full patching; load only the data and accounts needed; record serial numbers; photograph seals on screws, seams and ports | Endpoint team |
| During travel | Keep devices and MFA tokens in personal possession (ASD names hotel safes and checked luggage as unattended); shut down when not in use; never store the PIN with the device; use only own chargers and cables; inspect seals each time the device has been out of sight | Traveller |
| Incident during travel | Treat the device as compromised if it was taken for inspection by officials or lost and recovered, or if a seal is broken; stop using it and report type, date and time | Traveller, security team |
| After travel | Inspect seals and compare photographs; reset passwords used on the trip and watch for failed logons; sanitise and reimage the device; decommission tokens that left the traveller's possession | Endpoint team, identity team |
Seals: use serial-numbered tamper-evident labels over chassis screws and the battery or memory panel, plus nail varnish with glitter on screw heads where labels will not stay, and photograph them with the serial number in frame. A seal is only useful if someone checks it, so add the check to the post-trip return process. For wider trip planning, see the ISO 31030 Travel Risk Management Guide.
Where identity fits
A tampered laptop is mainly a route to identities: the user's password or PIN, cached tokens, saved SSH keys and cloud CLI credentials, and the device certificate that conditional access trusts. After any suspected tampering, reset the user's credentials, revoke refresh tokens and device certificates, and rotate any API keys or SSH keys the device held. Configure conditional access so a device that fails health attestation or compliance loses access to sensitive resources. See the Conditional Access Guide.
Rolling out the controls
- Inventory and tier: list device models, TPM version, Secure Boot state and Kernel DMA Protection status (msinfo32 or management reports). Tag devices by risk tier: office, traveller, high-risk traveller, privileged.
- Fix firmware first: turn on Secure Boot, set firmware passwords and update firmware through signed vendor packages. Suspend BitLocker for firmware updates to avoid recovery prompts.
- Pilot TPM plus PIN: apply it to the security and IT team first, measure help desk calls, then extend to the traveller tier. Enhanced PINs need user guidance on length and characters.
- Change power policy: disable standby S1 to S3 and set hibernate on lid close for the traveller tier. Check modern standby devices behave as expected in the pilot.
- Stand up the loaner pool: a small, reimaged set of devices with a booking and return process, seals and photographs.
- Roll back safely: keep recovery keys escrowed before any change; if PIN rollout causes widespread lockouts, revert the group's policy to TPM only while you fix guidance, rather than suspending encryption.
Detection and measurement
- Boot integrity: unexpected BitLocker recovery prompts after a trip are a signal, not just an inconvenience: they can mean a changed boot component. Route them to security, not only the help desk.
- Endpoint logs: collect the BitLocker-API event channel for protector changes and suspensions, and alert on Secure Boot being turned off or on firmware setting changes your management tool reports.
- Attestation: use device health attestation in the compliance policy so a device with failed boot measurements is flagged.
| Metric | Target |
|---|---|
| Traveller tier devices with TPM plus PIN | 100% |
| Fleet devices with Secure Boot on and firmware password set | Above 98% |
| Traveller devices with standby disabled and hibernate on lid close | 100% |
| Loaner devices reimaged and seals checked after return | 100% within 5 working days |
| Post-trip recovery prompts investigated by security | 100% |
Framework mapping
| Framework | Reference | How this guide applies |
|---|---|---|
| NIST SP 800-53 Rev 5 | SC-28, SC-28(1) | Disk encryption with preboot authentication |
| NIST SP 800-53 Rev 5 | SI-7, SI-7(9) | Secure Boot and measured boot |
| NIST SP 800-53 Rev 5 | PE-17, MP-5 | Alternate work sites and media in transit (travel procedures) |
| NIST CSF 2.0 | PR.DS-01, PR.AA-06, PR.PS-01 | Data at rest, physical access, configuration management |
| NIST SP 800-147 | BIOS Protection Guidelines | Preventing unauthorised firmware modification |
| MITRE ATT&CK | T1200, T1542.001, T1542.003, T1056.001 | Techniques the controls address |
| MITRE D3FEND | D3-DENCR, D3-TBI, D3-FV | Disk encryption, TPM boot integrity, firmware verification |
Common failure patterns
- Encrypted but asleep: the fleet is 100% BitLocker or FileVault, but laptops travel in sleep, so the key is in memory every time they are left unattended.
- TPM only for everyone: the default is kept for executives and administrators who travel, leaving them exposed to bus capture and recovery environment flaws that a PIN would block.
- Secure Boot off after troubleshooting: an engineer disables it to boot a tool and never turns it back on, and there is no firmware password to stop anyone else doing the same.
- Seals that nobody checks: labels are applied, but there are no photographs and no inspection at return, so a replaced seal goes unnoticed.
- Loaners not reset: travel devices go from one trip to the next without reimaging, so any implant from the first trip persists.
- Credentials kept after a suspect event: a device taken at a border is reimaged, but the user's password, tokens and SSH keys are left unchanged.
Practitioner checklist
- Tier devices by physical threat and record TPM, Secure Boot and Kernel DMA Protection status.
- Require TPM plus enhanced PIN on traveller, executive and privileged devices.
- Disable standby states and set hibernate or shutdown on lid close for those tiers.
- Turn on Secure Boot everywhere and protect firmware settings with a managed password.
- Escrow every recovery key before changing protectors.
- Run a loaner device pool for high-risk travel, with seals, photographs and reimaging on return.
- Brief travellers: keep devices in possession, shut down when leaving them, report any loss of control.
- Reset credentials and revoke tokens and device certificates after any suspected tampering.
- Send post-trip recovery prompts to security for review.
Standards and references
- Microsoft: BitLocker countermeasures
- Microsoft: Secure the Windows boot process
- Microsoft: Kernel DMA Protection
- NIST: SP 800-147 BIOS Protection Guidelines
- NIST: SP 800-111 Guide to Storage Encryption Technologies for End User Devices
- NCSC: How BitLocker PINs help protect your data and devices
- Australian Signals Directorate: Travelling with mobile devices
- Apple: Volume encryption with FileVault in macOS
Related NHI Mgmt Group resources: Endpoint Security Guide · Disk Encryption Guide: BitLocker and FileVault · Thunderbolt, DMA and Peripheral Attack Protection Guide · Privileged Access Workstations Guide