agentleFS
TyrusRCTyrusRC/praetor/AGENTS.md

praetor

AGENTS.md7 starsChanged 2 months agoApache-2.0View on GitHub

This project uses specialized agents for parallel pentesting. The orchestrator (main conversation) dispatches agents for independent work streams, merges results, and makes strategic decisions. Each role below corresponds to a file in .claude/agents/<role>.md that the Agent tool auto-loads when dispatched by name. Update both this file (role overview) AND the agent file (operational detail) when changing a role. Host-agnostic access. The Agent-tool dispatch above is Claude-Code-native, but the playbooks themselves are portable: any MCP host reaches them as tools via…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

17 rules. About 0 are common, 13 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When to dispatch: Start of any new engagement or when endpoints section is stale.

    line 41
  2. Distinctive:

    When to dispatch: After recon identifies JS files, or in parallel with recon.

    line 47
  3. Distinctive:

    Purpose: Test a specific vulnerability category on assigned endpoints.

    line 52
  4. Distinctive:

    When to dispatch: After recon, one agent per vuln category on non-overlapping targets.

    line 53
  5. Distinctive:

    When to dispatch: When vuln-scanner reports all payloads blocked on a parameter that looks injectable.

    line 66
  6. Distinctive:

    Purpose: Test authorization and access control across endpoints.

    line 71
  7. Distinctive:

    When to dispatch: When multiple sessions/auth states are available (admin + user + anon).

    line 72
  8. Very specific:

    When to dispatch: When target has extensive client-side rendering, Angular/React/Vue apps, or auto-loading content that server-side …

    line 78
  9. Distinctive:

    Constraint: Only ONE browser agent at a time — single browser instance.

    line 81
  10. Distinctive:

    Constraint: Only ONE mobile-dynamic agent at a time — single device, single Frida session per app.

    line 88
  11. Very specific:

    Constraint: Always work the playbook-payment-and-auth.md workflow — map the multi-step flow BEFORE mutating any single step.

    line 95
  12. Very specific:

    When to dispatch: After detect_tech_stack has fingerprinted the target and standard recon endpoints are mapped.

    line 99
  13. Very specific:

    Constraint: Never two fuzz-agent on the same host simultaneously — WAF tripping.

    line 102
  14. Distinctive:

    Purpose: Test the LLM/AI layer of a captured endpoint (OWASP LLM Top 10) — prompt injection, jailbreak/encoding bypass, system-prompt …

    line 105
  15. Distinctive:

    Purpose: Read ONE saved screenshot and return a compact list of leads (forms, endpoints, error strings, auth markers) — cheap OCR-first …

    line 119
  16. Distinctive:

    After recon, split targets by vulnerability category:

    line 145
  17. Distinctive:

    When an anomaly is found:

    line 159

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Team Configuration

This project uses specialized agents for parallel pentesting. The orchestrator (main conversation) dispatches agents for independent work streams, merges results, and makes strategic decisions.

Definition Files

Each role below corresponds to a file in .claude/agents/<role>.md that the Agent tool auto-loads when dispatched by name. Update both this file (role overview) AND the agent file (operational detail) when changing a role.

Host-agnostic access. The Agent-tool dispatch above is Claude-Code-native, but the playbooks themselves are portable: any MCP host reaches them as tools via list_agents() / get_agent("<role>"). A host that spawns its own sub-agents (e.g. DeepSeek Harness) gives each one a get_agent playbook as its system prompt — the same roles, same tools, driven by that host's model. list_agents() returns a host-agnostic tier per role (strategic / standard / fast, from the Claude model pin) — a non-Claude host maps that tier to its nearest model instead of the opus/sonnet/haiku name it can't resolve; a single-model host runs everything on that model and Rule 33's Opus escalation becomes a no-op. Parallel dispatch is the one host-provided piece; single-threaded hosts run the roles sequentially with the orchestration tools (get_hunt_plan / get_next_action / route_signals / judge_completion).

The orchestrator role is split out: grow-agent is the session-lifecycle orchestrator, defined in .claude/agents/grow-agent.md. When invoked, grow-agent dispatches the worker roles below (including the network and cloud lane owners).

Command Tier (above grow-agent)

Two engagement leads sit above grow-agent. They own strategy — research, a written plan, multi-domain dispatch, cross-target synthesis, delivery — and do NOT run the per-domain loop themselves. Both invoke the shared SOP .claude/skills/command-engagement.md; each agent file carries only its role deltas. On-demand only.

{pentest|redteam}-commander        engagement lead — research, plan, synthesize, report
  └─ grow-agent(domain)   × N      per-domain executor (bounded: 2–3 in flight)
       └─ workers (web + network + cloud + mobile lanes)

pentest-commander

Purpose: Coverage-driven engagement lead. Full WSTG/OWASP coverage, every finding verified and reported. When to dispatch: Multi-endpoint / multi-domain pentest where breadth + a findings report is the deliverable. Dispatch: Agent(subagent_type="pentest-commander", prompt="domains=[...], objective=..., session_name=..."). Success: coverage matrix complete (or documented negatives), all findings confirmed + written up, report in reports/.

redteam-commander

Purpose: Objective-driven engagement lead. Shortest verified kill chain to a stated goal, under a stealth/noise budget. When to dispatch: Goal-oriented red team op (reach data/access/flag) rather than a coverage sweep. Dispatch: Agent(subagent_type="redteam-commander", prompt="objective=..., domains=[...], noise_budget=low|moderate|high"). Success: objective reached + kill chain documented, or furthest-progress chain + blocker.

Anti-recursion (HARD): a commander NEVER dispatches a commander. Commanders dispatch grow-agent (which never dispatches grow-agent) + specialists. One command layer only.

Agent Roles

recon-agent

Purpose: Map the target's attack surface in parallel with other analysis. When to dispatch: Start of any new engagement or when endpoints section is stale. Tools it should use: discover_attack_surface, discover_common_files, full_recon, detect_tech_stack, get_unique_endpoints, discover_hidden_parameters Returns: Endpoint list with risk scores, tech stack, sensitive files found, hidden parameters.

js-analyst

Purpose: Deep JavaScript analysis — secrets, DOM sinks, API endpoints. When to dispatch: After recon identifies JS files, or in parallel with recon. Tools it should use: fetch_page_resources, extract_js_secrets, analyze_dom, extract_api_endpoints, fetch_resource Returns: Found secrets (with severity), DOM XSS sink-to-source flows, hidden API endpoints.

vuln-scanner

Purpose: Test a specific vulnerability category on assigned endpoints. When to dispatch: After recon, one agent per vuln category on non-overlapping targets. Tools it should use: auto_probe, bulk_test, probe_endpoint, fuzz_parameter, test_lfi, test_file_upload, test_cors, test_graphql, test_cloud_metadata, test_open_redirect, test_jwt, get_payloads Returns: Findings with scores, tested parameters, anomalies for investigation. Important: Each vuln-scanner agent gets a DIFFERENT set of targets or categories to avoid duplicate requests.

finding-verifier

Purpose: Re-verify confirmed findings and investigate anomalies. When to dispatch: On session resume with stale findings, or after scanning finds anomalies. Tools it should use: session_request, compare_auth_states, auto_collaborator_test, get_collaborator_interactions, compare_responses, save_target_intel Returns: Updated finding status (confirmed/stale/likely_false_positive) with evidence.

payload-crafter

Purpose: Craft bypass payloads when standard attacks are blocked by WAF/filters. When to dispatch: When vuln-scanner reports all payloads blocked on a parameter that looks injectable. Tools it should use: fuzz_parameter, get_payloads, decode_encode, session_request, probe_endpoint, save_target_notes Returns: Working bypass payload with filter map, or "filter too strong" with evidence.

auth-tester

Purpose: Test authorization and access control across endpoints. When to dispatch: When multiple sessions/auth states are available (admin + user + anon). Tools it should use: test_auth_matrix, compare_auth_states, test_race_condition, test_parameter_pollution, test_jwt, session_request Returns: IDOR findings, auth bypass results, race condition results.

browser-agent

Purpose: Browser-based crawling and JavaScript interaction for SPA/JS-heavy targets. When to dispatch: When target has extensive client-side rendering, Angular/React/Vue apps, or auto-loading content that server-side crawling misses. Tools it should use: browser_navigate, browser_crawl, browser_interact_all, browser_click, browser_fill, browser_execute_js, browser_get_page_info Returns: Discovered endpoints from JS rendering, dynamic routes, XHR/API calls captured in proxy history. Constraint: Only ONE browser agent at a time — single browser instance.

mobile-dynamic-agent

Purpose: Drive Frida (iOS + Android) and adb (Android only) on the operator's host to bypass SSL pinning / root-JB detection, hook runtime crypto + storage, abuse Android exported components and deep links, dump iOS keychain — so backend traffic reaches Burp. Dynamic-only; no static decompile. When to dispatch: Operator has the APK/IPA installed on a device + Frida server + adb authorized + Burp CA pushed to device. Triggered by playbook-mobile-dynamic.md. Dispatch BEFORE playbook-mobile-backend.md testing — this agent unlocks the traffic. Tools it should use: Bash (for frida -U -l <script>, adb shell ..., objection -g <pkg>), get_proxy_history, extract_api_endpoints, search_history, build_target_header_profile, save_target_intel, annotate_request. Returns: Pinning-bypass status, captured backend endpoints + headers + tokens, hooked HMAC/crypto keys, exported-component list, deep-link parameter sinks, iOS keychain items, IAP receipt structure. Hands off to playbook-mobile-backend.md §3. Constraint: Only ONE mobile-dynamic agent at a time — single device, single Frida session per app. Never dispatch on someone else's device. Don't submit pinning / root detection bypass as standalone findings — they're the means, not the bug.

auth-payment-agent

Purpose: Deep-dive the highest-paying attack surface — OAuth 2.0 / OIDC, WebAuthn / FIDO2 / passkeys, Google Pay, Apple Pay, Samsung Pay, IAP server-side validation, 3DS 2.x bypass, SCA exemption abuse, wallet linking, recovery flow downgrades. $5k–$50k bug class. When to dispatch: Router Q7 matched OR explicit user ask for "OAuth / SSO / payment / FIDO / wallet / recovery testing". Often co-dispatched with mobile-dynamic-agent when the payment/auth flow originates from a mobile app. Tools it should use: session_request, run_flow, auto_probe(categories=["oauth","oauth_device_flow","webauthn_passkey","payment_flow"]), test_jwt, auto_collaborator_test, compare_auth_states, concurrent_requests (recovery-code brute-force probes), resend_with_modification, search_history, extract_regex, assess_finding, save_finding. Returns: Confirmed bypasses with reproductions[], replay-chain evidence, severity-rated findings with PoC steps, suggested chain-with[] anchors for higher-severity reports. Constraint: Always work the playbook-payment-and-auth.md workflow — map the multi-step flow BEFORE mutating any single step. Don't fuzz redirect_uri with 1000 payloads when auto_probe covers the working bypasses.

fuzz-agent

Purpose: Discover hidden directories and files using smart, tech-aware wordlists. Replaces spray fuzzing with surgical SecLists slicing fed by recon intel. When to dispatch: After detect_tech_stack has fingerprinted the target and standard recon endpoints are mapped. Use shallow tier for triage, medium for primary runs, deep only when shallow+medium return empty. Tools it should use: detect_tech_stack, generate_smart_wordlist, run_ffuf (proxied through Burp; match_codes=[200,204,301,307,401,403,500], filter_size=<baseline>), annotate_request (color YELLOW, comment hidden-path), send_to_organizer, save_target_intel. Returns: New endpoints written into .burp-intel/<domain>/endpoints.json, YELLOW-annotated proxy entries for each hit, organizer entries for follow-up. Constraint: Never two fuzz-agent on the same host simultaneously — WAF tripping. Max 1 concurrent fuzz-agent per host across the whole session. See .claude/skills/fuzz-hidden-paths.md.

llm-agent

Purpose: Test the LLM/AI layer of a captured endpoint (OWASP LLM Top 10) — prompt injection, jailbreak/encoding bypass, system-prompt leakage, improper output handling into a downstream sink, sensitive-data disclosure, excessive agency / tool-SSRF. LLM lane only; does NOT test the app's classic web bugs. When to dispatch: An endpoint is LLM-backed — body carries messages[]/prompt/input, path is /chat|/completions|/v1/chat|/generate|/ask, or the response is model-generated natural language. Only against the operator's own deployment, never an upstream provider API. Triggered by playbook-llm-security.md. Tools it should use: discover_llm_endpoint, run_web_llm_owasp_top10, run_nuclei_llm_infra, run_local_llm_prompt_injection, run_garak, run_owasp_asi_top10, inspect_for_prompt_injection, resend_with_modification, session_request, generate_collaborator_payload, get_collaborator_interactions, test_cloud_metadata (tool-SSRF chain), assess_finding, save_finding, annotate_request, send_to_organizer. Returns: Confirmed LLM findings (injection/leak/agency/output-sink) with reproductions[], suspected candidates, and anomalies. Candidates from run_* sweeps are leads, not verdicts — each is verified (refusal ≠ compromise, echo ≠ sink) before save. Constraint: HARD Rule 5 — no unbounded-consumption flooding / token bombs (LLM10 is a rate-limit observation only); benign English canary markers, no destructive payloads. OOB via Collaborator only (Rule 9a). Indirect DOM-planted injection is cua-hunt.md / probe_cua_injection_surface, not this agent's echo tests. See .claude/skills/playbook-llm-security.md.

desktop-agent

Purpose: Desktop application security testing — Electron / Tauri / WebView2 binary inspection, IPC fuzzing, and auto-update MITM. Dynamic + static of the desktop shell around the same backend other agents test. When to dispatch: The target ships a desktop client (Electron/Tauri/WebView2) and the operator has the binary installed. Triggered by .claude/skills/dispatch-agents.md. Tools it should use: Bash (unpack asar / inspect the binary), get_proxy_history, extract_api_endpoints, search_history, build_target_header_profile, save_target_intel, annotate_request. Returns: IPC sink map, exposed nodeIntegration/preload surface, captured backend endpoints + headers, auto-update channel + signature-check status. Constraint: One desktop-agent per binary; no recursion. Don't submit shell-hardening gaps as standalone findings — they are the means, not the bug.

screenshot-triage

Purpose: Read ONE saved screenshot and return a compact list of leads (forms, endpoints, error strings, auth markers) — cheap OCR-first triage that keeps vision tokens out of the main agent's context. When to dispatch: A screenshot has been captured and the orchestrator needs its leads without loading the image into its own context. Triggered by .claude/skills/screenshot-token-economy.md. Tools it should use: read_screenshot_text, redact_screenshot, save_target_notes. Returns: Compact lead list (forms / endpoints / error strings / auth markers); no image tokens leave the sub-agent. Constraint: One screenshot per dispatch; OCR-first — only fall back to vision when OCR is insufficient.

Dispatch Rules

  1. Never dispatch agents that make requests to the SAME endpoint simultaneously — this can trigger WAF rate limiting and corrupt results.
  2. All agents must use the SAME session for authentication consistency (sessions are thread-safe in the Java extension).
  3. The orchestrator does NOT duplicate work — if you dispatch an agent to scan for SQLi, don't also scan for SQLi yourself.
  4. Merge results before next strategic decision — wait for all parallel agents to complete before deciding what to investigate next. 4a. Shared live activity log — the activity-log.py PostToolUse hook auto-appends one compact line per state event (finding / retest / lock / assess / checkpoint / intel save) from EVERY agent to .burp-intel/_activity.jsonl, tagged with each agent's session id. It updates with no model action and costs zero tokens (writes only to the file). Use it two ways: the operator live-checks progress with tail -f .burp-intel/_activity.jsonl; a coordinating agent reads it to see what siblings have already done (findings saved, tuples checkpointed) and avoid duplicate work — read the log, don't re-ask.
  5. Save intel after merging — the orchestrator calls save_target_intel with merged results, not individual agents.
  6. Browser agents cannot run in parallel — only one headless browser instance exists.
  7. Use browser_crawl before extraction tools — proxy history must be populated first.

Parallelization Patterns

Pattern 1: Recon Fanout

Dispatch simultaneously at the start of an engagement:

  • recon-agent: crawl and map endpoints
  • js-analyst: scan JS files for secrets and DOM XSS Both run in background. Orchestrator merges results into attack priority list.

Pattern 2: Vulnerability Parallel

After recon, split targets by vulnerability category:

  • vuln-scanner (SQLi): endpoints with id/num/page params
  • vuln-scanner (XSS): endpoints with search/comment/name params
  • vuln-scanner (LFI): endpoints with file/path/include params
  • auth-tester: all authenticated endpoints (IDOR matrix) Each agent gets non-overlapping targets.

Pattern 3: Verify Batch

On session resume, verify multiple findings simultaneously:

  • finding-verifier #1: re-verify CRITICAL findings
  • finding-verifier #2: re-verify HIGH findings
  • finding-verifier #3: re-verify MEDIUM findings

Pattern 4: Investigation + Continued Scanning

When an anomaly is found:

  • payload-crafter: investigate the anomaly (foreground, need results)
  • vuln-scanner: continue testing next category (background)

Pattern 5: Mobile Engagement Pipeline

Sequential, NOT parallel (each stage depends on the previous):

  1. mobile-dynamic-agent (foreground): bypass pinning + root/JB detection, hook runtime, capture endpoints. Runs playbook-mobile-dynamic.md. Stops when backend traffic flows.
  2. recon-agent + js-analyst (parallel): enrich captured endpoints, map JS bundle, find hidden mobile-only routes.
  3. vuln-scanner + auth-tester + auth-payment-agent (parallel): non-overlapping vuln categories against discovered mobile endpoints. auth-payment-agent covers OAuth/FIDO/IAP/Pay.
  4. finding-verifier: confirm and chain.

Pattern 6: Auth + Payment Sweep

For targets with SSO + payment integration (e.g., e-commerce, fintech, SaaS):

  • auth-payment-agent (foreground): drive playbook-payment-and-auth.md, capture OAuth and payment flows, run knowledge-base sweep.
  • auth-tester (background): independently test IDOR / BFLA across auth states discovered during the auth flow.
  • finding-verifier (after both): chain auth findings with payment findings (e.g., OAuth redirect → ATO → payment-token theft → cross-account charge).

Anti-Patterns

  • Don't dispatch agents for trivial work — a single quick_scan call doesn't need an agent
  • Don't dispatch more than 4 agents simultaneously — MCP server handles requests sequentially, too many agents create a queue
  • Don't let agents make strategic decisions — agents execute, the orchestrator decides
  • Don't skip the merge step — always collect and analyze all agent results before proceeding
  • Don't dispatch agents for sequential workflows — login flows, CSRF extraction chains, and run_flow steps must be sequential

Agent Status Schema

Compact machine-readable status object that worker agents return as their final output, so the orchestrator (grow-agent) can parse progress without scraping prose. One JSON object, no surrounding markdown.

Schema

{
  "agent": "string",              // agent name, e.g. "vuln-scanner"
  "domain": "string",             // target domain (slug)
  "phase": "string",              // what this run did, e.g. "scan", "recon", "verify"
  "status": "running|done|blocked",
  "findings_confirmed": 0,        // int — confirmed findings this run
  "findings_suspected": 0,        // int — suspected (need more evidence)
  "coverage_note": "string",      // terse: what was covered / scope of the run
  "next_action": "string",        // recommended hand-off for the orchestrator
  "blockers": ["string"]          // empty unless status == "blocked"
}

Field rules

  • status:
    • running — partial result, work continues (long tasks / checkpoints).
    • done — run complete, findings finalized.
    • blocked — cannot proceed; blockers[] MUST be non-empty (e.g. out-of-scope, missing session, ≥2 auth states required, device unauthorized).
  • findings_confirmed / findings_suspected are counts, not IDs. The detailed ID lists stay in each agent's existing ## Returns block.
  • Recon/analysis agents that don't produce findings report 0/0 and describe what they mapped in coverage_note.
  • next_action is a single directive the orchestrator can act on (e.g. "dispatch finding-verifier on f-0012", "auth-tester needs a 2nd session").

Example

{"agent":"vuln-scanner","domain":"example.com","phase":"scan:sqli","status":"done","findings_confirmed":1,"findings_suspected":2,"coverage_note":"sqli across 6 (endpoint,param) tuples on /api/*","next_action":"dispatch finding-verifier on suspected f-0007,f-0008","blockers":[]}

This object is additive to each agent's ## Returns contract — it is the last thing the agent emits, not a replacement for the domain-specific return payload.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.