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:0xSteph Pentest ai Portable Proof Capsule

From Leeroopedia
Knowledge Sources
Domains Security_Testing, Verification, Trust
Last Updated 2026-10-23 12:00 GMT

Overview

A tamper-evident, replayable bundle that carries a verified finding's proof so any skeptic can independently re-verify the verdict by replaying the oracle against the live target.

Description

Portable Proof Capsule is the principle that vulnerability proof should be portable and independently verifiable, not locked inside the tool that produced it. A capsule bundles a verified finding, its verification recipe (how to re-prove it), and the receipt the verifier issued. Anyone can replay the capsule against the live target and watch the oracle re-confirm the verdict.

Integrity vs authenticity: the capsule's SHA-256 is drift-detection, not adversarial authenticity. It proves a capsule was not edited after it was built, but anyone can recompute it for a forged capsule. Authenticity comes from re-running the proof: a skeptic replays the recipe against the live target. The system deliberately does not sign capsules.

Scope safety: replay re-runs an oracle against a target read from (possibly hostile) capsule JSON, so replay is fail-closed: it refuses unless every request host (finding target + recipe URL fields) is on a caller-supplied allowlist. No allowlist means no replay — there is no implicit "replay anywhere" mode.

Usage

Use this principle when:

  • Verified findings need to be shared with third parties (bug-bounty triagers, auditors, clients)
  • The trust mechanism must not depend on the reputation of the tool that produced the finding
  • You need tamper detection (any post-build edit changes the digest)
  • You need chain capsules for multi-hop attack proofs

Theoretical Basis

Capsule structure:

# Abstract structure (NOT real implementation)
capsule = {
    "capsule_schema_version": 1,
    "ptai_version": "...",
    "created_at": "...",
    "finding": {
        "id": "...",
        "title": "...",
        "target": "...",
        "severity": "...",
        "bug_class": "...",
        "evidence": "...",          # truncated to 2000 chars
        "verification_recipe": {...}, # how to re-prove
    },
    "receipt": {...},                # the verdict
    "integrity_sha256": sha256(canonical(capsule_without_integrity_field)),
}

Chain capsule extends this to N hops:

Failed to parse (syntax error): {\displaystyle \text{ChainCapsule} = \{\text{chain\_metadata}, \text{hops}_i = \{\text{finding}_i, \text{receipt}_i, \text{step\_action}_i\}_{i=1}^{n}\} }

Replay is scope-gated:

Failed to parse (syntax error): {\displaystyle \text{replay}(\text{capsule}, \text{allowed\_hosts}) = \begin{cases} \text{Receipt} & \text{if all request hosts} \in \text{allowed\_hosts} \\ \text{CapsuleScopeError} & \text{otherwise} \end{cases} }

Related Pages

Implemented By

Uses Heuristic

Page Connections

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