ersinkoc/security-check/sc-graphql
Claude Code and agent skill by ersinkoc/security-check
- community
Checking that the SKILL.md file is still in the repository.
GraphQL injection, introspection abuse, query complexity attacks, and authorization bypass detection
Install
npx vskill@latest install ersinkoc/security-check/sc-graphqlSKILL.md
The same SKILL.md was published earlier as ersinkoc/security-check/sc-graphql.
SC: GraphQL Security
Purpose
Detects GraphQL-specific security vulnerabilities including query injection, introspection information disclosure, batching abuse, nested query denial-of-service, field-level authorization bypass, and subscription hijacking. Covers Apollo Server, graphql-yoga, Strawberry, Graphene, gqlgen, and HotChocolate.
Activation
Called by sc-orchestrator during Phase 2 when GraphQL schema files, resolvers, or GraphQL dependencies are detected.
Phase 1: Discovery
File Patterns to Search
Keyword Patterns to Search
Security Checks
1. Introspection Enabled in Production
- Check if introspection is explicitly disabled in production config
- Search for:
introspection: true, missing introspection config,NODE_ENVchecks
2. Query Depth/Complexity Limits Missing
- Check for depth limiting middleware:
graphql-depth-limit,depthLimit,@complexity - Check for query cost analysis:
graphql-query-complexity,costAnalysis - Absence of both = vulnerable to nested query DoS
3. Batching Without Limits
- Check if query batching is enabled without limits
- Search for:
allowBatchedHttpRequests, batch query handler, array query acceptance
4. Field-Level Authorization
- Check if resolver functions verify user permissions
- Search for missing auth checks in mutation resolvers
- Check directive-based auth:
@auth,@hasRole,@authenticated
5. SQL/NoSQL Injection in Resolvers
- Trace GraphQL arguments through resolver to database queries
- Check if arguments are used in raw queries without parameterization
6. Information Disclosure via Error Messages
- Check if detailed error messages are returned to clients
- Search for:
formatError,debug: true, stack trace exposure
7. Subscription Authorization
- Check WebSocket subscription handlers for auth validation
- Verify subscription filters don't leak data to unauthorized users
Phase 2: Verification
Nested Query DoS Example
Authorization Bypass Example
Severity Classification
- Critical: SQL/NoSQL injection through GraphQL arguments, authentication bypass in mutations
- High: Missing field-level authorization on sensitive mutations, introspection enabled exposing internal schema in production
- Medium: Missing query depth/complexity limits (DoS risk), batching abuse, subscription data leaks
- Low: Verbose error messages, introspection enabled in staging, missing rate limiting on queries
Output Format
Finding: GQL-{NNN}
- Title: {GraphQL vulnerability type}
- Severity: Critical | High | Medium | Low
- Confidence: 0-100
- File: file/path:line
- Vulnerability Type: CWE-89 (Injection) | CWE-200 (Information Disclosure) | CWE-862 (Missing Authorization) | CWE-770 (Resource Exhaustion)
- Description: {What was found}
- Proof of Concept: {Example query demonstrating the issue}
- Impact: {What happens if exploited}
- Remediation: {How to fix with code example}
- References: https://cheatsheetseries.owasp.org/cheatsheets/GraphQL_Cheat_Sheet.html
Common False Positives
- Introspection in development — introspection is expected in dev/staging environments
- Public queries without auth — some queries are intentionally public (e.g., product listings)
- Depth limits in gateway — depth limiting may be enforced at the API gateway level, not in the GraphQL server
- Schema-first codegen — generated resolvers may appear to lack auth but are wrapped by middleware
- Federated schemas — auth may be handled by the gateway in a federated GraphQL architecture
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sc-graphql/SKILL.md
Popularity
- Repository stars
- 46
- Repository forks
- 5
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ersinkoc/security-check/sc-graphql)