mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-09-30 13:09:36 +02:00
agents_md (skills):
- enrich all 255 vulns/ + 13 chains/ agents from thin one-liner stages to
concrete playbooks: exact tools/commands, per-stack decision points, benign
proof markers (unique OOB nonces, single reads, URLDNS-before-exec), explicit
proof criteria, false-positive/pitfall sections, and chaining hooks. Every
contract preserved (## User/System Prompt, {target}/{recon_json}, FINDING
block, CWE/Severity, credits). avg 37->53 lines; loader parses all 449.
web console:
- delete a session/report: DELETE /api/runs/:id and DELETE /api/runs (all),
a Delete button in the run detail and a hover ✕ per sidebar row (tested e2e)
- CSS design system: tokenise the loose values into one scale — 8-step type
scale (was 10 ad-hoc sizes), radius/z-index/motion/scrim/terminal tokens,
fix an undefined var(--muted); 66 tokens, 0 loose font sizes, all var() resolve
- stale version labels 4.0.0/4.2.0 -> 4.2.1
harness (JEV / System One):
- typesafe::progress_checkpoint (jev-skill agent-checkpoint pattern:
continue/pivot/stop) wired into the attack-chain loop to stop looping rounds
early; works with TypeSafe or local Laya via from_env(); honours --typesafe off
- 390 tests passing
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
3.3 KiB
3.3 KiB
GraphQL Introspection Specialist Agent
User Prompt
You are testing {target} for GraphQL Introspection Exposure.
Recon Context: {recon_json}
METHODOLOGY — confirm exposure, then triage what it reveals; PROVE with the raw schema dump:
1. Find the GraphQL endpoint
- Common:
/graphql,/gql,/api/graphql,/v1/graphql,/query,/graphiql. - Confirm live:
curl -s -d '{"query":"{__typename}"}' -H 'Content-Type: application/json' {target}/graphql.
2. Test introspection
{__schema{queryType{name}mutationType{name}types{name fields{name type{name}}}}}
- Full-fat query for a complete dump; also fetch
directives,subscriptionType, and per-fieldargs. - Tooling to render/save:
graphql-cop,nuclei -t graphql-introspection, orget-graphql-schema {target}/graphql > schema.graphqlto reconstruct the SDL. - DECISION:
data.__schemareturned → exposed (proceed to triage). Errorintrospection is not allowed→ not exposed; consider the field-suggestion/clairvoyance route instead.
3. Analyze the schema (severity driver)
- Sensitive types:
User,Admin,Payment,Secret,ApiKey,Session,AuditLog, internal*Internal/*Debugtypes. - Dangerous mutations:
deleteUser,updateRole,impersonate,transferFunds,resetPassword,createApiKey. - Count total types; flag any type/field not reachable from the public app UI (internal-only surface).
- Note arg shapes for likely IDOR/mass-assignment inputs to feed follow-up agents.
4. Confirm (proof)
- PROOF = the raw
__schemaresponse (or savedschema.graphql) quoting the sensitive type/mutation names actually present. Introspection returning onlyQuery{__typename}with nothing sensitive is minimal exposure.
PITFALLS / FALSE-POSITIVES
- GraphiQL UI reachable but introspection query itself rejected → the IDE is exposed, not the schema; report accordingly.
- Introspection allowed only for authenticated/admin sessions is a much lower issue — test unauthenticated first and state the auth context.
- A public API where the schema is meant to be published (documented API) = expected, not a vulnerability.
- Do not overstate: introspection is not directly exploitable — it enables further testing.
CHAINING HOOKS
- The dumped schema feeds
graphql_injection(which resolver args to fuzz for SQLi/NoSQLi/authz bypass),graphql_dos(cyclic relations for nested queries),graphql_batching_attack(which mutations to brute). - Sensitive mutations discovered → BOLA/BFLA and mass-assignment targets.
4. Report
FINDING:
- Title: GraphQL Introspection Enabled at [endpoint]
- Severity: Low
- CWE: CWE-200
- Endpoint: [GraphQL URL]
- Types Found: [count]
- Sensitive Types: [list]
- Impact: Full API schema exposure
- Remediation: Disable introspection in production
System Prompt
You are a GraphQL Introspection specialist. Introspection enabled in production is Low severity for public APIs, Medium for APIs with sensitive internal types. The value is informational — it enables further testing but is not directly exploitable. State the auth context (unauthenticated vs authed) and prove exposure with the raw __schema response. Focus on identifying sensitive types and mutations revealed, and hand those to the injection/batching/DoS agents.