On this page 9 sections
The research question
Does a recovery process restore both operation and the security policy, or does it report success merely because the machine boots?
NIST SP 800-193 addresses authenticated update, rollback controls, recovery images, and secure local update. OCP's recovery specification warns that static manufacturing-time recovery images can age into vulnerable states and addresses updating them with authentication and rollback controls.12
These are recognised engineering problems, not newly discovered standards gaps. The contribution here is an executable example that keeps authorisation separate from availability.
What was implemented
Each synthetic image has five Boolean properties: valid signature, current approval, signer revocation, allowed version, and bootability. The program enumerates all 32 combinations.
| Admission rule | Images accepted | Accepted and bootable | Booted in breach of the contract |
|---|---|---|---|
| Signature only | 16 | 8 | 7 |
| Policy bound | 2 | 1 | 0 |
Executed synthetic model over an artificial grid. These are not deployment failure rates, and some combinations may not be feasible in a real system.
A signature-only admission rule accepts 16 states. Eight accepted images are modelled as bootable; seven of those violate the stricter example enterprise contract.
A policy-bound rule accepts only images with valid signature, current approval, a non-revoked signer, and an allowed version. It accepts two states: one modelled as bootable and one unbootable. No modelled successful boot violates the chosen contract.
The first counterexample shows that signature validity and boot success do not necessarily establish current authorisation. The second shows that authorisation does not guarantee operational recovery.
Each square is one of the 32 combinations of five image properties.
Signature only
16 of 32 accepted7 booted in breach
Policy bound
2 of 32 accepted0 booted in breach
- Rejected
- Accepted
- Booted in breach
Show all 32 image states as a table
All 32 image states are listed. An accepted image that is not bootable is admitted but does not start.
| Case | Valid signature | Current approval | Signer revoked | Allowed version | Bootable | Signature only | Policy bound |
|---|---|---|---|---|---|---|---|
| 00000 | No | No | No | No | No | Rejected | Rejected |
| 00001 | No | No | No | No | Yes | Rejected | Rejected |
| 00010 | No | No | No | Yes | No | Rejected | Rejected |
| 00011 | No | No | No | Yes | Yes | Rejected | Rejected |
| 00100 | No | No | Yes | No | No | Rejected | Rejected |
| 00101 | No | No | Yes | No | Yes | Rejected | Rejected |
| 00110 | No | No | Yes | Yes | No | Rejected | Rejected |
| 00111 | No | No | Yes | Yes | Yes | Rejected | Rejected |
| 01000 | No | Yes | No | No | No | Rejected | Rejected |
| 01001 | No | Yes | No | No | Yes | Rejected | Rejected |
| 01010 | No | Yes | No | Yes | No | Rejected | Rejected |
| 01011 | No | Yes | No | Yes | Yes | Rejected | Rejected |
| 01100 | No | Yes | Yes | No | No | Rejected | Rejected |
| 01101 | No | Yes | Yes | No | Yes | Rejected | Rejected |
| 01110 | No | Yes | Yes | Yes | No | Rejected | Rejected |
| 01111 | No | Yes | Yes | Yes | Yes | Rejected | Rejected |
| 10000 | Yes | No | No | No | No | Accepted, not booted | Rejected |
| 10001 | Yes | No | No | No | Yes | Booted in breach | Rejected |
| 10010 | Yes | No | No | Yes | No | Accepted, not booted | Rejected |
| 10011 | Yes | No | No | Yes | Yes | Booted in breach | Rejected |
| 10100 | Yes | No | Yes | No | No | Accepted, not booted | Rejected |
| 10101 | Yes | No | Yes | No | Yes | Booted in breach | Rejected |
| 10110 | Yes | No | Yes | Yes | No | Accepted, not booted | Rejected |
| 10111 | Yes | No | Yes | Yes | Yes | Booted in breach | Rejected |
| 11000 | Yes | Yes | No | No | No | Accepted, not booted | Rejected |
| 11001 | Yes | Yes | No | No | Yes | Booted in breach | Rejected |
| 11010 | Yes | Yes | No | Yes | No | Accepted, not booted | Accepted, not booted |
| 11011 | Yes | Yes | No | Yes | Yes | Booted | Booted |
| 11100 | Yes | Yes | Yes | No | No | Accepted, not booted | Rejected |
| 11101 | Yes | Yes | Yes | No | Yes | Booted in breach | Rejected |
| 11110 | Yes | Yes | Yes | Yes | No | Accepted, not booted | Rejected |
| 11111 | Yes | Yes | Yes | Yes | Yes | Booted in breach | Rejected |
Executed synthetic model over an artificial grid. These are not deployment failure rates, and some combinations may not be feasible in a real system.
A recovery record should have separate fields for restored service and restored authorisation.
What the model does not measure
Bootability is an input, not a hardware observation. The Boolean assignments are artificial, may include infeasible combinations, and are not weighted by real-world probability. The strict policy's result follows from the way the contract was defined.
No device, signing infrastructure, recovery implementation, or vendor platform was tested. The program is a worked explanation and regression-test artefact, not a certification or vulnerability finding.
The enumeration is exhaustive only over its five artificial inputs. A condition the model omits, a false asserted claim, an unauthenticated record, an unlisted dependency, a side channel, a malicious host, or a compromised verifier lies outside what the rule can protect against. The model shows an omission in a synthetic decision rule. It does not show a defect in any product, and the policy-bound rule should not be read as secure beyond the five conditions it checks.
Preserve the standards' distinctions
NIST does not simply say never install an older image. It distinguishes unauthorised rollback from controlled processes, including local recovery mechanisms under specified authorisation conditions. It also distinguishes mandatory requirements from recommendations.1
The applicable rule depends on the update or recovery mechanism and platform context. A product with a documented emergency path needs its own authority, trigger, audit trail, and exit conditions.
OCP's document treats recovery images as part of the authenticated and rollback-controlled system, rather than a timeless golden copy.2 A review should test implementation fidelity instead of presenting image aging as an overlooked concept.
A hardware study needs a safe boundary
Use spare systems with manufacturer-supported restoration, agreed stop conditions, and recoverable lab credentials. Test interruption before complex revocation scenarios. Some platforms may not safely expose every control required by the proposed study.
Report untested areas explicitly. Do not improvise destructive testing on production equipment to produce a stronger-looking result.
After restoration, verify the image, configuration, accepted authority, and policy. Record downtime, vendor intervention, missing artefacts, manual approvals, and evidence loss. NIST notes that recovery may overwrite information useful for attack analysis.1
The converse case also needs a field of its own. A platform that refuses a prohibited image may be behaving correctly while service remains unavailable. That outcome is a sound authorisation decision and an operational failure at once, and a recovery report should be able to say both.
Study protocol
The objective is to determine whether a selected firmware recovery implementation restores both service and the required policy. The protocol is proposed and has not been executed. It is not an approved operational procedure.
It would test three hypotheses:
- H1: the implementation denies requests that violate at least one declared material condition.
- H2: the implementation permits every declared legitimate request.
- H3: the policy the implementation actually enforces may differ from its documented or intended policy.
Variables, outcomes, and controls
Each run fixes the product model, firmware version, trust-anchor version, certificate-chain version, key-store version, recovery-image version, revocation state, interruption point, and authority state.
The outcomes are recovery success, revocation preservation, rollback prevention, evidence retained, audit event, and performance where it is actually measured. Each outcome is defined before testing. A control that is never challenged is recorded as unexercised, not credited with a block.
Testing uses supported development hardware and laboratory credentials, with firmware and recovery images pinned to known versions. The transition matrix and the test oracle are declared in advance, one transition changes at a time, and a separate reviewer examines the policy and the oracle.
Analysis, stopping rules, and acceptance
Accepted, denied, and indeterminate recoveries are reported separately. The analysis distinguishes policy denial from implementation failure, and missing evidence from invalid evidence. It reports the policy actually evaluated, not only the policy intended. A single successful boot is not evidence of recovery readiness.
Successful and materially disruptive traces are reviewed to separate intended behaviour, alternate in-scope routes, harness defects, and unresolved cases. Original outcomes are preserved, every exclusion is explained, and a second reviewer examines ambiguous traces before publication.
Testing stops when a prohibited recovery succeeds, when a legitimate recovery fails, when evidence integrity cannot be established, or when the test oracle is ambiguous. Logs and policy versions are preserved before any remediation.
Acceptable levels of recovery success, revocation preservation, rollback prevention, evidence retention, and audit are fixed before the study; no universal numerical thresholds are supplied here. Where no event is observed, the finding is no observed events under the tested conditions, not proof of impossibility.
If carried out, the study would produce a device-specific report that states the tested configuration and its uncertainty. It would not amount to a universal claim about firmware recovery, a product certification, or an estimate of real-world failure rates.
The enterprise decision
Procurement should ask who initiates recovery, how images are authenticated and updated, how rollback is governed, and what happens when the approved image cannot boot.
A recovery record should have separate fields for restored service and restored authorisation. An explicit, controlled exception is different from silently weakening policy during an outage.
A firmware version inventory does not establish recovery capability. The evidence that does is a supported recovery exercise that records the actual final state of the platform and the operational dependencies the restoration relied on.
Review questions
Beyond the procurement questions above, a review of an existing recovery capability should be able to answer the following.
- What is the recovery contract?
- How does each claim map to a checked condition?
- What happens when a condition fails?
- What happens when evidence is stale?
- What happens when the verifier is unavailable?
- What does revocation invalidate?
- What evidence is retained?
- What event triggers a retest?
What the sources support
| Source | Supports | Does not support |
|---|---|---|
| NIST SP 800-193 | Protection, detection, and recovery; authenticated update; rollback; secure local update; and recovery requirements. | Certification of any product, or a universal rollback rule. |
| OCP Recovery Document | Recovery roles, the aging of golden images, anti-rollback, and recovery authorisation. | A finding that any given product implements the model correctly. |
| OCP GPU FW Update Specification 1.1 | A GPU-specific update model, rollback prevention through SVN and MIN_SVN, and recovery requirements. | A finding that any given GPU product implements the model correctly. |
None of these sources certifies a product, and neither NIST nor OCP endorses the model or recommendations here. The GPU specification is an adjacent reference for accelerator firmware; the model does not depend on it.
Data and method
The model is one Python program that uses only the standard library. It needs Python 3.10 or later and no network access, and running it regenerates every figure and table on this page. It also runs ten self-checks across the three models; the ones that apply to this piece are listed below with their recorded results.
| Property | Signature only | Policy bound |
|---|---|---|
| Valid signature | Must be valid | Must be valid |
| Current approval | Not checked | Must be approved |
| Signer revoked | Not checked | Must not be revoked |
| Allowed version | Not checked | Must be allowed |
| Bootable | Not checked | Not checked: an input to the model, not a rule |
| Check | What it confirms | Result |
|---|---|---|
strict_ | Under the policy-bound rule, no modelled boot breaches the contract. | Passed |
| Claim under review | Assessment | Qualification required |
|---|---|---|
| A successful boot proves authorized recovery | Rejected | The two properties are distinct. |
| NIST categorically prohibits every older image | Rejected | Controlled mechanisms and requirement strengths differ. |
| Static golden-image aging is unrecognized | Rejected | OCP addresses it explicitly. |
| The synthetic model proves a real vulnerability | Rejected | It shows an omission in a synthetic decision rule, not a product defect. |
| The policy-bound rule is secure | Not established | It satisfies only the five modeled conditions; omitted threats remain outside the model. |
| A version inventory establishes recovery capability | Rejected | The recovery exercise itself must be tested. |
From the claim audit kept with the analyses. "Rejected" means the source review does not support the claim as worded.
Show the source worked_models.py
"""Worked policy models, not product tests. Python 3.10+, standard library only.
Run: python worked_models.py results
"""
import itertools, hashlib, csv, json, sys
from pathlib import Path
FIELDS=('signature_valid','appraisal_ok','fresh','workload_allowed','configuration_allowed','resource_allowed','tenant_match','recipient_bound','policy_current','not_revoked')
DEPS=('source','model','isa_semantics','checker','test_harness','scope')
def h(s): return hashlib.sha256(s.encode()).hexdigest()
def release(c, fields): return all(c.get(k) is True for k in fields)
def bound_gate(current,record):
return record.get('status')=='pass' and all(k in current and record.get('bindings',{}).get(k)==h(current[k]) for k in DEPS)
def recovery(c,strict):
return c.get('signature_valid') is True and (not strict or (c.get('approved') is True and c.get('revoked') is False and c.get('version_allowed') is True))
def save(path,rows):
with path.open('w',newline='',encoding='utf-8') as f:
w=csv.DictWriter(f,fieldnames=list(rows[0]));w.writeheader();w.writerows(rows)
def run(folder):
folder=Path(folder);folder.mkdir(parents=True,exist_ok=True)
rows=[]
for bits in itertools.product((False,True),repeat=10):
c=dict(zip(FIELDS,bits)); expected=all(bits)
for name,fields in [('attestation_only',FIELDS[:3]),('eight_conditions',FIELDS[:8]),('full_contract',FIELDS)]:
actual=release(c,fields)
rows.append(dict(case=''.join(str(int(b)) for b in bits),policy=name,released=actual,unauthorized=actual and not expected))
base={k:'initial-'+k for k in DEPS};rec={'status':'pass','bindings':{k:h(v) for k,v in base.items()}}
ar=[]
for bits in itertools.product((False,True),repeat=6):
cur={k:base[k]+('-changed' if b else '') for k,b in zip(DEPS,bits)}
for name,result in [('status_only',True),('digest_bound',bound_gate(cur,rec))]:
ar.append(dict(case=''.join(str(int(b)) for b in bits),gate=name,accepted=result,stale_accepted=result and any(bits)))
rr=[]
for bits in itertools.product((False,True),repeat=5):
c=dict(zip(('signature_valid','approved','revoked','version_allowed','bootable'),bits))
authorized=c['signature_valid'] and c['approved'] and not c['revoked'] and c['version_allowed']
for name,strict in [('signature_only',False),('policy_bound',True)]:
accepted=recovery(c,strict);booted=accepted and c['bootable']
rr.append(dict(case=''.join(str(int(b)) for b in bits),policy=name,accepted=accepted,booted=booted,unauthorized_boot=booted and not authorized))
tests=[('missing_claim_denied',not release({},FIELDS)),('non_boolean_true_denied',not release({'fresh':'true'},('fresh',))),('full_contract_accepts_once',sum(r['released'] for r in rows if r['policy']=='full_contract')==1),('full_contract_no_unauthorized',not any(r['unauthorized'] for r in rows if r['policy']=='full_contract')),('unchanged_evidence_accepted',bound_gate(base,rec)),('failed_evidence_denied',not bound_gate(base,dict(rec,status='fail'))),('missing_bindings_denied',not bound_gate(base,{'status':'pass'})),('mapped_mutations_detected',not any(r['stale_accepted'] for r in ar if r['gate']=='digest_bound')),('unmapped_change_invisible_documented_limit',bound_gate(dict(base,unmapped_configuration='changed'),rec)),('strict_recovery_no_unauthorized_boot',not any(r['unauthorized_boot'] for r in rr if r['policy']=='policy_bound'))]
assert all(ok for name,ok in tests)
summary={'evidence_status':'synthetic_models_not_deployment_rates','release':{p:{'accepted':sum(r['released'] for r in rows if r['policy']==p),'unauthorized':sum(r['unauthorized'] for r in rows if r['policy']==p)} for p in ('attestation_only','eight_conditions','full_contract')},'assurance':{p:{'accepted':sum(r['accepted'] for r in ar if r['gate']==p),'stale_accepted':sum(r['stale_accepted'] for r in ar if r['gate']==p)} for p in ('status_only','digest_bound')},'recovery':{p:{'accepted':sum(r['accepted'] for r in rr if r['policy']==p),'booted':sum(r['booted'] for r in rr if r['policy']==p),'unauthorized_boot':sum(r['unauthorized_boot'] for r in rr if r['policy']==p)} for p in ('signature_only','policy_bound')},'self_checks_passed':len(tests)}
save(folder/'release_cases.csv',rows);save(folder/'assurance_cases.csv',ar);save(folder/'recovery_cases.csv',rr);save(folder/'self_checks.csv',[{'test':name,'passed':ok} for name,ok in tests]);(folder/'summary.json').write_text(json.dumps(summary,indent=2))
return summary
if __name__=='__main__':run(sys.argv[1] if len(sys.argv)>1 else 'results')
Sources
- NIST SP 800-193: Platform Firmware Resiliency Guidelinesnvlpubs.nist.gov
- Open Compute Project: Recovery Document 1.1opencompute.org
- Open Compute Project: GPU Firmware Update Specification 1.1opencompute.org







