Turning Vulnerability Research Experience into AI Skills: From Public Reports to a Structured Bug-Hunting Methodology
This article explains how to systematically convert public vulnerability disclosure reports into structured AI agent "skills" for bug bounty hunting and penetration testing. It covers two common pitfalls when using LLMs for security testing, a skill-based approach to knowledge management, a practical pipeline for extracting detection patterns from public reports, and engineering practices for task commands, pre-submission checks, and report standards.
Background: Two Common Pitfalls When AI Meets Bug Hunting
Using LLMs in bug bounty and penetration testing has become a visible trend in the security community over the past two years. Yet most practitioners run into two typical failure modes.
Pitfall 1: A one-line “you are a security expert” prompt. Many people provide nothing more than a role statement plus a few generic instructions. The problem is that security testing depends heavily on contextual details — the prerequisites for exploiting SQL injection, the boundary conditions for IDOR judgment, and the differences between stored and reflected XSS all require concrete rules. A vague role-setting prompt lacks this granularity, so the model can only produce textbook-style, generic answers.
Pitfall 2: Bookmarks-folder knowledge management. Others accumulate dozens or hundreds of public vulnerability disclosure reports and manually flip through them before each engagement. This is far more diligent than the first approach, but the knowledge remains “dead”: reports have no structural connections, retrieval relies on memory, reuse means manual copy-pasting, and there is no automatic matching against the current testing scenario.
The shared weakness of both approaches is that experience is never systematized — every test effectively starts from zero.
The Idea: Distill Experience into “Skills,” Not Prompts or Documents
An increasingly mature solution is to organize domain experience into agent skills — a set of structured skill files, where each file maps to a specific task scenario and contains the objective, methodology, checklists, and output specifications.
This model has three key characteristics:
- Organized by scenario, not by tool. A skill can describe “how to test for horizontal IDOR,” covering authentication logic, test case construction, and common bypass techniques — rather than merely listing how to use a particular tool.
- Natural language driven, loaded on demand. The tester only needs to describe what they are doing in plain language, such as “I’m testing the coupon feature of an e-commerce site.” The system matches relevant skills by topic and automatically injects the context — no need to memorize skill names or invoke them manually.
- Accumulable and versionable. After each engagement, new techniques and lessons learned can be merged back into the skill files, turning them into assets that appreciate over time instead of fragments buried in chat history.
The Method: Extracting Detection Patterns from Public Vulnerability Reports
Where does the knowledge come from? Public vulnerability disclosure platforms are a goldmine. A proven workflow looks like this:
- Bulk collection: Select hundreds of real, platform-verified vulnerability reports covering common web vulnerability classes (injection, access control, file upload, business logic flaws, and so on).
- Pattern extraction: For each report, extract three elements — root cause, verification steps, and report writing style. Then aggregate similar reports into a structured library of detection patterns.
- Denoising and generalization: Remove details tied to specific target environments, keeping the transferable judgment criteria and testing paths.
- Conversion into skill files: Persist each pattern as a Markdown file containing applicability prerequisites, step checklists, evidence requirements, and common false-positive warnings.
The result is not a pile of scattered reports but a ready-to-use “methodology playbook” for guiding testing. It can be structured like this:
# Skill: Horizontal IDOR Testing## Applicable ScenariosEndpoints containing resource identifiers such as user IDs or order numbers.## Checklist- Whether replacing a resource ID still grants access to another user's data- Whether server-side ownership validation exists## Evidence Requirements- Side-by-side request/response comparison between two test accounts- Clear statement of the scope of impact
Engineering: Task Commands, Self-Checks, and Report Standards
Detection patterns alone are not enough. A complete skill library typically includes three layers of engineering support:
Layer 1: Task-oriented commands. Recurring actions such as “reconnaissance,” “attack surface mapping,” “vulnerability validation,” and “report writing” are wrapped as commands, so testers can progress through the workflow step by step and reduce omissions.
Layer 2: Pre-submission self-checks. Before a report is produced, automated rules verify evidence completeness: whether reproducible steps are attached, whether “theoretical risk” is distinguished from “actual impact,” and whether severity ratings are overstated. This step filters out low-quality submissions effectively.
Layer 3: Report standards. Standardize vulnerability title formats, severity justification, and the structure of remediation recommendations, so the output meets the acceptance criteria of the receiving party (an enterprise SRC or bug bounty platform).
Practical Recommendations
- Start narrow, then broaden: Begin with one or two vulnerability classes you know best, validate that the workflow works end to end, then expand.
- Keep a clear human-machine division of labor: AI handles pattern matching, step prompting, and document preparation; humans still vet vulnerability authenticity, impact assessment, and compliance boundaries.
- Mind authorization and compliance: All testing must stay strictly within authorized scope — building a skill library does not change that principle.
Turning scattered experience into automatically loadable, continuously iterated skill assets is the dividing line that takes AI-assisted security testing from “toy” to “productivity.”
