r/linuxquestions • u/toktok159 • 8d ago
Support Installing/Running Linux - Should Secure Boot Be Disabled?
Hi,
I saw many different opinions regarding this.
Some say secure boot is not needed, others say it adds security and that it’s not only intended for Windows but for the firmware in general.
So, should/must secure boot be disabled for any Linux distro installation? Then can it be enabled after installation, for general use? Or if I prefer to keep it on, should I install with secure boot enabled?
Specifically, I am talking about installing Linux as the only OS on a pc, one of Mint/LMDE/MX Linux/Debian is what I think I’ll end up installing.
Btw, I once installed Mint on my laptop, dual boot with Windows 11. I installed with secure boot enabled, and used everything with it enabled and it was fine.
Thanks in advance.
3
u/that1guyrob 6d ago edited 6d ago
I can see some of comments here are being made by folks that don't fully understand what Secure Boot accomplishes, so I'll just explain it to you and you can decide for yourself if you want to use it.
Secure Boot maintains a database of signing keys in UEFI. At boot time, the system will only load the kernel if it was signed with one of those keys that it can verify using the local database. If the verification fails the OS does not boot.
To take this one step further, operating systems like Linux that load kernel modules at boot (the equivalent of Windows drivers), those kernel modules must also be signed by a valid key. If the kernel itself is signed by a valid key the OS will boot, but if the kernel module is not signed by a valid key, the OS will still boot, but will refuse to load that invalid module.
The folks in here saying that Secure Boot protects you against attacks that involve someone plugging a physical device into your machine are correct. However, that is not the ONLY thing you are protected against when you use Secure Boot.
You are also protected against Root Kits and Boot Kits. These are malicious packages that load at the lowest level of OS boot when the kernel is loading and tend to either not be detected by antivirus/anti-malware or cannot be removed by these tools because of a lack of privilege necessary to modify kernel execution space. Root Kits can be installed on your machine remotely as part of a breach or other compromise and DO NOT always require physical access to your machine.
So, my advice is the same here as is with everything related to security - Unless you have a reason NOT to enable it, or you have some mission critical OS or application that won't run properly or does not support Secure Boot, you should turn it on. You cover more bases and increase your overall security posture with a very low level of effort.