Thin bounded wrapper around hivex: parses Windows registry hive exports into the RegistryRecord type infrastructure-host-forensics' rule engine already consumes, so rules that were written and tested but never had an input source can run against a real hive
| Tier | infrastructure |
| Role | adapter |
| Path | crates/infrastructure/registry-forensics |
| Edition | 2021 |
| Targets | infrastructure_registry_forensics, evtx_export, reg_export |
| Public items | 3 across 0 modules |
| Tests | 13 |
What it is for
infrastructure-registry-forensics — the input infrastructure-host-forensics never had.
That crate calls itself a pure rule engine over already-parsed registry records and puts the parser out of scope. Nothing in the workspace filled the gap, so usbstor_history, ifeo_debugger_present and credential_enrollment were written, tested, and unreachable on a real machine. This crate parses what hivex emits into the RegistryRecord those rules consume.
Same shape as infrastructure-memory-forensics around Volatility3 and infrastructure-firmware-forensics around CHIPSEC: a pure parser that carries the whole contract and is unit-tested against captured output, plus a thin bounded subprocess edge. Nothing here interprets. A record is a fact and a citation; whether it means anything is a question for a human reading it.
Works against a mounted image, not a running machine — the hives are files, so analysis happens offline against a verified capture and the subject is never booted.
Capabilities
RegistryForensicsError
infrastructure-registry-forensics — the input infrastructure-host-forensics never had.
| Item |
|---|
pub enum RegistryForensicsError |
fn parse_evtx_xml(xml : & str) -> Result <Vec <LogonEventRecord>, RegistryForensicsError> |
fn parse_reg_export(hive : & str, export : & str,) -> Result <Vec <RegistryRecord>, RegistryForensicsError> |
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`
| Item | What it is |
|---|---|
pub enum RegistryForensicsError | What can go wrong turning a hive export into records. |
fn parse_evtx_xml(xml : & str) -> Result <Vec <LogonEventRecord>, RegistryForensicsError> | Parse evtxexport -f xml output into logon records |
fn parse_reg_export(hive : & str, export : & str,) -> Result <Vec <RegistryRecord>, RegistryForensicsError> | Parse hivexregedit --export output into records |
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) | adapter |
| Location | crates/infrastructure/registry-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.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `foundation-bounded-io` | foundation | no | always |
| `infrastructure-host-forensics` | infrastructure | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
chrono | ^0.4 | serde | no | always |
thiserror | ^2 | — | no | always |
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-registry-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
| Kind | Name | Source |
|---|---|---|
| lib | infrastructure_registry_forensics | `src/lib.rs` |
| test | evtx_export | `tests/evtx_export.rs` |
| test | reg_export | `tests/reg_export.rs` |
Error model
| Error type | Named by |
|---|---|
RegistryForensicsError | parse_evtx_xml, parse_reg_export |
Operational characteristics
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | none detected |
| database access | none detected |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | none 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.
Related capabilities
1 workspace crate depends on this one: tools-ir-triage.
Verification
| Kind | Count |
|---|---|
| Unit tests | 0 |
| Integration tests | 13 |
| Examples | 0 |
| Doctests | 0 |
Evidence by module. How often each public module is named by something executable.
| Module | Tests | Examples | Consumers |
|---|---|---|---|
crate root | 3 | 0 | 2 |
What the tests establish, by name:
a_malformed_timestamp_fails_rather_than_defaulting_to_the_epoch—tests/evtx_export.rsan_event_missing_a_logon_type_is_recorded_as_unknown_not_invented—tests/evtx_export.rsevents_the_rule_does_not_want_are_still_parsed_not_pre_filtered—tests/evtx_export.rslogon_records_carry_the_fields_the_rule_cites—tests/evtx_export.rsthe_parsed_records_drive_the_rule_that_had_no_input—tests/evtx_export.rsa_binary_value_keeps_its_bytes_and_survives_continuation_lines—tests/reg_export.rsa_dword_is_parsed_as_a_number_not_as_the_text_of_one—tests/reg_export.rsa_key_with_no_values_still_becomes_a_record—tests/reg_export.rsa_multi_string_splits_on_its_nul_separators—tests/reg_export.rsa_string_value_becomes_a_record_carrying_its_key_and_data—tests/reg_export.rsa_value_outside_any_key_is_refused_rather_than_silently_dropped—tests/reg_export.rsthe_default_value_has_no_name—tests/reg_export.rsthe_parsed_records_actually_drive_the_rules_that_had_no_input—tests/reg_export.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 3 | 3 |
Public modules with a //! block | 0 | 0 |
pie showData
title Public items with rustdoc
"Documented" : 3
"No rustdoc detected" : 0
Metrics
| Metric | Value |
|---|---|
| Rust source files | 1 |
| Source lines | 348 |
| Code lines | 245 |
| Public API items | 3 |
| Public modules | 0 |
| Tests | 13 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 4 |
| Workspace reverse dependencies | 1 |
pie showData
title Public API by kind
"enum" : 1
"function" : 2
pie showData
title Rust source composition
"Code" : 245
"Blank or comment" : 103
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.