Design Secure Over-the-Air Firmware Updates for Cortex-M Fleets

Last updated: November 29, 2026

Quick Overview

Design an end-to-end system that delivers signed firmware updates to millions of Cortex-M based IoT devices with TrustZone-M, guaranteeing that a device never bricks on power loss and never runs unauthorised or rolled-back firmware.

Arm
System Design
Software Engineer
Arm
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design an end-to-end system that delivers signed firmware updates to millions of Cortex-M based IoT devices with TrustZone-M, guaranteeing that a device never bricks on power loss and never runs unauthorised or rolled-back firmware.

Arm's IoT and security work (PSA Certified, Trusted Firmware-M, its secure boot and firmware update services) makes this a natural system design topic for embedded and security-focused engineers. The interviewer checks both the device-side boot chain and the cloud-side rollout, and expects precise reasoning about failure during writes.

What the Interviewer Expects
  • Define a root of trust and a chain of signature verification from immutable boot ROM
  • Use A/B slots or a swap scheme with a trial boot and confirmation
  • Enforce anti-rollback with monotonic counters in secure storage
  • Support delta updates and resumable downloads over constrained links
  • Stage rollouts with health telemetry and automatic halt
  • Separate signing keys from the build pipeline with an HSM
Key Topics to Cover
secure boot
firmware update
TrustZone-M
anti-rollback
staged rollout
PSA
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle a device with only enough flash for one image?
  • How would you rotate a compromised signing key already provisioned into devices?
  • How do you update the secure world (TF-M) and the non-secure application independently?
  • What does the device do if it boots the new image and cannot reach the server to confirm health?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: publish a firmware release, target a device cohort, devices download, verify, install, and report status. Non-functional: devices have 512 KB to 2 MB flash, intermittent low-bandwidth link...

High-Level Design

Cloud side: CI builds the image, an offline signing service backed by an HSM signs a manifest (image hash, version, security counter, target hardware, dependencies on secure-world version). Images go ...


Submit Your Answer
Markdown supported

Related Questions