sast-graphql

Detect unsafe GraphQL operation document construction with user input tracing.

1.3k|61|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/utkusen/sast-skills --skill sast-graphql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sast-graphql
Source: https://github.com/utkusen/sast-skills/tree/main/sast-files/.agents/skills/sast-graphql
Command: npx skills add https://github.com/utkusen/sast-skills --skill sast-graphql

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GraphQL injection vulnerabilities occur when user-controlled data is embedded into GraphQL operation strings rather than passed solely via variables. This skill provides a structured three-phase workflow to recon GraphQL usage, verify potential injection sites in batches, and merge results into a single report, enabling secure GraphQL implementations.

Core Features & Use Cases

  • Three-phase workflow: Recon to locate unsafe operation document assembly sites, batched verification to trace taint through user input, and merge to produce a consolidated findings report.
  • Architecture-aware: Requires sast/architecture.md to exist; uses context for accurate targeting and prioritization.
  • Output integration: Writes results to sast/graphql-results.md for remediation planning and auditing.
  • Use case: Identify and remediate GraphQL document construction vulnerabilities across codebases that dynamically build operation text.

Quick Start

Run the GraphQL injection detection workflow by first performing the sast-analysis to generate architecture context, then execute sast-graphql to produce the phased findings.

Frequently Asked Questions about sast-graphql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect GraphQL injection vulnerabilities in my codebase?

To detect GraphQL injection vulnerabilities, this skill identifies unsafe construction of GraphQL operation documents and traces user input to those sites. It applies a three-phase workflow to locate assembly points, verify taint flow in batches, and consolidate findings into a remediation report.

What is the difference between passing GraphQL variables and embedding user input in operation strings?

GraphQL injection occurs when user-controlled data is embedded directly into operation strings rather than passed safely via variables. This skill identifies these unsafe document construction patterns by tracing user input to the sites where dynamic operation text is built.

How do I run static analysis to find unsafe GraphQL document construction?

You run static analysis for unsafe GraphQL document construction by executing a three-phase workflow: recon to locate assembly sites, batched verification to trace taint from user input, and a merge phase to produce a consolidated findings report for remediation.

Do I need an architecture file to scan for GraphQL injection?

Yes, you need an existing sast/architecture.md file to scan for GraphQL injection. This skill is architecture-aware and requires that context to accurately target and prioritize the detection of unsafe operation document assembly across your codebase.

Where does the GraphQL injection detection workflow output its findings?

The GraphQL injection detection workflow outputs its consolidated findings to sast/graphql-results.md. This file provides the verified results of the three-phase analysis for remediation planning and security auditing.

Can I trace user input to GraphQL operation documents in parallel?

Yes, you can trace user input to GraphQL operation documents in parallel. The verification phase of the workflow processes potential injection sites in parallel batches to validate taint flow efficiently before merging the results.