Skip to content

Findings format ​

Findings are machine-readable: findings.json, written by hand (or by an agent) after looking at a result. They're validated by lib/hww/findings.py check, applied by report.py (and report.py --refresh <result dir> after an edit), and shown on the site.

Where they live:

  • results/<vendor>/<model>/<version>/findings.json: one published release;
  • results/<vendor>/findings.json: the vendor as a whole (build environment, release channel, documentation), with "version": null.

A longer analysis can go in a findings.md next to the JSON; findings reference it.

json
{
 "schema": "cverif-hww/findings/1",
 "target": "trezor/t1b1",
 "version": "1.14.3",
 "findings": [
  {
   "id": "usb-volatile-reload",
   "kind": "mismatch-triage",
   "severity": "info",
   "verdict": "cverif-false-alarm",
   "confidence": "medium",
   "title": "One line",
   "summary": "Markdown: what was found and why the verdict.",
   "functions": ["dwc_ep_stall_set", "dwc_poll"],
   "detail_match": "binary omits the source's 4-byte read of the volatile object",
   "cverif_issue": 3,
   "references": ["findings.md#usb", "https://..."]
  }
 ]
}
fieldrequiredmeaning
idyesunique within the file; used in URLs and in functions.tsv cross-references
kindyesmismatch-triage, reproducibility, integrity, supply-chain, documentation, coverage, scope, security
severityyesinfo, low, medium, high, critical: how much it matters to a user of the device. A cverif false alarm is info
title, summaryyesa line, and Markdown
confidencenolow, medium, high
verdictfor mismatch-triagereal-difference (the published code doesn't do what the source says), unspecified-behaviour (differs only where C leaves it open), cverif-false-alarm, untriaged
functions, detail_matchone of them for mismatch-triagethe mismatches it covers: function names, or a regular expression (Python syntax) searched in cverif's detail text. The first finding that applies to a mismatch wins
cverif_issuenothe number of the issue in cverif-issues.md
referencesnoURLs or paths relative to the result directory

Every MISMATCH cverif reports is either covered by a mismatch-triage finding or counted as untriaged; findings.py check lists results with untriaged mismatches, and the site shows them as such.

Results are produced by scripts anyone can re-run. MIT licensed.