Vuln discovery
Multi-phase vulnerability discovery pipeline for codebases. Orchestrates 8 phases — Recon, Hunt, Validate, Gapfill, Dedup, Trace, Feedback, Report — to find, validate, deduplicate, and trace security vulnerabilities. Use for security audits, vulnerability hunting, attack surface analysis, exploitation risk checks, or identifying injection, auth bypass, SSRF, race conditions, hardcoded secrets in source code. Triggers on: 'find vulnerabilities', 'security audit this repo', 'hunt security bugs', 'analyze attack surface', 'check for SQL injection', 'is this repo secure?', 'can attackers exploit anything?', 'find hardcoded secrets', 'pentest this service'. Does NOT trigger on general bugs, features, refactoring, perf, or docs.From its SKILL.md
npx -y skills add prof-ramos/skills --skill vuln-discoveryAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
7.2 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
Vuln-Discovery
Orchestrate a multi-agent vulnerability discovery pipeline across a codebase. Eight sequential phases progressively narrow findings from broad reconnaissance to a validated, deduplicated, traced report.
Pipeline
Recon → Hunt → Validate → Gapfill → Dedup → Trace → Feedback → Report
Each phase produces structured output consumed by the next. Never skip or reorder phases.
Phase 1 — Recon
Produce an architecture document that drives all later phases.
- Identify scope from the user's request. Default to the entire repository if unspecified.
- Enumerate files with
rg --files. Read key entry points, config, and module boundaries. - Fill in the architecture document template from
references/recon-checklist.md. - Store the document for all later phases.
Phase 2 — Hunt
Fan out specialized agents across 7 hunting trails. Each trail targets a vulnerability class. Agents are scoped to code segments identified in Recon.
Trail definitions
| Trail | Scope | Reference |
|---|---|---|
| TRAIL-INJECT | Input and injection vulnerabilities | references/hunt-trails.md |
| TRAIL-AUTH | Authentication and authorization flaws | references/hunt-trails.md |
| TRAIL-DATAFLOW | Source-to-sink data flow issues | references/hunt-trails.md |
| TRAIL-FILEIO | File I/O and parsing vulnerabilities | references/hunt-trails.md |
| TRAIL-SECRETS | Hardcoded secrets and misconfigurations | references/hunt-trails.md |
| TRAIL-NETWORK | SSRF, CORS, and network-level flaws | references/hunt-trails.md |
| TRAIL-CONCURRENCY | Race conditions and state corruption | references/hunt-trails.md |
Allocation
Use the matrix in references/hunt-trails.md to assign agents. Prioritize high-risk intersections (entry points + injection, auth modules + bypass). Spawn each agent with the prompt template from that file.
Finding format
Every finding must conform to the schema in references/finding-schema.md. Required fields: finding_id, title, category, severity, confidence, reachability, locations, description, root_cause, root_cause_id, attack_scenario, attack_path, evidence, sanitization_checkpoints, impact, remediation.
Phase 3 — Validate
Spawn independent agents to refute each finding. Validation is adversarial — agents try to disprove, not confirm.
- Use the prompt template in
references/validate-rules.md. - Rate each finding:
confirmed,plausible,unlikely, orfalse_positive. - Apply promotion rules from that file. Discard
false_positivefindings. - Retain
confirmedandplausiblefindings with validation notes attached.
Phase 4 — Gapfill
Identify code areas with insufficient coverage and re-analyze them.
- Map findings to modules in the architecture document.
- Apply the gap heuristics from
references/gapfill-criteria.md. - Spawn 1–3 focused Hunt agents per identified gap.
- Run Validate on each gapfill finding before merging.
Phase 5 — Dedup
Merge findings that share a root cause. Follow the policy in references/dedup-policy.md.
- Group by proximity (same file/function/data flow).
- Apply the single-fix, dependency, and cause-isolation tests.
- Merge groups into single findings with union of locations, attack scenarios, and the highest severity.
- Assign
root_cause_idper the format inreferences/dedup-policy.md.
Phase 6 — Trace
Confirm whether attacker input reaches each vulnerable code path. Follow the methodology in references/trace-methodology.md.
- For each finding, spawn a Trace agent with the prompt template from that file.
- Classify:
reachable,partially_reachable, orunreachable. - Adjust severity per the reachability rules in
references/severity-criteria.md.
Phase 7 — Feedback
For reachable and partially reachable findings, expand the hunt along confirmed attack paths.
- For each reachable finding, spawn 1–2 Hunt agents targeting adjacent code and similar patterns along the same data flow.
- For partially reachable findings, spawn agents to investigate whether the gating condition can be satisfied.
- Run Validate on new findings. Merge into the deduplicated list (re-run Dedup if overlaps appear).
Phase 8 — Report
Write the final report using the template in references/report-schema.md.
- Collect all validated, deduplicated, traced findings.
- Sort by severity (Critical → Info), then by reachability (reachable → unreachable).
- Fill in the report schema for each finding.
- Write to the working directory:
vuln-report-[YYYY-MM-DD].md
Agent Orchestration
This skill uses spawn_agent for parallel work in phases 2, 3, 4, 6, and 7. Key constraints:
- Hunt phase: Spawn up to 7 trail agents in parallel. Each agent covers one trail across its assigned segment. Do not exceed 7 concurrent Hunt agents per code segment.
- Validate phase: Spawn one agent per finding. Batch into groups if there are many findings.
- Gapfill phase: Spawn 1–3 agents per identified gap.
- Trace phase: Spawn one agent per finding.
- Feedback phase: Spawn 1–2 agents per reachable finding.
- Each spawned agent receives the minimum context needed: the relevant architecture section, trail definition, and any prior findings.
Resource Files
references/recon-checklist.md— Architecture document template and segmentation strategyreferences/hunt-trails.md— Trail definitions, grep patterns, agent prompt templates, allocation strategyreferences/bug-taxonomy.md— Full vulnerability category taxonomy for trail assignmentreferences/validate-rules.md— Validation prompt template, checklist, and promotion rulesreferences/gapfill-criteria.md— Gap heuristics and re-analysis strategyreferences/dedup-policy.md— Deduplication rules, root-cause identification, and merge proceduresreferences/trace-methodology.md— Source-to-sink tracing, sanitization assessment, and confidence scoringreferences/finding-schema.md— Canonical data model for findingsreferences/severity-criteria.md— Severity matrix, category floors, and reachability adjustmentsreferences/report-schema.md— Final report template and formatting rulesexamples/sample-report.md— Example output demonstrating the expected report formatexamples/example-finding.md— Example validated finding with all schema fieldsexamples/example-recon-output.md— Example Phase 1 architecture document outputexamples/example-report-fragment.md— Example report fragment with multiple findings
What ships with it: 15 files
136.3 KB alongside SKILL.md
agents/
- openai.yaml208 B
examples/
- example-finding.md5.7 KB
- example-recon-output.md8.2 KB
- example-report-fragment.md7.5 KB
- sample-report.md11.4 KB
references/
- bug-taxonomy.md5.7 KB
- dedup-policy.md6.8 KB
- finding-schema.md11.8 KB
- gapfill-criteria.md9.5 KB
- hunt-trails.md34.2 KB
- recon-checklist.md4.5 KB
- report-schema.md2.9 KB
- severity-criteria.md7.3 KB
- trace-methodology.md11.6 KB
- validate-rules.md9.2 KB