Implementation:0xSteph Pentest ai agents Vuln Scanner Agent
| 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
- Repository: pentest-ai-agents
- File: agents/vuln-scanner.md
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
- Principle:0xSteph_Pentest_ai_agents_Vulnerability_Scanning
- Principle:0xSteph_Pentest_ai_agents_Scope_Enforcement_and_Safety
Uses Heuristics
- Heuristic:0xSteph_Pentest_ai_agents_OPSEC_Tagging
- Heuristic:0xSteph_Pentest_ai_agents_Least_Aggressive_First
Related Implementations
- Implementation:0xSteph_Pentest_ai_agents_Scope_Guard provides the embedded safety framework
- Implementation:0xSteph_Pentest_ai_agents_Findings_CLI receives vulnerability records from this agent
- Implementation:0xSteph_Pentest_ai_agents_Poc_Validator_Agent validates findings from this agent