Definition
FICR (Factory Information Configuration Registers) is a read-only region of non-volatile memory, which keeps its content without power, that Nordic Semiconductor writes during production of its nRF52 chips. It describes the individual chip: memory sizes, part code, a 64-bit device identifier, a Bluetooth device address §7.30, two 128-bit values named encryption root and identity root, and calibration §11.42 values. Software and debuggers read it at fixed addresses; no erase or write open to the user changes it. The writable counterpart is UICR (User Information Configuration Registers) §16.1.
The idea
Firmware needs facts that differ from chip to chip and that nobody knows when the firmware is compiled: how much flash this chip has, a number that tells this chip from every other, an address for its radio, and calibration constants measured on this chip’s silicon. The manufacturer measures or assigns these values during production and stores them where no customer erase can remove them. Even the erase that wipes all flash and UICR leaves FICR intact.
These values invite a common confusion: a value that is unique and was written in a factory is not therefore secret. A car’s vehicle identification number is stamped at the factory, belongs to one car only, and can be read through the windscreen by anyone. It names the car; the key starts it. A device credential corresponds to the key: a value whose holder proves an identity or a right by using it, and which works only while others cannot obtain it. The picture stops at one point. A car key is an object that can be held back, while a credential is a number, and anyone who reads it once holds a perfect copy.
How it works
On the nRF52840 §6.4, a chip of the nRF52 family, FICR starts at address 0x10000000. Its main contents are:
CODEPAGESIZEandCODESIZE: the size of a flash page, 4096 bytes, and the number of pages, 256, so the flash holds bytes, which is 1 MiB.INFO: the part code, variant and package, and the amounts of RAM and flash.DEVICEID[0]andDEVICEID[1]: two 32-bit words that together form a 64-bit unique device identifier.DEVICEADDRTYPE,DEVICEADDR[0]andDEVICEADDR[1]: a 48-bit Bluetooth device address, the number that identifies the device on the radio, and whether it is of the public or the random type.ER[0]toER[3]andIR[0]toIR[3]: two 128-bit values that Nordic names encryption root and identity root. The names come from the key hierarchy that the Bluetooth Core Specification describes, in which a device derives some of its Bluetooth keys from two such roots [18].Calibration constants, for example for the temperature sensor.
To sort these values into public identifiers and secret credentials, ask three questions about each.
Who can read it? Every program on the chip reads FICR. A debugger reads it while access port protection §16.4, the chip’s lock against debuggers, is off. A value the device transmits, prints on a label or writes to a log can be read by whoever receives it.
Does a protocol rely on attackers not knowing it? A credential is a value whose holder proves an identity or a right by computing with it, for example by computing a message authentication code §5.7, a short value only a key holder can compute over a message. The proof is worth something only while no one else holds the value. An identifier only names.
Could an attacker guess it? A secret must be unpredictable: the attacker’s best guess must succeed with negligible probability. The length of a value does not show this.
Applied to FICR, the questions give this result.
Memory sizes and part codes are public facts about the chip model.
DEVICEIDis an identifier. It is unique, and it is public in practice: any firmware can read and report it, and products may print it or use it as a serial number.DEVICEADDRis public by design. A Bluetooth Low Energy §7.1 device sends its address in the packets it broadcasts, unless it uses a resolvable private address §7.31, which changes over time, instead.ERandIRare the only FICR values meant as secret inputs. Their secrecy rests on three things outside FICR: that access port protection keeps debuggers out, that no program on the chip discloses them, and that the factory process that generated them kept no usable copy, which the buyer cannot check. No outside party knows these values, so they cannot prove the device’s identity to a server by themselves.
A secret credential that a server can check is therefore something the product maker adds later through key provisioning §5.28, the process that installs a device’s first keys. An example is a key produced by per-device key derivation §5.24, which computes each device’s key from the maker’s secret root key §5.25 and the device’s identifier, stored in UICR or flash and guarded by access port protection.
Worked example
Take a device whose two DEVICEID words read 0x1A2B3C4D and 0x5E6F7081; the values are invented. A developer makes the device key the SHA-256 §5.2 (Secure Hash Algorithm with a 256-bit output) hash of these 8 bytes. The key is 32 bytes long, but it is not secret: anyone who learns the 8 identifier bytes, from a log, a label or a radio message, computes the same 32 bytes with one hash calculation. A cryptographic hash function §5.1 hides nothing about an input that is already known.
Now let the key be . Here HMAC §5.8 (hash-based message authentication code) is a keyed function, is the 8 identifier bytes, and is a 128-bit root key that only the maker’s provisioning server holds; a real design also adds a label that states the key’s purpose. An attacker who knows must still find . If was chosen uniformly at random, there are candidates. The identifier adds no secrecy. Its job is to make the keys of different devices different, so that the key extracted from one device reveals nothing about the key of another.
Length is not unpredictability either. Suppose a manufacturer numbered a production batch of 10,000 chips consecutively. An attacker who knows the batch has only 10,000 candidates for the 64-bit number of an unknown chip in it, which is bits of uncertainty, not 64. At one million guesses per second, trying them all takes seconds. The register description of the nRF52840 calls DEVICEID a 64-bit unique device identifier. Unique is a promise that no two chips share a value, not a promise that a value is hard to guess.
Stated precisely
Three properties of a value held by device are separate.
Uniqueness: for every two different devices and .
Unpredictability: an attacker’s best single guess at succeeds with probability at most ; the value then has bits of min-entropy §5.26.
Confidentiality §1.8: no route that the threat model §1.2 grants the attacker, meaning the written list of what the attacker can do, reveals .
A value can serve as a secret credential only if it is unpredictable for a large and confidential. Uniqueness alone makes it an identifier.
Let a key be computed as from a secret and a public input , by a function that anyone can evaluate. An attacker who guesses correctly computes , so the attacker’s chance of finding is at least the chance of guessing . The public input adds no secrecy; it only separates the keys of different devices.
Limits and common mistakes
An identifier reported by firmware proves nothing about which chip sent it. Firmware that an attacker controls can report any DEVICEID. Binding a message to an identifier says which device the message is about; only a credential proves which device produced it.
FICR survives every user erase, including the erase-all used for destructive debug recovery §16.6, which wipes a locked chip so that a debugger can use it again. A recovered chip keeps its identifier and its Bluetooth device address while losing its keys and settings. A server that recognizes devices by identifier must not treat a known identifier as a known, intact device.
A fixed Bluetooth address lets observers follow the device from place to place. Privacy features replace it on the air with addresses that change.
Using ER or IR as a credential for a server is weak: every program on the chip can read them, a debugger can read them while the access port is open, and no outside party knows them to check against.
Factory origin is not secrecy. Who wrote a value says nothing about who can read it.
Other Nordic chips place different fields in FICR. Check the specification of the chip in use.
Questions answered
Which identifiers are public and which are actually secret credentials?
In the FICR (Factory Information Configuration Registers) of a Nordic nRF52 chip, the identifiers are public and none of them is a secret credential. The 64-bit DEVICEID is unique but readable by every program on the chip, and products routinely report or print it. The 48-bit Bluetooth device address in DEVICEADDR is broadcast over the radio by design. Memory sizes and part codes describe the chip model. The two 128-bit values ER (encryption root) and IR (identity root) are meant as secret inputs for deriving Bluetooth keys, but they stay secret only while access port protection keeps debuggers out and no firmware discloses them, and no outside party knows them, so they cannot prove the device’s identity to a server.
A secret credential is a value that is unpredictable, readable through no route open to the attacker, and checkable by a verifier. In practice it is a per-device key that the product maker provisions, for example one derived from the maker’s secret root key and the device identifier. In that derivation the root key supplies all the secrecy; the identifier only makes the keys of different devices different. Uniqueness, factory origin and a long hexadecimal form do not make a value secret.
Related entries: UICR (User Information Configuration Registers) (§16.1), Per-device key derivation (§5.24), Root key and root seed (§5.25), Entropy and min-entropy (§5.26), Key provisioning (§5.28), Identity resolving key (IRK) (§7.29), Public, static random, and private addresses (§7.30). Further reading: [18, 151].