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

Implementation:0xSteph Pentest ai agents Poc Validator Agent

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

Overview

Concrete agent definition for vulnerability validation via safe Proof of Concept execution provided by the pentest-ai-agents toolkit.

Description

The poc-validator agent is a Tier 2 (Bash-capable) Claude Code subagent that automatically generates safe PoC scripts, executes them in a controlled manner, and confirms whether reported vulnerabilities are real. It eliminates false positives before they reach the report. Every PoC follows safety-first design: non-destructive, canary values instead of real payloads, no persistence, no real exfiltration, reversible, and time-limited.

The agent supports batch validation mode for processing full scan reports in priority order and produces structured validation reports with confidence assessments. It embeds the scope-guard safety framework and updates vulnerability status in the findings database.

This is a Pattern Doc: the agent defines a PoC generation framework, safety-first design rules, false positive detection heuristics, and batch validation methodology.

Usage

  • Single validation: Delegate when a specific vulnerability needs PoC validation.
  • Batch validation: Provide a full scan report for batch validation in priority order (Critical first, then High).
  • False positive elimination: Use to filter out version-only detections, WAF-interfered results, and dead code paths.

Code Reference

Source Location

Signature

---
name: poc-validator
description: >
  Delegates to this agent when the user wants to validate a vulnerability
  finding with a safe Proof of Concept, eliminate false positives from scan
  results, automatically generate and execute PoC scripts for confirmed
  vulnerabilities, or verify that a reported bug is real.
tools:
  - Bash
  - Read
  - Write
  - Edit
  - Grep
  - Glob
  - WebFetch
  - WebSearch
model: sonnet
---

Import

# Loaded by Claude Code from .claude/agents/ when installed via install.sh

I/O Contract

Inputs

Name Type Required Description
Vulnerability finding text Yes Description of the vulnerability to validate
Target text Yes IP/URL within declared scope
Scope declaration text Yes Authorized targets
Scan report text No (batch) │ Full scan report for batch validation

Outputs

Name Type Description
Validation report Markdown CONFIRMED / FALSE POSITIVE / NEEDS MANUAL REVIEW with PoC script, output, reasoning
Batch summary table Total, confirmed, false positive, needs review counts
Evidence files filesystem PoC scripts and execution output in evidence/
DB updates SQLite │ Updated vuln status via findings.sh update vuln

Usage Examples

Validate a Single Vulnerability

User: "Validate the SQL injection finding on https://shop.example.com/search?q=test"

# Agent generates a safe PoC:
# - Time-based blind SQLi test using SLEEP()
# - Canary marker: PENTESTAI_POC_20261022_140000
# - Non-destructive: extracts database version, no data exfiltration
# - Tags: [MODERATE] Active but controlled

# After execution, produces validation report:
# VALIDATION STATUS: CONFIRMED
# PoC Type: Script (Python)
# Safety Rating: Non-destructive
# Confidence: Confirmed (5.02s delay confirms time-based blind SQLi)
# Adjusted Severity: High (was Medium, elevated due to database access)

# Updates findings DB:
findings.sh update vuln 12 --status confirmed \
  --confirmed-by "poc-validator" \
  --poc-output "Time-based blind SQLi confirmed: 5.02s delay"

Batch Validate Scan Results

User: "Validate all findings from this Nuclei scan" [pastes JSON results]

# Agent processes in priority order:
# 1. Critical findings first (validate all)
# 2. High findings second
# 3. Duplicates last (validate once, apply to all)

# Produces batch summary:
# Total Findings: 47
# Confirmed: 31 (66%)
# False Positive: 12 (26%)
# Needs Review: 4 (8%)

Related Pages

Implements Principles

Uses Heuristics

Related Implementations

Page Connections

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