Principle:2akouwu Reverify Tool Grounded Verification
| Knowledge Sources | |
|---|---|
| Domains | Reverse_Engineering, Verification, Binary_Analysis |
| Last Updated | 2026-10-24 12:00 GMT |
Overview
Verification paradigm where a language model proposes claims about a binary and deterministic tools (parsers, disassemblers, emulators, SMT solvers) judge every claim against the actual bytes — the model never asserts a fact on its own.
Description
Tool-Grounded Verification inverts the usual LLM workflow: instead of asking the model to produce facts and trusting its output, the model only proposes hypotheses and deterministic, reproducible tools serve as the sole arbiter of truth. Every claim is dispatched to a checker that reads the real bytes, disassembles the real instructions, or emulates the real code, returning a verdict of VERIFIED, REFUTED, or INCONCLUSIVE with concrete evidence (observed values, nearest offsets, counterexamples).
This principle solves the fundamental problem of LLM hallucination in reverse engineering: models confidently assert prologues, import names, and byte patterns that are plausible but wrong. By routing every claim through deterministic tools that read the ground truth, a wrong claim can never be marked VERIFIED — the guarantee is zero false accepts. The verdicts are deterministic given the same bytes and the same engines, so a report plus its receipt (binary hash, engine versions) can be replayed by a third party.
The approach draws on FActScore-style fine-grained atomic fact checking and CORE-style weighting, extending them from natural-language QA to binary analysis where ground truth is not another model's judgment but the bytes on disk.
Usage
Use this principle when:
- You need to verify structural claims about a binary (bytes at an offset, instructions at an entry point, imports, exports, sections).
- You want to catch LLM hallucinations about binary content with zero false accepts.
- You are building an automated reconstruction pipeline where a model proposes and tools judge.
- You need evidence-grade verdicts that are reproducible by a third party (receipt-based replay).
Do not use it when the model's own judgment is sufficient (e.g., summarizing prose) — it is designed for claims that can be checked against deterministic ground truth.
Theoretical Basis
The core invariant is separation of proposal and judgment:
# Abstract algorithm (NOT real implementation)
for claim in model_proposals:
verdict, evidence = deterministic_tool.check(claim, binary_bytes)
if verdict == VERIFIED and not anti_gaming_filter(claim):
accept(claim, evidence)
elif verdict == REFUTED:
reject(claim, evidence) # concrete counterexample
else:
mark_inconclusive(claim)
# Guarantee: no wrong claim is ever marked VERIFIED
The guarantee rests on three properties:
- Determinism: Given the same bytes and the same engine versions, a tool always returns the same verdict. This makes verdicts reproducible.
- Ground truth: Tools read the actual bytes, not a model's representation of them. A claim that bytes at offset 0x28 are
55 48 89 e5is checked by reading those exact bytes. - Fail-closed design: When a tool cannot decide (engine missing, malformed input, unknown claim kind), the verdict is INCONCLUSIVE — never VERIFIED. A missing disassembler cannot produce a false accept.
The receipt mechanism provides non-repudiation: a report includes the binary SHA-256, engine versions, and platform, so the same verdicts can be replayed. This is analogous to a cryptographic signature on the verification process.
Practical Guide
To apply tool-grounded verification:
- Parse the binary into a structured view (format, arch, sections, imports, exports) — this becomes the fact sheet shown to the model.
- Represent claims as structured objects with a kind (e.g.
bytes_at,instructions,import_present) and params (e.g. offset, expected bytes). - Dispatch each claim to the matching deterministic checker. The checker reads the real bytes and returns a verdict with evidence.
- Score the results using information-weighted scoring (see Principle:2akouwu_Reverify_Information_Weighted_Scoring) to filter out trivial, duplicate, and echoed claims.
- Report verdicts with evidence so a human or CI gate can act on refutations.
Related Pages
Implemented By
- Implementation:2akouwu_Reverify_parse_binary
- Implementation:2akouwu_Reverify_Claim_from_dict
- Implementation:2akouwu_Reverify_Verifier
- Implementation:2akouwu_Reverify_print_results
- Implementation:2akouwu_Reverify_handle_tool_call