Join our Newsletter — 33% off our NHI Course
Home› Guides› Bootloaders for Beginners: What Happens Between Power On…
Guide OT & IoT Security

Bootloaders for Beginners: What Happens Between Power On and Login

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 30 November 2026 10 min read
On this page

A bootloader is the small program that starts a device's operating system after power on.

This guide is for anyone curious about what happens before the sign-in screen appears on a laptop, phone or smart device. You do not need technical knowledge. It explains the boot chain and why attackers sometimes aim at this early stage.

In short

  • When you press power, the firmware runs first, then the bootloader, then the operating system.
  • Each stage can check the next one before handing over. This is called a chain of trust.
  • Malware that replaces the bootloader runs before the operating system and its security tools.
  • Secure Boot, updates and firmware passwords help keep the chain trustworthy.

What you will learn

  • Describe the three main stages of starting a device.
  • Explain what a bootloader does.
  • Explain why attackers target the boot chain.
  • Name simple checks that keep the boot chain protected.
Built-in startup code (firmware)
the first code that runs when a device powers on.
Starter program (bootloader)
the small program that loads the operating system.
Handover checks (chain of trust)
each stage checking the next before it runs.

What is a bootloader?

Think of a relay race. The first runner hands the baton to the second, who hands it to the third. The race only works if each handover goes to the right runner.

Starting a device is a relay too. The firmware runs first. It hands over to the bootloader, which Microsoft describes as the small piece of software that starts the operating system [1]. The operating system then loads everything else, up to the sign-in screen.

Where the comparison stops working: in a race you can see the runners. In a device, the handovers happen in a second or two, and you see none of them.

Phones work the same way. Android's Verified Boot starts from a root of trust protected by hardware. It checks the bootloader, and the bootloader checks the rest of the system [2]. For the firmware stage itself, see Firmware for Beginners.

Why does it matter?

Whatever runs first has the most control. If the bootloader is swapped, everything after it can be fooled.

If you use a laptop for work

What could happen: a lost or unattended laptop has its startup settings changed so it no longer checks the bootloader.

Check this: Secure Boot is on, and the firmware settings have a password.

Next: Secure Boot and TPM for Beginners

If you look after company devices

What could happen: a bootkit hides below the operating system, so normal security tools miss it.

Check this: devices report whether Secure Boot is on, and firmware updates are applied.

Next: Rootkits for Beginners

If you buy smart or industrial devices

What could happen: a device accepts any startup software, so tampered software can be loaded on it.

Check this: ask the supplier whether the device checks its startup software before it runs.

Next: Firmware for Beginners

What does it look like?

You rarely see a bootloader. Here is a made-up summary of the kind of startup report a device management tool might show.

Example only. All values are made up.

Device:           EXAMPLE-laptop-01
Firmware:         EXAMPLE-fw v0.0              (1)
Secure Boot:      On                            (2)
Bootloader:       signed, trusted               (3)
Firmware password: Not set                      (4)
Last check:       FAKE-date
  1. The built-in startup code. In a real file, this line would contain the maker's firmware version.
  2. Secure Boot is the setting that makes the firmware check the bootloader's signature.
  3. The bootloader passed the signature check, so it was allowed to run.
  4. No password protects the startup settings, so someone with the device in hand could change them.

Why this is risky: without a firmware password, someone with physical access could turn off Secure Boot.

The safer way: set a firmware password, keep Secure Boot on, and keep firmware updated.

How does it work?

Here is the Windows boot chain as Microsoft describes it. Other systems follow a similar pattern.

  1. Firmware starts. With Secure Boot on, the device first checks that the firmware is digitally signed [1].
  2. The firmware checks the bootloader. It examines the bootloader's digital signature. It runs it only if a trusted certificate signed it [1].
  3. The bootloader checks the operating system. The bootloader verifies the signature of the Windows kernel before loading it [1].
  4. The operating system checks the rest. The kernel then checks boot drivers and startup files. Anti-malware can load early to check drivers too [1].
  5. The record is kept. With a security chip called a TPM, the startup steps can be measured and recorded. A server can later check whether the device started cleanly [1].
Diagram titled The boot chain: each stage checks the next. Four boxes in a row: power on; firmware, the built-in startup code, checks the bootloader's signature; the bootloader, the small starter program, checks the operating system; the operating system loads drivers and the sign-in screen. The bootloader box is highlighted. A note underneath says a bootkit replaces the bootloader so it runs before the operating system, and Secure Boot stops an unsigned bootloader from running.
Figure 1. Each stage checks the next, so a swapped bootloader is caught before it runs.

Why do attackers aim here? Microsoft says bootkits replace the operating system's bootloader, so the device loads the bootkit before the operating system [1]. MITRE ATT&CK says bootkits sit below the operating system. That can make full clean-up hard unless the organisation suspects one [3].

The defences are well known. ATT&CK lists turning on Secure Boot so only signed bootloaders run. It also lists using the TPM to detect changes and protecting firmware settings with a password [4].

A worked example

This story is made up to show the idea.

Dario Castell runs IT for a small engineering firm with thirty laptops. A new device report shows that four laptops have Secure Boot turned off.

He asks a colleague, Darius Yilmaz, to look into it. Darius finds that the four laptops were set up by a former contractor. The contractor had turned Secure Boot off to install an old tool, and never turned it back on. None of the laptops had a firmware password.

Darius explains the risk in plain terms. With Secure Boot off, the laptop will run any bootloader, signed or not. Malware that swaps the bootloader would start before Windows and its security tools.

They make a plan. They back up the four laptops and check that the old tool is no longer needed. Then they turn Secure Boot back on and set a firmware password on all thirty laptops. The device tool now raises an alert if Secure Boot is ever turned off.

A few months later the alert fires for one laptop. A staff member had tried to install a game launcher. Darius turns Secure Boot back on and explains why the setting matters.

Dario learned that the boot chain is only as strong as its weakest handover. One switched-off setting can undo the checks.

Myths and mistakes

What people thinkWhat is true
Antivirus will catch anything on my computer.Bootkits load before the operating system, so tools that start later may not see them [1][3].
Reinstalling the operating system always removes malware.ATT&CK notes bootkits sit below the operating system and can make full clean-up hard [3].
The bootloader is part of the hardware.It is a small piece of software [1]. On PCs it sits in a startup area of the disk, so it can be replaced [3].
Older software versions are just as safe to start.Android's rollback protection only allows updates to newer versions, to stop an exploit from persisting [2].
Phones do not have a boot chain.Android's Verified Boot builds a chain from a hardware root of trust to the bootloader and the system [2].

What can I do this week?

  • Check whether Secure Boot is on for your computer, or ask your IT team to check it.
  • Install pending firmware and system updates.
  • For work devices, ask whether firmware settings are protected by a password [4].
  • Read Secure Boot and TPM for Beginners to see how the checks work.

Checklist

  • I can name the three stages: firmware, bootloader, operating system.
  • I can explain a bootloader as the small program that starts the operating system.
  • I know why a swapped bootloader is dangerous.
  • Secure Boot is on for my devices.
  • Firmware settings on work devices have a password.
  • Firmware and system updates are installed.
  • I ask suppliers whether their devices check startup software.

Common questions

What is the difference between firmware and a bootloader?

Firmware is the built-in startup code that runs first when the device powers on. The bootloader runs next. Its job is to load and start the operating system. On a PC with Secure Boot, the firmware checks the bootloader before it runs [1].

What is a bootkit?

A bootkit is malware that replaces or changes the bootloader, so it runs before the operating system [1]. On older systems it may change the start of the disk. On newer ones it may change files in a special startup partition [3].

Should I ever turn off Secure Boot?

Only when you have a clear need and understand the risk. With Secure Boot off, the firmware does not check the bootloader's signature. If you turn it off for a task, turn it back on afterwards and check that the device still starts normally.

Can a phone refuse to start if its startup software is changed?

Yes. Android says that from Android 7.0 it strictly enforces Verified Boot to stop compromised devices from booting [2]. Earlier versions warned the user but still started. This is why keeping a phone on a supported, updated version matters.

Do servers and smart devices have bootloaders?

Yes. Anything with an operating system needs something to start it. Servers, routers, cameras and industrial controllers all have a boot stage, and the same idea applies: check startup software before it runs.

Where next?

Ready for the detail? Read the practitioner guide: Firmware and Boot Security Guide. It covers the boot chain, Secure Boot keys, measured boot and bootkits in depth.

Also useful:

Related NHI Mgmt Group resources: Measured Boot vs Secure Boot, Linux Secure Boot and Shim Guide and Evil Maid Attack Guide.

Key terms

Bootloader
The small program that loads and starts the operating system.
Firmware
Software built into a device's hardware that runs first when it powers on.
Secure Boot
A firmware feature that runs only startup software signed by a trusted key.
Bootkit
Malware that changes the boot process so it runs before the operating system.
Verified Boot
A chain of checks, used on phones and other devices, that confirms each startup stage is trusted.

Sources and further reading

  1. Microsoft, "Secure the Windows boot process", Microsoft Learn, last updated 18 August 2025. https://learn.microsoft.com/en-us/windows/security/operating-system-security/system-security/secure-the-windows-10-boot-process (accessed 30 Nov 2026).
  2. Android Open Source Project, "Verified Boot", source.android.com. https://source.android.com/docs/security/features/verifiedboot (accessed 30 Nov 2026).
  3. MITRE ATT&CK, "Pre-OS Boot: Bootkit, Technique T1542.003", Enterprise ATT&CK v20. https://attack.mitre.org/techniques/T1542/003/ (accessed 30 Nov 2026).
  4. MITRE ATT&CK, "Boot Integrity, Mitigation M1046", Enterprise ATT&CK v20. https://attack.mitre.org/mitigations/M1046/ (accessed 30 Nov 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.