Definition
Key revocation is the withdrawal of trust from a key before the end of its planned lifetime, usually because the key may be known to an attacker, together with the means by which every party that checks the key learns of the withdrawal and rejects the key from then on. Revocation acts on the verifiers, not on the key: copies of the key still exist and still produce valid signatures or tags. What changes is whether each verifier accepts them.
The idea
A signing key that authorizes firmware for a fleet of devices leaks. The thief can now sign anything, and the signatures are mathematically valid: no check of a signature alone can tell the thief’s signatures from the owner’s. Deleting the key from the owner’s server does not help, because the thief has a copy. The only remedy is to change what the verifiers accept, on every device, including devices that are switched off or out of network range today.
Revocation is therefore news that has to travel and must never be forgotten. A shop that receives the bank’s list of stolen checkbooks still sees perfect checks; only the list stops them. Two questions decide whether revocation works: how, and how fast, the news reaches each verifier, and whether anything can make a verifier forget it. The picture stops at the list, because a list is only one way to record the news, and on small devices not the best one.
How it works
A verifier can record which keys it still accepts in four common ways.
Deny list. The verifier stores identifiers or hashes of revoked keys or revoked signed items and rejects any match. A certificate revocation list (CRL) is a deny list in the X.509 format that public-key certificates use. Its signer is the certificate authority (CA) that issued the listed certificates or another party that the CA has authorized to issue CRLs on its behalf; a CRL from such a party is called an indirect CRL. Firmware that follows UEFI (Unified Extensible Firmware Interface), the specification for the start-up firmware of personal computers, keeps a deny list named
dbxfor secure boot §6.31, the start-up check that permits software authorized by the platform. A deny list can revoke any single item, but it grows by at least one entry per revocation, and an entry can be dropped only when the revoked item could not be accepted anyway, for example because it has expired.Allow list. The verifier stores the keys it accepts and rejects every other key. Revoking a key means removing it from the list.
Expiry. Every key or certificate carries a time after which it is invalid, and revoking it means not renewing it. A credential valid for one day is revoked within one day without any message, but only for a verifier whose clock an attacker cannot set back.
Generation floor. Every key, or every signed item, carries a generation number, and the verifier stores the lowest generation it accepts, called the floor. Raising the floor from to revokes every item of generation or lower in one step, in a few bytes of storage. The stored floor works like a version high-water mark §8.27: a number that only rises.
Whatever the encoding, a revocation update passes through the same steps.
The authority entitled to revoke signs an update with a key that the verifier already trusts for revocation, never with the key being revoked.
The update reaches the verifier inside any message or update the verifier does receive.
The verifier checks the signature and checks that the update’s version number is higher than that of the revocation state it holds.
The verifier writes the new state to storage that survives a restart, and only then relies on it; from then on it rejects anything under the revoked key, although the signatures are valid.
A device that receives nothing cannot learn of a revocation, so the design must bound how long a revoked key stays accepted. Three methods exist, and they combine:
required contact: the device must check in, or receive a signed status, at least every hours, and refuses protected operations after a missed check-in;
expiry: credentials, or the signed list of accepted keys, expire after a short time measured by a clock the attacker cannot set back;
carriage: the revocation update travels inside something the device must accept anyway, such as its next firmware image or configuration, or is brought by a service tool or a neighboring device.
The Update Framework §21.10 (TUF), a design for securing software-update systems, combines the first two: every signed metadata file carries an expiry time and a version number, and a client refuses expired metadata and metadata whose version is lower than that of the copy it already trusts.
Rollback can undo a revocation in two ways. An attacker who can restore an older copy of the device’s storage brings back the state from before the revocation. An attacker who replays an older revocation update, still validly signed, can make the device adopt a shorter deny list or a lower floor. The defenses are to keep the floor, or the version number of the list, in storage that can only move forward, such as a monotonic counter §8.28, a stored counter that may only increase, or one-time programmable (OTP) memory, whose bits are programmed once and never erased, and to accept a revocation update only if its version is higher than the stored one.
A deny list does not scale on a device, because its storage is fixed while revocations accumulate. The design document for SBAT (UEFI Secure Boot Advanced Targeting), written by the developers of shim, the first-stage bootloader §6.30 (the first program the firmware starts) that Linux distributions use under UEFI secure boot, reports that one revocation event in 2020, named BootHole [333], added 3 certificates and 150 hashes of individual boot programs to dbx and used about 10 kB of the 32 kB of revocation storage typically available [332]. SBAT replaces such lists with generation numbers: each boot component carries a generation number in its signed metadata, and the system stores, for each component, the minimum generation it accepts. Raising one stored number then revokes every older build of that component without using more space. The immutable bootloader, stored where it cannot be rewritten, that Nordic Semiconductor supplies for its chips applies the same idea to signing keys: it stores the hashes of several public keys in a fixed order, and once it accepts an image signed with the key at one position, it permanently invalidates every key at a lower position.
Worked example
Space. A small device reserves 1 KiB for a deny list of key hashes made with SHA-256 §5.2 (Secure Hash Algorithm with a 256-bit output), 32 bytes each, so the list holds entries. If each revocation event adds 6 hashes, the list is full after events, where is rounded down, and the sixth event does not fit. UEFI shows the same problem at a larger scale: each hash entry in dbx occupies a 16-byte owner identifier plus the 32-byte hash, 48 bytes in all, so the 150 BootHole hashes alone take bytes. A generation floor needs a few bytes whatever the number of items each raise revokes; stored in OTP memory as one programmed bit per raise, 32 bits allow 32 raises.
Replaced, not revoked. Device D obeys commands under key , generation 3. In a routine key rotation §5.29 the owner activates , generation 4. Nobody puts on a deny list, because nobody believes it compromised. An attacker who recorded the authority’s validly signed command “use key , generation 3” replays it. A device with only a deny list finds no entry for and switches back. If a copy of the private half of later leaks, for example from an old backup, the attacker can sign commands that D obeys. A device that raised its floor to 4 when it activated rejects the replayed command, because . A floor revokes every superseded key; a deny list revokes only the keys someone listed.
The offline window. A key is revoked at noon on day 0. A device must check in with its server at least every 7 days and stops accepting commands when it misses a check-in. In the worst case it checked in just before noon on day 0, so it can accept the revoked key for up to 7 days. Credentials that expire after 24 hours shorten the window to 24 hours plus the device’s clock error, but only on a device whose clock an attacker cannot set back.
Stated precisely
Let be the revocation state stored by a verifier at time , and let be the set of keys that accepts in that state. Let be the stale-acceptance window: the longest time during which a revoked key can still be accepted. Revoking key at time guarantees for every when three assumptions hold.
Delivery: within after , receives an authenticated update that excludes , or the validity period of ends by ’s clock, whose largest error is included in .
Monotonic state: once has stored a state that excludes , no later state includes again; storage cannot be restored to an older copy, and an update whose version number is not above the stored one is refused.
An uncompromised revocation authority: the key that signs revocation updates is not the revoked key and is not known to the attacker.
For a generation floor , the acceptance rule is: accept an item of generation exactly when . An authenticated update that names a new floor sets , so never decreases.
Limits and common mistakes
Deleting a key is not revoking it. Removing the owner’s copy leaves the thief’s copy working; only a change in the verifiers’ state changes the outcome.
Revocation must say what happens to items signed before it. A verifier without a trusted record of when a signature was made cannot tell an old signature from a new one made with the stolen key. It must either reject everything signed with the revoked key, so that genuine items are signed again with a new key, or rely on a trusted timestamp: a statement, signed by a third party, that an item existed at a given time.
Revoking a long-term key §7.28 does not end the sessions already established with it, nor erase the session keys derived during them. Those need their own termination.
An update cannot authorize itself. A message signed by the revoked key that announces a lower floor, or a version number taken from the incoming message, must not change the verifier’s revocation state; only an authority key that the verifier already trusts for revocation can change it.
A generation floor cannot revoke one key while keeping an older one, and raising it makes every older item unusable, including old installation media and backups. Deny lists suit arbitrary single items; floors suit keys and builds that replace one another in order. Real systems combine both.
An online status check, such as OCSP (Online Certificate Status Protocol), in which the verifier asks a status server, called an OCSP responder, about one certificate at the moment of use, needs a working connection. A verifier that accepts the key whenever the server cannot be reached lets an attacker who blocks the connection bypass revocation.
Revoking the key that signs revocation updates needs a path prepared in advance, such as a second, offline key that the verifier already trusts for that purpose. Without one, the only remedy is to reprogram every device.
Questions answered
How do offline devices learn revocation, and can state rollback undo it?
An offline device learns of a revocation only from information that reaches it and that it can check: an authenticated revocation update delivered with whatever it does receive (a firmware image, a configuration file, a message carried by a service tool or another device), or the expiry of a credential measured against a clock that an attacker cannot set back. Until such information arrives, the device keeps accepting the revoked key, so the design must state the longest such window, for example the maximum time between required check-ins plus the clock error.
Yes, rollback can undo revocation. If the revocation state lives in storage that an attacker can restore to an older copy, or if the device accepts an older, still validly signed revocation update, the device returns to accepting the key. The defense is to keep the revocation state, or its version number, in storage that can only move forward, such as a monotonic counter or one-time programmable memory, and to refuse every update whose version is not higher than the stored one. A generation floor kept this way also rejects keys that were merely replaced in a routine rotation, which a deny list of compromised keys does not.
Related entries: Downgrade attack (§1.27), Key rotation (§5.29), Recovery key (§5.31), Rollback versus anti-rollback (§8.26), Version high-water mark (§8.27), Monotonic counter (§8.28), Epoch fencing and stale authority (§19.3.2), Password pepper: a separate secret, compromise cases, and replacement (§5.49). Further reading: [211, 332, 333, 529].