Files
reverse-engineering-anything/docs
Beqaandmorluto 6b269dbd97 feat(uefi): read TianoCore EDK2 NVRAM variable stores (#14701)
* feat(uefi): read TianoCore EDK2 NVRAM variable stores

Add read-only parsing of gEfiVariableGuid /
gEfiAuthenticatedVariableGuid VARIABLE_STORE_HEADER regions to
inspect_uefi_nvram via additive edk2_stores, preserving the AMI NVAR
stores contract and reporting added vs superseded variable states.

* fix(uefi): harden EDK2 NVRAM scan coverage and accounting

Occupy store ranges and charge decoded names before retention, keep
truncated and damaged-name facts, examine unread tails, and compose
empty-format diagnostics from scanner facts with a provider-level test.

* fix(uefi): preserve enclosing EDK2 stores and scan erased ranges in blocks

Walk store GUID candidates in ascending offset order, claim only verified
spans so damaged oversized headers cannot hide later stores, and checkpoint
erased suffixes per 64 KiB block.

* fix(uefi): keep unusable EDK2 store signatures from reading as absence

A gEfiVariableGuid or gEfiAuthenticatedVariableGuid match whose header
lacks the formatted marker was skipped silently, so an image holding only
such a header reported that no EDK2 store exists. It is now reported as a
rejected signature, and the absence statement is qualified.

A formatted store that is not HEALTHY is walked with EDK2's verdict as a
caveat: EDK2 treats it as invalid, while UEFITool still parses it. A store at
an unaligned image offset states the HEADER_ALIGN assumption.

An in-use EDK2 fault-tolerant-write queue is noted, because REA does not
replay FTW writes or rebuild a store from the spare area.

AMI NVAR and EDK2 scans now share one structural record budget, as the
limit documents. GUID signature encoding moves to UefiGuid beside its
decoder, header field offsets are named after VariableFormat.h, the
limitation-line cap is a named limit, and the store walk is split from
header admission with unreachable branches removed.

* fix(uefi): distinguish unchecked EDK2 stores from absence

Carry an explicit completed-search absence fact from the EDK2 scanner.
Partial or budget-stopped searches report that presence is unknown
instead of claiming no store exists.

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-27 12:47:09 -05:00
..

Documentation directory

Find an installation step, investigation guide, or contributor reference by task. The REA website has worked examples and product pages.

Getting started

Desktop applications

Agent environments

Native binaries

JavaScript and Electron

Browser and captured websites

Android applications

Apple applications

.NET assemblies

Firmware

HarmonyOS packages

Packages and metadata

WebAssembly

EVM contracts

Databases and recorded packets

Process capture and instrumentation

Provider setup and formats

Contracts and evidence

Development and verification

Release migrations

Signal recordings

Generated files and release records

Path Owner and update command
public/product-catalog.json Ignored contract projection; npm run docs:generate
verification/managed-conformance-*.json Ignored managed conformance projections; npm run evidence:generate
error-contract.schema.json Tracked schema from contracts; npm run docs:error-schema
user-visible-errors.csv Generated error code and category per domain and provider-owned error case; npm run docs:error-schema
releases/<version>.contributions.json Durable release contribution record; follow the release guide

Regenerate catalogs and Evidence projections from their canonical source. Release records preserve the exact commit messages and references for each release. Guides share authored images in assets/.