Skip to main content
subagent

graphql-security-specialist — Claude Code subagent

This subagent audits GraphQL APIs and helps address authorization gaps, expensive queries, batching abuse, and schema exposure.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --agent api-graphql/graphql-security-specialist
Open on GitHub

What graphql-security-specialist does

The subagent reviews a GraphQL API for deep or costly queries, alias-based overload, HTTP batch abuse, introspection exposure, and CSRF risks. It can also help enforce access rules for operations and individual fields, including admin-only fields such as User.adminNotes.

It works with project files through reading, searching, editing, and shell commands. Its output can include a prioritized issue list and code changes. In Apollo Server 4+, setting allowBatchedHttpRequests: false disables HTTP batching when clients do not need it.

What it helps with

  • audit a GraphQL API before launch
  • cap query depth and calculated cost
  • restrict fields to the required roles
  • block alias and HTTP batch overload
  • reduce schema exposure through introspection

Example prompts for the agent

  • Audit our GraphQL API before launch for DoS risks, introspection exposure, and data leaks.
  • Fix authorization for User.adminNotes so non-admin users cannot read it.
  • Review the GraphQL endpoint’s depth, cost, alias, and HTTP batch limits.

How to install graphql-security-specialist

1claude-code-templates

npx claude-code-templates@latest --agent api-graphql/graphql-security-specialist

2Manually: put the files in place

.claude/agents/graphql-security-specialist.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about graphql-security-specialist

How do I install graphql-security-specialist in Claude Code?

Run npx claude-code-templates@latest --agent api-graphql/graphql-security-specialist, then create or connect .claude/agents/graphql-security-specialist.md.

What does graphql-security-specialist do?

It reviews GraphQL APIs for common attack paths and authorization flaws, then helps apply fixes in the project.

Which GraphQL query risks does it cover?

It checks query depth and cost, repeated fields through aliases, HTTP batching, and access to introspection.

Similar subagents

All subagents for Backend and APIs →

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor