infrastructure capa

infrastructure-firmware-forensics

Thin bounded wrapper around CHIPSEC: cited Observations from BIOS write-protect and UEFI module scan output, no verdicts

Thin bounded wrapper around CHIPSEC: cited Observations from BIOS write-protect and UEFI module scan output, no verdicts

Tierinfrastructure
Roleunclassified (baselined)
Pathcrates/infrastructure/firmware-forensics
Edition2021
Targetsinfrastructure_firmware_forensics
Public items8 across 0 modules
Tests9

What it is for

Thin bounded wrapper around CHIPSEC: cited Observations from BIOS write-protect and UEFI module scan output, no verdicts of our own — CHIPSEC's own PASSED/FAILED/WARNING classification is cited verbatim, never translated into this crate's own "malicious"/"clean" language (docs/reference/STYLE.md).

Capabilities

ChipsecMarker

Thin bounded wrapper around CHIPSEC: cited Observations from BIOS

Item
pub enum ChipsecMarker

ChipsecResultLine

Thin bounded wrapper around CHIPSEC: cited Observations from BIOS

Item
pub struct ChipsecResultLine
fn parse_chipsec_lines(stdout : & str) -> Vec <ChipsecResultLine>
fn to_observations(lines : & ChipsecResultLine, rule_id : & str) -> Vec <Observation>

FirmwareError

Thin bounded wrapper around CHIPSEC: cited Observations from BIOS

Item
pub enum FirmwareError
async fn bios_write_protect_check(chipsec_main : impl Into <PathBuf>, limits : ExecLimits,) -> Result <Vec <Observation>, FirmwareError>
async fn scan_uefi_modules(chipsec_main : impl Into <PathBuf>, limits : ExecLimits,) -> Result <Vec <Observation>, FirmwareError>
async fn dump_spi_flash(chipsec_util : impl Into <PathBuf>, out_root : & PathGuard, out_filename : & str, limits : ExecLimits,) -> Result <PathBuf, FirmwareError>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub enum ChipsecMarkerCHIPSEC's own classification of a single result line, preserved as-is.
pub struct ChipsecResultLineOne recognized CHIPSEC result line.
pub enum FirmwareErrorEvery way a firmware check can fail.
fn parse_chipsec_lines(stdout : & str) -> Vec <ChipsecResultLine>
fn to_observations(lines : & ChipsecResultLine, rule_id : & str) -> Vec <Observation>Lift parsed CHIPSEC lines into cited Observations under the given rule id.
async fn bios_write_protect_check(chipsec_main : impl Into <PathBuf>, limits : ExecLimits,) -> Result <Vec <Observation>, FirmwareError>chipsec_main -m common.bios_wp — is SPI flash write-protection actually locked.
async fn scan_uefi_modules(chipsec_main : impl Into <PathBuf>, limits : ExecLimits,) -> Result <Vec <Observation>, FirmwareError>chipsec_main -m tools.uefi.scan_uefi — anomalous UEFI module scan.
async fn dump_spi_flash(chipsec_util : impl Into <PathBuf>, out_root : & PathGuard, out_filename : & str, limits : ExecLimits,) -> Result <PathBuf, FirmwareError>chipsec_util spi dump <path> — full SPI flash dump

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into foundation.

Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-adapters-yelp, infrastructure-agent, … (82 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)infrastructure
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/infrastructure/firmware-forensics
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_infrastructure["infrastructure"] --> n_foundation["foundation"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-bounded-io`foundationnoalways
`infrastructure-host-forensics`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
thiserror^2noalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio^1fullnoalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["infrastructure-firmware-forensics"]
  SELF -->|runtime| n_foundation_bounded_io["foundation-bounded-io"]
  SELF -->|runtime| n_infrastructure_host_forensics["infrastructure-host-forensics"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libinfrastructure_firmware_forensics`src/lib.rs`

Error model

Error typeNamed by
FirmwareErrorbios_write_protect_check, dump_spi_flash, scan_uefi_modules

Operational characteristics

PropertyEvidence
async public surfaceyes
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesyes

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

VariableRead in
CARGO_MANIFEST_DIRsrc/lib.rs

No workspace crate depends on this one.

Verification

KindCount
Unit tests9
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root800

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc78
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 7
    "No rustdoc detected" : 1

Metrics

MetricValue
Rust source files1
Source lines277
Code lines222
Public API items8
Public modules0
Tests9
Examples0
Cargo features0
Direct runtime dependencies3
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "enum" : 2
    "function" : 5
    "struct" : 1
pie showData
    title Rust source composition
    "Code" : 222
    "Blank or comment" : 55

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las infrastructure · Manual