TravelShield
TPM2 LUKS travel mode manager. Toggles TPM auto-unlock on LUKS-encrypted root filesystems so your passphrase is required at boot while traveling. 🛡️

TPM2 LUKS travel mode manager. Toggles TPM auto-unlock on LUKS-encrypted root filesystems so your passphrase is required at boot while traveling. 🛡️

Ever had that TPM2 auto-unlock convenience suddenly feel like a security risk when you're about to travel? Crossing a border, leaving your laptop in a hotel room, attending a conference. That same hands-free boot turns into a liability the moment you step out the door. I wanted a quick way to toggle it off and back on without remembering complex commands. So I built TravelShield, a simple bash script that does one thing.
One keystroke to arm or disarm. When it's armed, the TPM slot gets wiped and only your LUKS passphrase can open the disk. When you're back home, one tap and auto-unlock is restored. No Enter key needed, no flags to remember, just a retro terminal menu that tells you exactly what's going on. It works on any distro too. 🛡️
systemd-cryptenroll and clevis-lukssystemd and clevis backendsread -n 1 for instant feedbacklsblk, findmnt, and blkid/var/lib/travelshield/pcr7.sha256I built this because I actually needed it for my own laptop. It's released under The Unlicense because security tools should be free and open. The retro terminal style keeps things simple and readable. State is a plain text file you can inspect whenever you want.
brew tap Okazakee/travelshield
brew install travelshield
sudo travelshieldOr grab it directly:
curl -O https://raw.githubusercontent.com/Okazakee/homebrew-travelshield/main/travelshield.sh
chmod +x travelshield.sh
sudo ./travelshield.sh