Implementation:0sec labs 0 confirm variant
| Knowledge Sources | |
|---|---|
| Domains | Binary_Analysis, Variant_Analysis, PoV |
| Last Updated | 2026-10-29 00:00 GMT |
Overview
Concrete tool for routing a variant candidate to the appropriate confirmation engine (userland oracle, Qiling firmware oracle, or kernel-verify hypothesis), provided by the 0verse fleet module.
Description
The confirm_variant function routes a candidate to the existing confirmation engine based on the seed's route: userland → the bugclasses exec-trap/differential oracle; firmware → the Qiling emulation oracle; kernel .ko → an honest hypothesis (route:kernel-verify, deferred to the bench KASAN lane since no bare-binary oracle exists). Only a reproducing PoV yields status="confirmed"; otherwise the candidate remains a "hypothesis" with a note explaining why.
Usage
Import this function when you need to confirm a variant candidate with PoV-is-truth. It is Step 4 of the fleet variant analysis workflow.
Code Reference
Source Location
- Repository: 0security
- File: 0verse/src/zeroverse/fleet.py:L614-639
Signature
def confirm_variant(
seed: FleetSeed,
member: FleetMember,
cand: VariantCandidate,
) -> ConfirmedVariant:
"""Route a candidate to the confirmation engine; return ConfirmedVariant."""
@dataclass
class ConfirmedVariant:
candidate: VariantCandidate
status: str # "confirmed" only with reproducing PoV, else "hypothesis"
pov: PoV | None
oracle: str # "exec-trap" | "differential-oracle" | "qiling-differential" | ...
note: str
@property
def confirmed(self) -> bool:
return self.status == "confirmed" and self.pov is not None and self.pov.reproduced
Import
from zeroverse.fleet import confirm_variant, ConfirmedVariant
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| seed | FleetSeed | Yes | The fleet seed (determines the route) |
| member | FleetMember | Yes | The binary containing the candidate |
| cand | VariantCandidate | Yes | The candidate site to confirm |
Outputs
| Name | Type | Description |
|---|---|---|
| return | ConfirmedVariant | Status (confirmed/hypothesis), PoV, oracle name, note |
Usage Examples
Confirming candidates
from zeroverse.fleet import seed_from_archetype, ingest_fleet, detect_variants, confirm_variant
seed = seed_from_archetype("cmdi")
members = ingest_fleet("/fleet/")
for m in members:
candidates = detect_variants(seed, m)
for c in candidates:
result = confirm_variant(seed, m, c)
status = "✅ CONFIRMED" if result.confirmed else "❌ hypothesis"
print(f"{m.name}:{c.function} — {status} ({result.oracle})")
if result.confirmed and result.pov:
print(f" crash_class={result.pov.crash_class}")