Blog | G5 Cyber Security

UEFI Firmware Updates & Security

TL;DR

Yes, most UEFI motherboards are software flashable – meaning you can update their firmware (the basic instructions the computer uses to start up). This is normal and often necessary for security fixes and new features. However, it *also* means someone could potentially change that firmware maliciously. You can significantly reduce this risk with Secure Boot, BIOS passwords, and careful attention to updates.

Understanding UEFI Flashing

UEFI (Unified Extensible Firmware Interface) is the modern replacement for the older BIOS system. Updating it involves writing new code directly onto a special chip on your motherboard. There are several ways this can be done:

All these methods involve writing data to the SPI flash chip that holds the UEFI firmware.

Is Flashing Necessary?

Generally, yes! Updates often include:

Ignoring updates can leave your system vulnerable.

Preventing Malicious Flashing

You can’t completely eliminate the risk, but you can make it *much* harder for someone to tamper with your UEFI firmware. Here’s how:

1. Secure Boot

  1. Enable Secure Boot in UEFI: This is the most important step. Secure Boot verifies that only digitally signed software (including the UEFI firmware itself) can run during startup.
  2. Check Your Platform Key: Ensure your platform key hasn’t been compromised. The process for doing this varies by motherboard manufacturer; consult your manual.

To enable Secure Boot, you’ll usually need to enter the UEFI setup (often by pressing Del, F2, or another key during startup – check your motherboard documentation). Look for options related to “Boot” or “Security”.

2. BIOS Password

  1. Set a Strong BIOS Password: This prevents someone from entering the UEFI setup and changing settings without knowing the password.
  2. Admin Password vs User Password: Use an admin password to lock out changes to boot order *and* UEFI settings. A user password only controls boot order.

This is a basic security measure, but it adds another layer of protection.

3. Careful Update Practices

  1. Download Updates Directly from the Manufacturer: Never download UEFI firmware from third-party websites. Use the official support page for your motherboard model.
  2. Verify Download Integrity: Some manufacturers provide checksums (like SHA256 hashes) to verify that the downloaded file hasn’t been corrupted or tampered with. Compare the hash of the downloaded file to the one on the manufacturer’s website.
    sha256sum your_firmware_file.rom
  3. Stable Power Supply: Ensure a stable power supply during the update process. A power outage can corrupt the firmware, rendering the motherboard unusable (a ‘bricked’ board). Consider using an Uninterruptible Power Supply (UPS) if you live in an area with frequent power fluctuations.

4. BIOS/UEFI Flash Protection Features

Many motherboards have built-in features to help prevent accidental or malicious flashing:

Consult your motherboard manual to see if these features are available and how to use them.

5. TPM 2.0

While not directly preventing flashing, a Trusted Platform Module (TPM) 2.0 chip adds another layer of security by protecting cryptographic keys used for Secure Boot and other security features. Ensure it’s enabled in your UEFI setup.

Exit mobile version