A secure firmware over-the-air (OTA) update protects three things at once: that the image came from the real vendor, that it has not been altered since it was signed, and that it cannot be swapped for an older, vulnerable version.
In practice that means a cryptographically signed manifest verified by code the device trusts before any bytes reach flash, transport protection that is never treated as a substitute for that signature check, a monotonically enforced anti-rollback version check, and a recovery path that still works if any of those checks fail — so one bad update does not permanently brick the device.
Key takeaways
- A device should run several independent checks, and "is this image signed" is only one of them.
- A device that only checks the signature will happily reinstall an old, legitimately signed version with a known vulnerability.
- TLS on the download connection authenticates the server and encrypts the pipe; it does not authenticate the firmware.
- Keep the running image intact until the new one has proved it boots, and give the bootloader a way back.
Which checks does a device run before it will flash new firmware?
A device should run several independent checks, and "is this image signed" is only one of them. NIST SP 800-193 and the IETF's SUIT architecture (RFC 9019) describe largely the same set, organized slightly differently:
| Control | What it stops | Primary source |
|---|---|---|
| Signature verification anchored in a Root of Trust for Update | An attacker without the signing key producing an image the device will accept | NIST SP 800-193 §4.2.1.1 |
| Manifest integrity (signed metadata, not just the payload) | Tampering with version, target-device or installation instructions after signing | RFC 9124 §3.15 (signature element) |
| Vendor and class identifiers in the manifest | An image built for a different model or board revision being installed | RFC 9124 §3.3, §3.4 |
| Monotonic anti-rollback sequence number | Reinstalling an older, still-validly-signed image with a known vulnerability | RFC 9124 §3.2, §4.3.1; NIST SP 800-193 §4.2.1.3 |
| Manifest expiry or freshness | A device kept on stale metadata so it never learns a fix exists | RFC 9124 §3.7; TUF §1.5.2 |
| Non-bypassability of the update path | Flashing firmware through a diagnostic port or DMA path that skips verification entirely | NIST SP 800-193 §4.2.1.3 |
| Recovery/automatic rollback on failure | A corrupted or half-applied update permanently bricking the device | NIST SP 800-193 §4.1.4 (RTRec), §4.4.1 |
The first row is the one most often missing. SySS advisory SYSS-2022-055 found that AudioCodes 400HD series IP phones validate firmware images with simple checksum checks only, so an attacker who knows how to calculate and place the checksums can store malicious firmware (CVE-2023-22955, 7.8 per NVD); SySS listed the solution status as open at public disclosure on 2023-08-10.
RFC 9124 is an information model: it lists what a manifest must carry, not the bytes on the wire. The CBOR format that implements it, draft-ietf-suit-manifest, is still an Internet-Draft rather than an RFC; the working group's manifest-spec repository holds revision -38, dated 4 November 2026. A product that claims SUIT support should state which draft revision its parser follows.
How does anti-rollback protection actually stop an attacker?
A device that only checks the signature will happily reinstall an old, legitimately signed version with a known vulnerability. RFC 9124 closes that gap by requiring every SUIT manifest to carry a monotonically increasing sequence number specifically "to prevent malicious actors from reverting a firmware update against the policies of the relevant authority," which "must not wrap around." On the device side, the update agent compares that number to the one in the currently installed manifest and refuses to apply anything that does not strictly increase it. Section 4.3.1 of the RFC adds that "Devices must reject manifests with sequence numbers smaller than any onboard sequence number," and that "This is not a firmware version field. It is a manifest sequence number." A team can keep its marketing version scheme and still run a strict counter underneath it.
NIST SP 800-193 warns that unauthorized rollback "could allow an attacker to restore a vulnerable firmware image". It does not forbid rollback outright, since rollback can be the only recovery from a bad update; it asks for separate authorization, such as physical presence in its own examples. The same rule reaches the recovery path: §4.4.1 says recovery "should protect against unauthorized recovery to an earlier firmware version that contains a security weakness," so a stale recovery image can become the rollback route an attacker uses.
Where the counter lives matters as much as the comparison. A value an attacker can rewrite in ordinary flash protects nothing; bootloader-enforced counters in fuses or a trusted store, including MCUboot's hardware downgrade prevention, are covered in secure boot and a hardware root of trust.
Why does TLS not make a firmware update channel secure?
TLS on the download connection authenticates the server and encrypts the pipe; it does not authenticate the firmware. RFC 9019 is explicit that a firmware update's end-to-end security rests on three separately-stated properties: authentication of "the author(s) creating firmware images and manifests," integrity protection so "no third party can modify the manifest or the firmware image," and, optionally, confidentiality. The architecture roots all three in signatures verified by the device itself, not in whatever transport carried the bytes. A compromised update server, a malicious CDN edge, or a man-in-the-middle holding a trusted-but-wrong certificate can each terminate TLS correctly while serving firmware the owner never authorized. RFC 9019 names the stakes: "an update is essentially authorized remote code execution, so any security problems in the update process expose that remote code execution system." The signed manifest, verified against a key the device holds, gates installation; TLS is defense-in-depth around it.
How do A/B slots and recovery keep a failed update from bricking a device?
Keep the running image intact until the new one has proved it boots, and give the bootloader a way back. RFC 9019 §4 says "An IoT device needs a recovery strategy in case the firmware update/invocation process fails," and §4.1 narrows it to two options: "either the bootloader must be able to select different, valid firmware or it must be able to obtain new, valid firmware." A/B slots are the first option. ETSI EN 303 645 makes the same point in its notes on provision 5.3: "watchdogs and the use of dual-bank flash or recovery partitions can ensure that the consumer IoT device returns to either a known good version or the factory state."
A typical A/B cycle in the terms of MCUboot on microcontrollers and RAUC on embedded Linux:
Write the inactive slotThe device downloads into slot B while slot A keeps running, then verifies signature and sequence number before it marks B bootable. NIST SP 800-193 §4.2.1.1 describes exactly this: "loading the update into a region of flash, verifying it, and then selecting that region of flash as the active region." Boot B as a trialMCUboot's test mode will "Boot the contents of the secondary slot by swapping images. Unless the swap is made permanent, revert back on the next boot." Confirm only after health checksThe application confirms the image once its own checks pass: MCUboot sets an "Image OK" byte, and RAUC provides status mark-goodandstatus mark-bad, which "interact through the boot loader interface".Fall back automaticallyAn unconfirmed image is reverted on the next reset. RAUC leaves the fallback choice, "one of the redundant slots as fallback or boot into a recovery system", to the bootloader, so that bootloader needs the hardening covered in U-Boot bootloader security. Advance the anti-rollback value lastMove the stored minimum only after confirmation, or the device will refuse its own fallback image.
One trade-off to check early: MCUboot's software downgrade prevention works only with the overwrite-only strategy, not with swap-and-revert, so a design that wants both revert and downgrade blocking needs the hardware security counter.
What do EN 303 645, the CRA and Uptane require for updates?
All three ask for authenticated updates, but they differ in scope and in how much is mandatory. The table quotes ETSI EN 303 645 V3.1.3 (status from its Table B.1: M mandatory, R recommended, C conditional), the Cyber Resilience Act and the Uptane Standard 2.1.0.
| Source | Provision | What it requires | Status |
|---|---|---|---|
| EN 303 645 | 5.3-2 | "a secure update mechanism unless the device has a resource constraint" that prevents it | M C(15) |
| EN 303 645 | 5.3-7 | "best practice cryptography to facilitate secure update mechanisms" | M, if software is updatable |
| EN 303 645 | 5.3-8 | "Security updates shall be timely." | M C(12) |
| EN 303 645 | 5.3-10 | Verify "the authenticity and integrity of each update via a trust relationship" for network delivery | M, if network delivery |
| EN 303 645 | 5.3-13 | Publish "the defined support period" | M |
| EN 303 645 | 5.3-4A, 5.3-6A | Automatic updates configurable; user can disable and postpone them | R |
| CRA | Annex I Part I (2)(c) | Security updates, automatic by default "with a clear and easy-to-use opt-out mechanism", with notification and postponement | Essential requirement |
| CRA | Annex I Part II (7), (8) | Mechanisms "to securely distribute updates"; fixes "disseminated without delay" and free of charge, with advisory messages | Essential requirement |
| Uptane 2.1.0 | §5.4 | "A Primary ECU SHALL perform full verification"; Secondaries at least partial verification | Conformance |
Three details catch teams out. V3 voided provisions 5.3-4 and 5.3-6 and replaced them with 5.3-4A/B and 5.3-6A/B, so a checklist citing "5.3-6 automatic updates" uses old numbering; see the EN 303 645 guide. The CRA's Article 71(2) applies the regulation from 11 December 2027, with Article 14 reporting from 11 September 2026; CRA Annex I explained covers the rest of the annex. Uptane's full verification checks that Director-repository metadata "matches the Targets metadata about the same images from the Image repository", which "provides resilience to a key compromise"; for vehicles, read it alongside ISO 24089 and UN R155/R156.
Worked example: what does one signed A/B update look like on a gateway?
Synthetic example, not a real product. An industrial Linux gateway uses two root-filesystem slots under RAUC. Release 4.2.0 fixes a CVE in the gateway's TLS library.
BuildCI produces the root filesystem, its SBOM and a bundle signed with a release key held offline (RAUC treats signing a bundle as mandatory). The manifest sequence number is 118; the fleet's stored minimum is 117. DeliverThe update server offers the bundle over HTTPS. TLS protects the transfer only. Verify, then writeThe gateway checks the signature against the keyring in slot A's read-only file system, confirms 118 > 117 and that the bundle targets its hardware model, then writes slot B. Trial bootThe gateway reboots into B. Within ten minutes its health check must reach the cloud broker and complete one fieldbus poll; it then runs rauc status mark-good.Commit the counterOnly after mark-good does the stored minimum move to 118. Failure pathOne unit loses power during the write. Slot B is never marked good, the bootloader boots A, and the unit reports the failure and retries later. EvidenceThe release record keeps the SBOM, signing-key fingerprint and sequence number, the kind of material a technical file uses to show CRA Annex I Part II (7) is met.
Which failure modes do auditors look for in an OTA update design?
- No anti-rollback check at all: any validly signed image installs, including an old one with a known, public CVE.
- A single online signing key with no compromise plan. The Update Framework's own goals state that "An attacker, who is able to compromise a single key or less than a given threshold of keys, cannot compromise clients"; a lone online key is the opposite of that.
- No manifest expiry/freshness check: TUF calls the resulting gap an indefinite freeze attack, where a device keeps accepting stale metadata and never learns a critical update exists.
- Verification happening after the image is already written to the active flash region, rather than, per NIST SP 800-193 §4.2.1.1, "prior to the non-volatile storage completion of the update process".
- A bypassable update path: a UART, JTAG header or legacy unauthenticated update mode left reachable in production.
- Counter advanced before confirmation: the device then rejects its own fallback slot after a failed trial boot.
- No automatic or manual recovery from a failed update. ISO 24089 and NIST SP 800-193's Root of Trust for Recovery both exist because "verify, then refuse to boot" with no recovery path turns a bad update into a bricked fleet.
- No record of which update-stack components shipped in a given build. ENISA's 2019 secure-SDLC report lists "consistent remote secure (over-the-air) update procedures" under Maintenance and Disposal, which needs a team to know what runs in the update path of shipped devices; a firmware SBOM closes that gap.
Where should a team start?
Separate "is this update signed" from "is this update newer."Treat them as two independent, both-mandatory checks; the rollback check still has to run on a validly signed old image. Verify fully before touching the active flash region, as NIST SP 800-193 §4.2.1.1 requires. Treat the update channel's own code as attack surfaceThe TLS stack, manifest parser and signature-verification library can carry memory-corruption or logic bugs; a cryptographically sound design with an exploitable parser has not closed the gap. Plan key compromise before it happensThreshold signing and a documented rotation and revocation path, as TUF's threat model assumes, cost far less up front than after a key leaks. Pair every verification control with a recovery control; see NIST SP 800-193: Platform Firmware Resiliency for the Protection/Detection/Recovery model. If a disclosed vulnerability lives in the update stack itself, the EU Cyber Resilience Act's 24-hour clock for actively exploited flaws applies as to any other component; see CRA's 24-hour vulnerability reporting duty.
How does AI-assisted analysis help with an update stack?
It helps with components, not design. SoftWSP's firmware analysis records the software components found in an image's unpacked file system, including update-path pieces such as the TLS library or an update agent shipped as a package, in a CycloneDX 1.6 firmware SBOM. It then matches each component and version against NVD, CISA's KEV catalog, FIRST EPSS scores and CISA's ICS advisories, so a known CVE in an outdated mbedTLS on the update path is flagged like any other component finding. AI drafts a report that cites the record behind each finding, and an engineer reviews every finding before it reaches a customer. The scan does not detect whether an image verifies signatures, enforces anti-rollback or protects its signing keys; those are design-review questions an engineer answers from the update architecture, the bootloader configuration and test results. You can open the resulting SBOM in the free SBOM viewer.
The update check has to be anchored in secure boot and a hardware root of trust; without it, the verification code is just more software an attacker who controls storage could replace. To test boot-chain and update claims independently, see OWASP's firmware security testing methodology.
To have an update pipeline's signing, manifest and anti-rollback design reviewed by an engineer, see Device & Firmware Security.
This guide draws on NIST SP 800-193, IETF RFC 9019 and RFC 9124, ETSI EN 303 645 V3.1.3, the Cyber Resilience Act's Official Journal text, the Uptane Standard 2.1.0, the TUF specification, the MCUboot and RAUC documentation and the cited ENISA report, all read on 2026-11-13. It is not a substitute for those documents' own text, or for an engineer's assessment of a specific device's update architecture.
Put this guide to work
Frequently asked questions
What are the minimum technical controls an auditor expects in a secure firmware OTA update?
NIST SP 800-193 (Platform Firmware Resiliency Guidelines) states the rule an auditor checks against directly: "One or more authenticated update mechanisms anchored in the RTU [Root of Trust for Update] shall be the exclusive means for updating device firmware, absent unambiguous physical presence through a secure local update," and "the digital signature of a new or recovery firmware update image shall be verified by an RTU or a CTU prior to the non-volatile storage completion of the update process" (Section 4.2.1.1). A separate, equally load-bearing requirement closes the obvious bypass: "the authenticated update mechanism shall be capable of preventing unauthorized updates of the device firmware to an earlier authentic version that has a security weakness" (Section 4.2.1.3) — anti-rollback protection, not just signature verification. An auditor who only checks "is the firmware signed" and stops there has checked one of at least three independent controls.
How does anti-rollback (anti-downgrade) protection actually work in practice?
The IETF's SUIT manifest format (RFC 9124, "A Manifest Information Model for Firmware Updates in IoT Devices") requires every manifest to carry a "monotonically increasing (unsigned) sequence number to prevent malicious actors from reverting a firmware update against the policies of the relevant authority" — a device compares the new manifest's sequence number against the currently installed one and refuses any update that does not strictly increase it. NIST SP 800-193 explains why this matters beyond convenience: "updates to earlier firmware versions, sometimes called 'rollback,' may provide a means to recover from a firmware update that is not functioning correctly. However, unauthorized rollback could allow an attacker to restore a vulnerable firmware image, which in turn could allow the attacker to damage the device or inject malware" (Section 4.2.1.3, note). A legitimate rollback path still has to exist for recovery — SP 800-193 just requires it to carry its own authorization, not be the default accept-any-older-signed-image behaviour.
Why isn't TLS on the download channel enough to secure a firmware update?
TLS protects the pipe the update travels through; it says nothing about whether the content at the other end of that pipe is what the device's owner actually authorized. RFC 9019 ("A Firmware Update Architecture for Internet of Things") separates the two properties explicitly: authentication ("the device can cryptographically identify the author(s) creating firmware images and manifests") and integrity protection ("no third party can modify the manifest or the firmware image... a device needs to verify the signature covering the manifest") must both hold regardless of transport, because "an update is essentially authorized remote code execution, so any security problems in the update process expose that remote code execution system." A compromised update server, a malicious CDN edge node, or a man-in-the-middle with a trusted-but-wrong certificate can all terminate TLS correctly while serving unauthorized firmware — which is exactly why the architecture puts the signature check on the image and manifest themselves, verified by code on the device, not on the transport session.
What does a device need to check besides "is this image signed by the right key"?
The Update Framework (TUF) — a CNCF-graduated specification built specifically around software/firmware update security — names several attacks a single signature check does not stop on its own: a "freeze attack" (an attacker keeps serving the same, outdated-but-still-validly-signed metadata so a device never learns an update exists), a "mix-and-match attack" (combining genuinely-signed pieces that were never meant to ship together), and "vulnerability to key compromises," where "an attacker, who is able to compromise a single key or less than a given threshold of keys," should still not be able to compromise clients. Applied to firmware OTA specifically, that means checking a manifest's expiry/freshness, not just its signature, and treating a single online signing key as a design weakness worth asking about — not an acceptable default for a fleet-wide update channel.
Sources
- NIST Special Publication 800-193, Platform Firmware Resiliency Guidelines (May 2018, Final)
- IETF RFC 9019: A Firmware Update Architecture for Internet of Things (April 2021)
- IETF RFC 9124: A Manifest Information Model for Firmware Updates in IoT Devices (January 2022)
- ENISA: Good Practices for Security of IoT — Secure Software Development Lifecycle (November 2019)
- The Update Framework (TUF) specification, Attacks and Weaknesses section (CNCF graduated project)
- IETF SUIT working group: manifest-spec repository (draft-ietf-suit-manifest working copy)
- ETSI EN 303 645 V3.1.3 (2024-09): Cyber Security for Consumer Internet of Things: Baseline Requirements
- Regulation (EU) 2024/2847 (Cyber Resilience Act), Annex I and Article 71
- Uptane Standard for Design and Implementation 2.1.0
- MCUboot: Bootloader design (swap, revert and image confirmation)
- RAUC documentation: Basic RAUC concepts (redundant slots, boot confirmation and fallback)
About this guide
SoftWSP Firmware Security Desk
Covers the Firmware vulnerabilities & fixes cluster: 135 guides.

In this cluster
Questions about this page?
