2 Commits

Author SHA256 Message Date
ae321b3d6d V8.13.408.2025.11.13
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m3s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
2025-11-13 07:16:42 +01:00
5f904232e8 V8.13.408.2025.11.13
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
2025-11-13 07:14:26 +01:00
2 changed files with 19 additions and 15 deletions

View File

@@ -71,6 +71,8 @@ declare -ga shortcuts=(
"swget: TLS1.3 wget"
"sysdr: systemctl daemon-reload"
"syses: systemctl edit"
"sysliboot: list-unit-files --state=enabled --type=service"
"syslirun: list-units --type=service --state=running"
"sysp: load 99_local.hardened"
"sysrl: systemctl reload"
"sysrs: systemctl restart'"

View File

@@ -79,11 +79,12 @@ end
# 6. LUKS/dm-integrity Layering
```mermaid
graph TD
A[Plain device (rootfs.crypt)] --> B[dm-integrity (HMAC-SHA-512, 4 KiB)]
B --> C[dm-crypt (AES-XTS-512)]
C --> D[Mapped device /dev/mapper/crypt_liveiso]
D --> E[SquashFS mount /run/live/rootfs]
flowchart TD;
%%
A[Plain device (/live/rootfs.crypt)] --> B[dm-integrity (HMAC-SHA-512, 4 KiB)];
B --> C[dm-crypt (AES-XTS-512)];
C --> D[Mapped device /dev/mapper/crypt_liveiso];
D --> E[SquashFS mount /run/live/rootfs];
```
**Note:** Encrypt-then-MAC at the block layer (functionally AEAD-equivalent). Any manipulation ⇒ hard I/O error.
@@ -185,16 +186,17 @@ dmsetup table --showkeys CHILD # expect integrity hmac sha512 4096
# 13. Diagram: Trust Chain & Verification Paths
```mermaid
graph TD
A[Build time: pin EXP_FPR + embed ISO key] --> B[ISO artifacts: sha512sum.txt + .sig]
B --> C[Boot early (0030): gpgv verify + FPR pin]
C -->|OK| D[LUKS open (0025)]
D --> E[Mount RootFS]
E --> F[Boot late (0045): gpgv verify + FPR pin (root key)]
F --> G[dmsetup health: crypt(XTS) over integrity(HMAC-SHA-512)]
C -- FAIL --> X[Abort]
F -- FAIL --> X
G -- FAIL --> X
flowchart TD;
%%
A[Build time: pin EXP_FPR + embed ISO key] --> B[ISO artifacts: sha512sum.txt + .sig];
B --> C[Boot early (0030): gpgv verify + FPR pin];
C -->|OK| D[LUKS open (0025)];
D --> E[Mount RootFS];
E --> F[Boot late (0045): gpgv verify + FPR pin (root key)];
F --> G[dmsetup health: crypt(XTS) over integrity(HMAC-SHA-512)];
C -- FAIL --> X[Abort];
F -- FAIL --> X;
G -- FAIL --> X;
```
# 14. Closing Remark