Course contentsShow
← Security
Lesson 2759 of 3,05252. Embedded and IoT SecurityFree lesson

Firmware Fundamentals and Attack Surface

Understanding firmware types, boot processes, and how firmware sits between hardware and OS as a critical attack surface.

Firmware Fundamentals and Attack Surface

What you'll learn: How firmware bridges hardware and operating systems, creating a critical but often-overlooked attack surface in IoT and embedded devices.

What Is Firmware?

Firmware is the low-level software embedded in hardware that controls how devices operate. Think of it as the "permanent instructions" burned into chips that tell hardware how to behave—it's the first code that runs when you power on a device, before any operating system loads.

Unlike regular software that sits on hard drives, firmware lives in non-volatile memory (like flash chips or ROM) soldered directly onto circuit boards. This makes it persistent, difficult to inspect, and rarely updated—characteristics that make it an attractive target for attackers.

Firmware in the Boot Process

When an IoT device powers on, firmware typically controls:

  1. Bootloader – Initializes hardware and loads the next stage
  2. Initialization – Sets up CPU, memory, peripherals
  3. OS handoff – Transfers control to the operating system (if one exists)

Many IoT devices run entirely in firmware—no traditional OS at all. A smart thermostat or camera may execute all its logic in firmware, making it the complete attack surface.

Why Firmware Is a Critical Attack Surface

Firmware sits at the most privileged level of a device:

  • Pre-OS execution means no security tools are running yet
  • Direct hardware access allows manipulation of sensors, storage, or network chips
  • Persistence – malicious firmware survives reboots and factory resets
  • Invisibility – standard antivirus cannot scan firmware
  • Rare updates – many devices ship with vulnerable firmware that never gets patched

Attackers who compromise firmware gain total control: they can hide rootkits, exfiltrate data, brick devices, or turn them into botnet zombies.

Key Takeaway: Firmware is the foundational software layer between hardware and OS, executing with maximum privilege and minimal oversight—making it one of the most powerful and dangerous attack surfaces in IoT security.