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

Principle:0sec labs 0 Dedup Emission

From Leeroopedia
Knowledge Sources
Domains Binary_Analysis, Variant_Analysis, Reporting
Last Updated 2026-10-30 00:00 GMT

Overview

Technique for deduplicating confirmed variants by crash/sink signature with fuzzy frame merge, emitting labeled-PoV dataset records, and reporting fleet economics (1 seed → N candidates → M confirmed).

Description

Deduplication and emission is the final stage of fleet variant analysis. Confirmed variants are deduplicated by crash/sink signature so the same vulnerability found in multiple functions is reported once, with fuzzy frame merge handling minor variations. Labeled-PoV NDJSON records are optionally appended to a dataset path for training and evaluation. The sweep convenience function provides a one-call entry point: build the seed, ingest the fleet, and run the full detect→confirm→dedup→emit pipeline. The FleetReport carries the economics — members, candidates, confirmations, and records written — so an operator can assess the sweep's cost-effectiveness.

Usage

Use this principle when a variant analysis sweep needs to produce clean, deduplicated results and optionally contribute to a labeled dataset. The economics report enables cost-benefit analysis of the sweep.

Theoretical Basis

The dedup+emit pipeline:

# Abstract algorithm (NOT real implementation)
for member in members:
    candidates = detect_variants(seed, member)
    confirmations = [confirm_variant(seed, member, c) for c in candidates]
    confirmations = dedup_by_crash_signature(confirmations)
    member_results.append(MemberResult(member, candidates, confirmations))

# dedup: same crash signature across members = one finding
# fuzzy merge: minor stack frame variations don't block dedup

report = FleetReport(seed, member_results)
if dataset_path:
    report.records_written = emit_labeled_povs(report, dataset_path)

# Economics: 1 seed → N candidates → M confirmed
# n_members, n_candidates, n_confirmed, n_hypotheses

The dataset emission produces labeled-PoV NDJSON records: one line per confirmed variant with the bug class, function, sink, PoV input, and crash class. These records are gitignored and stored only where the operator points the dataset path.

Related Pages

Implemented By

Page Connections

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