graphql-api-security

graphql-api-security is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 36 tokens per session (1,450 once invoked), scanned A, original, Apache-2.0.

A security testing guide for GraphQL, an API format where clients request specific data through a shared endpoint. It covers both the query structure and the permissions applied to individual fields and actions.

In plain words
What is it for?
Use it to test schema discovery, field and object permissions, large or deeply nested queries, batched requests, mutations, and real-time subscriptions.
Why use it?
It helps find cases where users can read or change data they should not access, or send queries that consume excessive server resources. It also separates useful schema information from confirmed security flaws.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to test schema discovery, field and object permissions, large or deeply nested queries, batched requests, mutations, and real-time subscriptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xalgorix/xalgorix/graphql-api-security
About the project

xalgorix/xalgorix is a self-hosted AI penetration-testing tool in which an LLM agent performs reconnaissance, looks for vulnerabilities, and coordinates exploitation, while a separate verifier re-tests findings before reporting them. It is for security teams, ethical hackers, and bug bounty work using a private, bring-your-own-LLM setup. The catalogue skills extend the agent's pentesting workflow.

xalgorix/xalgorix · 1,531 stars · on GitHub · xalgorix.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xalgorix/xalgorix --skill graphql-api-security
Clone the repo
git clone --depth 1 https://github.com/xalgorix/xalgorix

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for graphql-api-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/graphql-api-security/github.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/graphql-api-security)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/graphql-api-security"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/graphql-api-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for graphql-api-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/graphql-api-security"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/graphql-api-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,450 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01450
Opus 5.5 $0.00014 $0.00580
Sonnet 5.5 $0.00007 $0.00290
Haiku 4.5 $0.00004 $0.00145

Measured 2mo ago against content hash d19f26499f7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

graphql-api-security scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

code=$(curl -sk -o /dev/null -w "%{http_code}" -X POST "https://TARGET/$path" \
internal/tools/skills/data/api-security/graphql-api-security/SKILL.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GraphQL API Security

Purpose

Comprehensive GraphQL API testing: schema intelligence, authorization bypass, resource consumption, and mutation abuse.

Preconditions

  • A GraphQL endpoint has been identified (POST to /graphql or similar)
  • At least one valid session (for authenticated queries)

Attack Surface Signals

  • POST to /graphql, /query, /api/graphql, /v1/graphql
  • JSON responses with data/errors structure
  • Apollo/Relay/urql client libraries in JavaScript
  • Content-Type: application/json with query in the body

Methodology

Endpoint Discovery

for path in graphql graphql/v1 api/graphql query gql; do
  code=$(curl -sk -o /dev/null -w "%{http_code}" -X POST "https://TARGET/$path" \
    -H "Content-Type: application/json" -d '{"query":"{__typename}"}')
  [ "$code" = "200" ] && echo "[GRAPHQL] /$path"
done

Introspection (Reconnaissance, NOT a standalone vulnerability)

curl -sk -X POST "https://TARGET/graphql" \
  -H "Content-Type: application/json" \
  -d '{"query":"{__schema{types{name fields{name type{name}}}}}"}' | jq .

Introspection is attack-surface intelligence. Report it only when combined with a separately confirmed access-control or data-exposure issue. If introspection reveals admin-only types or mutation names, use them for BOLA/BFLA testing below.

BOLA (Object-Level Authorization)

# Query for another user's data by ID
curl -sk -X POST "https://TARGET/graphql" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer USER_A_TOKEN" \
  -d '{"query":"{user(id:\\"USER_B_ID\\"){email role passwordHash}}"}'

BFLA (Function-Level Authorization)

# Try admin-only mutations with a regular user token
curl -sk -X POST "https://TARGET/graphql" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer USER_TOKEN" \
  -d '{"query":"mutation{deleteUser(id:\\"123\\"){success}}"}'

Field-Level Authorization

# Request sensitive fields that may not be field-level protected
curl -sk -X POST "https://TARGET/graphql" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer USER_TOKEN" \
  -d '{"query":"{me{id email role ssn apiKey internalNotes deletedAt}}"}'

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 153 lines · 36 tokens per session scan A d19f26499f7c

Subscribe to this mod's changes

graphql-api-security is a skill published in the GitHub repository xalgorix/xalgorix (1,531 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 1,450 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

graphql-api-security compared with skills from other repositories

graphql-api-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
graphql-api-securityxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A36Claude Code, Codex
cis-aws-foundations-6.5CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A23Claude Code, Codex
cis-aws-foundations-2.1.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A19Claude Code, Codex
cis-aws-foundations-2.4CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A20Claude Code, Codex
cis-aws-foundations-2.7CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A24Claude Code, Codex
cis-aws-foundations-6.1.2CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A25Claude Code, Codex
cis-aws-database-3.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A17Claude Code, Codex