UEFI Secure Boot Chain of Trust Failures: Fix Guide
In this article
Secure Boot chain-of-trust failures usually mean the firmware found a boot component whose signature or hash does not match what is enrolled in the Secure Boot databases, so it refused to hand control to the operating system. The fastest fix is to enter firmware setup (UEFI/BIOS), confirm Secure Boot is enabled, load the factory default Secure Boot keys, and then either repair the bootloader from a recovery environment or, if you dual-boot or use a custom kernel, enroll the missing key or sign the component. If the machine still will not boot, temporarily disabling Secure Boot to regain access and then repairing the boot chain is a legitimate diagnostic step, not a permanent solution.
What You'll Need
- The machine's firmware setup key (commonly F2, F10, Del, or Esc at power-on; check the on-screen prompt or the vendor manual).
- A Windows installation USB or a Linux live USB matching the OS you are repairing, created with the official media creation tool or distribution image.
- Administrator access to the installed OS, if it still boots.
- Optional: a second computer to look up the exact firmware menu wording for your model.
- Optional: a backup of important files before changing firmware settings or repairing the bootloader.
Menu labels vary slightly by firmware vendor, version and region. The steps below describe the common layout; if a label differs, look for the closest equivalent under the Security or Boot tabs.
Step-by-Step
- Identify the failure. Note the exact message. Typical Secure Boot errors mention "Security Violation", "Invalid Signature", "Access Denied", or "Secure Boot Failed". The wording tells you whether the firmware rejected the bootloader, a driver, or an option ROM.
- Enter firmware setup. Restart and press the setup key repeatedly at the vendor logo. If Windows boots, you can also use Settings > System > Recovery > Restart now under Advanced startup, then Troubleshoot > Advanced options > UEFI Firmware Settings.
- Check the Secure Boot state. In the Security or Boot tab, find Secure Boot. Confirm whether it is Enabled, Disabled, or in Setup Mode. Setup Mode means no platform keys are enrolled, which by itself causes chain-of-trust failures.
- Load factory default keys. Look for an option such as Restore Factory Keys, Reset to Setup Mode, or Install Default Secure Boot Keys. Choose the restore/default option, save, and exit. This re-enrolls the vendor's Platform Key (PK), Key Exchange Key (KEK), and the allowed signature database (db).
- Re-enable Secure Boot if the reset left it disabled, then save and exit. If the system boots normally, the failure was caused by missing or corrupted keys and you are done.
- If it still fails, boot from recovery media. Insert the Windows or Linux USB, select it from the one-time boot menu, and boot it. If the recovery media itself is rejected, that confirms the firmware database is the problem, not the installed OS.
- Repair the Windows bootloader. From Windows recovery, open Command Prompt and run
bootrec /fixboot,bootrec /rebuildbcd, andbootrec /fixmbras needed. On UEFI systems,bcdbootis often more reliable: identify the EFI system partition, assign it a letter withdiskpart, then runbcdboot C:\Windows /s S: /f UEFI(replace letters with the ones you see). - Repair the Linux bootloader. From a live USB, chroot into the installed system and reinstall GRUB for the UEFI target, for example
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB, then regenerate the configuration. The exact command depends on your distribution; use the distribution's documented recovery procedure. - Enroll custom keys only if you need them. If you dual-boot a distribution that uses its own signed shim, or you use a custom kernel, enroll the public key with the firmware's key management screen or with
mokutil --importand complete enrollment at the next boot. Only enroll keys you generated or that come from a source you trust. - Test a full restart. Shut down completely, power on, and confirm the OS loads with Secure Boot enabled. Check the firmware status screen to verify Secure Boot reports Enabled and not Setup Mode.
Common Mistakes
- Leaving Secure Boot disabled as a "fix". It restores booting but removes the protection the feature provides; treat it as a temporary diagnostic state.
- Clearing all keys without a way to restore them. On some boards, clearing the Platform Key puts the firmware in Setup Mode and it will not boot a signed OS until default keys are restored.
- Using the wrong boot mode. Installing or repairing in Legacy/CSM mode on a UEFI-only Secure Boot setup produces a chain-of-trust failure that no key reset will fix.
- Enrolling keys from an untrusted source or disabling signature checks to "make it work". That defeats the purpose and can expose the machine to boot-level malware.
- Forgetting that some firmware requires a reboot after loading default keys before Secure Boot can be re-enabled.
- Assuming a failed Windows update is the cause when the actual error is a rejected third-party driver or option ROM; check the exact message before repairing the bootloader.
Tips
- Write down the original firmware settings before changing anything, so you can return to them.
- Keep a recovery USB for your OS on hand; it makes bootloader repair far quicker.
- If you dual-boot, install each OS in UEFI mode and keep Secure Boot enabled where the distributions support it.
- Update firmware from the vendor's official support page when a known Secure Boot bug is suspected; do not use third-party firmware tools.
- After any repair, verify the boot chain by checking the firmware status screen and, on Windows, running
Confirm-SecureBootUEFIin PowerShell.
Troubleshooting
If the firmware will not let you enable Secure Boot, check that the boot mode is set to UEFI only and that no Legacy/CSM option is active. If loading default keys fails, the firmware may need a update or a full power drain: shut down, unplug power, hold the power button for several seconds, then try again.
If Windows still fails after bootloader repair, run bootrec /scanos to see whether the installation is detected, and confirm the EFI system partition is FAT32 and marked correctly. If Linux fails after reinstalling GRUB, confirm the shim and GRUB binaries are the signed versions from your distribution, not locally built unsigned copies.
If the machine boots only with Secure Boot disabled, the installed bootloader is likely unsigned or signed with a key the firmware does not trust. Reinstall the signed bootloader from official media, or enroll your own key deliberately if you control the signing.
If the firmware setup is inaccessible, check the vendor manual for the correct key and try a wired USB keyboard; some fast-boot settings skip the key prompt, so a full shutdown rather than a restart may be needed.
Frequently Asked Questions
Is it safe to disable Secure Boot permanently?
It is not recommended. Disabling it removes protection against boot-level tampering. Use it only temporarily while repairing the boot chain, then re-enable it.
Will resetting Secure Boot keys delete my files?
No. Resetting the firmware key databases does not touch the contents of your drives, but it can prevent an OS from booting until its bootloader is repaired or re-signed.
Why does Secure Boot fail only after a Windows update?
An update can replace the bootloader or a driver with a version the firmware does not trust, or expose a missing key. Repair the bootloader and confirm the firmware has default keys loaded.
Can I use Secure Boot with Linux?
Yes, many distributions ship a signed shim that works with Secure Boot. Custom kernels need to be signed or enrolled with your own key.
What does Setup Mode mean?
Setup Mode means no Platform Key is enrolled, so the firmware is not enforcing Secure Boot. Restore the factory default keys to leave Setup Mode.
Do I need to reinstall Windows to fix this?
Usually not. Resetting keys and repairing the bootloader resolves most chain-of-trust failures; a reinstall is a last resort.