UEFI: The Handoff Before Your Operating System Starts
UEFI, short for Unified Extensible Firmware Interface, defines how a computer’s firmware works with operating-system software. Firmware is the device-level software involved in getting the machine ready. Booting starts the operating system, the software that runs your applications.
Before a desktop appears, startup software needs a way to find what to run and use the machine's resources. UEFI supplies agreed services and information for that cooperation. It's a specification, not one particular manufacturer's setup screen.
BIOS or UEFI: What Starts Your Computer?
From firmware to the operating system
During startup, firmware prepares an environment in which early programs can run. A boot loader is the program that helps load and start the operating system. UEFI gives it defined ways to obtain information and use services during that work.
Control then passes toward the operating system. UEFI also defines a smaller set of runtime services available after the startup handoff. The UEFI Forum’s explanation describes this interface through data tables and service calls—the information and operations the two sides agree to understand.
This replaced the older personal-computer startup interface known as BIOS, or Basic Input/Output System. But UEFI doesn't prescribe one universal setup menu or guarantee that every computer will start faster. The hardware and its firmware implementation still matter.
Secure Boot checks what may run next
Secure Boot is a UEFI feature that checks whether boot components are permitted to run. Its decision depends on stored information about approved and forbidden software or signing authorities.
One tool for making that decision is a digital signature: mathematical evidence that particular data was signed with a particular secret key and hasn't changed within the signed portion. Another is a hash, a calculated value used to identify a particular file's contents.
The firmware checks the boot file against its configured approval and denial information. The UEFI specification’s validation rules give the forbidden list priority. A file identified as forbidden under those rules doesn't become acceptable merely because it also has an approved match.
Suppose a boot component was once approved but later added to the forbidden list. With that updated information in place, the earlier approval isn't enough to let it run. The decision changes because the machine's permitted-software information changed.
- Rescue a board with a corrupted BIOS by rewriting the chip directly.
- Clip onto the chip in place, with no soldering needed.
- Save a copy of a chip's contents before you change anything.
What an accepted boot file tells you
A computer can support UEFI without having Secure Boot enabled. Vendor policy and configuration determine how the feature is used.
Even when enabled, accepting a component means it passed the configured boot check. It doesn't prove the code is free of flaws or make every part of the firmware impossible to alter. Updates to the firmware and its approval or denial information can change which program is allowed to run before the operating system starts.
Firmware: The Software Running Beneath Your Apps

Boot Record Infectors: Malware That Gets an Early Start

BIOS vs UEFI: Which Is More Secure?

QUOTE:
"Amateurs hack systems, professionals hack people."
