Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0sec labs 0 render report

From Leeroopedia
Knowledge Sources
Domains Firmware_Scout, Reporting, domain:Evidence_Export
Last Updated 2026-10-29 00:00 GMT

Overview

Concrete tool for rendering firmware scout evidence taxonomies as JSON or Markdown reports, provided by the 0verse scout CLI module.

Description

The render_report function takes a taxonomy dict (Observed/Inferences/Unknowns) and an output format, producing a formatted report string. JSON output uses json.dumps with sorted keys and indentation. Markdown output renders Observed, Inferences, and Unknowns sections with fenced JSON blocks. This is the final evidence export step — it renders a taxonomy whose device identifier values have already been removed.

Usage

Import this when you need to export a firmware scout evidence report. It is Step 3 of the firmware scout evidence capture workflow.

Code Reference

Source Location

  • Repository: 0security
  • File: 0verse/src/zeroverse/scout_cli.py:L168-184

Signature

def render_report(taxonomy: dict[str, object], output_format: str) -> str:
    """Render a taxonomy (Observed/Inferences/Unknowns) as JSON or Markdown."""

Import

from zeroverse.scout_cli import render_report

I/O Contract

Inputs

Name Type Required Description
taxonomy dict[str, object] Yes /// Observed/Inferences/Unknowns taxonomy dict
output_format str Yes /// "json" or "md"

Outputs

Name Type Description
return str /// Formatted report: JSON string or Markdown with fenced JSON blocks

Usage Examples

Via CLI

# JSON report (default)
0verse scout report ./acquisition_bundle/ --format json

# Markdown report
0verse scout report ./acquisition_bundle/ --format md

Programmatic

from zeroverse.scout_cli import render_report, scout_taxonomy
from zeroverse.acquisition_bundle import load_acquisition_bundle
from zeroverse.scout_evidence import replay_scout_bundle

bundle = load_acquisition_bundle("./acquisition_bundle/")
replay = replay_scout_bundle(bundle, _Discarder())
taxonomy = scout_taxonomy(bundle, replay)

# JSON
json_report = render_report(taxonomy, "json")
print(json_report)

# Markdown
md_report = render_report(taxonomy, "md")
print(md_report)

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment