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 Vuln Scanner Agent

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

Overview

Concrete agent definition for vulnerability scanning and assessment provided by the pentest-ai-agents toolkit.

Description

The vuln-scanner agent is a Tier 2 (Bash-capable) Claude Code subagent that identifies, validates, and prioritizes vulnerabilities using Nuclei, Nikto, Nmap NSE, and other scanning tools. It operates in advisory and execution modes, provides safe command defaults with rate limiting, and produces a structured analysis framework including CVE deep dives, false positive assessment, and exploit path mapping. It embeds the full scope-guard safety framework and integrates with the findings database.

This is a Pattern Doc: the agent is a system prompt defining scanning methodology, tool defaults, and a dual-perspective (offensive/defensive) analysis framework.

Usage

  • Advisory mode: Paste vulnerability scan results for analysis and prioritization.
  • Execution mode: Ask the agent to run Nuclei, Nikto, or Nmap NSE scans against authorized targets.
  • Findings persistence: The agent records vulnerabilities via `findings.sh add vuln`.

Code Reference

Source Location

Signature

---
name: vuln-scanner
description: >
  Delegates to this agent when the user wants to run vulnerability scans,
  identify CVEs in target systems, use tools like nuclei, nikto, or OpenVAS,
  parse vulnerability scan results, or prioritize vulnerabilities.
tools:
  - Bash
  - Read
  - Write
  - Edit
  - Grep
  - Glob
model: sonnet
---

Import

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

I/O Contract

Inputs

Name Type Required Description
Scan output text No (advisory) Pasted vulnerability scan results
Target text No (execution) IP/URL within declared scope
Scope declaration text Yes (execution) Authorized targets

Outputs

Name Type Description
Critical findings summary table Severity, CVE, target, service, CVSS, exploitability
Vulnerability prioritization Markdown CVSS × exploit availability × business impact
False positive assessment Markdown Flagged findings likely to be false positives
Exploit path mapping Markdown Which vulnerabilities chain together
Evidence files filesystem Timestamped scan output files
DB records SQLite Vulnerabilities in findings database

Usage Examples

Run a Nuclei Scan (Execution Mode)

# Agent composes safe default command:
nuclei -u https://10.10.1.50 -severity critical,high \
  -rate-limit 100 -timeout 10 -retries 1 \
  -o nuclei_10.10.1.50_20261022_140000.json -json

# Tags: [LOUD] Active vulnerability scanning
# After execution, agent records findings:
findings.sh add vuln "CVE-2024-XXXXX RCE" --severity critical \
  --host 10.10.1.50 --cve "CVE-2024-XXXXX" --cvss 9.8 \
  --mitre "T1190" --tool "nuclei" --agent "vuln-scanner" \
  --desc "Pre-auth RCE in Jenkins"

Related Pages

Implements Principles

Uses Heuristics

Related Implementations

Page Connections

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