Archive for the ‘Break IC’ Category

PostHeaderIcon Block-Level Protection: Why Some Blocks Are Always Open

A datasheet describes flash protection as a feature of the device. The silicon implements it as a feature of each block, and the distinction matters because blocks are configured independently and often are not configured uniformly.

The result is that devices described as fully protected frequently have one or more blocks that are readable, and those blocks are usually the most informative ones.

Why block granularity exists

Flash is erased in blocks because the erase mechanism operates on a region. A block is the smallest unit that can be erased, so it is the natural unit for protection as well: a bootloader that must never be overwritten, a parameter block that must survive a firmware update, a calibration region that must not be touched.

Region Typical protection Why
Boot block Write-protected, readable Must load the updater
Application Read and write protected The product
Parameter block Write-protected Must survive updates
Calibration Read and write protected Per-unit data
Option bytes Fully protected Configuration

The first row is the one that creates the opportunity. A bootloader has to run before any protection check, so it must be executable; on many parts it is also readable, because the protection bit for that block is separate and defaults to open.

What a readable boot block gives you

A bootloader is small and it is not the product, so a readable boot block sounds like a small win. In practice it is frequently decisive.

It gives the update protocol. A bootloader implements the commands that program and verify memory, which means it documents the memory map, the command set and the verification procedure.

Boot block content What it discloses
Command handler The programming protocol
Memory map table Region addresses and sizes
Version string The build and the vendor
Verification routine The integrity mechanism
Jump target Where the application begins

The fourth row is the most valuable. A bootloader that verifies a signature tells you the integrity mechanism, and a bootloader that verifies a CRC tells you that a patch is feasible. The distinction determines whether the application can be modified at all.

The usual configuration errors

Three configuration errors appear repeatedly, and each one leaves more open than the designer intended.

The first is a protection applied to the application block only. The designer’s intent was to protect the product, and the boot block was considered harmless because it contains no secrets. It contains the protocol, which is the means to everything else.

Error Left open Consequence
Protect the application only Boot block Protocol and memory map disclosed
Protect read but not debug Debug port Full access despite the read lock
Protect by region but not by page Unlisted pages A page of the application readable
Set the protection after the first boot The first boot A window at production

The third row is the one that requires reading the memory map carefully. Many devices offer both a coarse protection covering a range and a finer one per page, and a design that sets only the coarse one leaves any page outside the range readable.

Enumerating what is open

The practical approach is to assume nothing and to read the entire address space, block by block, recording for each block whether it returned data.

Read result Meaning
Data returned, plausible Block is readable
All zeros or all ones, with an error status Block is protected
All ones, no error status Block is erased, or readable and empty
Data returned, implausible Block is remapped or returns a stub

The third row is the ambiguity that has to be resolved, because a protected block that returns all ones is indistinguishable from an erased block by content alone. The resolution is the error status: a device that reports success on a read of a protected block is a device that is returning something rather than refusing.

The fourth row is the case of a part that returns a fixed pattern for protected regions. Some devices return zeros, some return a stub of a few bytes, and some return the last value on the bus. In each case the content is meaningless and the error status is the only signal.

What partial read means for the engagement

A partial read changes the deliverable and it changes what can be concluded.

If the boot block is readable and the application is not, the engagement can produce the protocol, the memory map and the integrity mechanism, and cannot produce the application. That is often enough to plan a follow-on attack: the integrity mechanism tells you whether a physical read will produce something usable, and the protocol tells you whether an update path exists.

Open region Deliverable Next step
Boot only Protocol, map, integrity mechanism Plan the physical or fault route
Application only The product code The bootloader may be absent entirely
Both Everything Analysis
Neither A statement about protection Physical route

The second row is a real configuration and it is an odd one: an application that is readable while the bootloader is not happens when the protection was applied in the wrong order, which is the failure described in three protection layers.

Where the block map comes from

The map is in the datasheet, and the datasheet is not always available for a part that has been customised.

Where it is unavailable, the map can be inferred by reading. A scan of the address space in block-sized steps, recording which reads succeed and which fail, produces a map of open and closed regions. The block size is the granularity of the transitions: a transition that occurs at a multiple of four kilobytes indicates a four-kilobyte block.

Inference Evidence
Block size Transitions occur at multiples of the size
Region boundaries A change in readability or content type
Erased versus protected Error status on the read
Remapped regions Identical content at two addresses

The fourth row is worth checking deliberately, because a remapped region produces a map that appears complete and contains duplicates.

What the service delivers

The deliverable is a block map: every block in the address space, its readability, its content classification, and the error status observed.

That map is more useful than a partial image because it tells the customer what is knowable and what is not. A customer who receives half an image does not know whether the other half is protected or empty; a customer who receives a map knows exactly.

The physical route that bypasses block protection entirely is in cracking IC flash, and the coupling that makes an unprotect operation destructive is in breaking IC flash. Where the readable block is a bootloader, its verification logic is the chain described in secure boot.

What we will not do is report a protected block as empty. The two look identical in a hex viewer and they are entirely different facts.

PostHeaderIcon Break ATmega1281V secured firmware

A request to break ATmega1281V secured firmware begins with the fact that ATmega1281V carries 128 KB of in-system programmable flash and 8 KB of SRAM and runs at 8 MHz in a 64-lead TQFP body. The work starts with the lock byte and the fuse bytes, because a megaAVR guards its arrays with lock bits rather than a numeric readout level.

Break Microcontroller ATmega1281V embedded memory include flash and eeprom, extract firmware from MCU memory after reset the security fuse bit by focus ion beam technique, which is commonly method for microcontroller unlocking

Break Microcontroller ATmega1281V embedded memory include flash and eeprom, extract firmware from MCU memory after reset the security fuse bit by focus ion beam technique, which is commonly method for microcontroller unlocking

the first read in a break ATmega1281V secured firmware job

A classic megaAVR protects its memory with a lock-bit byte rather than a graded level. LB1 and LB2 are the memory lock bits: with both unprogrammed the flash, EEPROM and fuse bytes are readable over the programming interface, programming either one blocks further writes and verification, and programming both closes read-back so an external tool sees only blank words for the arrays. BLB0 and BLB1 are separate boot lock bits that govern what the boot section and the application section may do with SPM writes and LPM reads, so a firmware-assisted dump is either enabled or walled off independently of the main lock bits. The fuse bytes sit beside the lock byte: CKSEL and SUT choose the clock, BOOTSZ and BOOTRST size and place the boot section, EESAVE decides whether a chip erase keeps the EEPROM, SPIEN enables serial programming and RSTDISBL repurposes the reset pin. The lock and fuse bytes stay readable while the arrays do not, which is why the first move on the bench is always a read of those bytes and never an erase.

ATmega1281V program and data arrays and the erase coupling

On the ATmega1281V the 128 KB program array is written a page at a time and erased as a whole, with a boot section whose size is set by the BOOTSZ fuses. Beside it sits 8 KB of SRAM and 4 KB of data EEPROM, the latter being an independent array that a chip erase clears unless EESAVE was programmed. The only operation that clears the lock bits is a chip erase, and that same operation wipes the flash and, unless EESAVE is set, the EEPROM. The protection therefore comes down only at the exact moment the firmware disappears, and the 64-lead TQFP body changes nothing about that arithmetic because the array size is fixed by the ordering code rather than by the lead frame.

ATmega1281V recovery geometry Value
Program flash 128 KB, page-programmable, boot section by BOOTSZ
Data EEPROM 4 KB, cleared by chip erase unless EESAVE
SRAM 8 KB
Core and clock AVR RISC at 8 MHz
Protection lock bits LB1/LB2 and BLB0/BLB1, fuse bytes
Package 64-lead TQFP, 64 pins

the ATmega1281V interface once protection is set

The part is reached over the in-system serial programming interface driven by the reset, clock and data pins, and the same wires carry the read of the fuse and lock bytes. What fails under a set lock byte is the array read: a programmer asking for flash or EEPROM receives blank words while the part still runs its firmware normally and returns its configuration bytes cleanly. The practical routes are a clean read while the lock byte is open, a firmware-assisted dump where the boot lock bits allow it, or a chip erase the customer must approve in writing.

a decision tree for break ATmega1281V secured firmware

Read the fuse and lock bytes first, then decide, because that result settles whether any firmware can be recovered at all. An open lock byte means a clean read over the programming interface and the heximal can be pulled directly, while a part with LB1 and LB2 both programmed leaves only the destructive erase as a route to a blank device. The ATmega1281V is the 128 KB of flash device in a 64-lead TQFP body, so the capacity marking and the package settle the array size before anything is priced. The 64-pin body with the same large flash array is the identifying trait of this member. What survives the lock: the fuse and lock bytes themselves, the device signature and the calibration byte, the peripheral registers while the part runs, and the EEPROM if EESAVE was programmed before any erase.

sibling parts of the ATmega1281V

When a board arrives marked only with a partial code, the megaAVR family is the place to look, because its members share the same lock byte, the same fuse layout and the same erase coupling while differing in flash, SRAM, EEPROM, pin count and on-chip peripherals. Neighbouring members span 16 KB to 256 KB of flash with SRAM from 1 KB to 16 KB, and the low-voltage V grades trade clock speed for a wider supply range without changing the lock byte.

Comparable recoveries are documented in attack atmega165pv microcontroller flash memory, attack atmega32u2 mu microprocessor fuse bit, attack avr atmega64l program, attack chip atmega8a binary and attack chip attiny2313 firmware, each starting from the configuration read.

closing out a break ATmega1281V secured firmware request

For a board that arrived as a break ATmega1281V secured firmware request, the deliverable is a confirmed capacity, a lock-byte state and a priced route agreed in writing before any destructive step, and our engineers read the fuse and lock bytes first.

PostHeaderIcon Break ATtiny48 encrypted flash memory

A request to break ATtiny48 encrypted flash memory begins with the fact that ATtiny48 carries 4 KB of in-system programmable flash and 256 bytes of SRAM and runs at 12 MHz in a 28-pin PDIP / 32-lead TQFP body. The work starts with the lock byte and the fuse bytes, because a tinyAVR guards its small arrays with lock bits and reaches its debug port over the reset line.

Break Microcontroller ATtiny48 Flash memory and readout code from MCU, the file format of firmware will be binary or heximal
Break Microcontroller ATtiny48 Flash memory and readout code from MCU, the file format of firmware will be binary or heximal

break ATtiny48 encrypted flash memory: reading the protection before the array

A tinyAVR protects its memory with a lock-bit byte in the same AVR tradition, but on a smaller map and without the boot-section split of the larger parts. LB1 and LB2 are the memory lock bits: with both unprogrammed the flash, EEPROM and fuse bytes read freely over the serial programming interface, and programming both closes external read-back so a programmer receives blank words for the arrays. The fuse bytes carry CKSEL and SUT for the clock, CKDIV8 for the divider, CKOUT for the clock output, RSTDISBL for the reset pin, DWEN for the debug interface, SPIEN for serial programming, EESAVE for the EEPROM and BODLEVEL for the brown-out threshold. Some members add SELFPRGEN, which decides whether code running on the chip may rewrite its own program array. The lock and fuse bytes stay readable while the arrays do not, so the first bench move is a read of those bytes rather than an erase.

how the ATtiny48 memory is laid out

On the ATtiny48 the 4 KB program array is written a page at a time and erased as a whole, beside 256 bytes of SRAM and 64 bytes of data EEPROM. There is no separate boot block to negotiate with: the whole array is application space on this class of device, which is why the boot lock bits used on larger AVR parts have no counterpart here. A chip erase is the only operation that clears the lock bits, and it wipes the flash and, unless EESAVE is set, the EEPROM at the same moment. The 28-pin PDIP / 32-lead TQFP body with 28 pins changes none of that arithmetic, since the array size is fixed by the ordering code and the package letters only describe the lead frame.

ATtiny48 recovery geometry Value
Program flash 4 KB, page-programmable, no boot block
Data EEPROM 64 bytes, cleared by chip erase unless EESAVE
SRAM 256 bytes
Core and clock AVR RISC at 12 MHz, debugWIRE on the reset line
Protection lock bits LB1/LB2, fuse bytes
Package 28-pin PDIP / 32-lead TQFP, 28 pins

the ATtiny48 interface once protection is set

These parts are programmed over the serial interface using the reset, clock and data pins, and the same three wires return the fuse and lock bytes. The on-chip debug system is debugWIRE, a single-wire interface multiplexed onto the reset line and enabled by the DWEN fuse, rather than a multi-pin boundary-scan port. Under a set lock byte the array read fails while the device still executes its firmware and still answers a signature request. The routes are therefore a clean read with the lock byte open, a firmware-assisted dump where SELFPRGEN allows in-application writes, or an approved chip erase.

choosing the route for break ATtiny48 encrypted flash memory

Read the fuse and lock bytes first and check DWEN and RSTDISBL, because the result settles both the recovery route and which programmer can reach the part. An open lock byte means a clean read and a direct heximal, while a fully locked part leaves only the destructive erase. The ATtiny48 is the 4 KB of flash device in a 28-pin PDIP / 32-lead TQFP body, so the capacity marking and the package settle the array size before anything is priced. The 28-pin and 32-pin bodies with the larger I/O count mark this member. What survives the lock: the fuse and lock bytes, the device signature, the calibration value, the peripheral registers while the chip runs, and the EEPROM if EESAVE was programmed before any erase.

comparing ATtiny48 with its family

When a board carries only a partial marking, the tinyAVR family is the place to look, because its members share the lock byte, the debugWIRE port and the same erase coupling while differing in flash, SRAM, EEPROM, pin count and peripherals such as the universal serial interface and the high-speed timer. Neighbouring members span 2 KB to 8 KB of flash in 14-pin to 32-pin bodies, with the low-voltage V grades trading clock speed for a wider supply range while keeping the same lock byte and debugWIRE port. The package marking and the signature read over the programmer settle which member is present before any protection work begins.

Our notes on atmel avr microcontroller atmega32 flash memory breaking, attack atmega ic chip microcontroller avr program, attack atmega ic embeded firmware and attack atmega mcu embeded firmware use the same bench sequence, and attack atmega mcu microcontroller firmware records the variant with the wider supply range.

what the customer receives from a break ATtiny48 encrypted flash memory job

For a board that arrived as a break ATtiny48 encrypted flash memory request, the deliverable is a confirmed capacity, a lock-byte state and a priced route agreed in writing before any destructive step, and our engineers read the fuse and lock bytes first.

PostHeaderIcon Three Kinds of One-Time: OTP, Locked Flash, Mask ROM

Three technologies are described as one-time programmable, and they are confused with each other constantly because the phrase describes an outcome rather than a mechanism. The outcome is that the contents cannot be changed. What differs is why, and what that implies for reading.

The most useful correction to make at the start is that one-time refers to writing. In two of the three technologies the contents are perfectly readable, and the third is readable under conditions that are physical rather than electrical.

OTP fuses

An OTP memory stores a bit by destroying a connection or by breaking down a thin oxide. The write is irreversible because the physical structure changes, not because a controller refuses.

There are two variants, and they behave differently under inspection. A poly fuse is blown by current, leaving a visible gap. An antifuse is programmed by breaking down a dielectric, leaving a conductive path that is invisible optically but detectable electrically.

Variant Write mechanism Readable Visible optically
Poly fuse Current blows the link Yes, electrically Yes
Antifuse Oxide breakdown Yes, electrically Barely
Floating-gate OTP Charge on an isolated gate Yes, electrically As a threshold shift

All three are readable by the device’s own interface in normal operation, because the device has to read them. That is the property that makes OTP a poor confidentiality measure and a good integrity measure: the value cannot be changed, and it can be read by anyone who can talk to the device.

Locked flash

The second technology is ordinary flash with a lock that cannot be cleared without erasing. The write is irreversible in practice because the only way to unlock is to destroy.

This is the most common form of one-time programming in modern products, and it is the one with a real protection model: a locked flash page is not readable either, not because it is one-time but because the lock gates reading as well.

Property OTP fuse Locked flash
Contents readable Yes, if the interface allows No, if read protection is set
Contents changeable No No, without erase
Erasable No Yes, destructively
Protection mechanism Physical irreversibility Access control

The distinction matters because a device with locked flash and no read protection is a device whose contents are readable and unchangeable, which is exactly the combination a customer usually wants for a serial number and does not want for a firmware image.

Mask ROM

The third technology is programmed during manufacture by the mask, and it is the only one that is genuinely irreversible at the silicon level.

Mask ROM is written as a pattern in the diffusion or the implant, and the pattern is a physical feature of the die. It cannot be changed, it cannot be erased, and it is visible.

Property Mask ROM
Written by The mask, at wafer fabrication
Changeable Only by a new mask
Readable electrically Through the device’s interface
Readable optically Yes, with decapsulation
Survives decapsulation The die does, the package does not

The fourth row is why mask ROM is the technology that ends up in optical recovery work. The pattern is the data, and reading it is an imaging problem rather than a protocol problem.

Why one-time does not mean unreadable

The confusion is worth addressing directly, because it produces bad quotations in both directions.

A customer who believes that one-time programmable means unreadable will be surprised when a device is read in an hour. A customer who believes that it means unprotected will be surprised when a device with locked flash refuses everything.

Belief Reality
One-time means the data cannot be read Reading and writing are separate permissions
One-time means it is protected Only if a read lock is also set
Mask ROM is unreadable It is the most readable of the three, optically
OTP cannot be copied It can be read and re-burned elsewhere

The fourth row is the commercial point. An OTP device whose contents are readable can be copied — not into another OTP device of the same type necessarily, but into an equivalent device, a flash-based replacement or an emulator. The one-time property protects against modification, not against reproduction.

What actually decides the route

Three questions determine the route for a one-time device, and they are answered in this order.

Is there a read lock in addition to the write lock? If not, the contents are readable through the normal interface and the work is a dump.

Question Answer Route
Is reading locked No Read through the interface
Is reading locked Yes, with a bypass The bypass
Is reading locked Yes, without Optical
Is it mask ROM — Optical regardless

Is the device flash-based or fuse-based? A flash device with a locked read has the property that the lock resists electrical reads but not optical ones; a fuse device stores a physical state that optical imaging can resolve.

Is the die accessible? A plastic package can be opened; a chip-scale package with a coated die is harder; a die mounted under a glob top is harder still.

What the optical route costs

The cost of reading a one-time device optically is set by the array size and the feature size, not by the protection.

Array Feature size Effort
Small OTP, hundreds of bits Microns Hours
Mask ROM, tens of kilobits Sub-micron Days
Mask ROM, megabits Deep sub-micron Weeks, with risk
Any, with a coating — Additional delay removal

The fourth row is the one that changes a quotation. A die with a passivation and a conformal coating requires removal before imaging, and the removal is where devices are damaged. The probability of damage is not zero, which is why optical work is quoted with a note about survivability.

What the service covers

For a one-time device the first deliverable is a classification: which of the three technologies, whether a read lock is present in addition to the write lock, and what the corresponding route costs.

Finding Deliverable
OTP, no read lock A dump, in hours
Locked flash, no read lock A dump, with the note that the lock is write-only
Locked flash, read lock An optical quotation
Mask ROM An optical quotation with a survivability note

The reading routes that apply after the classification are the electrical ones in read MCU code and the physical ones in extracting IC flash.

What we will not do is treat the phrase one-time programmable as a route. It describes a write property, and the read property has to be established separately; the distinction between the two is the same one that appears in three protection layers.

PostHeaderIcon The Programmer Knows Everything: Firmware, Algorithms, Logs

The device has a lock bit, a debug lock and a fuse. The equipment that programs it has a USB port and a folder of files. Any assessment that treats the device as the security boundary has assessed the harder target and ignored the easier one.

A programming system is three assets in one box: the data it burns, the algorithm it uses to burn it, and the record of what it has burned. Each has a different value and each is usually less protected than the chip.

Asset one: the image

A standalone programmer — one that does not need a PC, used for field updates or small production runs — stores the image in its own memory. That memory is a flash chip on a board inside a plastic case, and it is readable with a clip.

The image is stored in whatever form the programmer uses, which may be the raw image, a compressed image, or a container with the programming parameters attached. Even in the last case, the image is there.

Programmer type Image location Readability
PC-hosted, file loaded per run The PC’s filesystem Depends on the PC
Standalone with internal storage A flash chip inside the unit Readable with a clip
Networked production programmer A server or an internal store Depends on the network
Gang programmer Internal storage per socket Readable

The second row is the common case for field service equipment, and it is the most exposed. A programmer that a service technician carries in a van contains the firmware of every product the technician services.

Asset two: the algorithm

The algorithm is the part with the most commercial value and the least obvious location.

In a PC-hosted system it is in the vendor’s software: a dynamic library, a data file with the algorithm parameters, or a firmware blob that is uploaded to the programmer’s hardware. In a standalone system it is in the same internal flash as the image.

Form Location Value
Algorithm description file The vendor’s software directory High; describes the sequence
Firmware blob uploaded per operation The software, or the programmer High; is the sequence
Device-specific parameters A configuration file Medium; the timings
Generic algorithm Hard-coded in the software Low; replaceable

The first row is the one that matters for a customer who wants to program devices with different equipment. An algorithm description file is a text or binary description of the command sequence and timings, and extracting it is a file copy rather than an attack. Its significance is the same as the specification described in what “program” means.

Asset three: the log

The log is the least valuable asset individually and the most revealing in combination.

A production programmer records each operation: timestamp, device identifier, file version or hash, result, and often the serial number written into the device. The record is necessary for traceability and it is a description of the production run.

Log field What it discloses
File hash Which firmware, and whether it changed
Serial number Which unit is which, and the volume
Timestamp Production rate and schedule
Result Yield, and therefore process quality
Operator Who ran the line

The second row is the one that creates a problem beyond confidentiality. A log that maps serial numbers to file versions tells anyone who obtains it which units carry a known-vulnerable firmware, which is a targeting list.

Why this is easier than the chip

Three properties make the programming system a softer target than the device.

It is designed to be accessible. A programmer has a USB port, an SD card slot or a network interface, and those exist so that files can be loaded. There is no equivalent of a lock bit.

It is not treated as a secret. The equipment is bought, configured and handed to staff, and the security model is usually physical control of the room rather than any technical measure.

Property Device Programmer
Accessible interface Locked Open by design
Contents protected Often Rarely
Threat model An attacker with the device None, usually
Replacement cost Low High

The fourth row explains the asymmetry. A device that is compromised is replaced; a programmer that is compromised is a security incident that involves the whole production line, so the equipment is protected physically and not technically.

What the attack looks like

The examination is not destructive and not expensive.

The first step is to identify the equipment and its software version, which is usually written on the case and visible in the software’s about box. The second is to look at what the software stores on disk: a directory listing of the vendor’s folder typically shows the algorithm files, the device database and the logs.

Step Action Output
One Identify the equipment and software version A model and a version
Two Inspect the software directory Locations of the assets
Three Identify the internal storage of a standalone unit A candidate flash chip
Four Read the internal storage The image and the algorithm
Five Correlate the log with production records A unit-to-firmware map

The fourth step requires opening the unit, which is a physical intervention on equipment that may be under warranty or under a service contract. That is a commercial consideration rather than a technical one, and it is the reason this route is often described rather than performed.

What the customer should do about it

The measures are procedural and they are cheap.

The first is to treat a programmer as a copy of the firmware and to apply the same controls: inventory, physical control, and a record of who has access.

Measure Addresses
Inventory of programming equipment Unknown devices holding images
Physical control of the room Access by staff and visitors
Standalone units loaded per job, not permanently Field equipment carrying everything
Log retention policy Production disclosure
Decommissioning procedure Equipment sold with images inside

The fifth row is the one that is almost always missing. Programming equipment is retired, sold or scrapped with its internal storage intact, and a second-hand programmer is a device that contains the previous owner’s production.

Where this fits

The process view of the same problem, including the transfer of the programming file and the fate of returned units, is in supply chain leaks.

Where the objective is to program devices without the original vendor’s equipment, the algorithm is what is needed and its extraction is the observation work described in what “program” means. Where the objective is the image, the device itself is usually the easier source, and the routes are in extracting MCU firmware.

What we deliver for this class of assessment is an inventory and a ranking: which equipment holds which images, what an attacker with physical access would obtain, and which measure closes the exposure. We do not perform interventions on equipment under a service contract without the owner’s written instruction, because the commercial consequences of voiding that contract are usually larger than the finding.

PostHeaderIcon Supply Chain Leaks: Four Points Where Programming Data Escapes

A product with excellent read protection and a plaintext programming file on a contract manufacturer’s server has no protection at all. The two facts are independent, and the second one is the one that determines whether the firmware is confidential.

This is worth setting out as an assessment because it is cheap to perform and because the findings are usually uncomfortable. Four points in the chain carry the image out, and only one of them involves the chip.

Point one: the contract manufacturer’s programmer

A programming house receives the file, loads it into a programmer, and runs a production line. The file exists on their equipment, in their backups, and in whatever transfer mechanism was used to deliver it.

The controls that matter are contractual and procedural rather than technical: whether the file is encrypted at rest, whether it is deleted after the run, whether the programmer logs are retained and by whom, and whether the equipment is shared with other customers.

Control Present Consequence if absent
File encrypted at rest Sometimes A backup contains the image
Deleted after the run Rarely The image persists indefinitely
Dedicated equipment Rarely The next customer inherits the state
Programming logs controlled Rarely The image may be in a log

The fourth row is the one that surprises. A programmer that logs each device’s serial number and the file hash leaves a record of the image’s identity, and on some equipment, of the image itself.

Point two: the transfer

The file has to reach the manufacturer, and the transfer is where most leaks happen because it is treated as an administrative step.

Email attachments, shared drives, unencrypted FTP and messaging applications are all in use. Each of them creates a copy outside the customer’s control, and each of them is frequently accessible to more people than intended.

Transfer method Copies created Discoverable later
Email attachment Mail server, recipient, backups Yes
Shared drive link The drive, plus caches Yes
Unencrypted FTP Server logs, transient copies Yes
Physical media Whoever holds the media No
Encrypted archive plus a separate channel One, if the key is handled Yes, but useless

The last row is the only one that is robust, and it requires the key to travel by a different channel from the file. A password sent in the same email as the archive is not a control.

Point three: the production log

A production line records what it did: how many units, which file, which result, which serial numbers. Those records are necessary and they are also a description of the product.

The exposure is cumulative. A log with a thousand entries tells an observer the production volume, the date range, the file version and the yield. Combined with a single leaked image, it tells which units carry which firmware.

Log content What it reveals
File hash per unit Which firmware is in which unit
Serial number ranges Production volume and dates
Test results Yield and failure modes
Rework records Which units were reprogrammed

The fourth row is the one that is usually overlooked. A rework record identifies units that were opened, and those are the units most likely to have been physically accessible.

Point four: the repaired board

A returned unit is a board with a programmed device on it, and it travels outside the controlled chain.

A repair centre, a distributor’s service department or a third-party workshop receives the unit, and the device on it is a copy of the firmware that nobody counted. The controls that apply to a production line rarely apply to a repair bench.

Path Exposure
Warranty repair Device accessible to service staff
Out-of-warranty repair Device accessible to third parties
Disposal Device sold or scrapped intact
Customer returns resold Device in the hands of a reseller

The third row is the one that matters for products with long service lives. A device that is scrapped with its firmware intact is a device that can be acquired for the price of scrap, and the protection on it is the only thing standing between the firmware and the market.

Why the chip is the last line, not the first

The four points above are process exposures, and they exist regardless of how good the silicon protection is. The chip is the last line because it is the only one that remains when every process control has failed.

That reframing changes what an assessment should recommend. The usual recommendation is a stronger protection bit; the useful recommendation is a combination in which the process controls reduce the number of copies, and the protection ensures that the copies that escape are not readable.

Layer Measure Addresses
Contract Confidentiality terms, audit rights Points one and two
Process Encrypted transfers, key separation Point two
Data Log minimisation Point three
Silicon Read protection, debug lock Point four
Lifecycle Scrap and disposal control Point four, later

How the assessment is performed

The work is a document review and a set of interviews, not a laboratory exercise, and it takes about a week.

The review starts with the transfer: what was sent, by which channel, to whom, and whether the key travelled separately. It then covers the manufacturing agreement: whether the file is deleted, whether the equipment is dedicated, who can access the logs. It finishes with the lifecycle: what happens to a returned unit and to a scrapped one.

Question Finding if the answer is wrong
How was the file transferred? An uncontrolled copy exists
Did the key travel separately? The transfer is not encrypted in effect
Is the file deleted after the run? An indefinite copy exists at the manufacturer
Who can read the logs? Production volume is disclosed
What happens to scrapped units? An intact copy is on the secondary market

Where this fits

The silicon measure that backstops the process is the read protection described in three protection layers, and the reason a device with write access and no read protection is worse than an open one is in programming port permissions.

Where the file transfer is the leak, the fix is procedural and the encryption of the container is the subject of encrypted programming. Where the exposure is a scrapped unit on the secondary market, the technical question becomes how much work reading it costs, which is the assessment in MCU attack surfaces.

What we deliver is a ranking: which of the four points is the largest exposure for this product, what it would take to exploit it, and which measure closes it. A report that recommends stronger encryption while the file sits on a shared drive has assessed the wrong thing.

PostHeaderIcon Public Channels First: Update Packages and Certification Filings

A recovery engagement usually starts with the device on a bench. It should start with a browser, because a surprising amount of what the bench would establish is already published, and because the published version is free.

This is not a suggestion to avoid the technical work. It is a sequencing rule: the public record determines what the technical work needs to establish, and starting without it means solving problems that have already been solved by someone else.

Source one: the vendor’s update package

Products that can be updated have update files, and update files are distributed.

A firmware file downloaded from a support page is, in many cases, the firmware. It may be compressed, it may be wrapped in a container, and it may be encrypted — but on a large fraction of consumer and industrial products it is a plain image with a header, and extracting it takes minutes.

Package form What is needed to use it
Raw image Nothing
Image with a header Strip the header
Compressed image Decompress
Encrypted container The key, usually in the bootloader

The fourth row is the case in decrypting a firmware update package, and even then the package establishes the container format, which is the harder half of the problem.

Source two: certification filings

Radio equipment must be certified, and certification filings are public. In several jurisdictions the filing includes internal photographs of the device with the shields removed.

The photographs are the single most valuable public artefact in this field. They show the chip markings, the crystal, the connectors, the test points and the antenna. A marking read from a photograph identifies the microcontroller without opening anything, which is the entire content of the identification work described in attacking a custom IC.

Filing element What it yields
Internal photographs Chip markings, layout, test points
User manual Interface behaviour, feature list
Block diagram Architecture, sometimes part numbers
Test report Frequencies, power levels, modes
Schematics, when filed Everything

The last row is rare and decisive. Some filings include schematics, and a schematic converts a reverse engineering problem into a reading problem.

Source three: SDKs and open source

A product built on a vendor’s platform often has a public SDK, and the SDK contains the parts of the firmware that the vendor considered generic: the bootloader, the protocol stack, the drivers.

This is valuable for two reasons. It identifies the components, which tells you what to look for in the image. And it gives you labelled code for the parts that would otherwise be anonymous library blocks, which is exactly the obstacle described in MCU break.

SDK artefact Use
Bootloader source Recognise the bootloader in the image
Protocol stack Identify the state machine
Driver code Identify peripheral initialisation
Build scripts Infer the toolchain and the memory layout

The fourth row is underappreciated. A build script tells you the linker configuration, which tells you the memory layout, which is the answer to the completeness question in extracting MCU firmware.

Source four: teardown communities

A device that has been sold in volume has probably been opened by someone who published photographs.

Teardown sites and forums provide board photographs, chip identifications, connector pinouts and sometimes dumped firmware. The quality varies enormously and the provenance is usually unknown, which matters if the result is going to be used as evidence.

Artefact Reliability Use
Board photographs High Identification
Chip markings High, if legible Identification
Pinouts Medium Probing
Claimed dumps Unknown Cross-check only
Repair procedures Medium Access to test points

The fourth row should never be the primary source. A dump of unknown provenance is useful for cross-checking a read and useless as a deliverable, because it cannot be tied to a device.

Source five: patents and datasheets

The manufacturer’s own documentation is public even when the product is not. A patent describes the method, and a datasheet describes the part.

Document What it gives
Patent The algorithm, in detail, with the constants sometimes included
Application note The reference implementation of the same algorithm
Datasheet The memory map, the protection model, the programming interface
Errata The bugs, and therefore the workarounds visible in the code

The fourth row is the one that saves the most time in analysis. An erratum that says a peripheral must be reinitialised after a specific sequence explains a code pattern that would otherwise look like nonsense, and it explains a difference between two firmware versions that would otherwise look like damage.

Why the order matters

Doing the public work first changes the questions asked of the hardware.

Without it, the hardware work begins with identification, proceeds to the memory map, and then to the interface. With it, identification is done, the memory map is known from the datasheet, and the interface is described in the user manual. The hardware work starts at the point where the public record is silent, which is usually the protection state and the actual contents.

Question Answered by public sources Requires hardware
What chip is it Certification photos, teardowns When unmarked
What is the memory map Datasheet Never
What protocol does it speak User manual, SDK Confirmation
What is the protection state No Always
What is in the memory Sometimes a dump exists Usually

The fourth row is the boundary, and it is worth stating because it is where the engagement actually begins. Everything above it is preparation, and preparation is cheap.

What the service does with this

The first phase of a recovery engagement is a public-source review, and its output is a one-page brief: the part, the memory map, the interface, the container format if a package exists, and the questions that remain.

That brief is what the hardware phase is planned against, and it frequently shortens the work by a week. It also produces something less obvious: a list of what the customer already knew and did not realise was public, which sometimes ends the engagement because the answer was available all along.

Finding Effect on the engagement
Update package is a plain image The work is a download
Certification photo shows the part Identification is done
SDK contains the bootloader Half the analysis is done
Package is encrypted with a key in the bootloader The work narrows to the bootloader

The routes that follow are the extraction in extracting MCU firmware and, where the public record is silent about the protection, the surface analysis in MCU attack surfaces. Where the public record gives a protocol but not the implementation, the next step is protocol reverse engineering.

What we will not do is begin with a decapsulation. Opening a device is irreversible, and it is occasionally done on a product whose firmware was downloadable.

PostHeaderIcon Break IC LPC2119FBD64 Eeprom: When the Part Has No EEPROM

Every family of microcontrollers teaches its own vocabulary, and customers arrive carrying the words from whichever part they used last. The word eeprom is the most persistent of them. On an eight-bit part it meant a small separate array with byte granularity and a fixed address. On this ARM7 device there is no such array at all, and yet the parameter block that the product treats as its EEPROM certainly exists.

Finding it is the first task on any job described as an EEPROM read, and it is worth doing properly, because on a board where the store turns out to be external, the job can be finished without touching the protected device at all.

Three places the data can be

In practice, persistent parameters on a product built around this part live in one of three locations, and the firmware’s behaviour on the first read distinguishes them within a minute on a scope.

Location Signature at boot Reachable when the MCU is locked
Emulated block in upper flash sectors no external bus activity only through the array
Serial memory on I2C or SPI traffic on two or four pins yes, directly
Compile-time constants no read of any store only by reading code

The third case is more common than customers expect. A product whose calibration never changes after production often stores it in the image, and the block the customer calls the settings page is actually a set of values written into the source at build time. When that is the case, no EEPROM exists to recover, and the answer to the request is the recovered image with the constants identified and annotated.

Emulated storage in flash

Where the product does need to rewrite parameters in the field, the firmware carves two or more sectors out of the top of the array and treats them as a log. This is the standard technique on parts without a data array, and it leaves a recognisable structure.

Each record is written with a valid marker and a sequence number. A write goes to the next free slot; when a sector is full, the live records are copied to the other sector, the source is erased, and the sequence continues. Reading the content therefore means reconstructing which record of each key is the newest, not simply taking the last bytes in the sector.

The recovery procedure is mechanical once the structure is understood:

  1. Read the sectors in full, including the erased space, because erased space marks the write frontier.
  2. Group by record key, sort by sequence number, and keep the newest surviving copy of each.
  3. Detect the copy event, because records that were promoted during a compaction have higher addresses and older sequence numbers than the ones written after.
  4. Report both the logical map and the raw sectors, since a customer rebuilding the store needs the raw form as well as the interpreted one.

That work is only possible with the array in hand. On a device whose protection has been set to its highest level, the emulated store is exactly as inaccessible as the code — see LPC2101FBD48 protection states for why, and LPC2104FBD48 erase behaviour for what happens if somebody tries to unlock it.

The external memory case

If the scope shows traffic on the serial bus immediately after reset, and those transfers happen before the first output the product produces, the parameter store is on the board rather than in the device.

This is the good outcome. A serial EEPROM in a standard package is readable with a handful of connections, it carries no protection, and it can be copied byte for byte. It also survives the MCU: a board whose microcontroller is destroyed still yields its settings, which is exactly what a repair operation needs.

Identifying which device is on the bus is a matter of reading the address in the first transfer and matching it against the standard address map for the family. The content is then read as a flat image and interpreted against the structure the firmware imposes on it.

Two CAN channels, two layers of parameters

This member of the family carries two CAN controllers, which adds a second class of persistent data that is easy to miss.

A CAN node is identified by its acceptance filters and masks, by the bit timing registers derived from the peripheral clock, and by whatever node address the application puts in its payloads. All three are usually held in the same parameter block as the rest of the settings, and all three must be recovered together for a replacement unit to work on the same bus.

A copy that carries the firmware but not the filter tables produces a device that runs perfectly on the bench and deaf on the network. That failure is common enough to be worth a checklist item: when the product has a fieldbus, recover the network parameters explicitly and report them as a named section rather than as part of a generic parameter blob.

What the deliverable should contain

An EEPROM job that ends with a binary file has answered the letter of the request and only half of its purpose. A useful delivery is four things:

  • the raw content, exactly as read, with the device or sector it came from
  • a field map, so the customer knows which bytes are the serial number, the calibration, the counters
  • the interpretation, so a human can read the values without a decoder
  • the caveats, including which fields were synthesised rather than read, and which were lost

That last item matters on a device where a record was half-written when power failed. A recovery that silently invents a plausible value for a damaged field is worse than one that reports the field as damaged, because the customer will act on it.

Related reading

For the route that produces the array in the first place when the debug port is open, see LPC2102FBD48 data recovery. For the readout route on this same ordering code when the request is the firmware rather than the settings, the older LPC2119FBD64 firmware attack covers the port-level approach, and LPC2129FBD64 firmware recovery covers the network side in more detail.

The question to ask first

Before anything is measured, ask what the value is used for. A customer who needs to restore a serial number needs four bytes. A customer who needs to rebuild a production line needs the whole store. A customer who needs to understand why a unit misbehaves needs the counters and the calibration rather than the identity. The three answers lead to different depths of work, and the first one is often finished in an hour on a board whose microcontroller is never touched.

PostHeaderIcon Minimal Firmware Injection: One Unused Vector, One Hook

Changing a behaviour usually means replacing an instruction. Adding a behaviour means putting new code somewhere and arranging for it to run, and that is a different problem with a different failure mode: the new code has to fit without moving anything the original depends on.

The technique that satisfies this is placement, and the smallest version of it changes two words of the original image.

Why placement is the constraint

An insertion moves code, and moving code breaks every relative branch that crosses the insertion point, every absolute address in a table, and every computed jump whose target was recorded. On a large image there may be thousands of such references, and fixing them is a project rather than a patch.

A redirection avoids moving code by replacing a call with a call to somewhere else. That is fine when there is a call to replace, and it costs one call site.

The third option is to find an entry point that already exists and is unused. A vector table entry that points at a handler which does nothing is exactly that, and occupying it costs one word.

Approach Words changed References to fix Risk
Insertion Many Many High
Call redirection One call site None Low
Unused vector One vector entry None Low
Unused handler body A few None Low

Where the new code goes

New code needs space that is not used and will not be used. Three regions qualify, and they differ in how confident the identification is.

The end of the used flash, after the last byte of the application and before the end of the array, is usually free. It is free because the linker did not need it, and it stays free unless the application writes configuration there.

An erased page in the middle of the image is free if the linker map shows a gap. These exist when a region is reserved for a future feature or when a bootloader and an application are laid out with padding between them.

Region Confidence it is free Risk
After the last used byte High A configuration record may live there
A linker gap High if documented Alignment padding may be assumed
An erased page inside the image Medium May be written at run time
External memory Depends Access path required

The second row requires the linker map, and without it the identification is a guess. A gap that looks like padding may be a region the application writes to at run time, and code placed there will be overwritten.

What the hook has to do

The injected code runs in a context that the developer did not design for, and three things have to be true before it does anything useful.

It has to save and restore the state it uses. An interrupt handler that clobbers a register the interrupted code was using produces a fault that appears at a random place, which is the hardest kind of fault to diagnose.

It has to return in the way the original vector’s handler would. A vector that expects a return from interrupt must get one; a vector that is a reset entry must not return at all.

It has to avoid the self-protection mechanisms that would notice it, which is why the placement analysis in self-protecting code precedes this work.

Requirement Consequence if wrong
Save and restore used registers Random faults after the hook runs
Correct return instruction Lock-up or a fault on return
No writes to protected regions Reset or erase reaction
Within the integrity-checked range? Either recompute or place outside

The fourth row is a design decision. If the injection is inside a region that a checksum covers, the checksum must be recomputed, which is the work described in patching IC code. If it is outside, which is possible when the injection lives in a page past the end of the checked region, no recomputation is needed and the injection is invisible to the check.

Choosing the vector

Not every unused vector is equally good. Three properties matter.

The vector has to be one the application does not enable. An interrupt that is never unmasked never fires, so occupying its vector is free — and it also means the hook never runs, which defeats the purpose unless the hook enables the interrupt itself.

The vector has to be one whose peripheral exists. A vector for a peripheral that is not present on the part may never fire regardless of the enable bit.

Vector property Good for injection Why
Unused and unmasked Occupying is free No interference
Unused, and the hook enables it Runs on demand A timer or a software interrupt
Unused but masked by the application Occupying is harmless No effect
Used by a library Occupying breaks it Conflict

The second row is the useful one. A software interrupt vector, or a timer that the application never starts, gives the hook a trigger that the attacker controls — a write to a register, a command on an interface, a specific sequence of inputs.

The two words that change

The minimal injection is two edits.

The first changes the vector table entry to point at the new code, with the correct bit set for the architecture. On a Cortex-M the Thumb bit must be set, and forgetting it produces a fault on the first instruction.

The second changes nothing in the original code and places the new handler at an address that is aligned to the architecture’s requirement — four bytes on most parts, eight on some.

Edit Location Size
Vector entry Offset in the vector table One word
Hook body Free space Tens to hundreds of bytes

Everything else is the hook’s own content, and its size is limited by the free space rather than by anything else.

Verification

The injection is verified in three steps, and the third is the one that catches the interesting errors.

The first is a static check: the new handler is disassembled in place and its return path is confirmed. The second is a check that the vector table’s other entries are unchanged, because an off-by-one in the table index redirects a different interrupt. The third is a run in which the hook is triggered and the rest of the device is exercised, because an injection that works but breaks a peripheral under load is an injection that fails in the field.

Step Catches
Disassemble the handler in place Wrong return, wrong alignment
Compare the whole vector table Off-by-one index
Trigger the hook under load Register clobbering, timing interference

Where this fits

Injection is the third of the three modification techniques, and it is the one to choose when the goal is to add rather than to change. The other two, substitution and redirection, are in patching IC code.

The space identification depends on the boundary analysis in finding the code, because “free space” is a conclusion from a region map rather than an observation. The verification that a device still meets its specification after an injection is the regression coverage described in attacking MCU firmware.

What we deliver is the modified image, a listing of every byte changed with its address, a disassembly of the injected code, and the results of the three verification steps. What we do not deliver is an injection without a documented trigger, because a hook that nobody can invoke is a byte change with no purpose.

PostHeaderIcon Secure Boot: The Root of Trust Is the Whole Game

A secure boot implementation is a chain of verifications. Each stage checks the next before handing control to it, so that a modified stage is detected before it runs. The chain is a good design and it is the right design, and it has one structural property that determines everything about its strength: the first link cannot be verified by anything.

Whatever verifies the first stage would itself need verification, and the regress has to stop somewhere. It stops in ROM or in a one-time-programmable area, and that is the root of trust. Everything above it is only as trustworthy as that, which is why attacks on secure boot concentrate there.

The shape of a chain

A typical implementation has three or four stages.

The ROM boot code runs first, from mask ROM that cannot be modified. It reads a first-stage image from flash, verifies it, and jumps to it.

The first-stage bootloader verifies the second stage, which may be the application or an update agent. The application may verify its own resources — keys, tables, configuration — before using them.

Stage Stored in Modifiable Verified by
ROM boot Mask ROM No Nothing
First-stage bootloader Flash or OTP With difficulty ROM
Application Flash Yes First stage
Resources Flash or external Yes Application

The fourth row is where many implementations stop verifying, and it is a legitimate design choice for code but not for data that carries security decisions. A key table loaded without verification is a key table that can be replaced.

Where the root actually is

The root of trust is not the ROM code itself in most designs. It is a value that the ROM code trusts: a public key, or a hash of a public key, or a symmetric key.

That value has to be immutable, or the root moves. If the key is in flash, an attacker who can write flash can replace the key and sign his own images, and the chain verifies them correctly. The root is then wherever that key is, and the ROM code is merely the mechanism that reads it.

Root location Immutable Consequence if writable
Key hash in mask ROM Yes Root is genuinely in the ROM
Key hash in OTP Yes, once written Root is in the OTP
Public key in a protected flash page Only if protection holds Root moves with the protection
Public key in ordinary flash No No root at all

The third row is common and is acceptable when the protection is real. The fourth is a design that looks like secure boot and provides none, and it is discovered by reading the boot code rather than by reading the marketing.

Why breaking the root breaks everything

Once the root is compromised, every downstream verification becomes an assertion that the attacker’s image is valid.

If the root is a key hash and the attacker can replace the hash, he generates a key pair, signs his image, and writes his public key’s hash into the location. The ROM verifies, the first stage verifies, the application verifies, and every stage reports success. There is no partial compromise in this structure: the chain either holds at the root or it does not hold at all.

Compromised element Chain result
Root key or hash Entire chain accepts attacker images
First-stage bootloader All above it accepts attacker images
Application Only the application is affected
Resource table Only the resources are affected

The table is the reason an assessment should identify the root before anything else. Attacking the application is a local win; attacking the root is a total one, and the effort is often comparable because the root is small and simple.

Weakness one: verifying a hash of a key

The first recurring weakness is a verification that checks the integrity of a key rather than the authenticity of an image.

The design intent is to save space: store a thirty-two-byte hash instead of a four-hundred-byte public key. The implementation reads the hash, compares it against a stored value, and then uses the key from flash. If the hash matches, the key is trusted.

The flaw is that the hash and the key are both in flash. An attacker who can write flash replaces both, and the comparison succeeds because he made it succeed.

Design What is verified Writable by an attacker
Hash of key compared against a constant Key integrity Yes, both sides
Hash in ROM compared against a key in flash Key authenticity No
Signature verified against a key in ROM Image authenticity No
Signature verified against a key in flash Nothing Yes

The second row is the correct version of the same idea and the difference is one word: where the hash lives. A hash in ROM is a root; a hash in flash is a value the attacker controls.

Weakness two: fail-open

The second weakness is a verification path that continues when verification fails.

It is almost always accidental. A function returns an error code, the caller checks it with a comparison that is inverted, or the error path falls through to the success path because the developer assumed the failure case was unreachable. The result is a boot that proceeds with a modified image and reports success.

Implementation Behaviour on failure Detectable by
Return code checked and branched to a halt Refuses to boot Observation
Return code checked and branched to a recovery mode Refuses the image Observation
Return code ignored Boots the image Reading the code
Error path falls through Boots the image Reading the code

The third and fourth rows cannot be detected from behaviour, because the device boots normally. They are found by reading the boot code, which is why the assessment of a secure boot implementation is a code review rather than a test.

Weakness three: verify once, run forever

The third weakness is a verification performed at load time on an image that is later modified in place.

The mechanism differs by platform. On a device that executes from RAM, an attacker with any write capability can modify the running image after verification. On a device with an external memory and an unprotected bus, the image can be replaced after the loader has read it. On a device with an update mechanism, the update can be applied to a region that is verified only at the next boot.

Execution model Post-verification exposure
Execute in place from internal flash Low; flash writes are gated
Copy to RAM and execute High; RAM is writable
Execute from external memory High; the bus is exposed
Verified at boot, updated at run time High until the next boot

The second row explains why some designs verify and then lock the RAM region containing the code, which is the correct mitigation and adds a memory protection unit requirement that some parts cannot meet.

What an audit produces

The deliverable is a chain diagram with three annotations per link: where the code lives, what verifies it, and what happens when verification fails.

That diagram is the difference between a claim and a finding. A vendor who says the product has secure boot has made a claim; a diagram that shows a hash compared against a constant in flash has produced a finding.

Link Code location Verifier Failure behaviour
ROM Mask ROM Nothing —
First stage Flash ROM, key hash in ROM Halt
Application Flash First stage, signature Halt
Resources Flash Application Halt

Where this fits

The boot chain is the reason a modified image can be refused even when the array has been read successfully, which is the distinction drawn in patching IC code. Where the chain is intact and the root is in ROM, the only remaining approaches are the ones that do not go through the verification at all: a fault injected into the comparison, discussed in glitch attacks as a search problem, or a physical intervention on the die.

Where the failure is a hash in flash rather than in ROM, the root has moved and the work becomes a write rather than an attack, which is why the location of the root is the first question in the audit. The ordering problems that make some chains weaker than their design suggests are in three protection layers.

What we deliver is the diagram and a statement of the weakest link. Where the weakest link is the root in ROM, we say that the chain is sound and that the remaining routes are physical or fault-based, because a customer who is told that secure boot is present deserves to know whether it is doing anything.