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 agents PoC Validation

From Leeroopedia
Knowledge Sources
Domains Security, Vulnerability_Validation, Safety
Last Updated 2026-10-22 12:00 GMT

Overview

Methodology for confirming or disproving reported vulnerabilities through safe, non-destructive Proof of Concept execution.

Description

PoC Validation is the process of generating and executing a safe Proof of Concept to confirm whether a reported vulnerability is real or a false positive. It addresses the critical problem of scanner noise: automated vulnerability scanners produce significant false positives (version-only detections, WAF interference, dead code paths, mitigating controls). Without validation, reports contain ghost alerts that waste security teams' time.

The principle enforces safety-first PoC design: non-destructive (read, don't write), canary values (unique marker strings instead of real payloads), no persistence (no backdoors or scheduled tasks), no real exfiltration (demonstrate the ability without moving data), reversible (document how to undo changes), and time-limited (timeouts prevent runaway scripts).

Usage

Use this principle when:

  • A vulnerability scanner has produced findings that need confirmation before reporting
  • A specific vulnerability must be proven exploitable for the engagement report
  • False positives from automated scans need to be eliminated
  • Batch validation of a full scan report is needed in priority order

Theoretical Basis

Validation applies a safety-constrained verification function to each finding:

Failed to parse (unknown function "\begin{cases}"): {\displaystyle \text{Result}(f) = \begin{cases} \text{CONFIRMED} & \text{if } \text{PoC}(f) \text{ succeeds safely} \\ \text{FALSE\_POSITIVE} & \text{if } \text{PoC}(f) \text{ fails or is blocked} \\ \text{NEEDS\_MANUAL\_REVIEW} & \text{if safe PoC is not possible} \end{cases} }

Pseudo-code Logic:

# Abstract validation algorithm (NOT real implementation)
def validate_finding(finding):
    poc = generate_safe_poc(finding)  # non-destructive, canary values
    if not is_safe(poc):
        return "NEEDS_MANUAL_REVIEW"

    output = execute_with_timeout(poc, finding.target)
    if confirms_vulnerability(output, finding):
        return "CONFIRMED", adjust_severity(finding, chain_context)
    else:
        return "FALSE_POSITIVE", identify_false_positive_reason(output)

# Batch: process in priority order (critical first, then high)
for finding in sorted_by_priority(findings):
    status, reason = validate_finding(finding)
    update_database(finding.id, status, reason)

Practical Guide

  1. Version verification first: Before any active PoC, check if the version is actually vulnerable.
  2. Safety-first design: Every PoC must be non-destructive, use canary values, and include timeouts.
  3. Non-destructive read-only: Prove access exists without changing anything on the target.
  4. Canary values: Use unique marker strings (e.g., `PENTESTAI_POC_{timestamp}`) instead of real payloads.
  5. No persistence: Never create backdoors, scheduled tasks, or persistent access mechanisms.
  6. No real exfiltration: Demonstrate the ability to exfiltrate without moving real data.
  7. Batch by priority: Validate Critical findings first, then High, deduplicate across hosts.
  8. Clean up: If a PoC writes data (stored XSS canary), document and offer to remove it.
  9. Update database: Record validation status (confirmed, false_positive) in findings database.

Related Pages

Implemented By

Uses Heuristics

Page Connections

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