infrastructure capa

infrastructure-bitlocker-forensics

Native parser for the BitLocker FVE metadata block: enumerates the VMK key-protector inventory (clear key / TPM / TPM+PIN / recovery password / password / startup key) as cited Observations, no verdicts. Reads the newer XTS-AES metadata versions that the packaged libbde/dislocker builds reject.

Native parser for the BitLocker FVE metadata block: enumerates the VMK key-protector inventory (clear key / TPM / TPM+PIN / recovery password / password / startup key) as cited Observations, no verdicts. Reads the newer XTS-AES metadata versions that the packaged libbde/dislocker builds reject.

Tierinfrastructure
Roleadapter
Pathcrates/infrastructure/bitlocker-forensics
Edition2021
Targetsinfrastructure_bitlocker_forensics
Public items11 across 0 modules
Tests9

What it is for

Native parser for the BitLocker FVE metadata block: enumerates the volume's key-protector inventory (the VMK entries) as cited Observations, never a verdict.

Why this exists rather than a wrapper crate: the packaged libbde (20190102) and dislocker (0.7.3) both abort on the XTS-AES metadata versions Windows 10/11 writes (unsupported FVE metadata entry version / the VIRTUALIZATION datum), so the established "thin wrapper around the reference tool" pattern has no working reference tool for these images. This reads the documented on-disk structure directly.

Layout is the libyal libbde documentation of the FVE metadata:

0x40 (metadata size, header size, volume GUID, encryption method), then a run of entries ("datums");

guid16, modification_time:i64, unknown:u16, protection_type:u16.

No secret is ever needed to read this: protector types live in the metadata in the clear. Whether a given protector can then unlock the FVEK (a clear-key protector can; a TPM/recovery/password protector needs its secret) is a fact the caller reads off the inventory — this crate states what protectors exist, it does not attempt any unlock.

Capabilities

crate root

Native parser for the BitLocker FVE metadata block: enumerates the volume's

Item
fn parse_metadata_block(block : & u8) -> Result <BitlockerMetadata, BdeError>

BdeError

Native parser for the BitLocker FVE metadata block: enumerates the volume's

Item
pub enum BdeError
fn metadata_offsets(volume_header : & u8) -> Result <u64; 3, BdeError>

BitlockerMetadata

Native parser for the BitLocker FVE metadata block: enumerates the volume's

Item
pub struct BitlockerMetadata
BitlockerMetadata :: fn recoverable_without_secret(& self) -> bool
fn to_observations(md : & BitlockerMetadata, rule_id : & str) -> Vec <Observation>

ProtectionType

Native parser for the BitLocker FVE metadata block: enumerates the volume's

Item
pub enum ProtectionType
ProtectionType :: fn from_code(code : u16) -> Self
ProtectionType :: fn label(& self) -> String
ProtectionType :: fn unlocks_without_secret(& self) -> bool

VmkProtector

Native parser for the BitLocker FVE metadata block: enumerates the volume's

Item
pub struct VmkProtector

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 BdeErrorEvery way parsing the metadata can fail
pub enum ProtectionTypeThe kind of key protector guarding a VMK
ProtectionType :: fn from_code(code : u16) -> SelfMap a raw little-endian protection code to its kind.
ProtectionType :: fn label(& self) -> StringA stable, human-readable label for citation.
ProtectionType :: fn unlocks_without_secret(& self) -> boolWhether this protector unlocks the FVEK with no secret from anyone
pub struct VmkProtectorOne VMK key protector, as read from the metadata.
pub struct BitlockerMetadataThe protector inventory parsed from one metadata block.
BitlockerMetadata :: fn recoverable_without_secret(& self) -> boolWhether any protector unlocks the FVEK with no secret (a clear-key protector is present)
fn metadata_offsets(volume_header : & u8) -> Result <u64; 3, BdeError>Read the three metadata-block offsets (volume-relative) from a volume boot sector
fn parse_metadata_block(block : & u8) -> Result <BitlockerMetadata, BdeError>Parse one FVE metadata block into its protector inventory
fn to_observations(md : & BitlockerMetadata, rule_id : & str) -> Vec <Observation>Lift a protector inventory into cited Observations — one per protector, plus a header observation for the volume description

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

Boundary

Depends on no other workspace tier.

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)adapter
Locationcrates/infrastructure/bitlocker-forensics
Vocabulary in force (lexicon)current

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`infrastructure-host-forensics`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
thiserror^2noalways

Development. None.

Build. None.

Depended on by. 1 workspace crate.

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

flowchart LR
  n_tools_ir_triage["tools-ir-triage"] -->|uses| SELF
  SELF["infrastructure-bitlocker-forensics"]
  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_bitlocker_forensics`src/lib.rs`

Error model

Error typeNamed by
BdeErrormetadata_offsets, parse_metadata_block

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

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

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

1 workspace crate depends on this one: tools-ir-triage.

Verification

KindCount
Unit tests9
Integration tests0
Examples0
Doctests0

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

ModuleTestsExamplesConsumers
crate root703

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc1111
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 11
    "No rustdoc detected" : 0

Metrics

MetricValue
Rust source files1
Source lines522
Code lines386
Public API items11
Public modules0
Tests9
Examples0
Cargo features0
Direct runtime dependencies2
Workspace reverse dependencies1
pie showData
    title Public API by kind
    "enum" : 2
    "function" : 3
    "method" : 4
    "struct" : 2
pie showData
    title Rust source composition
    "Code" : 386
    "Blank or comment" : 136

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