Secure boot, encryption and secrets
Quick answer
Secure Boot, disk encryption and secret management protect different boundaries. Secure Boot validates authorized boot components; disk encryption protects data at rest while locked; secret management controls access to credentials.
Boot integrity, storage confidentiality and access to runtime secrets protect different stages. A disk that is encrypted at rest can expose data after authorized unlocking. Test recovery of each protection separately with disposable keys and keep actual recovery credentials out of lessons.
Prepare the practice environment
Run python3 lab-fixtures/security/setup.py from the extracted root as an ordinary user. Enter the printed fresh private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. Run each snippet in a separate Bash process, not your interactive shell. Only private files are used; optional examples require an authorized snapshot VM. Do not modify system services or security policy. Review the lab guide.
Prerequisites
Review: Audit, integrity and incident response.
How it works
On supported UEFI systems Secure Boot uses trusted signing policy to constrain boot execution; actual chain and kernel/module enforcement vary. mokutil --sb-state inspects Secure Boot state where supported, not proof of complete runtime integrity. LUKS protects block data when locked, but authorized applications on an unlocked filesystem can read it. Recovery keys and backups need independent protection. Restrict credential access, avoid secrets in command arguments, logs or version control, prefer a supported secret store or restricted credential file, and rotate exposed credentials through approved procedures. File mode 0600 is an ordinary permission baseline, not encryption or protection against privileged access. The fixture contains no real credential.
Try the examples
The mode is owner read/write only. Never print real secret contents to demonstrate access.
Expected stdout:
600The simplified mapping describes separate protection goals, not verified machine state.
Expected stdout:
boot=authorized-componentsstorage=locked-datasecret=restricted-accessOptional inspection on a suitable UEFI VM with mokutil installed. Output depends on firmware and variable access. Do not change keys or firmware settings.
Manual example; not executed locally. Follow its stated environment restrictions.
Common mistakes
Do not assume Secure Boot encrypts files or that a locked disk protects data after unlocking. Never use real credentials in examples.
Practice
For a fictional laptop theft and a separate application credential leak, identify the relevant protection boundaries and a recovery plan without exposing secrets.
Related references
Study: mokutil, cryptsetup. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Secure boot, encryption and secrets — Knowledge Check
Apply defensive security concepts to synthetic fixtures and VM-only scenarios.
What is Secure Boot primarily intended to constrain?
When does locked disk encryption protect data at rest?
Does chmod 600 encrypt a file?
Where should real credentials be kept?