Anti Evil Maid support for Arch Linux's mkinitcpio
- Shell 100%
|
|
||
|---|---|---|
| 69-anti-evil-maid.rules | ||
| hook_antievilmaid | ||
| hosts | ||
| install_antievilmaid | ||
| passwd | ||
| README.md | ||
| shadow | ||
mkinitcpio-antievilmaid
This mkinitcpio hook allows for Anti Evil Maid support for devices with a TPM on Arch Linux and other distributions that build their initramfs using mkinitcpio. It is essentially a port of the Dracut module by Invisible Things Lab to mkinitcpio.
Prerequisites
- mkinitcpio
- TrouSerS TPM stack
Usage
- Prepare a USB stick using the Anti Evil Maid utility.
- Add the
antievilmaidhook to your /etc/mkinitcpio.conf. It needs to be placed before theencrypthook to be effective, and you should also make sure that you have theudevandusbhooks before it. For example,
HOOKS="base consolefont keymap udev autodetect block antievilmaid encrypt lvm2 filesystems keyboard fsck"
- Reboot, mount your USB stick at /boot, and then seal a secret passphrase. This process will need to be repeated each time you do a kernel upgrade.
echo "This is my secret passphrase." | tpm_sealdata -z -o /boot/antievilmaid/sealed_secret.blob --pcr 0 --pcr 1 --pcr 2 --pcr 3 --pcr 4 --pcr 8 --pcr 9 --pcr 12 --pcr 14