TPM2 auto-unlock is convenient at home. On the road, it can become a risk.
TravelShield removes supported TPM2 bindings from your LUKS2 header before
a trip, then lets you re-enroll them when you return.
TPM2 auto-unlock is convenient at home. Your LUKS2 volume unlocks without requiring a disk passphrase.
That convenience can become a risk when your laptop is outside your control. At a border, a conference, or a hotel, an active TPM2 binding may allow the encrypted volume to unlock without a disk passphrase.
TravelShield lets you remove supported TPM2 auto-unlock bindings before a trip and re-enroll them when you return. It inspects the LUKS2 header, including tokens and keyslots, rather than inferring binding state from PCR values or failed commands.
Interactive preview only. No changes are made to your disk.
State: ARMED. No supported TPM2 bindings remain.
Header statesDerived, never guessed
ARMEDtravel mode on
Inspection found no supported TPM2 auto-unlock bindings. A disk passphrase is required at boot unless another automatic unlock method, such as Clevis tang, is configured.
DISARMEDtravel mode off
At least one TPM2 binding is present and active. The encrypted volume may unlock at boot without prompting for a disk passphrase.
STALEdiagnostic mismatch
A binding is present, but its stored PCR7 digest differs from the current value, for example after a firmware update. Auto-unlock may still work, so the binding is never treated as absent.
UNKNOWNrefuses to toggle
TravelShield cannot classify the header safely, for example because it uses LUKS1, jq is missing, or a composite Clevis policy is ambiguous. It refuses to toggle or report ARMED.
ERRORresidual state
A binding removal or enrollment operation failed or completed only partially. TravelShield shows the remaining state and never reports ARMED after a failed operation.
§03
Security model
Read before arming
▚PCR7 is not a unique boot fingerprint
PCR7 reflects Secure Boot state, policy, and certificates. It does not uniquely identify a signed boot image. The digest stored at pcr7-<uuid>.sha256 is diagnostic only. A mismatch is classified as STALE, never as proof that a token is absent.
▚Older Clevis enrollments lacked a PCR policy
In v2.0.2 and earlier, Clevis enrollment used an empty {} configuration with no PCR policy. If you enrolled with one of those versions, re-enroll using [R] or arm travel mode to remove the binding.
▚A keyslot does not prove passphrase access
Before removing TPM2 bindings, TravelShield checks that at least one LUKS keyslot not referenced by any token remains. This is only a structural check. It cannot prove that you know a working passphrase. Verify your recovery credentials before arming.
▚Tang is not TPM
TravelShield reports non-TPM automatic unlock methods, including Clevis tang, sss without TPM, and other token types, but does not remove them. While any such unlocker is configured, the UI does not claim that a passphrase is required.
§04
How it works
08 steps · Header first
01
Find the LUKS root device with lsblk, findmnt, and blkid. No hardcoded paths.
02
Read the LUKS2 JSON header directly. Never infer binding state from PCR values or failed commands.
03
Enumerate every supported systemd-tpm2 token and Clevis TPM2 binding in the header.
04
Cross-check Clevis slots with clevis luks list, one slot at a time, without substring matching.
05
Classify the header as ARMED, DISARMED, STALE, UNKNOWN, or ERROR.
06
Arm: remove every supported TPM2 binding, inspect the header again, and report ARMED only after verifying removal.
07
Re-enroll: create a new TPM2 binding sealed to PCR7 in the SHA-256 bank, never with an empty Clevis policy.
08
Remind: detect mkinitcpio, dracut, or update-initramfs and print the appropriate rebuild command.
§05
Technical details
systemd-cryptenroll / clevis-luks
systemd-cryptenroll
Primary backend. Uses systemd 248 or newer to enroll or remove TPM2 tokens from LUKS2 headers.
clevis-luks
Fallback backend. Enrolls TPM2 bindings with an explicit PCR7 policy in the SHA-256 bank, never an empty configuration.
PCR7 diagnostics
Stores a per-volume SHA-256 digest of PCR7 for diagnostics. A mismatch is STALE, not proof that the TPM2 token has been removed.
Initramfs reminder
Detects mkinitcpio, dracut, or update-initramfs and shows the rebuild command to run before rebooting.
Distro-agnostic discovery
Finds the root LUKS device using lsblk, findmnt, and blkid, without hardcoded paths. Supports Arch, Debian, Fedora, Void, and Alpine. Requires jq.
Single-key TUI
Press T, R, S, or Q without Enter. Color-coded status reflects the inspected LUKS2 header state.
§06
Install
Arch · Debian · Fedora · Void · Alpine
01 / Homebrew on Linux
brew tap Okazakee/travelshield
brew install travelshield