Join our Newsletter — 33% off our NHI Course
Home› Guides› BIOS and UEFI for Beginners: What Runs Before…
Guide OT & IoT Security

BIOS and UEFI for Beginners: What Runs Before Windows Starts and Why Attackers Want It

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 2 December 2026 12 min read
On this page

BIOS and UEFI are the built-in startup software that wakes a computer's hardware and then starts its operating system.

This guide is for anyone who has seen "press F2 for setup" and wondered what lies behind it. You do not need technical skills. If you look after a family laptop or a few office PCs, these settings protect them before Windows even loads.

In short

  • BIOS is the older startup software for PCs. UEFI is the modern design that took over the same job.
  • It runs first, gets the hardware ready, picks a drive to start from and hands over to Windows or another system.
  • Its settings menu controls things like the start-up order and Secure Boot, a check on startup software.
  • Malware hidden here can survive a Windows reinstall, so keep the firmware updated and lock its settings with a password.

What you will learn

  • Explain the difference between BIOS and UEFI in one sentence.
  • Describe what happens between pressing power and seeing Windows.
  • Check which startup mode your PC uses and whether its settings are locked.
  • Explain why attackers want to hide malware in this layer.
Built-in startup software (firmware)
code stored on the computer's hardware that runs before anything else.
Start-up drive list (boot order)
the list the computer works through to choose which drive to start from.
Settings lock (firmware password)
a password that stops other people changing the startup settings.

What are BIOS and UEFI?

Think of the caretaker of an office building. Before staff arrive, the caretaker switches on the lights, heating and lifts. Then they unlock the front door and leave the day's work to everyone else.

BIOS and UEFI do that job for a computer. They are firmware, which means software built into the hardware itself. They start the processor, drives and USB ports so the operating system can use them, then hand over control [6].

BIOS (Basic Input/Output System) is the older design, rooted in the original IBM PC. The UEFI Forum, the group that writes the UEFI standard, describes it as legacy technology that stayed largely unchanged for decades [1]. UEFI (Unified Extensible Firmware Interface) is the newer design. It now does the same starting-up job on most PCs [1][6].

Many people still say "BIOS" when they mean the UEFI settings screen. That is normal, and this guide uses both words.

Where the comparison stops working: a caretaker goes home once the building is open. Firmware keeps a quiet role while the computer runs, and changes to it are hard for you to see.

Why does it matter?

Firmware runs before Windows and before your antivirus. Whoever controls it has a head start over every protection that loads later.

If you look after a home computer

What could happen: someone with a few minutes alone with the laptop changes the start-up order and starts it from their own USB stick.

Check this: set a settings password so startup options cannot be changed without it.

Next: Secure Boot and TPM for Beginners

If you run a small office

What could happen: every PC shares one settings password, and once it leaks, all of them are open.

Check this: ask your IT helper whether each PC has its own password, and where those passwords are kept.

Next: BIOS and UEFI Settings Management Guide

If you are new to IT work

What could happen: a laptop is wiped and reinstalled after an infection, but malware hiding in the firmware comes back.

Check this: include firmware updates and firmware checks in your clean-up steps.

Next: Rootkits for Beginners

What does it look like?

Here is a made-up summary of the kind of screen you see in a UEFI settings menu. Real menus differ by maker.

Example only. All values are made up.

EXAMPLE PC Setup Utility    Firmware version 0.0.0-FAKE   (1)
Boot mode ............... UEFI                             (2)
Secure Boot ............. Enabled                          (3)
Boot order .............. 1. Internal drive                (4)
                          2. USB drive (disabled)
Admin password .......... Set                              (5)
System password ......... Not set                          (6)
  1. The firmware version. In a real screen, this line would contain the version to compare with the maker's latest update.
  2. The startup mode: UEFI, or the older legacy BIOS mode.
  3. Secure Boot, the check that startup software is signed by a trusted maker.
  4. The start-up drive list. The internal drive comes first, and USB starting is turned off.
  5. The settings password, which guards changes to this menu.
  6. The power-on password, which blocks starting the computer at all.

Why this is risky: with no admin password, anyone at the keyboard can change these settings. They could turn off Secure Boot or start from a USB stick.

The safer way: use UEFI mode with Secure Boot on, put the internal drive first and set an admin password that you store safely.

How does it work?

  1. You press power. The firmware is the first code to run.
  2. The firmware wakes the hardware. It gets the processor, memory, drives and ports ready for use [6].
  3. It reads its settings. These include the start-up drive list and any passwords. A system password stops the computer here until it is typed in [4].
  4. It checks the startup software. With Secure Boot on, the firmware checks the signature of each piece of startup software. If the signatures are valid, the PC carries on [3].
  5. It hands over. The firmware passes control to the operating system, which loads everything else [3].
Diagram titled What happens when you press power. Five boxes in a row joined by arrows. Box 1: Power on. Box 2: Firmware (BIOS or UEFI) wakes the processor, memory, drives and ports. Box 3: Reads settings: boot order and any passwords. Box 4: Secure Boot checks that startup software is signed. Box 5: Hands over to Windows or another operating system. A note under boxes 2 to 4 says this is the layer the settings menu controls, and a settings password guards it.
Figure 1. The firmware runs first, reads its settings, checks the startup software and then hands over to the operating system.

To open the settings menu, most PCs show a key at power on, such as Esc, Delete, F1, F2, F10, F11 or F12. In Windows you can also hold Shift while you select Restart, then choose Troubleshoot, Advanced options and UEFI Firmware settings [2].

Microsoft advises installing Windows in UEFI mode, because it includes more security features than legacy BIOS mode [2]. On some PCs, legacy mode is only available after UEFI security features such as Secure Boot are turned off [2].

Many makers offer more than one password. Dell is one example. Its system password blocks starting the computer. Its admin password guards the settings, and a drive password locks one drive [4]. Other makers use similar options under their own names.

Why do attackers want it?

Malware in the firmware can start before Windows and its security tools. Malware that infects this startup stage is called a bootkit.

A US government guide warns about changed firmware. It can lead to malware that stays put, or to a computer that will not start [5]. CISA, the US cyber defence agency, says such malware can survive restarts. It can also survive a fresh install of Windows [6]. It names one example, BlackLotus. This malware used a weak spot in how startup files are updated [6].

This is why firmware updates from the maker matter. They fix weak spots in this layer, just as Windows updates do for Windows.

A worked example

This story is made up. Soren Erikson runs a two-person bookkeeping firm from a shared office. A neighbour in the building mentions that laptops in another firm were tampered with overnight.

Soren decides to check his two laptops. He holds Shift, selects Restart and opens the UEFI firmware settings. The first laptop shows UEFI mode with Secure Boot on. The admin password line says "Not set". Anyone could change these settings.

The second laptop is older. It shows legacy BIOS mode and Secure Boot is off. Soren does not change it straight away. He writes down what he sees and calls his IT helper, Hana, because switching startup mode on an installed PC needs care.

Back on the first laptop, Soren sets an admin password and moves the internal drive to the top of the start-up list. He turns off starting from USB. He saves a different admin password for each laptop in the firm's password manager, not on a sticky note.

Next, he visits the maker's support page and finds a newer firmware version. He plugs the laptop into power, follows the maker's steps and lets the update finish without interruption.

Hana visits the following week. She backs up the older laptop and plans the move to UEFI mode with Secure Boot on. She also adds a yearly reminder to check firmware versions on both machines.

A month later, Soren checks the settings menu again. The settings he chose are still in place, and the menu asks for the admin password before any change.

Myths and mistakes

What people thinkWhat is true
BIOS and UEFI are the same thing.They do the same job, but UEFI is the newer design. Many people still call both "BIOS".
Reinstalling Windows removes every infection.Malware in the firmware can survive a reinstall. Firmware updates and checks are part of the clean-up.
Only experts need the settings menu.Setting an admin password and checking Secure Boot take a few minutes and need no special skill.
A Windows password protects the firmware.The firmware runs before Windows. It has its own passwords, set in its own menu.
Firmware never needs updating.Makers release firmware updates to fix weak spots. Check for them as you would for other updates.

What can I do this week?

  • Open the settings menu on one computer and note the startup mode, Secure Boot state and firmware version.
  • Set an admin (settings) password, and store it in a password manager.
  • Put the internal drive first in the start-up list.
  • Check the maker's support page for a newer firmware version, and follow its steps to install it.
  • Ask whoever looks after your work PCs whether each one has its own settings password.

Checklist

  • I know how to open the firmware settings menu on my computer.
  • The computer starts in UEFI mode, or I have asked for help to move it.
  • Secure Boot is turned on.
  • The internal drive is first in the start-up list.
  • An admin password guards the settings menu.
  • The admin password is stored safely and is not shared across many computers.
  • The firmware version matches the maker's latest update.

Common questions

How do I know if my PC uses BIOS or UEFI?

Open the firmware settings menu and look for the boot mode line. It usually says UEFI or legacy. Microsoft advises UEFI mode for Windows because it includes more security features. If your PC shows legacy mode, ask for help before you change it.

Will changing these settings break my computer?

Some changes are safe, such as setting an admin password or moving the internal drive first. Switching between legacy and UEFI mode on an installed system needs care, because Windows starts in the mode it was installed with. Back up first and get help.

What happens if I forget the settings password?

You may be unable to change the settings until it is reset, and the reset process depends on the maker. Some makers publish recovery steps, and others need support. Store the password in a password manager so you do not have to find out.

Is firmware malware common?

It is less common than ordinary malware, but it is hard to remove. CISA notes that it can survive restarts and operating system reinstalls. Keeping firmware updated and Secure Boot turned on lowers the chances of it taking hold.

Where next?

Ready for the detail? Read the practitioner guide: Firmware and Boot Security Guide. It goes further into firmware attacks, the full boot chain of trust and how organisations check firmware is unchanged.

Also useful:

Related NHI Mgmt Group resources: Rootkits for Beginners, Firmware and BIOS Update Management Guide and Password Managers for Beginners.

Key terms

Firmware
Software built into a device's hardware that runs at a low level, often before anything else.
BIOS
The older startup firmware for PCs, which gets the hardware ready and starts the operating system.
UEFI
The modern startup firmware design that does the job BIOS used to do, with more security features.
Secure Boot
A startup check that runs only startup software with a valid signature from a trusted maker.
Boot order
The list a computer works through to decide which drive to start from.
BIOS password
A firmware password that restricts changes to startup settings, or blocks starting the computer.
Bootkit
Malware that infects the startup process so it loads before the operating system and survives restarts.

Sources and further reading

  1. UEFI Forum, "Frequently Asked Questions". https://uefi.org/faq (accessed 2 Dec 2026).
  2. Microsoft Learn, "Boot to UEFI Mode or legacy BIOS mode". https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/boot-to-uefi-mode-or-legacy-bios-mode (accessed 2 Dec 2026).
  3. Microsoft Learn, "Secure boot". https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/oem-secure-boot (accessed 2 Dec 2026).
  4. Dell Technologies, "Understanding System Password, Admin Password, and HDD Password in BIOS", Dell Support knowledge base article 000132226. https://www.dell.com/support/kbdoc/en-us/000132226/dell-system-prompts-for-a-hard-drive-hdd-or-bios-password (accessed 2 Dec 2026).
  5. NIST, SP 800-147, "BIOS Protection Guidelines", April 2011. https://csrc.nist.gov/pubs/sp/800/147/final (accessed 2 Dec 2026).
  6. CISA, "A Call to Action: Bolster UEFI Cybersecurity Now". https://cisa.gov/news-events/news/call-action-bolster-uefi-cybersecurity-now (accessed 2 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.