#1010627 molly-guard: check cryptsetup passwords on shutdown

Package:
molly-guard
Source:
molly-guard
Submitter:
Thorsten Glaser
Date:
2026-11-16 17:11:01 UTC
Severity:
wishlist
Tags:
#1010627#5
Date:
2022-05-05 17:22:29 UTC
From:
To:
For all active cryptsetup/luks/whatever discs
whose key is not random (such as in

# <target name>	<source device>		<key file>	<options>
cswap           /dev/vg-tglase/lv-swap  /dev/random     cipher=aes-xts-plain64,size=256,discard,plain,swap

in /etc/crypttab), check on shutdown that the admin knows the password.

Do this independent on whether logged in via SSH or not, do it always.

Aus Gründen™. (For Reasons™.)

#1010627#10
Date:
2024-07-10 18:57:09 UTC
From:
To:
You could scan the crypttab on nōn-systemd services for devices
with “initramfs” in the last field, and/or offer an /etc/defaults/
file where one could list their crypt devices to check (the raw
names, i.e. something like /dev/sda2, LABEL=foo or UUID=foo) and
then iterate over them with:

	cryptsetup --test-passphrase luksOpen $device

#1010627#15
Date:
2026-11-16 17:08:22 UTC
From:
To:
Control: tags -1 help
thanks

Tough luck. Send a MR.

Greetings
Marc

#1010627#20
Date:
2026-11-16 17:08:22 UTC
From:
To:
Control: tags -1 help
thanks

Tough luck. Send a MR.

Greetings
Marc