Skip to content

eBPF-based security platform

docs: require the kernel to refuse unsigned modules

Daniel Borkmann30c4ef4a9bba
diff --git a/Documentation/requirements.rst b/Documentation/requirements.rst
index 238ea11f..831f4bca 100644
--- a/Documentation/requirements.rst
+++ b/Documentation/requirements.rst
@@ -124,6 +124,12 @@ refuses every kexec load (``Kexec``, threat T6 of the threat model),
since a kexec would carry this boot's TPM state under a kernel of
root's choosing.
+``CONFIG_MODULE_SIG_FORCE``, or ``CONFIG_SECURITY_LOCKDOWN_LSM`` in
+integrity mode, on a kernel with ``CONFIG_MODULES``: an unsigned module
+root loads replaces the kernel under shirudo, and nothing in shirudo
+refuses or measures it. The test kernel does without, as its own
+modules are unsigned.
+
Image-mode requirements
~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/Documentation/threat-model.rst b/Documentation/threat-model.rst
index ad8c5a48..36b5d2c3 100644
--- a/Documentation/threat-model.rst
+++ b/Documentation/threat-model.rst
@@ -599,7 +599,13 @@ bound and close the eviction gap (residual risk 15).
---------------
- Compromise of the operator host or the signing key.
-- A malicious or buggy kernel, verifier, TPM or hardware.
+- A malicious or buggy kernel, verifier, TPM or hardware. A kernel
+ that loads an unsigned module hands root the kernel itself; the
+ kernel's own policy, ``CONFIG_MODULE_SIG_FORCE`` or lockdown in
+ integrity mode, has to refuse it. shirudo stands in for that policy
+ only where it leaves a hole it cannot close, kexec of a signed
+ kernel with an initrd of root's (T6), and ``status
+ --include-modules`` lists what is loaded for the operator to compare.
- Denial of service: removing the binary, cutting the network, filling
the disk. shirudo fails closed and loud; it does not fail over.
- Correctness or safety of an upatch an authorised signer built.