Back to blog
7 min read

Hardware Security Interview Questions: Secure Boot, Root of Trust, Side Channels

Hardware security interviews reward structured reasoning about a chain of trust: an immutable first stage verifies each next stage, a failed check means no boot, and lifecycle state decides which keys and debug access are valid. Be ready to discuss bus-master isolation, side channels, and fault injection, and state your attacker model before defending a design.

Practice these questions live in a mock interview with a verified chip design engineer. Find an expert

Hardware SecuritySecure BootSide ChannelsInterview PrepChip Design

Someone hands you a dev board that refuses to boot after a firmware update. The UART prints nothing useful. Is the image corrupt, the signature wrong, the key revoked, or is the chip simply in a different lifecycle state than you assumed?

Hardware security questions tend to reward that kind of structured guessing. This guide draws on NIST SP 800-193 and the NIST glossary, the OpenTitan public specifications, a public write-up of TrustZone by the Genode project, the original Spectre paper, and a fault injection paper. The practice prompts are ours, not questions reported from any employer.

What is a root of trust for?

NIST SP 800-193 frames platform firmware resiliency as three goals: protecting the platform against unauthorized changes, detecting changes that happen anyway, and recovering quickly and securely.

The part you will probably be asked to explain is the chain. The first piece of code has to be trusted without anything checking it, so it is usually immutable (mask ROM) or protected in some equivalent way. Each stage then verifies the next one before handing over control. OpenTitan's public secure boot description is a concrete example: an immutable ROM verifies a ROM_EXT image using a signature over a digest, ROM_EXT verifies the next stage against the owner's keys, and the stated goal is that no unauthorized code runs before the owner's code is reached. Any failed check, or any unexpected error, means the device does not boot.

If you are weighing this work against ordinary design work, our comparison of hardware security and design engineer roles covers the day-to-day difference.

Isolation: what TrustZone-style designs give you

Genode's article describes a CPU with a secure mode alongside the normal one. A non-secure (NS) bit travels on the system interconnect, so memory controllers and peripherals can apply different policies to each world. A monitor mode handles switches between worlds, entered from the normal side with an smc instruction.

The useful interview point is that the CPU is only part of it. The article says what can be isolated depends on the SoC vendor. On one board a controller protects most memories but DDR can only be assigned wholly to one world. On another, a GPU and an image processor share a DMA channel ID, so the normal world could reach secure memory through the GPU. It also says secure booting is SoC specific, and that if boot ROM switches to the normal world before the bootloader runs, the secure world cannot protect resources.

So if asked "is the secure world isolated?", answer with the bus masters. List every DMA-capable agent, ask how it is tagged, and ask who programs the filters.

Side channels and fault injection

NIST's glossary describes a side-channel attack as one that gets information from a physical implementation rather than from a flaw in the algorithm, with timing, power consumption, and electromagnetic or acoustic emissions as examples. Spectre moves the same idea into the microarchitecture. The paper's abstract describes tricking a victim into speculative operations that normal execution would never perform, then reading the result through a side channel. It also argues that sound fixes need changes to processor designs and instruction sets, not only workarounds. If you want the pipeline background, see our CPU microarchitecture questions and cache coherence and memory system questions.

Fault injection attacks the logic instead of listening to it. A 2021 paper on the Nvidia Tegra X2 reports that briefly disturbing the supply voltage let the authors re-enable a hidden bootloader that fuses normally disable, which gave them privileged code execution.

A table to study from

TopicWhat the source saysPractice prompt
ResiliencyNIST SP 800-193: protect, detect, recoverWhich of the three does secure boot cover, and which does it not?
Boot chainOpenTitan: immutable ROM verifies the next stage; failure means no bootWhat happens if the primary image fails verification?
IsolationGenode: NS bit on the bus, vendor-specific coverageWhich bus masters could bypass the CPU's view?
Side channelsNIST glossary: timing, power, EM leakageHow would you check a key compare for data-dependent timing?
SpeculationSpectre paper: speculative work leaves observable effectsWhat state survives a squash, and why does that matter?
Fault injectionTegra X2 paper: voltage glitch re-enabled a test bootloaderWhich checks would you duplicate, and what would a glitch detector miss?

How do lifecycle states affect secure debug?

This is the topic candidates skip. OpenTitan's life cycle specification lists states such as RAW, TEST_UNLOCKED, DEV, PROD, RMA, and SCRAP. Debug and DFT access is highest in test and RMA states and disabled in PROD. Secrets are not provisioned in the earliest states, and the life cycle state is mixed into key derivation, so a state with invasive debug cannot expose mission mode secrets. Entering RMA triggers a hardware erase of owner flash. Our DFT interview guide covers why scan and debug ports are also an attack surface.

Illustrative scenario: the board that will not boot

This is a made-up exercise, not a reported question. A development board stops booting after you flash a new signed image.

  1. State the boot chain you expect, stage by stage, and ask which stage last printed anything.
  2. Check the lifecycle state. In the OpenTitan model, a key whose role does not match the lifecycle state causes boot to fail, so a production signed image on a DEV part (or the reverse) is a plausible cause.
  3. Check image metadata: version, device or state constraints in the signed digest, and whether a fallback slot exists.
  4. Ask whether the signing key was invalidated, or whether the image version is older than what the device will accept.
  5. Only then suspect hardware, such as a marginal supply, and say how you would measure it.

Power and clocking matter here too. If your project had domains that power down, low-power design interviews are worth reviewing, because a question about what happens to secure state when a domain powers down is a fair follow-up.

Prepare your own story

Pick one project where you handled keys, boot, or access control, even in a lab. Say what you assumed about the attacker, since "secure against what?" is the question you should expect. You can book a mock interview on MockVise to practice defending your threat model out loud.

Sources: NIST SP 800-193, NIST glossary: side-channel attack, OpenTitan device life cycle, OpenTitan secure boot, Genode TrustZone article, Spectre Attacks (arXiv), Tegra X2 voltage glitching (arXiv). This article offers general preparation guidance, not an official interview process or reported company questions. Product specifics differ between chips and vendors, so confirm the format and scope with your recruiter. MockVise is not affiliated with or endorsed by NIST, OpenTitan, the Genode project, Nvidia, or the authors of the cited papers.

FAQ

Q: Why does the first piece of boot code have to be immutable? The first piece of code has to be trusted without anything checking it, so it is usually immutable (mask ROM) or protected in some equivalent way. Each later stage is then verified by the one before it.

Q: Is the secure world in a TrustZone-style design fully isolated by the CPU? No. The CPU is only part of it, and what can be isolated depends on the SoC vendor. Answer by listing every DMA-capable agent, asking how it is tagged, and asking who programs the filters.

Q: How would I approach a board that stops booting after a new signed image is flashed? State the expected boot chain and find the last stage that printed anything. Then check the lifecycle state, the image metadata and fallback slot, and whether the signing key or image version is the problem. Suspect hardware, such as a marginal supply, only after that.

Q: What question should I expect about my own security project? Expect "secure against what?" Say what you assumed about the attacker, even if the project was in a lab.

Practice with engineers who've run these interviews

Book a 1-on-1 mock interview with verified experts from Intel, NVIDIA, Qualcomm, and Apple. Practice these questions live in a mock interview with a verified chip design engineer.

Find your expert

Already running these interviews at work? Get paid to run them on MockVise, anonymously and on your own hours. Become an expert