Works with the AI Agents you already use
GraphQL Schema Security Audit
by CashonlyTian
Shipping a GraphQL API with introspection enabled or sensitive PII exposed is a public invitation to attackers.
$7
GraphQL Schema Security Audit
Example session with this skill installed
Run a security audit on the ./api/graphql directory for project 'billing-service'. Use #34D399 for the accent color.
- Read your context and instructions
- Compiled the graphql schema security
- Generated the document
The GraphQL security audit for
billing-service is complete. The scan identified several high-severity misconfigurations that should be addressed before deployment.
- Score: 42/100
- Grade: D
- Risk Level: HIGH
- Findings: 14 issues (3 Critical, 5 Medium, 6 Low)
Audit Results
| Check Category | Score | Status | Primary Issue |
|---|---|---|---|
| Introspection | 0/15 | FAIL | Enabled in production config |
| Sensitive Fields | 5/15 | WARN | User.passwordHash exposed |
| Query Depth | 0/15 | FAIL | No depth or complexity limits found |
| Batching | 10/10 | PASS | allowBatchedHttpRequests: false |
| Pagination | 5/10 | WARN | Query.allLogs has no limit |
| Field Auth | 2/10 | FAIL | deleteAccount missing @auth |
| IDOR Arguments | 10/10 | PASS | Protected by @authenticated |
| Upload/Input | 5/5 | PASS | Size limits enforced |
| Hygiene | 5/5 | PASS | No deprecated fields served |
| Secrets | 0/5 | FAIL | Literal API key found in .env |
Top 3 Recommended Fixes
Disable Introspection: Explicitly set introspection: false in your server configuration to prevent schema crawling.
2. Set Query Limits: Implement a depthLimit (recommended: 10) and maxComplexity to prevent DoS attacks.
3. Mask PII: Remove or protect passwordHash and ssn fields from the User object type in schema.graphql.
The full report is available at scan-report.md and the visual summary at scan-2024-05-20.png.
Next steps
- Review the prioritized fix list in
scan-report.md. - Apply
introspection: falseto your Apollo/Yoga server setup. - Re-run the audit to confirm the score improves above 60.
scan-2024-05-20.png
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Shipping a GraphQL API with introspection enabled or sensitive PII exposed is a public invitation to attackers. This skill audits your GraphQL SDL and server configuration files to find vulnerabilities before you deploy.
What it does
- Security Scoring delivers a 0-100 score, letter grade, and risk level based on 10 critical security checks.
- Schema Inspection scans for exposed PII, credential fields, and internal admin types reachable from public queries.
- Config Validation verifies introspection settings, query depth limits, complexity costs, and batching constraints.
- Access Control Audit identifies sensitive mutations and ID-based lookups missing auth directives or pagination bounds.
- Visual Reporting generates a shareable 1024x1024 PNG score-card and a prioritized Markdown fix report.
How it works
- Target Selection points the tool to a local directory containing GraphQL SDL,
.envfiles, and server configuration. - Local Scan executes a non-networked Python script to parse schemas and server setup code for Apollo, Yoga, or generic GraphQL servers.
- Audit Analysis evaluates 10 specific categories including query depth, input validation, and secret hygiene.
- Report Generation produces a visual score-card and a detailed report masking all discovered credentials to
***.
Frameworks & tools
Works with any GraphQL SDL (.graphql, .gql). Explicitly supports server configurations for Apollo Server, Yoga, and graphqlHTTP.
Why this beats prompting it yourself
Manual prompts often miss deep-nested reachable admin types or subtle pagination bypasses. This skill uses a systematic 10-point scoring engine that enforces specific security thresholds and provides a repeatable visual artifact for compliance.
Use cases
- Audit an API generated by another AI agent before integration.
- Perform a pre-deployment security check for production GraphQL endpoints.
- Review third-party GraphQL projects during onboarding or due diligence.
Known limitations
Does not query live endpoints or detect gateway-level overrides. SDL parsing requires standard formatting with one field per line.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Audits local files only, not live endpoints. Cannot detect gateway overrides. Requires SDL fields to be on separate lines for accurate parsing. Files >2MB are skipped.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago
- Software
Python 3Pillow