Implementation:0sec labs 0 capture standard fixture
| Knowledge Sources | |
|---|---|
| Domains | Firmware_Scout, Evidence_Capture, CAN_Bus |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
Concrete tool for sealing a hardware-free standard virtual-CAN fixture into an acquisition bundle, provided by the 0verse scout CLI module.
Description
The capture_standard_fixture function creates a deterministic in-memory virtual ECU (VirtualCanEcu.standard_fixture()), captures its CAN bus evidence into a ScoutEvidenceSession, and seals the result into an AcquisitionBundle. The bundle contains an acquisition.json manifest, artifact paths, and SHA-256-verified content. No physical CAN interface or transmission is opened — this is entirely hardware-free and deterministic. The run_scout function is the CLI dispatcher for the scout subcommands (capture, inspect, report).
Usage
Import this when you need to create a sealed evidence bundle from the standard virtual-CAN fixture. It is Step 1 of the firmware scout evidence capture workflow.
Code Reference
Source Location
- Repository: 0security
- File: 0verse/src/zeroverse/scout_cli.py:L59-64 (capture_standard_fixture), scout_cli.py:L187-224 (run_scout)
Signature
def capture_standard_fixture(output: str | Path) -> AcquisitionBundle:
"""Seal the standard non-transmitting virtual-CAN fixture into a new bundle."""
def run_scout(args: argparse.Namespace) -> int:
"""Run the bounded Scout CLI surface with fail-closed input handling."""
class AcquisitionBundle:
root: Path # bundle directory
manifest: AcquisitionManifest # acquisition.json metadata
artifacts: list[BundleArtifact]
Import
from zeroverse.scout_cli import capture_standard_fixture, run_scout
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| output | Path | Yes /// New acquisition bundle directory path |
Outputs
| Name | Type | Description |
|---|---|---|
| return | AcquisitionBundle /// Sealed bundle with manifest, artifact paths, SHA-256 verified content |
Usage Examples
Via CLI
# Capture the standard fixture
0verse scout capture --fixture standard --output ./acquisition_bundle/
# Prints JSON summary to stdout:
# {"observed": {"acquisition_id": "scout-standard-fixture-v1", ...}, ...}
Programmatic
from zeroverse.scout_cli import capture_standard_fixture
bundle = capture_standard_fixture("./acquisition_bundle/")
print(f"Bundle sealed at: {bundle.root}")
print(f"Acquisition ID: {bundle.manifest.acquisition_id}")
print(f"Artifacts: {len(bundle.artifacts)}")