How karan2527/gqlx works
gqlx is a command-line GraphQL security-testing framework. Its primary scan flow accepts target and authentication options, discovers a schema (including fallback discovery), parses it into operations and types, runs selected security modules, scores findings, and writes a report. Separate CLI workflows support deeper enumeration and identity/context discovery, including Cognito/AppSync deployments. The graph preserves the documented vulnerability modules and report formats. Some links rely on README statements or indexed references because their source was not excerpted; those limits are reflected in the evidence paths.
Main entry points: scanner.py Scan orchestrator · requester.py HTTP requester · introspector.py Schema introspection · cli.py Command line
Components 21
CLI workflows
- Command line
gqlx/cli.py - Cognito auth
gqlx/core/cognito_auth.py - Context discovery
gqlx/core/context_discoverer.py
Schema discovery
- Schema introspection
gqlx/core/introspector.py - Schema parser
gqlx/core/parser.py - Operation enumeration
gqlx/core/enumerator.py
Security testing
- Scan orchestrator
gqlx/core/scanner.py - Module framework
gqlx/modules/base.py - Injection checks
gqlx/modules/injection.py - BOLA checks
gqlx/modules/bola.py - Authentication checks
gqlx/modules/auth.py - SSRF checks
gqlx/modules/ssrf.py - Tenant isolation
gqlx/modules/tenant_isolation.py - Information disclosure
gqlx/modules/info_disclosure.py - DoS protections
gqlx/modules/dos.py
Results and shared runtime
- HTTP requester
gqlx/core/requester.py - Schema and findings
gqlx/utils/models.py - Finding scorer
gqlx/core/scorer.py - Report writer
gqlx/output/reporter.py
Other components
- Authorized operator
- GraphQL endpoint
Connections 29
- Authorized operator → Command line: configures scan
README.md - Command line → Scan orchestrator: starts scan
gqlx/cli.py - Scan orchestrator → Schema introspection: discovers schema
gqlx/core/scanner.py - Schema introspection → HTTP requester: sends probes
gqlx/core/introspector.py - Schema introspection → GraphQL endpoint: queries schema
README.md - Scan orchestrator → Schema parser: parses response
gqlx/core/scanner.py - Schema parser → Schema and findings: builds schema
gqlx/core/parser.py - Scan orchestrator → Module framework: resolves modules
gqlx/core/scanner.py - Scan orchestrator → Injection checks: dispatches
gqlx/core/scanner.py - Scan orchestrator → BOLA checks: dispatches
gqlx/core/scanner.py - Scan orchestrator → Authentication checks: dispatches
gqlx/core/scanner.py - Scan orchestrator → SSRF checks: dispatches
gqlx/core/scanner.py - Scan orchestrator → Tenant isolation: dispatches
gqlx/core/scanner.py - Scan orchestrator → Information disclosure: dispatches
gqlx/core/scanner.py - Scan orchestrator → DoS protections: dispatches
gqlx/core/scanner.py - Injection checks → HTTP requester: sends tests
gqlx/modules/injection.py - Authentication checks → HTTP requester: compares responses
gqlx/modules/auth.py - Tenant isolation → HTTP requester: probes identities
gqlx/modules/tenant_isolation.py - HTTP requester → GraphQL endpoint: sends requests
gqlx/core/requester.py - Scan orchestrator → Finding scorer: scores findings
gqlx/core/scanner.py - Finding scorer → Schema and findings: updates findings
gqlx/core/scorer.py - Scan orchestrator → Report writer: returns scan result
gqlx/cli.py - Report writer → Authorized operator: writes report
README.md - Authorized operator → Operation enumeration: requests enumeration
README.md - Operation enumeration → HTTP requester: sends operations
gqlx/core/enumerator.py - Authorized operator → Context discovery: starts autopwn
README.md - Context discovery → HTTP requester: probes user context
gqlx/core/context_discoverer.py - Authorized operator → Cognito auth: starts fullpwn
README.md - Cognito auth → GraphQL endpoint: supports AppSync auth
README.md