Course contentsShow
← Security
Lesson 1465 of 3,05229. Operating System Security - HardeningFree lesson

UEFI Hardening Best Practices

Setting firmware passwords, disabling legacy boot, restricting boot devices, and monitoring firmware integrity.

UEFI Hardening Best Practices

What you'll learn: How to secure your system's firmware layer through password protection, boot restrictions, and integrity monitoring to prevent pre-OS attacks.

Why Firmware Security Matters

Your UEFI firmware is the foundation of your system's security—it loads before the operating system and has complete hardware control. If compromised, an attacker can bypass all OS-level security measures. Think of UEFI as the doorman to your building: if the doorman is corrupt, no matter how secure your apartment is, the entire building is at risk.

Core Hardening Practices

Set a Strong Firmware Password

Configure a UEFI/BIOS administrator password to prevent unauthorized access to firmware settings. This password should be separate from your OS credentials and must be required to:

  • Access UEFI setup screens
  • Change boot order or settings
  • Disable Secure Boot

Disable Legacy Boot Support

Legacy boot (BIOS/CSM mode) bypasses Secure Boot protections. Always use UEFI-native boot only to ensure cryptographic verification of your boot chain. Legacy mode is like leaving a side door unlocked—it defeats your security upgrades.

Restrict Boot Devices

Explicitly allow only necessary boot devices (typically your primary drive) and disable booting from:

  • External USB drives
  • Network/PXE boot (unless required)
  • Optical drives

This prevents attackers from booting malicious operating systems from external media.

Monitor Firmware Integrity

Combine measured boot with TPM integration to detect unauthorized firmware modifications. Regularly:

  • Review TPM PCR values for unexpected changes
  • Enable UEFI firmware update notifications
  • Use vendor-provided firmware integrity checking tools
  • Audit firmware event logs

Key Takeaway: UEFI hardening creates a security foundation by setting firmware passwords, enforcing UEFI-only boot, restricting boot sources, and monitoring firmware integrity—protecting against attacks that target the pre-OS environment where OS security controls don't yet exist.