Blog | G5 Cyber Security

Secure BIOS Upgrade with PGP

TL;DR

This guide shows you how to verify a BIOS update file using its PGP signature before flashing it, and discusses the challenges of full BIOS encryption. We’ll cover checking signatures on Windows and Linux, and explain why encrypting the entire BIOS is complex.

Checking the BIOS Update Signature

Before you flash a new BIOS version, always verify its authenticity using the PGP signature provided by the motherboard manufacturer. This prevents installing malicious or corrupted firmware.

1. Download Necessary Files

2. Import the Manufacturer’s Public Key

You need to tell GPG to trust the manufacturer’s key.

On Windows (using Kleopatra, part of Gpg4Win)

  1. Open Kleopatra.
  2. Go to File > Import Certificates.
  3. Select the downloaded PGP public key file and import it.

On Linux (command line)

gpg --import manufacturer_public_key.asc

Replace manufacturer_public_key.asc with the actual filename.

3. Verify the BIOS Update File

Now, check if the signature matches the update file.

On Windows (using Kleopatra)

  1. Right-click on the downloaded BIOS update file in Explorer.
  2. Select Verify Signature.
  3. Kleopatra will show you whether the signature is valid and if it matches the imported public key.

On Linux (command line)

gpg --verify bios_update.bin.sig bios_update.bin

Replace bios_update.bin.sig with the signature file and bios_update.bin with the BIOS update file.

A successful verification will output something like: Good signature from “Manufacturer Name”. If it says BAD signature, do not flash the BIOS!

Encrypting the Whole BIOS – Challenges and Considerations

While theoretically possible, fully encrypting a BIOS is extremely complex and rarely implemented due to several challenges:

Most modern motherboards offer features like Secure Boot and TPM support, which provide a degree of protection against rootkits and malware affecting the BIOS. However, full BIOS encryption is not standard.

4. What you *can* do for increased security

Exit mobile version