Implementation:0sec labs 0 Dynamic Confirmation
| Knowledge Sources | |
|---|---|
| Domains | Binary_Analysis, Dynamic_Analysis, PoV |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
Concrete tool for dynamic PoV (proof-of-vulnerability) confirmation and standalone replay script generation provided by the 0verse dynamic and poc modules.
Description
The confirm function executes the LLM-proposed trigger input against the target binary and returns a reproducing PoV if the crash oracle fires, or None. It uses differential allocators, exec-trap oracles, and format-string probes to detect crashes without false positives. The write_pov_script function renders a standalone pwntools replay script to disk so a PoV can be re-executed independently. Together these realize the 0verse principle of PoV-is-truth: a finding without a reproducing PoV is a hypothesis, not a finding.
Usage
Import these functions when you need to confirm a static hypothesis by executing it dynamically and producing a reproducible proof-of-vulnerability. They are Stage 6 of the 0verse pipeline.
Code Reference
Source Location
- Repository: 0security
- File: 0verse/src/zeroverse/dynamic.py:L150-320+ (confirm), 0verse/src/zeroverse/poc.py:L86-105 (write_pov_script)
Signature
def confirm(
finding: Finding,
verdict: Verdict,
binary: str | Path,
runner: Runner | None = None,
*,
executor: ExecutionBackend | None = None,
target_format: str = "ELF",
candidate_inputs: Sequence[ConfirmationCandidate] = (),
allow_unknown_sink: bool = False,
timeout: float | None = None,
budget: BudgetTracker | None = None,
compiler_path: str | None = None,
compiler_resolved: bool = False,
) -> PoV | None:
"""Execute the LLM-proposed trigger and return a reproducing PoV, or None."""
def write_pov_script(
path: str | Path,
binary: str | Path,
pov: PoV,
) -> Path:
"""Write a standalone pwntools replay script (chmod +x) and return it."""
@dataclass
class PoV:
input_bytes: bytes = b""
argv: list[str] = field(default_factory=list)
env: dict[str, str] = field(default_factory=dict)
crash_class: str = ""
reproduced: bool = False
capability: str = "" # "reached-sink" | "crash" | etc.
file_input: bool = False
pov_script: str = ""
Import
from zeroverse.dynamic import confirm, SubprocessRunner
from zeroverse.poc import write_pov_script
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| finding | Finding | Yes | The source→sink hypothesis |
| verdict | Verdict | Yes | LLM triage result with input_example |
| binary | Path | Yes | Target binary path |
| runner | Runner | No | Execution runner (default SubprocessRunner) |
| executor | ExecutionBackend | No | Optional remote execution adapter |
| budget | BudgetTracker | No | Attempt budget tracker |
Outputs
| Name | Type | Description |
|---|---|---|
| return | None | Reproducing PoV dataclass or None (not confirmed) |
Usage Examples
Confirm a hypothesis
from zeroverse.dynamic import confirm, SubprocessRunner
pov = confirm(
finding=ranked_hypothesis.finding,
verdict=ranked_hypothesis.verdict,
binary="./target",
runner=SubprocessRunner(),
timeout=30.0,
)
if pov and pov.reproduced:
print(f"Confirmed! crash_class={pov.crash_class}")
# Write standalone replay script
from zeroverse.poc import write_pov_script
script = write_pov_script("./pov_target.py", "./target", pov)
print(f"Replay script: {script}")
else:
print("Not confirmed — remains a hypothesis")