graphql-security
Skill18 starsChanged 3 months agoMITView on GitHub
Analyze GraphQL API security — use when reviewing schemas, resolvers, introspection, batching, authorization per field, or CSRF on cookie-authenticated GraphQL endpoints (API1/API5/API8:2023).
3 other projects use a version of this.
Adopted by
Most recently taken up by
- deangrant/agentstheir own version, first seen Aug 16, 2026
- thejefflarson/soundchecktheir own version, first seen Jul 31, 2026
- ShieldNet-360/secure-vibetheir own version, first seen Jul 9, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- ShieldNet-360/secure-vibe★ 22same name
- thejefflarson/soundcheck★ 20same name
- deangrant/agents★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-agent-securitySkill
- ai-application-securitySkill
- api-securitySkill
- attack-surface-mappingSkill
- authentication-analysisSkill
- authorization-analysisSkill
- axguard-auditSkill
- axguard-csoSkill
- axguard-knowledgeSkill
- axguard-preshipSkill
- axguard-remediateSkill
- axguard-reportSkill
- axguard-securitySkill
- axguard-triageSkill
- cloud-securitySkill
- command-injectionSkill
- configuration-securitySkill
- deserialization-securitySkill
- file-upload-securitySkill
- jwt-securitySkill
- mcp-securitySkill
- oauth-securitySkill
- path-traversalSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- secrets-detectionSkill
- security-architecture-reviewSkill
- security-remediationSkill
- security-triageSkill
- session-securitySkill
- sql-injectionSkill
- ssrf-analysisSkill
- ssti-analysisSkill
- supply-chain-securitySkill
- threat-modelingSkill
- websocket-securitySkill
- xss-analysisSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
After AXguard hits graphql.*.
- Very specific: line 48
No GraphQL layer (use api-security for REST/RPC).
- Distinctive: line 60
Call admin mutations as a low-privilege user (API5).
- Distinctive: line 67
Check introspection/playground exposure in production.
- Distinctive: line 70
Check CSRF defenses if cookies are used (SameSite, custom headers, Apollo CSRF prevention).
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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.
Files
GraphQL Security
Purpose
Teach pre-ship analysis of GraphQL deployments: schema exposure, resolver-level authorization, expensive queries, mutations CSRF, and injection into resolvers.
When to Use / When Not to Use
Use when:
- Apollo/Yoga/Graphene/Hasura/AppSync schemas and resolvers are in scope.
- After AXguard hits
graphql.*. - Single
/graphqlendpoint aggregates many privileged operations.
Do not use when:
- No GraphQL layer (use
api-securityfor REST/RPC). - Pure schema design docs without runtime resolvers.
Security Concepts
GraphQL concentrates attack surface into one URL. AuthZ must run in resolvers/data loaders per object, not only at the HTTP gateway. Introspection, batching, and nested queries change enumeration and DoS risk.
Threat Model
Attacker goals:
- IDOR via
node(id:)/ object queries without ownership checks (API1). - Call admin mutations as a low-privilege user (API5).
- Abuse introspection and field suggestions for inventory.
- CSRF mutations on cookie-based sessions; DoS via deeply nested/batched queries.
Analysis Workflow
- Inventory GraphQL endpoints, schemas, and auth mode (JWT header vs cookies).
- Check introspection/playground exposure in production.
- For each sensitive field/mutation: verify resolver authN + object-level authZ.
- Review
node/global ID patterns for BOLA. - Check CSRF defenses if cookies are used (SameSite, custom headers, Apollo CSRF prevention).
- Assess query cost limiting, depth/amount limits, timeouts, persisted queries.
- Trace resolver inputs into SQL/command/SSRF sinks (hand off to those skills).
Evidence Requirements
- Schema/resolver location for the sensitive operation
- Missing authZ or misconfiguration evidence
- Auth mode (cookie vs bearer) for CSRF conclusions
- Impact on objects/functions reachable
False Positive Controls
- Introspection disabled in prod with alternate safe docs
- Persisted queries only + strict allowlist
- Gateway + resolver checks both present and tested
- Public schema fields that are intentionally unauthenticated
Remediation
- Disable introspection and risky IDE tooling in production.
- Enforce authZ in every resolver/loader returning sensitive objects.
- Limit depth/complexity; prefer persisted queries; rate-limit.
- For cookie auth: require CSRF-safe mutation posture.
- Least-privilege schema — split admin graphs when feasible.
Verification
Map schema → Verify per-resolver authZ + limits → Re-run axguard → Confirm introspection/CSRF settings for environmentRelated Skills
api-security,authorization-analysis,authentication-analysisxss-analysis— if GraphQL feeds HTML clientssecurity-triage,security-remediation
Framework Mapping
- CWE-862, CWE-863, CWE-639
- OWASP A01:2021 Broken Access Control
- OWASP API1:2023, API5:2023, API8:2023
References
- https://owasp.org/API-Security/editions/2023/en/api1-broken-object-level-authorization/
- https://owasp.org/API-Security/editions/2023/en/api5-broken-function-level-authorization/
- https://owasp.org/API-Security/editions/2023/en/api8-security-misconfiguration/
- https://owasp.org/Top10/A01_2021-Broken_Access_Control/
Research Provenance
Primary sources:
- OWASP API Security Top 10:2023 (API1, API5, API8); OWASP A01:2021; CWE-862/863/639 (accessed 2026-09-15)
Secondary / internal:
- AXGuard
rules/graphql.json,/axguard-graphql - AwareXone Agentic-Bug-Hunter GraphQL methodology (concepts only; not copied)
Datasets:
- UVID HF dataset — category linkage concepts only (MIT license metadata review 2026-09-15)
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
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.

