graphql_security_check
Run automated security checks against a GraphQL endpoint to detect introspection exposure, query batching, unbounded depth, and field suggestion leaks, then get recommendations to secure it.
Instructions
Perform automated GraphQL security checks using direct HTTP requests.
Checks performed:
Introspection enabled (schema disclosure)
Query batching enabled (potential DoS amplification)
Depth limit enforcement (unbounded query depth)
Field suggestion leak (information disclosure via error messages)
Args: url: GraphQL endpoint URL (e.g. https://example.com/graphql). check_introspection: Whether to test for introspection (schema exposure). authenticated: If True, include the Authorization header in requests. auth_header: Authorization header value (e.g. "Bearer "). timeout: HTTP request timeout in seconds (not the tool timeout).
Returns: Dict with each check result, overall is_vulnerable flag, and recommendations.
Note: - Target URL must be in tengu.toml [targets].allowed_hosts. - No subprocess is used — all checks are pure Python httpx requests. - Does not perform mutation or data modification of any kind.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| timeout | No | ||
| auth_header | No | ||
| authenticated | No | ||
| check_introspection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||