Principle:0xSteph Pentest ai agents PoC Validation
| 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
- Version verification first: Before any active PoC, check if the version is actually vulnerable.
- Safety-first design: Every PoC must be non-destructive, use canary values, and include timeouts.
- Non-destructive read-only: Prove access exists without changing anything on the target.
- Canary values: Use unique marker strings (e.g., `PENTESTAI_POC_{timestamp}`) instead of real payloads.
- No persistence: Never create backdoors, scheduled tasks, or persistent access mechanisms.
- No real exfiltration: Demonstrate the ability to exfiltrate without moving real data.
- Batch by priority: Validate Critical findings first, then High, deduplicate across hosts.
- Clean up: If a PoC writes data (stored XSS canary), document and offer to remove it.
- Update database: Record validation status (confirmed, false_positive) in findings database.
Related Pages
Implemented By
- Implementation:0xSteph_Pentest_ai_agents_Poc_Validator_Agent
- Implementation:0xSteph_Pentest_ai_agents_Findings_CLI
- Implementation:0xSteph_Pentest_ai_agents_Scope_Guard