[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71FVZYEVPGBPMBCP6F6JPWT":3,"skill-same:01M71FVZYEVPGBPMBCP6F6JPWT":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":14,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":58},"01M71FVZYEVPGBPMBCP6F6JPWT","offensive-graphql",null,"- Federation RBAC: centralize auth policy in schema directives evaluated at the gateway and in subgraphs; avoid trusting upstream filtering blindly.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Foffensive-graphql\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32],"GraphQL","offensive graphql","offensive","gateway","directives","federation","auth","policy","upstream","schema","filtering","cybersecurity","rbac","at","2026-11-10 10:12:30",false,"---\nname: offensive-graphql\ndescription: \"- Federation RBAC: centralize auth policy in schema directives evaluated at the gateway and in subgraphs; avoid trusting upstream filtering blindly.\"\ndomain: cybersecurity\n---\n\n## Full Methodology\n\n# GraphQL Vulnerabilities\n\n## Shortcut\n\n1.  Identify GraphQL Endpoint: Look for common paths like `\u002Fgraphql`, `\u002Fgraphiql`, `\u002Fgraphql.php`, `\u002Fgraphql\u002Fconsole`. Check network requests in browser developer tools.\n2.  Introspection Query: Send an introspection query to fetch the schema. Tools like GraphiQL or Postman can help. `query={__schema{types{name}}}`\n3.  Analyze Schema: Look for sensitive types, fields, mutations, and subscriptions. Pay attention to authorization logic.\n4.  Test Queries\u002FMutations:\n    - Check for Information Disclosure (e.g., user data, configuration).\n    - Test for Authorization Bypass (IDOR, insufficient permission checks).\n    - Look for Injection (SQLi, NoSQLi, Command Injection) in input fields.\n    - Test for Denial of Service (complex\u002Fdeeply nested queries, batching abuse).\n    - Explore Mutations for unintended state changes.\n    - Check Subscriptions for data leakage.\n    - Verify persisted\u002Fsigned queries enforced in production; depth\u002Fcomplexity limits.\n5.  No Introspection? Try common field\u002Ftype guessing (e.g., `user`, `admin`, `query`, `mutation`). Use tools like `clairvoyance` or `inql`.\n\n## Mechanisms\n\n- Over-Fetching: Clients can request excessive data, potentially leading to DoS or information disclosure if not properly limited.\n- Under-Fetching\u002FN+1 Problem: Primarily a performance issue—poorly designed resolvers make dozens of backend calls (N+1). While not a direct data‑exposure risk, extreme latency can create timing side‑channels an attacker could measure.\n- Insecure Direct Object References (IDOR): Exposing internal IDs allows attackers to potentially access unauthorized data by guessing\u002Fenumerating IDs.\n- Insufficient Authorization: Missing or flawed checks on types, fields, mutations, or subscriptions.\n- Input Validation Issues: Failure to sanitize or validate user input can lead to injection attacks (SQLi, NoSQLi, XSS, SSRF) if resolvers interact with backend systems insecurely.\n- Introspection Enabled in Production: Exposes the entire schema, simplifying reconnaissance for attackers.\n- Batching Abuse: Sending multiple queries\u002Fmutations in a single request can overwhelm the server (DoS) or bypass rate limiting.\n- Lack of Depth\u002FComplexity Limiting: Allows excessively nested or complex queries, leading to DoS.\n- Directive Flooding: Sending thousands of `@include`\u002F`@skip` directives in a single query can exhaust parser and validation phases, triggering DoS (e.g., CVE‑2024‑47614 in async‑graphql).\n- Incremental Delivery: `@defer`\u002F`@stream` can multiply work and leak partial data; must be guarded by cost and auth checks on deferred subtrees.\n- File Uploads: Implementations using `graphql-upload` or custom multipart handling can inherit classic upload bugs (path traversal, content-type trust, temp file exposure).\n- Federation\u002FGateway: Cross-subgraph authorization gaps, entity resolver overfetching, and inconsistent role enforcement at the router vs. subgraphs.\n- CSRF Considerations: If cookie‑based auth is used, enforce header + `Origin` validation; prefer Authorization header.\n- WebSocket Security: GraphQL subscriptions over WebSocket often lack proper authorization on long-lived connections; auth tokens in connection params may not be re-validated after expiry.\n- Field Suggestions: Error messages that suggest valid field names when invalid ones are queried can leak schema information even with introspection disabled.\n- Relay Global IDs: Base64-encoded `Type:ID` patterns (e.g., `base64(\"User:123\")`) are commonly used and can be decoded to reveal internal IDs.\n- Apollo\u002FHasura Leaks: Production Apollo Server instances may leak schema via query extensions; Hasura permissions misconfiguration can expose direct DB access.\n- Header Injection: `x-hasura-*` headers or custom auth headers may be trusted without validation, enabling privilege escalation.\n\n## Hunt\n\n### Preparation\n\n- Identify the GraphQL endpoint(s).\n- Obtain the schema via introspection or guessing.\n- Understand the application context and potential sensitive data\u002Factions.\n\n### Techniques\n\n- Schema Analysis: Use tools like `GraphQL Voyager` or manually review the schema for sensitive keywords (`admin`, `password`, `config`, `secret`), authorization directives, and complex relationships.\n- Query Fuzzing: Use tools like `inql` or custom scripts to fuzz queries, mutations, and arguments.\n- Authorization Testing:\n  - Try accessing data\u002Fmutations meant for higher-privileged users.\n  - Test IDOR by replacing IDs in queries\u002Fmutations.\n  - Check if different roles see different schema subsets (if applicable).\n  - Verify router and subgraphs enforce identical authz decisions.\n- Injection Testing: Inject payloads (SQL, NoSQL, OS command, XSS, SSRF) into string arguments.\n- DoS Testing:\n  - Deeply nested queries (`query { user { friends { friends { ... } } } }`).\n  - Large limits in list arguments (`query { users(limit: 99999) { id } }`).\n  - Query batching abuse.\n  - Field duplication\u002Faliases (`query { u1: user(id:1){id} u2: user(id:1){id} ... }`).\n  - Directive flooding by attaching a very long chain of `@include` or `@skip` directives to safe fields.\n- Incremental delivery pressure: attach many `@defer`\u002F`@stream` segments to expand compute and memory footprint.\n- Business Logic Flaws: Test mutations for race conditions, logical errors, or unintended side effects.\n- Upload testing: multipart spec edge cases (path traversal via `map`, temp file exposure) and file‑type checks.\n- WebSocket Subscription Testing:\n  - Tamper with `connection_init` payload (JWT in `connectionParams`)\n  - Test subscription flooding without rate limiting\n  - Verify auth token expiry is enforced on long-lived WS connections\n  - Test for cross-user subscription leaks via predictable subscription IDs\n- Field Suggestion Probing: Send invalid field names and analyze error messages for schema hints (\"Did you mean...?\" responses)\n- Relay ID Decoding: Identify base64-encoded global IDs (e.g., `id: \"VXNlcjoxMjM=\"`), decode to extract type and numeric ID, test IDOR\n- Apollo Extensions: Try `?extensions={\"persistedQuery\":{...}}` or check for `apollo-server-testing` header in responses\n- Hasura Header Injection: Test `x-hasura-role`, `x-hasura-user-id`, `x-hasura-org-id` headers for authorization bypass\n\n### Advanced Testing\n\n- Reverse engineer client-side code making GraphQL requests.\n- Analyze traffic between microservices if GraphQL is used internally.\n- Test subscription endpoints for authorization issues and data leakage over time.\n\n## Bypass Techniques\n\n### Introspection Disabled\n\nUse wordlists (SecLists has GraphQL lists) with tools like `clairvoyance` or `GraphQLmap` to guess types, fields, and arguments. Analyze client-side code for hints.\n\n- Quick probe: `query { __typename }` often succeeds even when full introspection is disabled and confirms a GraphQL endpoint.\n\n- Use wordlists (SecLists has GraphQL lists) with tools like `clairvoyance` or `GraphQLmap` to guess types, fields, and arguments. Analyze client-side code for hints.\n\n### Rate Limiting\u002FComplexity Limits\n\n- Use aliases to request the same field multiple times within limits.\n- Split complex queries into multiple smaller ones.\n- Abuse batching if not properly limited.\n\n### Web Application Firewalls (WAFs)\n\n- Use GraphQL query variations (aliases, fragments, different whitespace).\n- Encode payloads within strings.\n- Leverage nested input objects if WAF only inspects top-level arguments.\n- Abuse incremental delivery: place sensitive fields under `@defer` to evade naive complexity calculators.\n- Persisted queries reduce WAF reliance; prefer signature enforcement at edge.\n\n## Vulnerabilities\n\n### Common Patterns\n\n- Publicly exposed GraphiQL interface with introspection enabled.\n- Mutations lacking proper authorization checks.\n- Resolvers directly using user input in database queries or system commands.\n- Fields returning sensitive information not intended for the user's role.\n- Lack of query depth\u002Fcomplexity\u002Flimit controls.\n\n### Specific Functions\u002FAreas:\n\n- `user`, `account`, `profile` types\u002Fqueries (Information Disclosure, IDOR).\n- `admin`, `settings`, `config` types\u002Fqueries (Privilege Escalation).\n- Mutations involving payments, data modification, or user management.\n- Search functionalities (Injection).\n- File upload mechanisms via mutations.\n- Subscription endpoints.\n\n## Methodologies\n\n### Tools\n\n- Automated Scanners: `StackHawk`, `Invicti`, **Escape** (free SaaS tier), `Nuclei` (GraphQL templates).\n- Introspection & Interaction: `GraphiQL`, `Postman`, `Altair GraphQL Client`, `Insomnia`.\n- Schema Exploration: `GraphQL Voyager`.\n- Exploitation\u002FFuzzing: `inql` (Burp Suite Extension), `GraphQLmap`, `clairvoyance`, **CrackQL** (JWT extraction from errors), **BatchQL** (batch query fuzzing), custom Python scripts (`requests` library).\n- Proxy: Burp Suite, OWASP ZAP (to intercept and modify requests).\n- Security Middleware: **GraphQL Armor** – production‑ready depth, alias and complexity limits for Apollo Server, Yoga, Envelop and more.\n- Fingerprinting \u002F Recon: **graphw00f** – identifies the underlying GraphQL implementation (Apollo, Yoga, Hasura, etc.) to tailor attacks.\n- Security Auditing: **graphql-cop** – security auditing and configuration checking.\n- Endpoint Discovery: `Graphinder` and wordlists for path guessing.\n- Linters\u002FPolicy: `graphql-schema-linter`, `eslint-plugin-graphql`, and custom auth directives unit tests.\n\n### Systematic Process\n\n1.  Reconnaissance (Endpoint discovery, Schema retrieval\u002Fguessing).\n2.  Schema Analysis (Identify key types, fields, mutations, auth).\n3.  Authorization Testing (Role-based access, IDOR).\n4.  Input Vulnerability Testing (Injection, XSS, SSRF in arguments).\n5.  DoS Testing (Query complexity, batching, limits).\n6.  Business Logic Testing (Mutation side-effects, race conditions).\n7.  Subscription Testing (if applicable).\n\n### High-Impact Targets\n\nMutations changing state (user roles, passwords, settings), queries accessing sensitive user data, administrative endpoints.\n\n## Chaining and Escalation\n\n- **IDOR + Mutation**: Discover an IDOR in a query, then use the leaked ID to modify another user's data via a mutation (e.g., change email\u002Fpassword).\n- **Information Disclosure + Injection**: Leak database structure\u002Fversion via a verbose error, then use that info to craft a targeted SQLi payload.\n- **SSRF + Internal Endpoint**: Use an SSRF vulnerability in a resolver to interact with internal GraphQL endpoints or other services not directly accessible.\n- **Authorization Bypass + Admin Mutation**: Gain access to an administrative mutation (e.g., `updateUserRole`) through flawed authorization, then escalate privileges.\n- **XSS + Token Theft**: Inject XSS payload via a vulnerable field, steal authentication tokens from other users viewing the data.\n\n## Remediation Recommendations\n\n- Disable Introspection in Production: Prevent easy schema discovery.\n- Implement Strict Authorization: Apply checks at the schema level (directives) and within resolvers for every field, type, mutation, and subscription based on user roles\u002Fpermissions. Use context passed to resolvers.\n- Input Validation & Sanitization: Validate all arguments against expected types, formats, and lengths. Sanitize input before using it in downstream systems (databases, commands). Use parameterized queries.\n- Query Cost Analysis: Implement limits on query depth, complexity (e.g., maximum nodes or calculated cost), and amount (limit number of results).\n- Rate Limiting: Limit the number of requests per user\u002FIP, including batched queries.\n- Persisted & Signed Queries: Enforce automatic persisted queries (APQ) with operation signatures to whitelist allowed operations and block unknown or modified queries.\n- Secure Federation Gateways: Keep Apollo Router (or your GraphQL gateway) patched, validate supergraph composition, and enforce authorization at the gateway layer to prevent cross‑subgraph data leaks.\n- Caching & CDN Hardening: If responses are cached, partition caches by the `Authorization` header (or disable caching) to avoid shared‑cache data leakage.\n- Specific Field Exposure: Avoid exposing sensitive fields (`password`, `internal tokens`). Use dedicated Data Transfer Objects (DTOs) if necessary.\n- Error Handling: Return generic error messages; avoid leaking stack traces or internal details.\n- Regular Audits & Testing: Perform regular security reviews and penetration tests specifically targeting the GraphQL API.\n- Use Security Headers: Apply standard web security headers (CSP, HSTS, etc.).\n- Keep Libraries Updated: Ensure GraphQL server libraries and dependencies are patched.\n- Incremental Delivery Controls: enforce cost accounting for `@defer`\u002F`@stream`; ensure deferred subtrees still run full auth\u002Fvisibility checks.\n- File Upload Hygiene: if using GraphQL upload, re‑encode images, validate content by signature, and store outside web root; apply all controls from `file-upload.md`.\n- Federation RBAC: centralize auth policy in schema directives evaluated at the gateway and in subgraphs; avoid trusting upstream filtering blindly.\n","## Full Methodology\n\n# GraphQL Vulnerabilities\n\n## Shortcut\n\n1.  Identify GraphQL Endpoint: Look for common paths like `\u002Fgraphql`, `\u002Fgraphiql`, `\u002Fgraphql.php`, `\u002Fgraphql\u002Fconsole`. Check network requests in browser developer tools.\n2.  Introspection Query: Send an introspection query to fetch the schema. Tools like GraphiQL or Postman can help. `query={__schema{types{name}}}`\n3.  Analyze Schema: Look for sensitive types, fields, mutations, and subscriptions. Pay attention to authorization logic.\n4.  Test Queries\u002FMutations:\n    - Check for Information Disclosure (e.g., user data, configuration).\n    - Test for Authorization Bypass (IDOR, insufficient permission checks).\n    - Look for Injection (SQLi, NoSQLi, Command Injection) in input fields.\n    - Test for Denial of Service (complex\u002Fdeeply nested queries, batching abuse).\n    - Explore Mutations for unintended state changes.\n    - Check Subscriptions for data leakage.\n    - Verify persisted\u002Fsigned queries enforced in production; depth\u002Fcomplexity limits.\n5.  No Introspection? Try common field\u002Ftype guessing (e.g., `user`, `admin`, `query`, `mutation`). Use tools like `clairvoyance` or `inql`.\n\n## Mechanisms\n\n- Over-Fetching: Clients can request excessive data, potentially leading to DoS or information disclosure if not properly limited.\n- Under-Fetching\u002FN+1 Problem: Primarily a performance issue—poorly designed resolvers make dozens of backend calls (N+1). While not a direct data‑exposure risk, extreme latency can create timing side‑channels an attacker could measure.\n- Insecure Direct Object References (IDOR): Exposing internal IDs allows attackers to potentially access unauthorized data by guessing\u002Fenumerating IDs.\n- Insufficient Authorization: Missing or flawed checks on types, fields, mutations, or subscriptions.\n- Input Validation Issues: Failure to sanitize or validate user input can lead to injection attacks (SQLi, NoSQLi, XSS, SSRF) if resolvers interact with backend systems insecurely.\n- Introspection Enabled in Production: Exposes the entire schema, simplifying reconnaissance for attackers.\n- Batching Abuse: Sending multiple queries\u002Fmutations in a single request can overwhelm the server (DoS) or bypass rate limiting.\n- Lack of Depth\u002FComplexity Limiting: Allows excessively nested or complex queries, leading to DoS.\n- Directive Flooding: Sending thousands of `@include`\u002F`@skip` directives in a single query can exhaust parser and validation phases, triggering DoS (e.g., CVE‑2024‑47614 in async‑graphql).\n- Incremental Delivery: `@defer`\u002F`@stream` can multiply work and leak partial data; must be guarded by cost and auth checks on deferred subtrees.\n- File Uploads: Implementations using `graphql-upload` or custom multipart handling can inherit classic upload bugs (path traversal, content-type trust, temp file exposure).\n- Federation\u002FGateway: Cross-subgraph authorization gaps, entity resolver overfetching, and inconsistent role enforcement at the router vs. subgraphs.\n- CSRF Considerations: If cookie‑based auth is used, enforce header + `Origin` validation; prefer Authorization header.\n- WebSocket Security: GraphQL subscriptions over WebSocket often lack proper authorization on long-lived connections; auth tokens in connection params may not be re-validated after expiry.\n- Field Suggestions: Error messages that suggest valid field names when invalid ones are queried can leak schema information even with introspection disabled.\n- Relay Global IDs: Base64-encoded `Type:ID` patterns (e.g., `base64(\"User:123\")`) are commonly used and can be decoded to reveal internal IDs.\n- Apollo\u002FHasura Leaks: Production Apollo Server instances may leak schema via query extensions; Hasura permissions misconfiguration can expose direct DB access.\n- Header Injection: `x-hasura-*` headers or custom auth headers may be trusted without validation, enabling privilege escalation.\n\n## Hunt\n\n### Preparation\n\n- Identify the GraphQL endpoint(s).\n- Obtain the schema via introspection or guessing.\n- Understand the application context and potential sensitive data\u002Factions.\n\n### Techniques\n\n- Schema Analysis: Use tools like `GraphQL Voyager` or manually review the schema for sensitive keywords (`admin`, `password`, `config`, `secret`), authorization directives, and complex relationships.\n- Query Fuzzing: Use tools like `inql` or custom scripts to fuzz queries, mutations, and arguments.\n- Authorization Testing:\n  - Try accessing data\u002Fmutations meant for higher-privileged users.\n  - Test IDOR by replacing IDs in queries\u002Fmutations.\n  - Check if different roles see different schema subsets (if applicable).\n  - Verify router and subgraphs enforce identical authz decisions.\n- Injection Testing: Inject payloads (SQL, NoSQL, OS command, XSS, SSRF) into string arguments.\n- DoS Testing:\n  - Deeply nested queries (`query { user { friends { friends { ... } } } }`).\n  - Large limits in list arguments (`query { users(limit: 99999) { id } }`).\n  - Query batching abuse.\n  - Field duplication\u002Faliases (`query { u1: user(id:1){id} u2: user(id:1){id} ... }`).\n  - Directive flooding by attaching a very long chain of `@include` or `@skip` directives to safe fields.\n- Incremental delivery pressure: attach many `@defer`\u002F`@stream` segments to expand compute and memory footprint.\n- Business Logic Flaws: Test mutations for race conditions, logical errors, or unintended side effects.\n- Upload testing: multipart spec edge cases (path traversal via `map`, temp file exposure) and file‑type checks.\n- WebSocket Subscription Testing:\n  - Tamper with `connection_init` payload (JWT in `connectionParams`)\n  - Test subscription flooding without rate limiting\n  - Verify auth token expiry is enforced on long-lived WS connections\n  - Test for cross-user subscription leaks via predictable subscription IDs\n- Field Suggestion Probing: Send invalid field names and analyze error messages for schema hints (\"Did you mean...?\" responses)\n- Relay ID Decoding: Identify base64-encoded global IDs (e.g., `id: \"VXNlcjoxMjM=\"`), decode to extract type and numeric ID, test IDOR\n- Apollo Extensions: Try `?extensions={\"persistedQuery\":{...}}` or check for `apollo-server-testing` header in responses\n- Hasura Header Injection: Test `x-hasura-role`, `x-hasura-user-id`, `x-hasura-org-id` headers for authorization bypass\n\n### Advanced Testing\n\n- Reverse engineer client-side code making GraphQL requests.\n- Analyze traffic between microservices if GraphQL is used internally.\n- Test subscription endpoints for authorization issues and data leakage over time.\n\n## Bypass Techniques\n\n### Introspection Disabled\n\nUse wordlists (SecLists has GraphQL lists) with tools like `clairvoyance` or `GraphQLmap` to guess types, fields, and arguments. Analyze client-side code for hints.\n\n- Quick probe: `query { __typename }` often succeeds even when full introspection is disabled and confirms a GraphQL endpoint.\n\n- Use wordlists (SecLists has GraphQL lists) with tools like `clairvoyance` or `GraphQLmap` to guess types, fields, and arguments. Analyze client-side code for hints.\n\n### Rate Limiting\u002FComplexity Limits\n\n- Use aliases to request the same field multiple times within limits.\n- Split complex queries into multiple smaller ones.\n- Abuse batching if not properly limited.\n\n### Web Application Firewalls (WAFs)\n\n- Use GraphQL query variations (aliases, fragments, different whitespace).\n- Encode payloads within strings.\n- Leverage nested input objects if WAF only inspects top-level arguments.\n- Abuse incremental delivery: place sensitive fields under `@defer` to evade naive complexity calculators.\n- Persisted queries reduce WAF reliance; prefer signature enforcement at edge.\n\n## Vulnerabilities\n\n### Common Patterns\n\n- Publicly exposed GraphiQL interface with introspection enabled.\n- Mutations lacking proper authorization checks.\n- Resolvers directly using user input in database queries or system commands.\n- Fields returning sensitive information not intended for the user's role.\n- Lack of query depth\u002Fcomplexity\u002Flimit controls.\n\n### Specific Functions\u002FAreas:\n\n- `user`, `account`, `profile` types\u002Fqueries (Information Disclosure, IDOR).\n- `admin`, `settings`, `config` types\u002Fqueries (Privilege Escalation).\n- Mutations involving payments, data modification, or user management.\n- Search functionalities (Injection).\n- File upload mechanisms via mutations.\n- Subscription endpoints.\n\n## Methodologies\n\n### Tools\n\n- Automated Scanners: `StackHawk`, `Invicti`, **Escape** (free SaaS tier), `Nuclei` (GraphQL templates).\n- Introspection & Interaction: `GraphiQL`, `Postman`, `Altair GraphQL Client`, `Insomnia`.\n- Schema Exploration: `GraphQL Voyager`.\n- Exploitation\u002FFuzzing: `inql` (Burp Suite Extension), `GraphQLmap`, `clairvoyance`, **CrackQL** (JWT extraction from errors), **BatchQL** (batch query fuzzing), custom Python scripts (`requests` library).\n- Proxy: Burp Suite, OWASP ZAP (to intercept and modify requests).\n- Security Middleware: **GraphQL Armor** – production‑ready depth, alias and complexity limits for Apollo Server, Yoga, Envelop and more.\n- Fingerprinting \u002F Recon: **graphw00f** – identifies the underlying GraphQL implementation (Apollo, Yoga, Hasura, etc.) to tailor attacks.\n- Security Auditing: **graphql-cop** – security auditing and configuration checking.\n- Endpoint Discovery: `Graphinder` and wordlists for path guessing.\n- Linters\u002FPolicy: `graphql-schema-linter`, `eslint-plugin-graphql`, and custom auth directives unit tests.\n\n### Systematic Process\n\n1.  Reconnaissance (Endpoint discovery, Schema retrieval\u002Fguessing).\n2.  Schema Analysis (Identify key types, fields, mutations, auth).\n3.  Authorization Testing (Role-based access, IDOR).\n4.  Input Vulnerability Testing (Injection, XSS, SSRF in arguments).\n5.  DoS Testing (Query complexity, batching, limits).\n6.  Business Logic Testing (Mutation side-effects, race conditions).\n7.  Subscription Testing (if applicable).\n\n### High-Impact Targets\n\nMutations changing state (user roles, passwords, settings), queries accessing sensitive user data, administrative endpoints.\n\n## Chaining and Escalation\n\n- **IDOR + Mutation**: Discover an IDOR in a query, then use the leaked ID to modify another user's data via a mutation (e.g., change email\u002Fpassword).\n- **Information Disclosure + Injection**: Leak database structure\u002Fversion via a verbose error, then use that info to craft a targeted SQLi payload.\n- **SSRF + Internal Endpoint**: Use an SSRF vulnerability in a resolver to interact with internal GraphQL endpoints or other services not directly accessible.\n- **Authorization Bypass + Admin Mutation**: Gain access to an administrative mutation (e.g., `updateUserRole`) through flawed authorization, then escalate privileges.\n- **XSS + Token Theft**: Inject XSS payload via a vulnerable field, steal authentication tokens from other users viewing the data.\n\n## Remediation Recommendations\n\n- Disable Introspection in Production: Prevent easy schema discovery.\n- Implement Strict Authorization: Apply checks at the schema level (directives) and within resolvers for every field, type, mutation, and subscription based on user roles\u002Fpermissions. Use context passed to resolvers.\n- Input Validation & Sanitization: Validate all arguments against expected types, formats, and lengths. Sanitize input before using it in downstream systems (databases, commands). Use parameterized queries.\n- Query Cost Analysis: Implement limits on query depth, complexity (e.g., maximum nodes or calculated cost), and amount (limit number of results).\n- Rate Limiting: Limit the number of requests per user\u002FIP, including batched queries.\n- Persisted & Signed Queries: Enforce automatic persisted queries (APQ) with operation signatures to whitelist allowed operations and block unknown or modified queries.\n- Secure Federation Gateways: Keep Apollo Router (or your GraphQL gateway) patched, validate supergraph composition, and enforce authorization at the gateway layer to prevent cross‑subgraph data leaks.\n- Caching & CDN Hardening: If responses are cached, partition caches by the `Authorization` header (or disable caching) to avoid shared‑cache data leakage.\n- Specific Field Exposure: Avoid exposing sensitive fields (`password`, `internal tokens`). Use dedicated Data Transfer Objects (DTOs) if necessary.\n- Error Handling: Return generic error messages; avoid leaking stack traces or internal details.\n- Regular Audits & Testing: Perform regular security reviews and penetration tests specifically targeting the GraphQL API.\n- Use Security Headers: Apply standard web security headers (CSP, HSTS, etc.).\n- Keep Libraries Updated: Ensure GraphQL server libraries and dependencies are patched.\n- Incremental Delivery Controls: enforce cost accounting for `@defer`\u002F`@stream`; ensure deferred subtrees still run full auth\u002Fvisibility checks.\n- File Upload Hygiene: if using GraphQL upload, re‑encode images, validate content by signature, and store outside web root; apply all controls from `file-upload.md`.\n- Federation RBAC: centralize auth policy in schema directives evaluated at the gateway and in subgraphs; avoid trusting upstream filtering blindly.\n",{"name":5,"domain":30,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Foffensive-graphql","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill offensive-graphql",{"tool":51,"command":52},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill offensive-graphql",{"tool":54,"command":55},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill offensive-graphql","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Foffensive-graphql\u002FSKILL.md",true,[59],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"index.json","REFERENCE","参考文档",598,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Foffensive-graphql\u002Findex.json",[66,76,101,124,146,168],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":75},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":33},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[83,84,85,86,87,88,89,30,90,91,92,93,94,95,96,97,98,99,100],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":33},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[108,86,109,83,110,111,112,113,114,30,115,116,117,118,119,120,121,122,100,123],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":33},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[131,132,133,134,135,136,137,138,139,140,120,100,141,142,113,143,112,30,144,145],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":33},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[153,154,155,84,30,156,99,157,158,159,88,100,160,161,162,163,164,165,166,167],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":33},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[175,153,176,84,177,178,89,100,160,179,180,181,113,88,30,156,182,99,183,158],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]