gqlsleuth 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gqlsleuth-1.0.0/CHANGELOG.md +46 -0
- gqlsleuth-1.0.0/LICENSE +21 -0
- gqlsleuth-1.0.0/PKG-INFO +665 -0
- gqlsleuth-1.0.0/README.md +638 -0
- gqlsleuth-1.0.0/docs/RELEASING.md +130 -0
- gqlsleuth-1.0.0/pyproject.toml +93 -0
- gqlsleuth-1.0.0/pyproject.toml.orig +73 -0
- gqlsleuth-1.0.0/scripts/check_release_artifacts.py +191 -0
- gqlsleuth-1.0.0/scripts/installed_smoke.py +133 -0
- gqlsleuth-1.0.0/src/gqlsleuth/__init__.py +9 -0
- gqlsleuth-1.0.0/src/gqlsleuth/__main__.py +6 -0
- gqlsleuth-1.0.0/src/gqlsleuth/ai/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/ai/context.py +215 -0
- gqlsleuth-1.0.0/src/gqlsleuth/ai/identifiers.py +11 -0
- gqlsleuth-1.0.0/src/gqlsleuth/ai/models.py +315 -0
- gqlsleuth-1.0.0/src/gqlsleuth/ai/prompt.py +150 -0
- gqlsleuth-1.0.0/src/gqlsleuth/ai/sections.py +56 -0
- gqlsleuth-1.0.0/src/gqlsleuth/ai/security_context.py +569 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/abuse_controls.py +466 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/active_execution.py +323 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/ai_assistance.py +65 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/authentication.py +492 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/authorization_policy.py +260 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/bounded_object.py +226 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/differential_review.py +368 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/endpoint_discovery.py +148 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/federation.py +335 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/file_upload.py +381 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/graphql_detection.py +229 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/idor.py +218 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/introspection.py +195 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/multiplicity.py +225 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/mutation_authorization.py +280 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/mutation_preparation.py +60 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/nested_authorization.py +493 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/object_authorization.py +452 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/object_lookup.py +43 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/operation_analysis.py +128 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/query_depth.py +288 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/query_generation.py +121 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/reporting.py +38 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/safe_execution.py +229 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/scan_configuration.py +118 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/schema_parsing.py +130 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/security_review.py +67 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/sensitive_input.py +268 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/sensitive_input_review.py +66 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/sequential_discovery.py +178 -0
- gqlsleuth-1.0.0/src/gqlsleuth/application/subscriptions.py +523 -0
- gqlsleuth-1.0.0/src/gqlsleuth/cli.py +1572 -0
- gqlsleuth-1.0.0/src/gqlsleuth/discovery/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/discovery/endpoint_candidates.py +74 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/abuse_controls.py +131 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/active.py +51 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/analysis.py +173 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/authentication.py +116 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/authorization_policy.py +144 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/differential.py +81 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/exceptions.py +69 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/execution.py +15 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/federation.py +152 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/file_upload.py +157 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/idor.py +126 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/models.py +169 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/multiplicity.py +85 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/mutation_authorization.py +121 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/nested_authorization.py +95 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/object_authorization.py +175 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/query_depth.py +86 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/query_generation.py +43 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/schema.py +186 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/security_review.py +50 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/sensitive_input.py +161 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/sequential_discovery.py +129 -0
- gqlsleuth-1.0.0/src/gqlsleuth/domain/subscriptions.py +123 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/abuse_controls.py +138 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/active_execution.py +56 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/authentication.py +39 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/authorization_response.py +39 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/collection_schema.py +99 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/detection.py +204 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/federation.py +236 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/file_upload.py +206 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/introspection.py +210 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/multiplicity.py +148 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/mutation_authorization.py +67 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/nested_authorization.py +216 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/object_authorization.py +295 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/query_depth.py +143 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/query_generation.py +410 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/response_json.py +47 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/safe_execution.py +157 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/schema_parser.py +293 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/selection_paths.py +191 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/sensitive_input.py +221 -0
- gqlsleuth-1.0.0/src/gqlsleuth/graphql/subscriptions.py +153 -0
- gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/http.py +301 -0
- gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/ollama.py +140 -0
- gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/probe_evidence.py +70 -0
- gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/upload_file.py +73 -0
- gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/websocket.py +166 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/abuse_controls.py +90 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/assessment.py +529 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/authentication.py +116 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/authorization_policy.py +63 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/capabilities.py +19 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/completed.py +152 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/console.py +816 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/differential.py +44 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/federation.py +51 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/file_upload.py +71 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/idor.py +81 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/multiplicity.py +117 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/mutation_authorization.py +65 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/nested_authorization.py +62 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/object_authorization.py +71 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/object_lookup.py +110 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/priorities.py +38 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/query_depth.py +94 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/responses.py +105 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/security_review.py +38 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/sensitive_input.py +138 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/sequential_discovery.py +77 -0
- gqlsleuth-1.0.0/src/gqlsleuth/presentation/subscriptions.py +66 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/abuse_controls.py +124 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/assessment.py +149 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/authentication.py +92 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/authorization_policy.py +54 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/builder.py +477 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/differential.py +256 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/federation.py +103 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/file_upload.py +100 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/idor.py +79 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/models.py +152 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/mutation_authorization.py +60 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/nested_authorization.py +67 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/object_authorization.py +69 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/output.py +47 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/presentation.py +611 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/renderers.py +125 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/sensitive_input.py +117 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/sequential_discovery.py +83 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/subscriptions.py +99 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/templates/report.html.j2 +125 -0
- gqlsleuth-1.0.0/src/gqlsleuth/reporting/templates/report.md.j2 +85 -0
- gqlsleuth-1.0.0/src/gqlsleuth/rules/__init__.py +1 -0
- gqlsleuth-1.0.0/src/gqlsleuth/rules/default_rules.yaml +142 -0
- gqlsleuth-1.0.0/src/gqlsleuth/rules/loader.py +47 -0
- gqlsleuth-1.0.0/src/gqlsleuth/rules/operation_analysis.py +266 -0
- gqlsleuth-1.0.0/src/gqlsleuth/rules/schema_graph.py +156 -0
- gqlsleuth-1.0.0/src/gqlsleuth/rules/security_review.py +375 -0
- gqlsleuth-1.0.0/src/gqlsleuth/rules/sensitive_input.py +35 -0
- gqlsleuth-1.0.0/src/gqlsleuth/rules/token_security.py +187 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
User-visible changes are recorded here. A prepared release entry does not imply publication.
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [1.0.0] - 2026-09-28
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- GraphQL endpoint discovery, introspection, schema analysis, deterministic review priorities,
|
|
12
|
+
minimal bounded Query generation and conservative SAFE execution.
|
|
13
|
+
- Controlled, explicitly confirmed Mutation execution and sensitive-input validation.
|
|
14
|
+
- Authorization review and explicit policy validation, including bounded object authorization
|
|
15
|
+
and IDOR/BOLA validation against operator-supplied expectations.
|
|
16
|
+
- Authentication and token security checks, bounded rate-limit/abuse validation, and controlled
|
|
17
|
+
GraphQL multiplicity and Query-depth checks.
|
|
18
|
+
- Controlled upload, federation and Subscription/WebSocket security validation.
|
|
19
|
+
- Generic named HTTP authentication contexts and deterministic differential authorization review.
|
|
20
|
+
- JSON evidence reports and standalone Markdown/HTML assessments, with Findings distinguished
|
|
21
|
+
from review candidates, scoped controls and unresolved checks.
|
|
22
|
+
- Optional local Ollama interpretation of completed scans, with allowlisted context and
|
|
23
|
+
deterministic facts remaining authoritative.
|
|
24
|
+
- Installed wheel/source-distribution release checks on Python 3.13 in Ubuntu and Windows CI.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Assessment-oriented compact console output with complete technical detail available through
|
|
29
|
+
verbose output and reports.
|
|
30
|
+
- Package metadata is the authoritative installed version. The initial release candidate
|
|
31
|
+
retains the Beta classifier pending public-release experience.
|
|
32
|
+
- Transport failures provide actionable, secret-safe guidance. Completed scans retain their
|
|
33
|
+
existing exit status, including when target requests fail.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- Excessively nested response JSON and recursive schema reconstruction fail through controlled
|
|
38
|
+
results instead of aborting the scan. An explicit iterative nesting bound removes platform
|
|
39
|
+
dependence; human output uses concise nesting notices.
|
|
40
|
+
- CI help assertions tolerate terminal styling while retaining narrow-terminal rendering checks.
|
|
41
|
+
|
|
42
|
+
### Security
|
|
43
|
+
|
|
44
|
+
- Target URLs containing embedded credentials are rejected before scanning, reporting or AI
|
|
45
|
+
processing, without echoing their credentials. Authentication remains explicit through headers
|
|
46
|
+
and supported named contexts.
|
gqlsleuth-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tomás Ortiz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|