Riley Dickens

Category
Security News
Updated
Nov 13, 2021
Tag
–
Focus
Secure Boot

5 min read · 8 sections

Explore More By Author

Why You Need To Enable Secure Boot In Your PC Right Now?

Protecting your online environment has never been more important. The shift to remote work expanded the attack surface for organizations, exposing IoT devices and personal computers to threats that previously required physical network access. Secure Boot is a UEFI firmware security feature that prevents unauthorized bootloaders and operating system components from loading during device startup, effectively stopping boot-level malware that would otherwise persist invisibly below the operating system layer where traditional security tools cannot detect it. Much like code signing, Secure Boot verifies that the software signatures and keys used during the boot process are all valid and have not been tampered with. The recommended action: enable Secure Boot on every device in your organization immediately, ensure that the private keys used in the Secure Boot signing process are stored in FIPS-validated Hardware Security Modules (HSMs), and deploy complementary controls including IPS, IDS, and a PKI for device authentication. For the code signing context, see CodeSign Secure. For the HSM protection context, see HSM-as-a-Service.

Quick Answer: What Is Secure Boot and Why Enable It?

Secure Boot is a UEFI standard that authenticates the digital signature of each boot component, including the bootloader and operating system kernel, against manufacturer-embedded public keys before allowing the boot process to continue. If any component’s signature does not match the expected value, Secure Boot halts the boot process. This prevents bootkits and rootkits from loading before the operating system, which is the attack category that traditional OS-level security tools cannot detect or remove. The primary reason to enable Secure Boot immediately is that boot-level malware that installs before OS load is invisible to all antivirus, EDR, and endpoint security software; it persists across OS reinstalls; and it can spread malware silently to every user of the affected system.

What Is Secure Boot Exactly?

Secure Boot is a security standard that works by authenticating the code and boot images used by the operating system against manufacturer-embedded trusted credentials before allowing the system to boot. The hardware is pre-configured with a set of trusted public keys. This ensures that boot images and OS code have not been tampered with or changed by threat actors attempting to use malware to infect the device or network. This makes enabling Secure Boot on all network devices significant, as it thwarts a class of malware attacks that would otherwise be undetectable by OS-level security tools.

When malware attacks target the boot process, they typically modify operating system code or install a new bootloader so that when the system is rebooted, the malware loads before the OS and spreads throughout the device. Enabling Secure Boot ensures this cannot occur: the modified bootloader will not have a valid signature matching the hardware-embedded public key, and Secure Boot will stop the boot process. If malware succeeds in loading because Secure Boot was not enabled, an organization could face severe consequences including loss of millions of dollars, data exfiltration, and persistent unauthorized access that survives every attempted remediation that operates at the OS level.

How Does Secure Boot Work?

The Secure Boot process is sequential, with each stage verifying the next before allowing execution to proceed. The process uses code signing and asymmetric encryption at every stage.

Asymmetric encryption works by generating two mathematically linked keys: a private key and a public key. The private key is kept secret by the manufacturer or key owner; the public key is embedded in the device firmware and known to anyone. Software signed with the private key can be verified using the corresponding public key. This confirms that the software was created by the key owner and has not been modified since signing.

  1. Step 1: CPU Internal Bootloader verifies the bootloader. When a Secure Boot-enabled device is turned on, the first step is that the CPU’s internal bootloader compares the digital signature of the bootloader against the manufacturer’s public key embedded in the device firmware. If the signature is valid, the bootloader is allowed to execute. If not, the boot process stops.
  2. Step 2: Bootloader verifies the Operating System. Using the same asymmetric verification process, the bootloader checks the digital signature of the OS kernel and critical OS components against the embedded public key. If the OS kernel matches the expected signature, the OS is allowed to load.
  3. Step 3: OS verifies boot drivers and applications. The OS kernel verifies signatures of drivers and applications that are loaded at boot time. Once all components pass verification, the device boots normally and is available for use.

If, at any step in this process, the bootloader, OS kernel, or any boot-time application fails to match the embedded public key, the boot process stops and the device displays an error. This is the Secure Boot protection in action: the malware-modified component cannot match the expected signature and is blocked from executing.

Tailored Encryption Services

We assess, strategize & implement encryption strategies and solutions.

Learn More

Roadblocks for Secure Boot: Key Protection and Private Key Compromise

Since Secure Boot uses the same cryptographic mechanisms as code signing, it faces many of the same challenges. The most critical issue is protecting the asymmetric signing keys used in the Secure Boot process. The public key is embedded in the device firmware; a digital certificate generated from that public key is signed by the corresponding private key, creating the binding that allows Secure Boot to verify legitimacy. Protecting the private key is the first and most important challenge any organization faces when managing the Secure Boot trust chain at scale.

If the private key used to sign the digital certificate is compromised by a malicious threat actor, they can use that certificate to sign malicious bootloaders and OS components that will pass the Secure Boot verification process, defeating the entire protection model. The SolarWinds attack demonstrated the real-world consequences of a compromised signing key in a supply chain context; a compromised Secure Boot signing key has equivalent consequences at the device level.

Protecting these keys properly requires hardware-based key storage. Software-based key storage is insufficient: keys stored in files or databases can be read, copied, or extracted by anyone with sufficient access to the file system or memory. Hardware Security Modules (HSMs) protect keys with hardware-enforced tamper-evidence and tamper-proofing. Even an attacker with physical access to the server hosting the HSM cannot extract the private key material. For scalable HSM deployment, see HSM-as-a-Service.

Secure Boot: Decision Table by Scenario

ScenarioRecommended ActionKey Risk if Not Addressed
Device boots without Secure Boot enabledEnable Secure Boot in UEFI firmware settings immediatelyBoot-level malware can load before OS and persist through OS reinstalls, invisible to all OS-level security tools
Secure Boot enabled but signing keys stored in softwareMigrate signing keys to FIPS 140-2 Level 3 HSMsKey extraction by attacker with host system access defeats the entire Secure Boot trust model
Secure Boot enabled but no monitoring of boot integrityImplement IDS/IPS with boot anomaly detectionCompromised boot components may not be detected until the system displays symptoms
Secure Boot enabled but no complementary encryption policyDeploy organization-wide encryption standards for data at rest and in transitData may be encrypted by ransomware or exfiltrated even if the boot process is protected
Devices on network that cannot run Secure Boot (legacy hardware)Isolate legacy devices on a separate network segment; prioritize replacementLegacy devices are potential entry points for boot-level malware that can then spread to the rest of the network

Complementary Controls for Secure Boot Environments

Other ways to protect data alongside Secure Boot include setting strong encryption policies within your organization. These policies provide uniformity across teams, ensuring consistent protection methods regardless of which team or device is handling sensitive data. Additional controls include:

  • Implementing Intrusion Protection Systems (IPS) and Intrusion Detection Systems (IDS) to monitor and block anomalous activity that might indicate a boot-level compromise attempt
  • Securing code at the source using code signing for all software distributed to devices in your network
  • Deploying PKI for device authentication so that only devices with valid certificates can access network resources, limiting lateral movement after any initial compromise. See PKI Services
  • Using Encryption Consulting’s assessment services to identify gaps in your Secure Boot implementation, private key protection practices, and complementary security controls

Conclusion

Enabling Secure Boot on all devices in your organization is a foundational step in defending your network from malicious threat actors who target the boot process. Secure Boot provides a built-in method of verifying that your OS and bootloader have not been modified with malicious code, protecting against the most persistent and invisible category of malware attacks. However, Secure Boot alone is not sufficient: protecting the signing keys in HSMs, deploying complementary controls like IPS and IDS, implementing organization-wide encryption policies, and maintaining PKI-based device authentication work together to provide comprehensive device security. To learn more about how Encryption Consulting can help, visit preview.encryptionconsulting.com/.

Frequently Asked Questions

Every Layer of Cryptography.
One Team to Secure It.

See how Encryption Consulting secures what your enterprise depends on, from assessment through deployment.

Request a Demo