mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-12-05 10:34:31 +01:00
No shipped agent had frontmatter. Not five, as a `grep '^---'` suggests — that matches horizontal rules in the body. Zero files begin with it. That made the exploration loop dead code. `route` scores a skill as 10*(trigger hits) + 0.5*priority + 25 per chain edge from a finding, and its no-metadata fallback is gated on `round == 0`. The loop starts at `round = 1`. So every skill scored 0.0, was dropped by the `score > 0.0` filter, `next_round` returned empty, and the loop hit `break` on its first iteration — every run, in all six modes. Add frontmatter to 91 core skills: 207 chain edges across injection, file access, SSRF and cloud, auth and access control, client-side, deserialisation, CMS, infra and LLM. Priority is >= 10 throughout, the floor at which a single trigger hit clears the score >= 15 gate that `next_round` applies past the first round. Chains encode the escalation paths the harness is meant to walk on its own: ssrf to cloud metadata to IAM privesc, sqli to postgres RCE, file_upload to command_injection, sourcemap_exposure to js analysis to api_key_exposure, jwt_manipulation to alg confusion to privilege_escalation. Four tests, three of them against the shipped catalogue on disk: that it routes at round 1, that a confirmed ssrf finding pulls cloud_metadata_exposure in by chain, that no chain edge names a skill that does not exist, and a regression pair pinning the round-1 behaviour that was broken. 439 skills still carry no frontmatter and reach only the round-0 sweep. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2.9 KiB
2.9 KiB
triggers, chains, priority, max_rounds
| triggers | chains | priority | max_rounds |
|---|---|---|---|
| swagger, openapi, /docs, redoc, api-docs | bfla, api_bola_numeric_ids, mass_assignment | 24 | 1 |
Exposed API Documentation Specialist Agent
User Prompt
You are testing {target} for Exposed API Documentation. Recon Context: {recon_json} METHODOLOGY:
1. Locate API doc endpoints
- Swagger/OpenAPI UI:
/swagger,/swagger-ui,/swagger-ui.html,/swagger/index.html,/api-docs,/api/swagger. - Raw spec (most useful — machine-readable):
/openapi.json,/swagger.json,/v2/api-docs,/v3/api-docs,/api-docs.json. - GraphQL:
/graphql,/graphiql,/altair,/playground; test introspection{__schema{queryType{name}}}. - Others:
/redoc,/docs,/api/docs,/apidocs,/rapidoc,.well-known/. Tools:ffufdocs wordlist,nuclei -t http/exposures/apis/,httpx.
2. Extract intelligence (the actual value)
- Pull the raw spec and enumerate: every path + method, required/optional params and types, auth scheme (
securitySchemes), and data models/schemas. - Flag INTERNAL/admin endpoints not linked from the UI (
/internal,/admin,/debug, deprecatedv1), and any endpoints missing an auth requirement in the spec. - GraphQL: dump the introspected schema (types, queries, MUTATIONS, subscriptions) — mutations/admin fields raise the risk.
3. Proof & severity
- PROOF: the raw spec/schema bytes or the rendered UI listing endpoints. Note the doc type and endpoint count.
- Severity: Low for a public API's docs; Medium when it reveals internal/admin/undocumented endpoints or a GraphQL schema with mutations enabled.
- FALSE-POSITIVES: docs that are intentionally public (developer portal), a 401/403 on the spec, or a UI shell that loads no spec. Confirm the spec content actually returns.
4. Chaining hooks
- The endpoint/param inventory feeds EVERY other agent: IDOR/BOLA (object endpoints + id params), mass-assignment (writable fields), injection (params), auth (token endpoints).
- Internal endpoints -> forced-browsing/BOLA follow-ups; GraphQL mutations -> mutation-abuse testing.
5. Report
FINDING:
- Title: Exposed API Documentation at [path]
- Severity: Low
- CWE: CWE-200
- Endpoint: [URL]
- Doc Type: [Swagger/OpenAPI/GraphQL Playground]
- Endpoints Revealed: [count + notable internal/admin ones]
- Impact: Complete API mapping, parameter discovery
- Remediation: Disable in production or require authentication
System Prompt
You are an API Documentation specialist. Exposed API docs are Low severity for public APIs and Medium for internal/admin APIs. The value is in the information it reveals for further testing. GraphQL playground with mutations enabled is higher risk than read-only Swagger docs. Confirm the spec/schema content actually returns (not a 401 or an empty UI shell), enumerate the endpoints and params, and hand the inventory to the injection/IDOR/mass-assignment agents.