Skip to content
systemcoding.dev
Security

Check Secure Boot state with mokutil --sb-state

Read whether UEFI Secure Boot is active on a running Linux system with mokutil --sb-state, and see when shim has turned validation off.

1 min read
Summarize in AI

Secure Boot is a firmware setting, but the answer you care about is whether the machine you are on booted with it. mokutil --sb-state reads the SecureBoot variable from the firmware and prints a plain sentence.

Shell
mokutil --sb-state
Text
SecureBoot enabled

The other results are SecureBoot disabled and the odd-looking SecureBoot validation is disabled in shim, which means the firmware enforces signatures but the shim boot loader was told with mokutil --disable-validation to skip checks on what it loads. A machine in that state accepts unsigned kernels and modules, so treat it as disabled for any security review. On a system booted in legacy BIOS mode the command fails with a message that EFI variables are not supported, which is itself an answer. The data comes from /sys/firmware/efi/efivars/SecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c, whose last byte is 1 when enabled. See the mokutil manual.

Also inKernels
Taggedlinuxuefi
Share

More snippets

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.