Sub topic 15
Firmware security: TPM, Secure Boot, and passwords
This chapter assumes you know what BIOS/UEFI firmware is, how POST and boot order work, and how to open the firmware setup screen. It covers the three firmware-level protections the A+ Core 1 exam expects you to recognize: the Trusted Platform Module (TPM), Secure Boot, and firmware passwords. It also covers the physical and software-visible settings that go with them.
Why firmware needs protection
Firmware runs before the operating system (OS). Anything that changes it, or that loads ahead of the OS, runs with full control of the machine and is invisible to antivirus software running inside Windows. Malware that hides in the boot process is called a rootkit or bootkit. Firmware security aims to answer three questions:
- Is the code that starts the computer the code the vendor intended? (Secure Boot)
- Where can keys and measurements be stored so software cannot simply read them? (TPM)
- Who is allowed to change firmware settings or start the machine? (passwords)
Each control addresses a different threat. None replaces the others.
Trusted Platform Module (TPM)
A TPM is a small security chip, or a firmware feature built into the CPU or chipset, that generates and stores cryptographic keys and performs cryptographic operations in hardware. Software can ask the TPM to use a key, but it cannot extract the key.
TPM forms
| Form | Description | Notes |
|---|---|---|
| Discrete TPM (dTPM) | A separate chip on the motherboard, often attached to a TPM header | Strongest physical isolation. Some boards have an empty header for an add-on module. |
| Firmware TPM (fTPM) or PTT | TPM function run in a protected area of the CPU or chipset | Intel calls it Platform Trust Technology (PTT). AMD calls it fTPM. Needs no extra chip. |
| Software TPM | Emulated by the hypervisor or OS | Used by virtual machines. Offers no hardware protection. |
What the TPM does
- Key storage. Keys are generated inside the chip and never leave it in readable form.
- Platform measurement. During boot, the firmware records hashes of each boot component into TPM registers called Platform Configuration Registers (PCRs). If a component changes, the hashes change.
- Sealing. A key can be released only when the PCR values match what they were when the key was stored.
- Disk encryption support. Windows BitLocker can store its volume key in the TPM. The drive then unlocks automatically on the original, unmodified machine. If someone moves the drive to another computer, or changes the boot configuration, the TPM refuses to release the key.
TPM versions
TPM 1.2 and TPM 2.0 are the versions you will meet. TPM 2.0 supports newer algorithms and is the version Windows 11 requires. A machine with only TPM 1.2 does not meet Windows 11 requirements. Some machines have a TPM that is disabled in firmware, so check the settings before concluding the hardware is missing.
Checking and enabling the TPM
In firmware setup, look under Security or Advanced for entries named TPM Device, Intel PTT, or AMD fTPM. Set it to enabled and save. In Windows, you can inspect TPM status with PowerShell (run as administrator):
Get-Tpm
Get-CimInstance -Namespace "root\cimv2\security\microsofttpm" -ClassName Win32_Tpm | Select-Object SpecVersion, IsEnabled_InitialValueYou can also run tpm.msc to open the TPM Management console. It shows the status and the specification version.
Clearing the TPM
Clearing the TPM deletes its stored keys. Anything protected by those keys becomes unrecoverable. This includes a BitLocker volume if you do not have the recovery key.
Secure Boot
Secure Boot is a UEFI feature that checks the digital signature of each boot component before it runs. It applies to UEFI firmware only, not to legacy BIOS.
How it works
UEFI firmware stores several databases of keys and hashes in non-volatile memory:
- Platform Key (PK): the top-level key that controls who can change the other databases. It is owned by the platform owner, usually the manufacturer.
- Key Exchange Key (KEK): keys allowed to update the signature databases.
- Allowed database (db): certificates and hashes of software that is trusted to boot.
- Forbidden database (dbx): signatures of software that must not boot, even if it was once signed.
At boot, the firmware checks the bootloader's signature against db and dbx. If the check passes, the bootloader runs, and it in turn verifies the OS kernel. If it fails, the firmware refuses to load it and shows a security violation message.
Secure Boot and the TPM together
Secure Boot prevents untrusted code from loading. The TPM's measured boot records what did load. Windows 11 requires UEFI with Secure Boot capability and TPM 2.0.
Common Secure Boot problems
- An OS will not boot after you enable Secure Boot. The installed OS or its bootloader may be unsigned, or the disk may use legacy (MBR/CSM) boot. Secure Boot needs UEFI boot mode, and Windows installs for UEFI use a GPT disk.
- Secure Boot option is grayed out. Many boards require you to disable CSM (Compatibility Support Module) first, or to set the OS type to "Windows UEFI mode."
- A Linux live USB or older tool will not start. Its bootloader is not signed by a trusted key. Use a signed distribution, or disable Secure Boot temporarily.
- An old or unsupported graphics card shows no display. Cards without a UEFI-compatible video firmware (GOP) can fail under UEFI-only mode. This is rare on modern hardware.
Disabling Secure Boot is a legitimate troubleshooting step, but turn it back on afterward. You can check its state in Windows:
Confirm-SecureBootUEFIThe command returns True when Secure Boot is on, False when it is off, and an error on a legacy BIOS system.
Firmware passwords
Firmware setup normally offers up to three kinds of password.
| Password | What it protects | Typical use |
|---|---|---|
| Supervisor (administrator) password | Entering and changing firmware setup | IT staff lock the settings so users cannot change boot order or disable Secure Boot |
| User password | Entering setup with limited rights, on some boards | Lets a user adjust a few settings |
| Power-on (boot) password | Starting the computer at all | Stops an unauthorized person from reaching the OS login screen |
A supervisor password stops someone from booting a USB drive by changing the boot order. A power-on password stops them from starting the machine. Neither password encrypts the drive. A thief can still remove the drive and read it on another computer unless the drive is encrypted, for example with BitLocker.
Forgotten passwords
If a user forgets a firmware password, options depend on the system:
- Business laptops often use a vendor or IT recovery process.
- Desktops usually have a motherboard jumper, labeled something like CLR_CMOS or CLRPWD, or a battery that can be removed. With the computer unplugged, moving the jumper or removing the CMOS battery for a few minutes resets settings, including passwords, to defaults.
- Many laptops store the password in a way that cannot be cleared by removing the battery. These need the manufacturer's help.
Resetting CMOS also returns every setting to default. That can turn off the TPM, change SATA mode (AHCI to RAID or IDE), clear the boot order, and reset virtualization settings. After a reset, re-check each setting. If the SATA mode changed, Windows may fail to boot until you set it back.
Other physical and firmware controls
- Chassis intrusion detection. A switch or header on the motherboard records when the case was opened. Firmware can log the event and show a warning at the next boot.
- Boot device restrictions. Disabling USB boot or network (PXE) boot in firmware prevents booting from removable media.
- Firmware updates (flashing). Vendors release updates that fix security flaws. A failed update can leave the board unable to start, so use a stable power source, ideally a laptop on battery plus charger or a desktop on a UPS, and follow the vendor's instructions exactly.
- Hardware security keys and TPM headers. Some boards expose a header for add-on TPM modules. The module must match the header's pin layout and the board's model.
Putting it together: a hardening checklist
# Linux checks that mirror the Windows commands above
ls /sys/firmware/efi # exists only if booted in UEFI mode
mokutil --sb-state # reports "SecureBoot enabled" or "disabled"
ls /sys/class/tpm/ # lists tpm0 if a TPM is present
cat /sys/class/tpm/tpm0/tpm_version_major # prints 1 or 2For a typical business workstation, a sensible baseline is:
- UEFI boot mode with Secure Boot enabled.
- TPM 2.0 enabled.
- Supervisor password set and stored in the organization's password manager.
- Boot order limited to the internal drive, with USB and network boot disabled unless needed.
- Drive encryption (BitLocker) enabled with the recovery key escrowed.
Exercise
A technician replaces a failed motherboard in a laptop that uses BitLocker with a TPM. After the swap, the laptop asks for a BitLocker recovery key and the technician does not have it. Explain why this happens and what should have been done first.
Show answer
The TPM is tied to the board. After the swap, the new TPM (or the cleared one) has different keys and measurements, so it will not release the volume key, and BitLocker falls back to the recovery key. Before the swap, the technician should have confirmed the recovery key was saved outside the laptop, for example in the organization's directory or a printed copy, or suspended BitLocker protection first.
Exercise
A user enables Secure Boot on an older PC and Windows no longer starts. The disk was set up with MBR partitioning and legacy boot. Give two ways to fix it.
Show answer
Disable Secure Boot again and boot as before, or convert the disk from MBR to GPT (for example with the Windows mbr2gpt tool) and switch the firmware to UEFI mode with CSM disabled, then re-enable Secure Boot. Back up data before converting.
Exercise
A company sets a supervisor password on every desktop and a thief steals one. Does the password stop the thief from reading the data on the drive? Why or why not?
Show answer
No. The supervisor password only blocks changes to firmware settings. The thief can remove the drive and attach it to another computer. Only drive encryption such as BitLocker protects the data itself.