Now accepting new engagements. Every enquiry receives a response within 24 hoursNow accepting new engagements

Start a conversation

RESEARCH

Firmware recovery: a booting system is not necessarily an authorised system

Recovery can bring a machine back while leaving its security policy behind. A worked model keeps two questions apart: did it boot, and was it allowed to?

8 mins16 JUN, 2026Worked analysis, part 3 of 3

Team Aurelle

Engineering team, Aurelle

On this page 9 sections
  1. The research question
  2. What was implemented
  3. What the model does not measure
  4. Preserve the standards' distinctions
  5. A hardware study needs a safe boundary
  6. The enterprise decision
  7. What the sources support
  8. Data and method
  9. Sources

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 decisions across all 32 combinations of five image properties
Admission ruleImages acceptedAccepted and bootableBooted in breach of the contract
Signature only1687
Policy bound210

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.

Every admission decision in the model

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.

CaseValid signatureCurrent approvalSigner revokedAllowed versionBootableSignature onlyPolicy bound
00000NoNoNoNoNoRejectedRejected
00001NoNoNoNoYesRejectedRejected
00010NoNoNoYesNoRejectedRejected
00011NoNoNoYesYesRejectedRejected
00100NoNoYesNoNoRejectedRejected
00101NoNoYesNoYesRejectedRejected
00110NoNoYesYesNoRejectedRejected
00111NoNoYesYesYesRejectedRejected
01000NoYesNoNoNoRejectedRejected
01001NoYesNoNoYesRejectedRejected
01010NoYesNoYesNoRejectedRejected
01011NoYesNoYesYesRejectedRejected
01100NoYesYesNoNoRejectedRejected
01101NoYesYesNoYesRejectedRejected
01110NoYesYesYesNoRejectedRejected
01111NoYesYesYesYesRejectedRejected
10000YesNoNoNoNoAccepted, not bootedRejected
10001YesNoNoNoYesBooted in breachRejected
10010YesNoNoYesNoAccepted, not bootedRejected
10011YesNoNoYesYesBooted in breachRejected
10100YesNoYesNoNoAccepted, not bootedRejected
10101YesNoYesNoYesBooted in breachRejected
10110YesNoYesYesNoAccepted, not bootedRejected
10111YesNoYesYesYesBooted in breachRejected
11000YesYesNoNoNoAccepted, not bootedRejected
11001YesYesNoNoYesBooted in breachRejected
11010YesYesNoYesNoAccepted, not bootedAccepted, not booted
11011YesYesNoYesYesBootedBooted
11100YesYesYesNoNoAccepted, not bootedRejected
11101YesYesYesNoYesBooted in breachRejected
11110YesYesYesYesNoAccepted, not bootedRejected
11111YesYesYesYesYesBooted in breachRejected

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:

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 the sources support

Scope of each source used in this analysis
SourceSupportsDoes not support
NIST SP 800-193Protection, detection, and recovery; authenticated update; rollback; secure local update; and recovery requirements.Certification of any product, or a universal rollback rule.
OCP Recovery DocumentRecovery 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.1A 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.

The five image properties, and what each rule requires
PropertySignature onlyPolicy bound
Valid signatureMust be validMust be valid
Current approvalNot checkedMust be approved
Signer revokedNot checkedMust not be revoked
Allowed versionNot checkedMust be allowed
BootableNot checkedNot checked: an input to the model, not a rule
Self-checks run by the model
CheckWhat it confirmsResult
strict_recovery_no_unauthorized_bootUnder the policy-bound rule, no modelled boot breaches the contract.Passed
Claims checked for this analysis
Claim under reviewAssessmentQualification required
A successful boot proves authorized recoveryRejectedThe two properties are distinct.
NIST categorically prohibits every older imageRejectedControlled mechanisms and requirement strengths differ.
Static golden-image aging is unrecognizedRejectedOCP addresses it explicitly.
The synthetic model proves a real vulnerabilityRejectedIt shows an omission in a synthetic decision rule, not a product defect.
The policy-bound rule is secureNot establishedIt satisfies only the five modeled conditions; omitted threats remain outside the model.
A version inventory establishes recovery capabilityRejectedThe 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

  1. NIST SP 800-193: Platform Firmware Resiliency Guidelinesnvlpubs.nist.gov
  2. Open Compute Project: Recovery Document 1.1opencompute.org
  3. Open Compute Project: GPU Firmware Update Specification 1.1opencompute.org

Engineering that holds up

Tell us what you are building.

Every engagement is led by senior engineers.

Write to us

Write to us

contact@aurelle.space