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.
Files changed (159) hide show
  1. gqlsleuth-1.0.0/CHANGELOG.md +46 -0
  2. gqlsleuth-1.0.0/LICENSE +21 -0
  3. gqlsleuth-1.0.0/PKG-INFO +665 -0
  4. gqlsleuth-1.0.0/README.md +638 -0
  5. gqlsleuth-1.0.0/docs/RELEASING.md +130 -0
  6. gqlsleuth-1.0.0/pyproject.toml +93 -0
  7. gqlsleuth-1.0.0/pyproject.toml.orig +73 -0
  8. gqlsleuth-1.0.0/scripts/check_release_artifacts.py +191 -0
  9. gqlsleuth-1.0.0/scripts/installed_smoke.py +133 -0
  10. gqlsleuth-1.0.0/src/gqlsleuth/__init__.py +9 -0
  11. gqlsleuth-1.0.0/src/gqlsleuth/__main__.py +6 -0
  12. gqlsleuth-1.0.0/src/gqlsleuth/ai/__init__.py +1 -0
  13. gqlsleuth-1.0.0/src/gqlsleuth/ai/context.py +215 -0
  14. gqlsleuth-1.0.0/src/gqlsleuth/ai/identifiers.py +11 -0
  15. gqlsleuth-1.0.0/src/gqlsleuth/ai/models.py +315 -0
  16. gqlsleuth-1.0.0/src/gqlsleuth/ai/prompt.py +150 -0
  17. gqlsleuth-1.0.0/src/gqlsleuth/ai/sections.py +56 -0
  18. gqlsleuth-1.0.0/src/gqlsleuth/ai/security_context.py +569 -0
  19. gqlsleuth-1.0.0/src/gqlsleuth/application/__init__.py +1 -0
  20. gqlsleuth-1.0.0/src/gqlsleuth/application/abuse_controls.py +466 -0
  21. gqlsleuth-1.0.0/src/gqlsleuth/application/active_execution.py +323 -0
  22. gqlsleuth-1.0.0/src/gqlsleuth/application/ai_assistance.py +65 -0
  23. gqlsleuth-1.0.0/src/gqlsleuth/application/authentication.py +492 -0
  24. gqlsleuth-1.0.0/src/gqlsleuth/application/authorization_policy.py +260 -0
  25. gqlsleuth-1.0.0/src/gqlsleuth/application/bounded_object.py +226 -0
  26. gqlsleuth-1.0.0/src/gqlsleuth/application/differential_review.py +368 -0
  27. gqlsleuth-1.0.0/src/gqlsleuth/application/endpoint_discovery.py +148 -0
  28. gqlsleuth-1.0.0/src/gqlsleuth/application/federation.py +335 -0
  29. gqlsleuth-1.0.0/src/gqlsleuth/application/file_upload.py +381 -0
  30. gqlsleuth-1.0.0/src/gqlsleuth/application/graphql_detection.py +229 -0
  31. gqlsleuth-1.0.0/src/gqlsleuth/application/idor.py +218 -0
  32. gqlsleuth-1.0.0/src/gqlsleuth/application/introspection.py +195 -0
  33. gqlsleuth-1.0.0/src/gqlsleuth/application/multiplicity.py +225 -0
  34. gqlsleuth-1.0.0/src/gqlsleuth/application/mutation_authorization.py +280 -0
  35. gqlsleuth-1.0.0/src/gqlsleuth/application/mutation_preparation.py +60 -0
  36. gqlsleuth-1.0.0/src/gqlsleuth/application/nested_authorization.py +493 -0
  37. gqlsleuth-1.0.0/src/gqlsleuth/application/object_authorization.py +452 -0
  38. gqlsleuth-1.0.0/src/gqlsleuth/application/object_lookup.py +43 -0
  39. gqlsleuth-1.0.0/src/gqlsleuth/application/operation_analysis.py +128 -0
  40. gqlsleuth-1.0.0/src/gqlsleuth/application/query_depth.py +288 -0
  41. gqlsleuth-1.0.0/src/gqlsleuth/application/query_generation.py +121 -0
  42. gqlsleuth-1.0.0/src/gqlsleuth/application/reporting.py +38 -0
  43. gqlsleuth-1.0.0/src/gqlsleuth/application/safe_execution.py +229 -0
  44. gqlsleuth-1.0.0/src/gqlsleuth/application/scan_configuration.py +118 -0
  45. gqlsleuth-1.0.0/src/gqlsleuth/application/schema_parsing.py +130 -0
  46. gqlsleuth-1.0.0/src/gqlsleuth/application/security_review.py +67 -0
  47. gqlsleuth-1.0.0/src/gqlsleuth/application/sensitive_input.py +268 -0
  48. gqlsleuth-1.0.0/src/gqlsleuth/application/sensitive_input_review.py +66 -0
  49. gqlsleuth-1.0.0/src/gqlsleuth/application/sequential_discovery.py +178 -0
  50. gqlsleuth-1.0.0/src/gqlsleuth/application/subscriptions.py +523 -0
  51. gqlsleuth-1.0.0/src/gqlsleuth/cli.py +1572 -0
  52. gqlsleuth-1.0.0/src/gqlsleuth/discovery/__init__.py +1 -0
  53. gqlsleuth-1.0.0/src/gqlsleuth/discovery/endpoint_candidates.py +74 -0
  54. gqlsleuth-1.0.0/src/gqlsleuth/domain/__init__.py +1 -0
  55. gqlsleuth-1.0.0/src/gqlsleuth/domain/abuse_controls.py +131 -0
  56. gqlsleuth-1.0.0/src/gqlsleuth/domain/active.py +51 -0
  57. gqlsleuth-1.0.0/src/gqlsleuth/domain/analysis.py +173 -0
  58. gqlsleuth-1.0.0/src/gqlsleuth/domain/authentication.py +116 -0
  59. gqlsleuth-1.0.0/src/gqlsleuth/domain/authorization_policy.py +144 -0
  60. gqlsleuth-1.0.0/src/gqlsleuth/domain/differential.py +81 -0
  61. gqlsleuth-1.0.0/src/gqlsleuth/domain/exceptions.py +69 -0
  62. gqlsleuth-1.0.0/src/gqlsleuth/domain/execution.py +15 -0
  63. gqlsleuth-1.0.0/src/gqlsleuth/domain/federation.py +152 -0
  64. gqlsleuth-1.0.0/src/gqlsleuth/domain/file_upload.py +157 -0
  65. gqlsleuth-1.0.0/src/gqlsleuth/domain/idor.py +126 -0
  66. gqlsleuth-1.0.0/src/gqlsleuth/domain/models.py +169 -0
  67. gqlsleuth-1.0.0/src/gqlsleuth/domain/multiplicity.py +85 -0
  68. gqlsleuth-1.0.0/src/gqlsleuth/domain/mutation_authorization.py +121 -0
  69. gqlsleuth-1.0.0/src/gqlsleuth/domain/nested_authorization.py +95 -0
  70. gqlsleuth-1.0.0/src/gqlsleuth/domain/object_authorization.py +175 -0
  71. gqlsleuth-1.0.0/src/gqlsleuth/domain/query_depth.py +86 -0
  72. gqlsleuth-1.0.0/src/gqlsleuth/domain/query_generation.py +43 -0
  73. gqlsleuth-1.0.0/src/gqlsleuth/domain/schema.py +186 -0
  74. gqlsleuth-1.0.0/src/gqlsleuth/domain/security_review.py +50 -0
  75. gqlsleuth-1.0.0/src/gqlsleuth/domain/sensitive_input.py +161 -0
  76. gqlsleuth-1.0.0/src/gqlsleuth/domain/sequential_discovery.py +129 -0
  77. gqlsleuth-1.0.0/src/gqlsleuth/domain/subscriptions.py +123 -0
  78. gqlsleuth-1.0.0/src/gqlsleuth/graphql/__init__.py +1 -0
  79. gqlsleuth-1.0.0/src/gqlsleuth/graphql/abuse_controls.py +138 -0
  80. gqlsleuth-1.0.0/src/gqlsleuth/graphql/active_execution.py +56 -0
  81. gqlsleuth-1.0.0/src/gqlsleuth/graphql/authentication.py +39 -0
  82. gqlsleuth-1.0.0/src/gqlsleuth/graphql/authorization_response.py +39 -0
  83. gqlsleuth-1.0.0/src/gqlsleuth/graphql/collection_schema.py +99 -0
  84. gqlsleuth-1.0.0/src/gqlsleuth/graphql/detection.py +204 -0
  85. gqlsleuth-1.0.0/src/gqlsleuth/graphql/federation.py +236 -0
  86. gqlsleuth-1.0.0/src/gqlsleuth/graphql/file_upload.py +206 -0
  87. gqlsleuth-1.0.0/src/gqlsleuth/graphql/introspection.py +210 -0
  88. gqlsleuth-1.0.0/src/gqlsleuth/graphql/multiplicity.py +148 -0
  89. gqlsleuth-1.0.0/src/gqlsleuth/graphql/mutation_authorization.py +67 -0
  90. gqlsleuth-1.0.0/src/gqlsleuth/graphql/nested_authorization.py +216 -0
  91. gqlsleuth-1.0.0/src/gqlsleuth/graphql/object_authorization.py +295 -0
  92. gqlsleuth-1.0.0/src/gqlsleuth/graphql/query_depth.py +143 -0
  93. gqlsleuth-1.0.0/src/gqlsleuth/graphql/query_generation.py +410 -0
  94. gqlsleuth-1.0.0/src/gqlsleuth/graphql/response_json.py +47 -0
  95. gqlsleuth-1.0.0/src/gqlsleuth/graphql/safe_execution.py +157 -0
  96. gqlsleuth-1.0.0/src/gqlsleuth/graphql/schema_parser.py +293 -0
  97. gqlsleuth-1.0.0/src/gqlsleuth/graphql/selection_paths.py +191 -0
  98. gqlsleuth-1.0.0/src/gqlsleuth/graphql/sensitive_input.py +221 -0
  99. gqlsleuth-1.0.0/src/gqlsleuth/graphql/subscriptions.py +153 -0
  100. gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/__init__.py +1 -0
  101. gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/http.py +301 -0
  102. gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/ollama.py +140 -0
  103. gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/probe_evidence.py +70 -0
  104. gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/upload_file.py +73 -0
  105. gqlsleuth-1.0.0/src/gqlsleuth/infrastructure/websocket.py +166 -0
  106. gqlsleuth-1.0.0/src/gqlsleuth/presentation/__init__.py +1 -0
  107. gqlsleuth-1.0.0/src/gqlsleuth/presentation/abuse_controls.py +90 -0
  108. gqlsleuth-1.0.0/src/gqlsleuth/presentation/assessment.py +529 -0
  109. gqlsleuth-1.0.0/src/gqlsleuth/presentation/authentication.py +116 -0
  110. gqlsleuth-1.0.0/src/gqlsleuth/presentation/authorization_policy.py +63 -0
  111. gqlsleuth-1.0.0/src/gqlsleuth/presentation/capabilities.py +19 -0
  112. gqlsleuth-1.0.0/src/gqlsleuth/presentation/completed.py +152 -0
  113. gqlsleuth-1.0.0/src/gqlsleuth/presentation/console.py +816 -0
  114. gqlsleuth-1.0.0/src/gqlsleuth/presentation/differential.py +44 -0
  115. gqlsleuth-1.0.0/src/gqlsleuth/presentation/federation.py +51 -0
  116. gqlsleuth-1.0.0/src/gqlsleuth/presentation/file_upload.py +71 -0
  117. gqlsleuth-1.0.0/src/gqlsleuth/presentation/idor.py +81 -0
  118. gqlsleuth-1.0.0/src/gqlsleuth/presentation/multiplicity.py +117 -0
  119. gqlsleuth-1.0.0/src/gqlsleuth/presentation/mutation_authorization.py +65 -0
  120. gqlsleuth-1.0.0/src/gqlsleuth/presentation/nested_authorization.py +62 -0
  121. gqlsleuth-1.0.0/src/gqlsleuth/presentation/object_authorization.py +71 -0
  122. gqlsleuth-1.0.0/src/gqlsleuth/presentation/object_lookup.py +110 -0
  123. gqlsleuth-1.0.0/src/gqlsleuth/presentation/priorities.py +38 -0
  124. gqlsleuth-1.0.0/src/gqlsleuth/presentation/query_depth.py +94 -0
  125. gqlsleuth-1.0.0/src/gqlsleuth/presentation/responses.py +105 -0
  126. gqlsleuth-1.0.0/src/gqlsleuth/presentation/security_review.py +38 -0
  127. gqlsleuth-1.0.0/src/gqlsleuth/presentation/sensitive_input.py +138 -0
  128. gqlsleuth-1.0.0/src/gqlsleuth/presentation/sequential_discovery.py +77 -0
  129. gqlsleuth-1.0.0/src/gqlsleuth/presentation/subscriptions.py +66 -0
  130. gqlsleuth-1.0.0/src/gqlsleuth/reporting/__init__.py +1 -0
  131. gqlsleuth-1.0.0/src/gqlsleuth/reporting/abuse_controls.py +124 -0
  132. gqlsleuth-1.0.0/src/gqlsleuth/reporting/assessment.py +149 -0
  133. gqlsleuth-1.0.0/src/gqlsleuth/reporting/authentication.py +92 -0
  134. gqlsleuth-1.0.0/src/gqlsleuth/reporting/authorization_policy.py +54 -0
  135. gqlsleuth-1.0.0/src/gqlsleuth/reporting/builder.py +477 -0
  136. gqlsleuth-1.0.0/src/gqlsleuth/reporting/differential.py +256 -0
  137. gqlsleuth-1.0.0/src/gqlsleuth/reporting/federation.py +103 -0
  138. gqlsleuth-1.0.0/src/gqlsleuth/reporting/file_upload.py +100 -0
  139. gqlsleuth-1.0.0/src/gqlsleuth/reporting/idor.py +79 -0
  140. gqlsleuth-1.0.0/src/gqlsleuth/reporting/models.py +152 -0
  141. gqlsleuth-1.0.0/src/gqlsleuth/reporting/mutation_authorization.py +60 -0
  142. gqlsleuth-1.0.0/src/gqlsleuth/reporting/nested_authorization.py +67 -0
  143. gqlsleuth-1.0.0/src/gqlsleuth/reporting/object_authorization.py +69 -0
  144. gqlsleuth-1.0.0/src/gqlsleuth/reporting/output.py +47 -0
  145. gqlsleuth-1.0.0/src/gqlsleuth/reporting/presentation.py +611 -0
  146. gqlsleuth-1.0.0/src/gqlsleuth/reporting/renderers.py +125 -0
  147. gqlsleuth-1.0.0/src/gqlsleuth/reporting/sensitive_input.py +117 -0
  148. gqlsleuth-1.0.0/src/gqlsleuth/reporting/sequential_discovery.py +83 -0
  149. gqlsleuth-1.0.0/src/gqlsleuth/reporting/subscriptions.py +99 -0
  150. gqlsleuth-1.0.0/src/gqlsleuth/reporting/templates/report.html.j2 +125 -0
  151. gqlsleuth-1.0.0/src/gqlsleuth/reporting/templates/report.md.j2 +85 -0
  152. gqlsleuth-1.0.0/src/gqlsleuth/rules/__init__.py +1 -0
  153. gqlsleuth-1.0.0/src/gqlsleuth/rules/default_rules.yaml +142 -0
  154. gqlsleuth-1.0.0/src/gqlsleuth/rules/loader.py +47 -0
  155. gqlsleuth-1.0.0/src/gqlsleuth/rules/operation_analysis.py +266 -0
  156. gqlsleuth-1.0.0/src/gqlsleuth/rules/schema_graph.py +156 -0
  157. gqlsleuth-1.0.0/src/gqlsleuth/rules/security_review.py +375 -0
  158. gqlsleuth-1.0.0/src/gqlsleuth/rules/sensitive_input.py +35 -0
  159. 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.
@@ -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.