Create your own
Lesson illustration

Proprietary Firmware Security Risks

Hello! Welcome back to your course on building a secure ThinkPad.

In our last lesson, we unpacked the boot process, tracing the journey from power-on to the operating system launch. We saw how the modern UEFI firmware acts as a complex, multi-stage "mini-OS" to initialize the hardware, and how this entire process relies on a "chain of trust" starting from a hardware root.

This lesson builds directly on that foundation. Now that we understand what the firmware does, we will explore why the proprietary, closed-source nature of the standard firmware on your x230 represents a significant security risk. This will establish the core motivation for our project of replacing it.

Our learning outcome for this lesson is to describe the security risks associated with proprietary, closed-source firmware.

This lesson should take approximately 60 minutes to complete.


1. The Core Problem: Trusting the "Black Box"

In our first module, we established that a fundamental principle of security is to minimize the Trusted Computing Base (TCB)—the set of all hardware, firmware, and software components that are critical to the system's security. Every component in the TCB is a potential attack surface, and if compromised, can undermine the entire system.

The UEFI firmware is, by definition, a core part of the TCB. It runs with the highest level of privilege and establishes the foundation upon which the entire operating system is built. The problem is that on virtually all consumer and enterprise computers, this foundational component is proprietary and closed-source. It's a "black box." We can see its inputs and outputs, but we cannot inspect its internal workings.

This forces us to place "implicit trust" in the vendors—the device manufacturer (e.g., Lenovo), the firmware developer (e.g., Phoenix, AMI), and the chipset maker (e.g., Intel). We trust that their code is written securely, contains no unintentional vulnerabilities, and has no intentional backdoors. From a security engineering perspective, relying on trust is not a robust strategy.

The following article from Facebook's (now Meta's) engineering team discusses this very issue.

As the author notes, if the code that bootstraps your system's trust is itself untrustworthy or, more accurately, unverifiable, then the security of everything built on top of it is questionable.

2. Anatomy of a Firmware Risk

The risk of a closed-source "black box" isn't just philosophical. It has concrete, practical implications that make firmware a prime target for sophisticated adversaries. Let's break down the specific dangers.

As the article highlights, the key dangers are:

  1. Extreme Privilege & Persistence: A firmware-level implant (a "rootkit") runs before your operating system even starts. It can survive a complete OS reinstallation and a hard drive replacement. It has a level of persistence that is nearly impossible to achieve with traditional software malware.

  2. Difficult Detection: Because firmware operates "below the OS layer," security tools like antivirus or endpoint detection systems are typically blind to it. A compromised firmware can manipulate the OS to hide its own presence, a concept you'll be familiar with from your study of rootkits.

  3. Opacity and Lack of Scrutiny: As the article states, "BMC firmware is manufacturer-specific, making security analysis difficult." This applies to all proprietary firmware. Without source code, security researchers can't easily audit the code for flaws. They must rely on complex and time-consuming binary analysis and reverse engineering. This means vulnerabilities can remain undiscovered and unpatched for years.

The "Black Box" Within the "Black Box": System Management Mode (SMM)

The privilege level of firmware code is even more extreme than it first appears. Modern CPUs have a special execution mode called System Management Mode (SMM). SMM is a "hyper-privileged" mode, even more powerful than the OS kernel (Ring 0). Code running in SMM can pause the entire system, inspect or modify all of system memory, and is completely isolated and invisible to the running OS. UEFI firmware uses SMM extensively for tasks like power management and emulating legacy hardware.

An attacker who can execute code in SMM has achieved total control of the machine, and the OS will have no way of knowing.

This combination of persistence, stealth, and extreme privilege makes a firmware vulnerability the "holy grail" for certain classes of attackers.

3. Case Study: A Real-World UEFI Vulnerability

These risks are not merely theoretical. Vulnerabilities in proprietary UEFI firmware are discovered regularly, and they often affect millions of devices due to the complex supply chain.

The following video discusses a recent, widespread vulnerability nicknamed "UEFIcanhazbufferoverflow." It's a perfect case study that illustrates the concepts we've just covered.

This case is a powerful illustration of the supply chain problem:

  • The Chip: An Intel processor.
  • The Firmware Vendor: Phoenix Technologies writes the SecureCore UEFI firmware.
  • The Bug: A buffer overflow vulnerability in the TPM configuration module within Phoenix's code.
  • The OEM: Lenovo integrates this firmware into their ThinkPads.
  • The Result: Millions of PCs from multiple manufacturers using different Intel chips are vulnerable due to a single bug in a single proprietary component.

4. Implications for Your Threat Model

In our first lesson, we discussed defining an adversary. For an adversary with the ability to gain temporary physical access to your device—often called an "Evil Maid" attack—firmware is the perfect target. This is a key concern for journalists, activists, and anyone whose work might attract the attention of state-level actors.

  • Action: Continue watching the video to see how these vulnerabilities are exploited in practice, particularly in scenarios involving border crossings or other situations where you might lose physical control of your device.


    (Viewing time: ~2 minutes)

As the video explains, an agent at a border could use a known (or unknown) UEFI exploit to install a persistent implant in minutes. This implant would bypass all your other security measures, including Full Disk Encryption and your choice of a secure OS like Qubes. This directly threatens your goal of achieving strong anonymity and security.

5. The Impossibility of Verification

This brings us to the final, critical point. Even if your device has no known vulnerabilities, with closed-source firmware, how can you prove it hasn't been tampered with?

If an adversary modifies the firmware on the flash chip, how would you detect it? There is no "source of truth" to compare it against. You cannot download the original source code, compile it yourself, and verify that the binary on your chip matches the expected output. You are left, once again, with trust.

This is perhaps the most compelling argument for open-source firmware. The following clip from a DEF CON talk on firmware hacking makes this point succinctly.

  • Action: Watch this short segment on the challenge of proving firmware integrity.


    (Viewing time: ~1.5 minutes)

This question—"Can you prove that the firmware has not been modified?"—is one we cannot satisfactorily answer with proprietary firmware. Our project to install Coreboot is, at its heart, an attempt to build a system where we can answer it.


6. Conclusion

In this lesson, we've moved from the what of firmware to the why of its risks. We've seen that relying on proprietary, closed-source firmware at the base of our system introduces unacceptable security liabilities.

Key Takeaways:

  • The "Black Box" Problem: Closed-source firmware is a massive, unauditable component in the Trusted Computing Base, forcing reliance on "implicit trust" in vendors.
  • Extreme Risk Profile: Firmware exploits offer the highest levels of privilege (e.g., via SMM), persistence across OS reinstalls, and are extremely difficult for OS-level security software to detect.
  • Complex Supply Chain: The firmware on a typical laptop is a patchwork of code from multiple vendors, increasing the attack surface and complicating patch management, as seen in the "UEFIcanhazbufferoverflow" case.
  • Lack of Verifiability: It is practically impossible for an end-user to verify that the proprietary firmware on their machine is authentic and unmodified.

Preview of the Next Lesson:

The risks we've discussed so far pertain to the main UEFI firmware that boots your computer. However, on modern Intel systems, there is another, even more opaque and powerful computer running on your motherboard: the Intel Management Engine (ME). In the next lesson, we will define what the ME is, explain its function as an autonomous subsystem, and begin to analyze why it is considered by many to be one of the most significant security and privacy risks in modern computing.

Can't find a good explanation? Sign up and we'll make it for you

Sign up