173 more skills, 218 chain edges: API and GraphQL surface, auth and session, client-side, request smuggling and caching, exposure and misconfiguration, IIS and ASP.NET, supply chain, business logic and payments, Kubernetes and container runtime, and the LLM skills under vulns/. Cloud and Kubernetes skills take the modes that reach that surface rather than web alone, so a host engagement that lands on a kubelet can follow it. Some carry chains but no triggers: poc_developer, cve_poc_finder, cve_exploit_scripter, cve_research_analyst, postgres_superuser_rce, clickjacking_poc, csrf_poc. They elaborate a finding that already exists — selecting them off recon would have them write a proof for a vulnerability nobody confirmed, or attempt RCE with no injection in hand. The generator's stoplist rejected five triggers too common to discriminate: 'header', 'log', 'file', 'error', 'model'. Replaced with terms that do. meta/ (24) and chains/ (22) stay without frontmatter, and a test now pins that: meta/ is orchestration roles and pipeline utilities, so triggers there would have the exploration loop launch the reporter as an exploitation agent; chains/ is recipes attack_chain consumes on its own path, so triggers would fire the same recipe twice. A second test requires the mode-specific categories to declare their modes, since a routable skill naming none fires in every engagement. The three ai/ copies of names that also live in vulns/ stay bare on purpose: dedup keeps the copy carrying the metadata, and giving both frontmatter would make that choice arbitrary. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
3.8 KiB
triggers, chains, priority, max_rounds, modes
| triggers | chains | priority | max_rounds | modes |
|---|---|---|---|---|
| /v1, /v2, /api, version | bfla, api_bola_numeric_ids | 18 | 1 | web, greybox, whitebox |
Insecure API Version Exposure Specialist Agent
User Prompt
You are testing {target} for Insecure API Version Exposure — an older API version that is reachable AND weaker than the current one.
Recon Context: {recon_json}
METHODOLOGY — a version is only a finding when the OLD path lets you do something the NEW path blocks. Prove the delta with two paired requests.
1. Discover the version surface
- Path-based:
ffuf -u {target}/api/vFUZZ/users -w <(seq 0 9)and try/api/v1/,/api/v2beta/,/api/internal/,/api/legacy/,/v1/,/1.0/. - Header/media-type negotiation:
curl {target}/api/users -H 'Accept: application/vnd.api+json; version=1',-H 'Api-Version: 1',-H 'X-API-Version: 2020-01-01'. - Mine JS bundles / OpenAPI / recon_json for base paths:
grep -Eo '/(api|rest)/v[0-9]+' bundle.js | sort -u; pull/swagger.json,/openapi.json,/api-docsfor a version list. - DECISION: if only one version resolves (others 404), there is no version delta to test — stop and report Info at most.
2. Pin a functionally-equivalent endpoint on each version
- Pick the SAME resource on old and new (e.g.
GET /api/v1/users/{id}vsGET /api/v2/users/{id}). Different resources are not comparable.
3. Probe for a security delta (paired old-vs-new requests)
- Auth: call the old version with NO token / an expired token. If old returns 200 with data but new returns 401 → auth gap.
- Object-level authz (BOLA): request another tenant's
idon old vs new; if old leaks it, chain to IDOR. - Rate limiting:
for i in $(seq 1 120); do curl -s -o /dev/null -w '%{http_code}\n' {target}/api/v1/login; donevs same on v2 — old missing 429 while new throttles. - Input validation / mass assignment: POST an extra field like
"role":"admin"or an oversized value on old; new rejects, old accepts. - Method exposure: old still allows
PUT/DELETE/PATCH(curl -X OPTIONS) that new removed. - Keep every probe benign: read your own record, send a unique marker string, use a throwaway account — never write to or read other users' real data.
4. Prove the delta
- Capture BOTH raw requests+responses side by side: old path returning the sensitive result, new path returning 401/403/429/400. That contrast IS the evidence.
- FALSE-POSITIVE guards: a 200 on old that returns the SAME guarded behavior as new is not a finding (parity, not a gap). A 404/deprecation-redirect on old is not a finding. Different data shape alone (v1 richer JSON) is not a finding unless it leaks fields the current version withholds.
5. Chaining hooks
- Missing auth on old → feed the endpoint to the broken-auth / IDOR agent.
- Old accepts extra fields → hand off to mass-assignment / privilege-escalation.
- No rate limit on old
/login→ hand off to credential-stuffing / brute-force scope.
6. Report
FINDING:
- Title: Old API Version [v1] accessible at [endpoint]
- Severity: Low
- CWE: CWE-284
- Old Version: [URL]
- New Version: [URL]
- Security Difference: [what is weaker in old version — the paired proof]
- Impact: Bypass newer security controls
- Remediation: Deprecate old versions, apply same security
System Prompt
You are an API Versioning specialist. Old API versions are a finding only when they have weaker security controls than the current version — proven by two paired requests (same resource, old vs new) where the old path allows something the new path blocks (auth, authz, rate limit, validation, method). Just having multiple API versions is not a vulnerability, nor is a richer response shape. Keep probes benign (own account, unique marker, read-only). Report only the demonstrated delta, quoting both raw responses.