auditex 2.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 (660) hide show
  1. auditex-2.0.0/LICENSE +202 -0
  2. auditex-2.0.0/NOTICE +46 -0
  3. auditex-2.0.0/PKG-INFO +292 -0
  4. auditex-2.0.0/README.md +240 -0
  5. auditex-2.0.0/agent/agent-prompt.md +60 -0
  6. auditex-2.0.0/agent/tenant-audit-skill.json +265 -0
  7. auditex-2.0.0/assets/auditex-logo-64.png +0 -0
  8. auditex-2.0.0/assets/auditex-logo.svg +14 -0
  9. auditex-2.0.0/configs/assessment-sources.json +145 -0
  10. auditex-2.0.0/configs/ce-plus-practice.json +1463 -0
  11. auditex-2.0.0/configs/collector-definitions.json +990 -0
  12. auditex-2.0.0/configs/collector-permissions.json +460 -0
  13. auditex-2.0.0/configs/collector-presets.json +82 -0
  14. auditex-2.0.0/configs/control-mappings.json +3560 -0
  15. auditex-2.0.0/configs/explainer-baselines.json +10987 -0
  16. auditex-2.0.0/configs/explainer-template.json +1 -0
  17. auditex-2.0.0/configs/explainer-what-to-collect.json +27838 -0
  18. auditex-2.0.0/configs/finding-templates.json +1503 -0
  19. auditex-2.0.0/configs/framework-catalog.json +509 -0
  20. auditex-2.0.0/configs/os-end-of-life.json +736 -0
  21. auditex-2.0.0/configs/report-sections.json +129 -0
  22. auditex-2.0.0/configs/risky-delegated-permissions.json +767 -0
  23. auditex-2.0.0/configs/rule-packs.json +1709 -0
  24. auditex-2.0.0/configs/scuba-policy-sections.json +1151 -0
  25. auditex-2.0.0/configs/scuba-rule-precheck.json +538 -0
  26. auditex-2.0.0/configs/scuba-scope-blind.json +197 -0
  27. auditex-2.0.0/configs/scuba-value-rules.json +22013 -0
  28. auditex-2.0.0/docs/guides/admin-permission-guide.md +507 -0
  29. auditex-2.0.0/docs/guides/ai-assessment.md +159 -0
  30. auditex-2.0.0/docs/guides/customer-handoff-guide.md +159 -0
  31. auditex-2.0.0/docs/guides/external-assessments.md +96 -0
  32. auditex-2.0.0/docs/guides/install-guide.md +377 -0
  33. auditex-2.0.0/docs/guides/local-answer.md +114 -0
  34. auditex-2.0.0/docs/guides/model-development.md +40 -0
  35. auditex-2.0.0/docs/guides/product-manual.md +521 -0
  36. auditex-2.0.0/docs/guides/reader-app-permissions.md +328 -0
  37. auditex-2.0.0/docs/guides/setup-guide.md +249 -0
  38. auditex-2.0.0/docs/guides/troubleshooting.md +214 -0
  39. auditex-2.0.0/docs/index.md +42 -0
  40. auditex-2.0.0/docs/legal/third-party-notices.md +117 -0
  41. auditex-2.0.0/docs/legal/trademarks.md +19 -0
  42. auditex-2.0.0/docs/provenance/explainer-baselines.md +98 -0
  43. auditex-2.0.0/docs/provenance/provenance.csv +44 -0
  44. auditex-2.0.0/docs/provenance/provenance.md +199 -0
  45. auditex-2.0.0/docs/reference/api-call-catalog.md +334 -0
  46. auditex-2.0.0/docs/reference/framework-mappings.md +638 -0
  47. auditex-2.0.0/docs/reference/output-contract.md +1878 -0
  48. auditex-2.0.0/docs/reference/security-privacy.md +1077 -0
  49. auditex-2.0.0/examples/demo_tenant/demo_tenant.json +1074 -0
  50. auditex-2.0.0/examples/demo_tenant/demo_tenant_remediated.json +1083 -0
  51. auditex-2.0.0/examples/google_workspace_sample.json +563 -0
  52. auditex-2.0.0/examples/sample_audit_bundle/admin_set_result.json +382 -0
  53. auditex-2.0.0/examples/sample_audit_bundle/endpoint_posture_result.json +363 -0
  54. auditex-2.0.0/examples/sample_audit_bundle/external_maester.json +38 -0
  55. auditex-2.0.0/examples/sample_audit_bundle/external_monkey365.json +66 -0
  56. auditex-2.0.0/examples/sample_audit_bundle/external_scubagear.json +41 -0
  57. auditex-2.0.0/examples/sample_audit_bundle/identity_controls_result.json +254 -0
  58. auditex-2.0.0/examples/sample_audit_bundle/known_bad_result.json +164 -0
  59. auditex-2.0.0/examples/sample_audit_bundle/sample_result.json +41 -0
  60. auditex-2.0.0/examples/sample_audit_bundle/update_rings_missing_result.json +103 -0
  61. auditex-2.0.0/profiles/app-readonly-full.md +11 -0
  62. auditex-2.0.0/profiles/exchange-reader.md +11 -0
  63. auditex-2.0.0/profiles/global-reader.md +11 -0
  64. auditex-2.0.0/profiles/intune-reader.md +11 -0
  65. auditex-2.0.0/profiles/security-reader.md +11 -0
  66. auditex-2.0.0/pyproject.toml +131 -0
  67. auditex-2.0.0/schemas/ai_context.schema.json +30 -0
  68. auditex-2.0.0/schemas/blocker.schema.json +14 -0
  69. auditex-2.0.0/schemas/blockers.schema.json +6 -0
  70. auditex-2.0.0/schemas/bundle_hashes.schema.json +38 -0
  71. auditex-2.0.0/schemas/capability_matrix.schema.json +41 -0
  72. auditex-2.0.0/schemas/ce_plus_practice.schema.json +653 -0
  73. auditex-2.0.0/schemas/collector_result.schema.json +13 -0
  74. auditex-2.0.0/schemas/explainer.schema.json +13 -0
  75. auditex-2.0.0/schemas/finding.schema.json +277 -0
  76. auditex-2.0.0/schemas/local_answer.schema.json +133 -0
  77. auditex-2.0.0/schemas/model_assessment-2026-10-27.1.schema.json +288 -0
  78. auditex-2.0.0/schemas/model_assessment-2026-10-27.schema.json +271 -0
  79. auditex-2.0.0/schemas/model_assessment-2026-10-28.schema.json +453 -0
  80. auditex-2.0.0/schemas/model_assessment-2026-10-29.schema.json +1245 -0
  81. auditex-2.0.0/schemas/model_assessment-2026-11-05.schema.json +1339 -0
  82. auditex-2.0.0/schemas/model_assessment.schema.json +1387 -0
  83. auditex-2.0.0/schemas/report_pack.schema.json +41 -0
  84. auditex-2.0.0/schemas/run_manifest.schema.json +195 -0
  85. auditex-2.0.0/schemas/summary.schema.json +32 -0
  86. auditex-2.0.0/schemas/targeted_users_coverage.schema.json +29 -0
  87. auditex-2.0.0/schemas/validation.schema.json +28 -0
  88. auditex-2.0.0/setup.cfg +4 -0
  89. auditex-2.0.0/skills/app-readonly-escalation/SKILL.md +26 -0
  90. auditex-2.0.0/skills/auditex-operator/SKILL.md +43 -0
  91. auditex-2.0.0/skills/evidence-pack/SKILL.md +29 -0
  92. auditex-2.0.0/src/auditex/__init__.py +23 -0
  93. auditex-2.0.0/src/auditex/__main__.py +4 -0
  94. auditex-2.0.0/src/auditex/answer_checks.py +292 -0
  95. auditex-2.0.0/src/auditex/answer_digest.py +407 -0
  96. auditex-2.0.0/src/auditex/answer_frames.json +40 -0
  97. auditex-2.0.0/src/auditex/assessment_review.py +355 -0
  98. auditex-2.0.0/src/auditex/assessment_sources.py +16 -0
  99. auditex-2.0.0/src/auditex/auth_runtime.py +218 -0
  100. auditex-2.0.0/src/auditex/bootstrap.py +340 -0
  101. auditex-2.0.0/src/auditex/ce_plus.py +684 -0
  102. auditex-2.0.0/src/auditex/cli.py +1599 -0
  103. auditex-2.0.0/src/auditex/command_builders.py +256 -0
  104. auditex-2.0.0/src/auditex/command_runner.py +386 -0
  105. auditex-2.0.0/src/auditex/compare.py +834 -0
  106. auditex-2.0.0/src/auditex/demo.py +476 -0
  107. auditex-2.0.0/src/auditex/evidence_db.py +8 -0
  108. auditex-2.0.0/src/auditex/explorer.py +1237 -0
  109. auditex-2.0.0/src/auditex/explorer_assets/LICENSE-lucide.txt +43 -0
  110. auditex-2.0.0/src/auditex/explorer_assets/explorer.css +509 -0
  111. auditex-2.0.0/src/auditex/explorer_assets/explorer.html +64 -0
  112. auditex-2.0.0/src/auditex/explorer_assets/explorer.js +990 -0
  113. auditex-2.0.0/src/auditex/explorer_assets/fonts/Barlow-400-latin-ext.woff2 +0 -0
  114. auditex-2.0.0/src/auditex/explorer_assets/fonts/Barlow-400-latin-ext.woff2.range +1 -0
  115. auditex-2.0.0/src/auditex/explorer_assets/fonts/Barlow-400-latin.woff2 +0 -0
  116. auditex-2.0.0/src/auditex/explorer_assets/fonts/Barlow-400-latin.woff2.range +1 -0
  117. auditex-2.0.0/src/auditex/explorer_assets/fonts/Barlow-600-latin-ext.woff2 +0 -0
  118. auditex-2.0.0/src/auditex/explorer_assets/fonts/Barlow-600-latin-ext.woff2.range +1 -0
  119. auditex-2.0.0/src/auditex/explorer_assets/fonts/Barlow-600-latin.woff2 +0 -0
  120. auditex-2.0.0/src/auditex/explorer_assets/fonts/Barlow-600-latin.woff2.range +1 -0
  121. auditex-2.0.0/src/auditex/explorer_assets/fonts/BarlowCondensed-600-latin-ext.woff2 +0 -0
  122. auditex-2.0.0/src/auditex/explorer_assets/fonts/BarlowCondensed-600-latin-ext.woff2.range +1 -0
  123. auditex-2.0.0/src/auditex/explorer_assets/fonts/BarlowCondensed-600-latin.woff2 +0 -0
  124. auditex-2.0.0/src/auditex/explorer_assets/fonts/BarlowCondensed-600-latin.woff2.range +1 -0
  125. auditex-2.0.0/src/auditex/explorer_assets/fonts/OFL.txt +93 -0
  126. auditex-2.0.0/src/auditex/exporters.py +95 -0
  127. auditex-2.0.0/src/auditex/external_assessments.py +319 -0
  128. auditex-2.0.0/src/auditex/features.py +15 -0
  129. auditex-2.0.0/src/auditex/gate.py +825 -0
  130. auditex-2.0.0/src/auditex/google_workspace/__init__.py +17 -0
  131. auditex-2.0.0/src/auditex/google_workspace/auth.py +403 -0
  132. auditex-2.0.0/src/auditex/google_workspace/client.py +688 -0
  133. auditex-2.0.0/src/auditex/google_workspace/collectors.py +998 -0
  134. auditex-2.0.0/src/auditex/google_workspace/findings.py +2330 -0
  135. auditex-2.0.0/src/auditex/google_workspace/normalize.py +773 -0
  136. auditex-2.0.0/src/auditex/google_workspace/run.py +1219 -0
  137. auditex-2.0.0/src/auditex/guided.py +338 -0
  138. auditex-2.0.0/src/auditex/local_answer.py +1045 -0
  139. auditex-2.0.0/src/auditex/mcp_paths.py +139 -0
  140. auditex-2.0.0/src/auditex/mcp_registry.py +270 -0
  141. auditex-2.0.0/src/auditex/mcp_server.py +1443 -0
  142. auditex-2.0.0/src/auditex/notify.py +763 -0
  143. auditex-2.0.0/src/auditex/operator_flow.py +47 -0
  144. auditex-2.0.0/src/auditex/output_writers.py +211 -0
  145. auditex-2.0.0/src/auditex/reporting.py +4699 -0
  146. auditex-2.0.0/src/auditex/rule_assessment.py +493 -0
  147. auditex-2.0.0/src/auditex/rules.py +356 -0
  148. auditex-2.0.0/src/auditex/run_bundle.py +544 -0
  149. auditex-2.0.0/src/auditex/scope_postcheck.py +81 -0
  150. auditex-2.0.0/src/auditex/scuba_adapters_aad.py +398 -0
  151. auditex-2.0.0/src/auditex/scuba_adapters_defender.py +162 -0
  152. auditex-2.0.0/src/auditex/scuba_adapters_exchange.py +63 -0
  153. auditex-2.0.0/src/auditex/scuba_adapters_powerplat.py +94 -0
  154. auditex-2.0.0/src/auditex/scuba_adapters_teams.py +230 -0
  155. auditex-2.0.0/src/auditex/scuba_projection.py +2345 -0
  156. auditex-2.0.0/src/auditex/scubagear_export.py +871 -0
  157. auditex-2.0.0/src/auditex/scubagear_prune_proof.py +575 -0
  158. auditex-2.0.0/src/auditex/setup_guide.py +668 -0
  159. auditex-2.0.0/src/auditex.egg-info/PKG-INFO +292 -0
  160. auditex-2.0.0/src/auditex.egg-info/SOURCES.txt +658 -0
  161. auditex-2.0.0/src/auditex.egg-info/dependency_links.txt +1 -0
  162. auditex-2.0.0/src/auditex.egg-info/entry_points.txt +4 -0
  163. auditex-2.0.0/src/auditex.egg-info/requires.txt +24 -0
  164. auditex-2.0.0/src/auditex.egg-info/top_level.txt +2 -0
  165. auditex-2.0.0/src/azure_tenant_audit/__init__.py +5 -0
  166. auditex-2.0.0/src/azure_tenant_audit/__main__.py +4 -0
  167. auditex-2.0.0/src/azure_tenant_audit/adapters/__init__.py +35 -0
  168. auditex-2.0.0/src/azure_tenant_audit/adapters/base.py +34 -0
  169. auditex-2.0.0/src/azure_tenant_audit/adapters/capabilities.py +43 -0
  170. auditex-2.0.0/src/azure_tenant_audit/adapters/m365_cli.py +156 -0
  171. auditex-2.0.0/src/azure_tenant_audit/adapters/m365dsc.py +124 -0
  172. auditex-2.0.0/src/azure_tenant_audit/adapters/powershell_graph.py +655 -0
  173. auditex-2.0.0/src/azure_tenant_audit/adapters/read_guard.py +738 -0
  174. auditex-2.0.0/src/azure_tenant_audit/adapters/teams_admin_rest.py +336 -0
  175. auditex-2.0.0/src/azure_tenant_audit/ai_context.py +159 -0
  176. auditex-2.0.0/src/azure_tenant_audit/api_inventory.py +927 -0
  177. auditex-2.0.0/src/azure_tenant_audit/argument_parser.py +121 -0
  178. auditex-2.0.0/src/azure_tenant_audit/assurance.py +349 -0
  179. auditex-2.0.0/src/azure_tenant_audit/attack_graph.py +986 -0
  180. auditex-2.0.0/src/azure_tenant_audit/auth_context.py +148 -0
  181. auditex-2.0.0/src/azure_tenant_audit/auth_runtime.py +81 -0
  182. auditex-2.0.0/src/azure_tenant_audit/autopilot.py +728 -0
  183. auditex-2.0.0/src/azure_tenant_audit/baselines.py +1372 -0
  184. auditex-2.0.0/src/azure_tenant_audit/break_glass.py +499 -0
  185. auditex-2.0.0/src/azure_tenant_audit/bundle_integrity.py +467 -0
  186. auditex-2.0.0/src/azure_tenant_audit/capability_gate.py +278 -0
  187. auditex-2.0.0/src/azure_tenant_audit/catalog.py +75 -0
  188. auditex-2.0.0/src/azure_tenant_audit/certificate_auth.py +342 -0
  189. auditex-2.0.0/src/azure_tenant_audit/chunk_reader.py +167 -0
  190. auditex-2.0.0/src/azure_tenant_audit/citations.py +45 -0
  191. auditex-2.0.0/src/azure_tenant_audit/cli.py +1323 -0
  192. auditex-2.0.0/src/azure_tenant_audit/cli_guard.py +335 -0
  193. auditex-2.0.0/src/azure_tenant_audit/collection_gaps.py +584 -0
  194. auditex-2.0.0/src/azure_tenant_audit/collection_markers.py +3 -0
  195. auditex-2.0.0/src/azure_tenant_audit/collector_runner.py +342 -0
  196. auditex-2.0.0/src/azure_tenant_audit/collectors/__init__.py +75 -0
  197. auditex-2.0.0/src/azure_tenant_audit/collectors/_capability_gated.py +169 -0
  198. auditex-2.0.0/src/azure_tenant_audit/collectors/_endpoint_reads.py +371 -0
  199. auditex-2.0.0/src/azure_tenant_audit/collectors/anti_phish_admission.py +345 -0
  200. auditex-2.0.0/src/azure_tenant_audit/collectors/app_consent.py +409 -0
  201. auditex-2.0.0/src/azure_tenant_audit/collectors/app_credentials.py +392 -0
  202. auditex-2.0.0/src/azure_tenant_audit/collectors/auth_methods.py +55 -0
  203. auditex-2.0.0/src/azure_tenant_audit/collectors/base.py +564 -0
  204. auditex-2.0.0/src/azure_tenant_audit/collectors/conditional_access.py +68 -0
  205. auditex-2.0.0/src/azure_tenant_audit/collectors/consent_policy.py +192 -0
  206. auditex-2.0.0/src/azure_tenant_audit/collectors/copilot_governance.py +68 -0
  207. auditex-2.0.0/src/azure_tenant_audit/collectors/cross_tenant_access.py +187 -0
  208. auditex-2.0.0/src/azure_tenant_audit/collectors/defender.py +80 -0
  209. auditex-2.0.0/src/azure_tenant_audit/collectors/defender_cloud_apps.py +43 -0
  210. auditex-2.0.0/src/azure_tenant_audit/collectors/directory_relationships.py +93 -0
  211. auditex-2.0.0/src/azure_tenant_audit/collectors/dns_posture.py +432 -0
  212. auditex-2.0.0/src/azure_tenant_audit/collectors/domains_hybrid.py +49 -0
  213. auditex-2.0.0/src/azure_tenant_audit/collectors/ediscovery.py +435 -0
  214. auditex-2.0.0/src/azure_tenant_audit/collectors/exchange.py +70 -0
  215. auditex-2.0.0/src/azure_tenant_audit/collectors/exchange_defender_commands.py +117 -0
  216. auditex-2.0.0/src/azure_tenant_audit/collectors/exchange_policy.py +438 -0
  217. auditex-2.0.0/src/azure_tenant_audit/collectors/external_identity.py +41 -0
  218. auditex-2.0.0/src/azure_tenant_audit/collectors/identity.py +262 -0
  219. auditex-2.0.0/src/azure_tenant_audit/collectors/identity_governance.py +297 -0
  220. auditex-2.0.0/src/azure_tenant_audit/collectors/identity_protection.py +125 -0
  221. auditex-2.0.0/src/azure_tenant_audit/collectors/intune.py +105 -0
  222. auditex-2.0.0/src/azure_tenant_audit/collectors/intune_depth.py +377 -0
  223. auditex-2.0.0/src/azure_tenant_audit/collectors/licensing.py +58 -0
  224. auditex-2.0.0/src/azure_tenant_audit/collectors/mailbox_forwarding.py +534 -0
  225. auditex-2.0.0/src/azure_tenant_audit/collectors/onedrive_posture.py +122 -0
  226. auditex-2.0.0/src/azure_tenant_audit/collectors/power_bi.py +83 -0
  227. auditex-2.0.0/src/azure_tenant_audit/collectors/power_platform.py +249 -0
  228. auditex-2.0.0/src/azure_tenant_audit/collectors/purview.py +274 -0
  229. auditex-2.0.0/src/azure_tenant_audit/collectors/reports_usage.py +162 -0
  230. auditex-2.0.0/src/azure_tenant_audit/collectors/security.py +78 -0
  231. auditex-2.0.0/src/azure_tenant_audit/collectors/sentinel_xdr.py +37 -0
  232. auditex-2.0.0/src/azure_tenant_audit/collectors/service_health.py +41 -0
  233. auditex-2.0.0/src/azure_tenant_audit/collectors/sharepoint.py +52 -0
  234. auditex-2.0.0/src/azure_tenant_audit/collectors/sharepoint_access.py +358 -0
  235. auditex-2.0.0/src/azure_tenant_audit/collectors/sharepoint_admin.py +440 -0
  236. auditex-2.0.0/src/azure_tenant_audit/collectors/targeted_users_coverage.py +799 -0
  237. auditex-2.0.0/src/azure_tenant_audit/collectors/teams.py +109 -0
  238. auditex-2.0.0/src/azure_tenant_audit/collectors/teams_policy.py +170 -0
  239. auditex-2.0.0/src/azure_tenant_audit/config.py +104 -0
  240. auditex-2.0.0/src/azure_tenant_audit/contracts.py +1084 -0
  241. auditex-2.0.0/src/azure_tenant_audit/cyber_essentials.py +195 -0
  242. auditex-2.0.0/src/azure_tenant_audit/data_handling.py +236 -0
  243. auditex-2.0.0/src/azure_tenant_audit/data_minimisation.py +201 -0
  244. auditex-2.0.0/src/azure_tenant_audit/detection_coverage.py +364 -0
  245. auditex-2.0.0/src/azure_tenant_audit/diagnostics.py +153 -0
  246. auditex-2.0.0/src/azure_tenant_audit/diffing.py +655 -0
  247. auditex-2.0.0/src/azure_tenant_audit/directory_relationships.py +31 -0
  248. auditex-2.0.0/src/azure_tenant_audit/dns_lookup.py +819 -0
  249. auditex-2.0.0/src/azure_tenant_audit/effective_admins.py +602 -0
  250. auditex-2.0.0/src/azure_tenant_audit/endpoint_posture.py +558 -0
  251. auditex-2.0.0/src/azure_tenant_audit/evidence_db.py +600 -0
  252. auditex-2.0.0/src/azure_tenant_audit/evidence_gates.py +186 -0
  253. auditex-2.0.0/src/azure_tenant_audit/evidence_refs.py +409 -0
  254. auditex-2.0.0/src/azure_tenant_audit/exchange_protection.py +237 -0
  255. auditex-2.0.0/src/azure_tenant_audit/explainer/__init__.py +52 -0
  256. auditex-2.0.0/src/azure_tenant_audit/explainer/adapter.py +35 -0
  257. auditex-2.0.0/src/azure_tenant_audit/explainer/baselines.py +450 -0
  258. auditex-2.0.0/src/azure_tenant_audit/explainer/collection.py +183 -0
  259. auditex-2.0.0/src/azure_tenant_audit/explainer/generate.py +224 -0
  260. auditex-2.0.0/src/azure_tenant_audit/explainer/render.py +214 -0
  261. auditex-2.0.0/src/azure_tenant_audit/explainer/textkit.py +336 -0
  262. auditex-2.0.0/src/azure_tenant_audit/explainer/view.py +100 -0
  263. auditex-2.0.0/src/azure_tenant_audit/exposure_lookup.py +498 -0
  264. auditex-2.0.0/src/azure_tenant_audit/external_sharing.py +529 -0
  265. auditex-2.0.0/src/azure_tenant_audit/finalize.py +373 -0
  266. auditex-2.0.0/src/azure_tenant_audit/findings.py +4648 -0
  267. auditex-2.0.0/src/azure_tenant_audit/friendly_names.py +165 -0
  268. auditex-2.0.0/src/azure_tenant_audit/graph.py +1098 -0
  269. auditex-2.0.0/src/azure_tenant_audit/guarded_io.py +1304 -0
  270. auditex-2.0.0/src/azure_tenant_audit/identity_controls.py +1698 -0
  271. auditex-2.0.0/src/azure_tenant_audit/normalize.py +3376 -0
  272. auditex-2.0.0/src/azure_tenant_audit/offline_replay.py +243 -0
  273. auditex-2.0.0/src/azure_tenant_audit/os_lifecycle.py +224 -0
  274. auditex-2.0.0/src/azure_tenant_audit/output.py +1109 -0
  275. auditex-2.0.0/src/azure_tenant_audit/output_redaction.py +2871 -0
  276. auditex-2.0.0/src/azure_tenant_audit/partner_domains.py +180 -0
  277. auditex-2.0.0/src/azure_tenant_audit/perf_runtime.py +106 -0
  278. auditex-2.0.0/src/azure_tenant_audit/power_bi.py +58 -0
  279. auditex-2.0.0/src/azure_tenant_audit/power_platform.py +141 -0
  280. auditex-2.0.0/src/azure_tenant_audit/presets.py +80 -0
  281. auditex-2.0.0/src/azure_tenant_audit/private_io.py +173 -0
  282. auditex-2.0.0/src/azure_tenant_audit/privileged_roles.py +246 -0
  283. auditex-2.0.0/src/azure_tenant_audit/probe.py +743 -0
  284. auditex-2.0.0/src/azure_tenant_audit/profiles.py +257 -0
  285. auditex-2.0.0/src/azure_tenant_audit/provider_registry.py +21 -0
  286. auditex-2.0.0/src/azure_tenant_audit/provider_runtime.py +127 -0
  287. auditex-2.0.0/src/azure_tenant_audit/resources.py +220 -0
  288. auditex-2.0.0/src/azure_tenant_audit/response.py +829 -0
  289. auditex-2.0.0/src/azure_tenant_audit/rule_parameters.py +167 -0
  290. auditex-2.0.0/src/azure_tenant_audit/run.py +552 -0
  291. auditex-2.0.0/src/azure_tenant_audit/run_files.py +182 -0
  292. auditex-2.0.0/src/azure_tenant_audit/scope_catalog.py +195 -0
  293. auditex-2.0.0/src/azure_tenant_audit/scuba_assessment.py +646 -0
  294. auditex-2.0.0/src/azure_tenant_audit/scuba_precheck.py +316 -0
  295. auditex-2.0.0/src/azure_tenant_audit/scuba_scope.py +213 -0
  296. auditex-2.0.0/src/azure_tenant_audit/secret_hygiene.py +717 -0
  297. auditex-2.0.0/src/azure_tenant_audit/selection.py +31 -0
  298. auditex-2.0.0/src/azure_tenant_audit/sensitive_users.py +178 -0
  299. auditex-2.0.0/src/azure_tenant_audit/shipped_content.py +122 -0
  300. auditex-2.0.0/src/azure_tenant_audit/strict_json.py +19 -0
  301. auditex-2.0.0/src/azure_tenant_audit/tenant_identity.py +267 -0
  302. auditex-2.0.0/src/azure_tenant_audit/text_validity.py +77 -0
  303. auditex-2.0.0/src/azure_tenant_audit/utils.py +38 -0
  304. auditex-2.0.0/src/azure_tenant_audit/value_rules/__init__.py +77 -0
  305. auditex-2.0.0/src/azure_tenant_audit/value_rules/aad_authz.py +140 -0
  306. auditex-2.0.0/src/azure_tenant_audit/value_rules/aad_pilot.py +439 -0
  307. auditex-2.0.0/src/azure_tenant_audit/value_rules/aad_roles.py +182 -0
  308. auditex-2.0.0/src/azure_tenant_audit/value_rules/catalogue.py +184 -0
  309. auditex-2.0.0/src/azure_tenant_audit/value_rules/conditional_access.py +673 -0
  310. auditex-2.0.0/src/azure_tenant_audit/value_rules/defender_cascade.py +274 -0
  311. auditex-2.0.0/src/azure_tenant_audit/value_rules/defender_dlp.py +209 -0
  312. auditex-2.0.0/src/azure_tenant_audit/value_rules/defender_phish.py +360 -0
  313. auditex-2.0.0/src/azure_tenant_audit/value_rules/defender_resolution.py +486 -0
  314. auditex-2.0.0/src/azure_tenant_audit/value_rules/defender_spam.py +222 -0
  315. auditex-2.0.0/src/azure_tenant_audit/value_rules/defender_targeted_users.py +182 -0
  316. auditex-2.0.0/src/azure_tenant_audit/value_rules/dns.py +339 -0
  317. auditex-2.0.0/src/azure_tenant_audit/value_rules/exo_open.py +56 -0
  318. auditex-2.0.0/src/azure_tenant_audit/value_rules/gates.py +52 -0
  319. auditex-2.0.0/src/azure_tenant_audit/value_rules/helpers.py +312 -0
  320. auditex-2.0.0/src/azure_tenant_audit/value_rules/lookups.py +311 -0
  321. auditex-2.0.0/src/azure_tenant_audit/value_rules/power_platform.py +149 -0
  322. auditex-2.0.0/src/azure_tenant_audit/value_rules/powerbi.py +138 -0
  323. auditex-2.0.0/src/azure_tenant_audit/value_rules/record.py +162 -0
  324. auditex-2.0.0/src/azure_tenant_audit/value_rules/sharepoint.py +125 -0
  325. auditex-2.0.0/src/azure_tenant_audit/versioning.py +47 -0
  326. auditex-2.0.0/src/azure_tenant_audit/waivers.py +304 -0
  327. auditex-2.0.0/tests/test_aad_policy_collectors.py +754 -0
  328. auditex-2.0.0/tests/test_adapters.py +116 -0
  329. auditex-2.0.0/tests/test_answer_checks.py +565 -0
  330. auditex-2.0.0/tests/test_answer_digest.py +256 -0
  331. auditex-2.0.0/tests/test_api_inventory.py +314 -0
  332. auditex-2.0.0/tests/test_api_observed_ledger.py +704 -0
  333. auditex-2.0.0/tests/test_app_credentials_collector.py +223 -0
  334. auditex-2.0.0/tests/test_app_credentials_findings.py +467 -0
  335. auditex-2.0.0/tests/test_architecture_modules.py +340 -0
  336. auditex-2.0.0/tests/test_assessment_cli.py +64 -0
  337. auditex-2.0.0/tests/test_assessment_review.py +322 -0
  338. auditex-2.0.0/tests/test_assurance.py +182 -0
  339. auditex-2.0.0/tests/test_attack_graph.py +585 -0
  340. auditex-2.0.0/tests/test_auditex_product.py +2225 -0
  341. auditex-2.0.0/tests/test_auth_methods_collector.py +39 -0
  342. auditex-2.0.0/tests/test_autopilot.py +436 -0
  343. auditex-2.0.0/tests/test_baseline_evaluation.py +835 -0
  344. auditex-2.0.0/tests/test_bootstrap.py +117 -0
  345. auditex-2.0.0/tests/test_break_glass.py +596 -0
  346. auditex-2.0.0/tests/test_bundle_integrity_legacy_outputs.py +40 -0
  347. auditex-2.0.0/tests/test_bundle_names.py +53 -0
  348. auditex-2.0.0/tests/test_bundle_permissions.py +131 -0
  349. auditex-2.0.0/tests/test_capability_gate.py +45 -0
  350. auditex-2.0.0/tests/test_capability_gated_shape.py +102 -0
  351. auditex-2.0.0/tests/test_capability_gated_stubs.py +132 -0
  352. auditex-2.0.0/tests/test_ce_plus_catalogue.py +262 -0
  353. auditex-2.0.0/tests/test_ce_plus_practice.py +1187 -0
  354. auditex-2.0.0/tests/test_ce_review_fixes.py +452 -0
  355. auditex-2.0.0/tests/test_certificate_auth.py +503 -0
  356. auditex-2.0.0/tests/test_check_archive_wheel.py +32 -0
  357. auditex-2.0.0/tests/test_check_reproducible_build.py +83 -0
  358. auditex-2.0.0/tests/test_chunk_normalization.py +447 -0
  359. auditex-2.0.0/tests/test_cli.py +1456 -0
  360. auditex-2.0.0/tests/test_cli_abbreviations.py +291 -0
  361. auditex-2.0.0/tests/test_cli_extensions.py +421 -0
  362. auditex-2.0.0/tests/test_collection_coverage_fixes.py +881 -0
  363. auditex-2.0.0/tests/test_collection_gaps.py +1123 -0
  364. auditex-2.0.0/tests/test_collector_chunk_refusal_closure.py +209 -0
  365. auditex-2.0.0/tests/test_collector_fanout.py +311 -0
  366. auditex-2.0.0/tests/test_collector_runner.py +276 -0
  367. auditex-2.0.0/tests/test_command_builders.py +173 -0
  368. auditex-2.0.0/tests/test_command_output_privacy.py +616 -0
  369. auditex-2.0.0/tests/test_compare.py +418 -0
  370. auditex-2.0.0/tests/test_compare_run_outputs.py +270 -0
  371. auditex-2.0.0/tests/test_compliance_framework_mappings.py +156 -0
  372. auditex-2.0.0/tests/test_composed_guard_regressions.py +482 -0
  373. auditex-2.0.0/tests/test_composed_model_regressions.py +92 -0
  374. auditex-2.0.0/tests/test_composed_refusal_exits.py +177 -0
  375. auditex-2.0.0/tests/test_conditional_access_normalization.py +126 -0
  376. auditex-2.0.0/tests/test_config.py +71 -0
  377. auditex-2.0.0/tests/test_contract.py +183 -0
  378. auditex-2.0.0/tests/test_cross_tenant_access_collector.py +119 -0
  379. auditex-2.0.0/tests/test_cross_tenant_access_findings.py +274 -0
  380. auditex-2.0.0/tests/test_csv_export_stability.py +161 -0
  381. auditex-2.0.0/tests/test_customer_pack_d3.py +150 -0
  382. auditex-2.0.0/tests/test_cyber_essentials.py +526 -0
  383. auditex-2.0.0/tests/test_data_minimisation.py +439 -0
  384. auditex-2.0.0/tests/test_demo_and_explorer.py +234 -0
  385. auditex-2.0.0/tests/test_demo_tenant_fixture.py +262 -0
  386. auditex-2.0.0/tests/test_detection_coverage.py +356 -0
  387. auditex-2.0.0/tests/test_diagnostic_aggregation.py +86 -0
  388. auditex-2.0.0/tests/test_diffing.py +319 -0
  389. auditex-2.0.0/tests/test_directory_relationships.py +123 -0
  390. auditex-2.0.0/tests/test_dkim_empty_answer.py +55 -0
  391. auditex-2.0.0/tests/test_dmarc_nxdomain.py +109 -0
  392. auditex-2.0.0/tests/test_dns_lookup_parsers.py +280 -0
  393. auditex-2.0.0/tests/test_dns_posture_collector.py +464 -0
  394. auditex-2.0.0/tests/test_dns_posture_findings.py +287 -0
  395. auditex-2.0.0/tests/test_dns_scuba_records.py +820 -0
  396. auditex-2.0.0/tests/test_docs_paths.py +45 -0
  397. auditex-2.0.0/tests/test_effective_admin_set.py +1366 -0
  398. auditex-2.0.0/tests/test_endpoint_findings.py +617 -0
  399. auditex-2.0.0/tests/test_endpoint_posture.py +301 -0
  400. auditex-2.0.0/tests/test_endpoint_samples.py +136 -0
  401. auditex-2.0.0/tests/test_enterprise_depth_collectors.py +841 -0
  402. auditex-2.0.0/tests/test_evidence_db_migration.py +201 -0
  403. auditex-2.0.0/tests/test_evidence_gates.py +196 -0
  404. auditex-2.0.0/tests/test_evidence_traceability.py +1036 -0
  405. auditex-2.0.0/tests/test_exchange_collector.py +36 -0
  406. auditex-2.0.0/tests/test_exchange_defender_collector.py +302 -0
  407. auditex-2.0.0/tests/test_exchange_policy_scuba_inputs.py +215 -0
  408. auditex-2.0.0/tests/test_exchange_protection.py +465 -0
  409. auditex-2.0.0/tests/test_exchange_session.py +193 -0
  410. auditex-2.0.0/tests/test_explainer_baselines.py +375 -0
  411. auditex-2.0.0/tests/test_explainer_catalogue_drift.py +139 -0
  412. auditex-2.0.0/tests/test_explainer_collection.py +252 -0
  413. auditex-2.0.0/tests/test_explainer_commands.py +143 -0
  414. auditex-2.0.0/tests/test_explainer_fixtures.py +110 -0
  415. auditex-2.0.0/tests/test_explainer_integration.py +584 -0
  416. auditex-2.0.0/tests/test_explainer_renderer.py +460 -0
  417. auditex-2.0.0/tests/test_explainer_view.py +187 -0
  418. auditex-2.0.0/tests/test_explainer_wire.py +677 -0
  419. auditex-2.0.0/tests/test_explorer_guard_integration.py +32 -0
  420. auditex-2.0.0/tests/test_explorer_redesign.py +317 -0
  421. auditex-2.0.0/tests/test_exposure_lookups.py +266 -0
  422. auditex-2.0.0/tests/test_external_assessments.py +202 -0
  423. auditex-2.0.0/tests/test_external_sharing.py +793 -0
  424. auditex-2.0.0/tests/test_finalize_idempotent.py +312 -0
  425. auditex-2.0.0/tests/test_finding_invariants.py +228 -0
  426. auditex-2.0.0/tests/test_finding_templates_complete.py +124 -0
  427. auditex-2.0.0/tests/test_findings.py +953 -0
  428. auditex-2.0.0/tests/test_first_collection_graph_fixes.py +272 -0
  429. auditex-2.0.0/tests/test_fixture_replay.py +103 -0
  430. auditex-2.0.0/tests/test_framework_baselines.py +377 -0
  431. auditex-2.0.0/tests/test_gate_cli.py +387 -0
  432. auditex-2.0.0/tests/test_gate_drift_cli.py +411 -0
  433. auditex-2.0.0/tests/test_gate_integrity.py +479 -0
  434. auditex-2.0.0/tests/test_gated_normalize_sections.py +188 -0
  435. auditex-2.0.0/tests/test_google_collection_gaps.py +329 -0
  436. auditex-2.0.0/tests/test_google_device_posture.py +207 -0
  437. auditex-2.0.0/tests/test_google_parity.py +1685 -0
  438. auditex-2.0.0/tests/test_google_workspace.py +2491 -0
  439. auditex-2.0.0/tests/test_graph.py +339 -0
  440. auditex-2.0.0/tests/test_graph_batch_retry.py +309 -0
  441. auditex-2.0.0/tests/test_graph_read_only.py +288 -0
  442. auditex-2.0.0/tests/test_graph_streaming.py +255 -0
  443. auditex-2.0.0/tests/test_guarded_admission.py +752 -0
  444. auditex-2.0.0/tests/test_html_peak_harness.py +111 -0
  445. auditex-2.0.0/tests/test_http_verb_allowlist.py +1493 -0
  446. auditex-2.0.0/tests/test_identity_collector.py +180 -0
  447. auditex-2.0.0/tests/test_identity_controls.py +1206 -0
  448. auditex-2.0.0/tests/test_identity_rules_review_v3.py +1301 -0
  449. auditex-2.0.0/tests/test_identity_verdict_exclusions.py +774 -0
  450. auditex-2.0.0/tests/test_index_unproved_storage.py +447 -0
  451. auditex-2.0.0/tests/test_integrity_gate_followups.py +903 -0
  452. auditex-2.0.0/tests/test_intune_endpoint_collector.py +564 -0
  453. auditex-2.0.0/tests/test_ipps_session.py +380 -0
  454. auditex-2.0.0/tests/test_jira_github_sinks.py +451 -0
  455. auditex-2.0.0/tests/test_json_export_stability.py +105 -0
  456. auditex-2.0.0/tests/test_key_guard_cli_values.py +242 -0
  457. auditex-2.0.0/tests/test_key_guard_copy.py +101 -0
  458. auditex-2.0.0/tests/test_key_guard_later_reads.py +118 -0
  459. auditex-2.0.0/tests/test_key_guard_stdin.py +126 -0
  460. auditex-2.0.0/tests/test_key_guard_swaps.py +404 -0
  461. auditex-2.0.0/tests/test_known_bad_samples.py +152 -0
  462. auditex-2.0.0/tests/test_local_answer.py +861 -0
  463. auditex-2.0.0/tests/test_local_auth_scripts.py +139 -0
  464. auditex-2.0.0/tests/test_lone_surrogate_text.py +317 -0
  465. auditex-2.0.0/tests/test_mailbox_forwarding_collector.py +466 -0
  466. auditex-2.0.0/tests/test_mailbox_forwarding_findings.py +182 -0
  467. auditex-2.0.0/tests/test_mcp_guard_repair.py +569 -0
  468. auditex-2.0.0/tests/test_mcp_manifest_guard.py +498 -0
  469. auditex-2.0.0/tests/test_mcp_offline_operator_inputs.py +195 -0
  470. auditex-2.0.0/tests/test_mcp_paths.py +487 -0
  471. auditex-2.0.0/tests/test_mcp_registry.py +110 -0
  472. auditex-2.0.0/tests/test_mcp_temp_layouts.py +96 -0
  473. auditex-2.0.0/tests/test_model_precheck.py +602 -0
  474. auditex-2.0.0/tests/test_model_rules_only.py +329 -0
  475. auditex-2.0.0/tests/test_model_serving.py +439 -0
  476. auditex-2.0.0/tests/test_normalize.py +540 -0
  477. auditex-2.0.0/tests/test_normalize_coverage.py +61 -0
  478. auditex-2.0.0/tests/test_notification_d3.py +233 -0
  479. auditex-2.0.0/tests/test_notify.py +312 -0
  480. auditex-2.0.0/tests/test_notify_redaction.py +200 -0
  481. auditex-2.0.0/tests/test_offline_as_of.py +252 -0
  482. auditex-2.0.0/tests/test_operator_flow.py +58 -0
  483. auditex-2.0.0/tests/test_optional_collection_reason.py +252 -0
  484. auditex-2.0.0/tests/test_os_lifecycle.py +298 -0
  485. auditex-2.0.0/tests/test_output.py +241 -0
  486. auditex-2.0.0/tests/test_output_streaming.py +114 -0
  487. auditex-2.0.0/tests/test_pack_integrity_and_permissions.py +700 -0
  488. auditex-2.0.0/tests/test_packaging_install.py +123 -0
  489. auditex-2.0.0/tests/test_parser_error_privacy.py +673 -0
  490. auditex-2.0.0/tests/test_partial_workload_exit.py +195 -0
  491. auditex-2.0.0/tests/test_partner_domains.py +986 -0
  492. auditex-2.0.0/tests/test_partner_rule_projection.py +436 -0
  493. auditex-2.0.0/tests/test_perf_runtime.py +35 -0
  494. auditex-2.0.0/tests/test_permission_docs_parity.py +235 -0
  495. auditex-2.0.0/tests/test_power_bi_collector.py +240 -0
  496. auditex-2.0.0/tests/test_power_platform_collector.py +516 -0
  497. auditex-2.0.0/tests/test_powerplat_end_to_end.py +428 -0
  498. auditex-2.0.0/tests/test_presets.py +270 -0
  499. auditex-2.0.0/tests/test_prior_guard_routes.py +484 -0
  500. auditex-2.0.0/tests/test_private_input_boundary_followups.py +241 -0
  501. auditex-2.0.0/tests/test_private_input_diff_followups.py +91 -0
  502. auditex-2.0.0/tests/test_privileged_roles.py +974 -0
  503. auditex-2.0.0/tests/test_probe.py +398 -0
  504. auditex-2.0.0/tests/test_protection_refusal_coverage.py +142 -0
  505. auditex-2.0.0/tests/test_purview_ediscovery_collectors.py +757 -0
  506. auditex-2.0.0/tests/test_read_boundaries.py +3628 -0
  507. auditex-2.0.0/tests/test_read_guard.py +709 -0
  508. auditex-2.0.0/tests/test_read_guard_content_cmdlets.py +136 -0
  509. auditex-2.0.0/tests/test_readonly_validation_notice.py +42 -0
  510. auditex-2.0.0/tests/test_redaction_export_schemas.py +29 -0
  511. auditex-2.0.0/tests/test_redaction_keyed_pseudonyms.py +1463 -0
  512. auditex-2.0.0/tests/test_redaction_person_names.py +989 -0
  513. auditex-2.0.0/tests/test_redaction_profiles_d3.py +582 -0
  514. auditex-2.0.0/tests/test_redaction_scan_budget.py +665 -0
  515. auditex-2.0.0/tests/test_replay_resolver_secrets.py +168 -0
  516. auditex-2.0.0/tests/test_report_analyze.py +63 -0
  517. auditex-2.0.0/tests/test_reporting.py +342 -0
  518. auditex-2.0.0/tests/test_response.py +258 -0
  519. auditex-2.0.0/tests/test_resume_and_offline_replay.py +377 -0
  520. auditex-2.0.0/tests/test_review_app_consent_owner_counts_and_gaps.py +143 -0
  521. auditex-2.0.0/tests/test_review_bot_dns.py +389 -0
  522. auditex-2.0.0/tests/test_review_collectors_transport.py +134 -0
  523. auditex-2.0.0/tests/test_review_collectors_transport_app_credentials.py +48 -0
  524. auditex-2.0.0/tests/test_review_collectors_transport_dns.py +104 -0
  525. auditex-2.0.0/tests/test_review_collectors_transport_exchange.py +45 -0
  526. auditex-2.0.0/tests/test_review_collectors_transport_fanout.py +85 -0
  527. auditex-2.0.0/tests/test_review_collectors_transport_gated.py +35 -0
  528. auditex-2.0.0/tests/test_review_collectors_transport_mailbox.py +121 -0
  529. auditex-2.0.0/tests/test_review_collectors_transport_mailbox_folders.py +64 -0
  530. auditex-2.0.0/tests/test_review_collectors_transport_power_platform.py +63 -0
  531. auditex-2.0.0/tests/test_review_collectors_transport_powershell.py +71 -0
  532. auditex-2.0.0/tests/test_review_collectors_transport_repair.py +266 -0
  533. auditex-2.0.0/tests/test_review_collectors_transport_repair2.py +193 -0
  534. auditex-2.0.0/tests/test_review_collectors_transport_response.py +114 -0
  535. auditex-2.0.0/tests/test_review_compare_bundle_mcp_answer.py +155 -0
  536. auditex-2.0.0/tests/test_review_compare_bundle_mcp_compare.py +691 -0
  537. auditex-2.0.0/tests/test_review_compare_bundle_mcp_explorer.py +14 -0
  538. auditex-2.0.0/tests/test_review_compare_bundle_mcp_mcp.py +639 -0
  539. auditex-2.0.0/tests/test_review_compare_bundle_mcp_resume.py +198 -0
  540. auditex-2.0.0/tests/test_review_docs_accuracy.py +488 -0
  541. auditex-2.0.0/tests/test_review_findings_normalisation_frameworks.py +239 -0
  542. auditex-2.0.0/tests/test_review_google_workspace_auth.py +781 -0
  543. auditex-2.0.0/tests/test_review_google_workspace_client.py +585 -0
  544. auditex-2.0.0/tests/test_review_google_workspace_dns.py +138 -0
  545. auditex-2.0.0/tests/test_review_google_workspace_findings.py +182 -0
  546. auditex-2.0.0/tests/test_review_google_workspace_round2.py +312 -0
  547. auditex-2.0.0/tests/test_review_google_workspace_round3.py +242 -0
  548. auditex-2.0.0/tests/test_review_handover_fixes.py +233 -0
  549. auditex-2.0.0/tests/test_review_integrate_w1.py +222 -0
  550. auditex-2.0.0/tests/test_review_integrate_w1_outside.py +69 -0
  551. auditex-2.0.0/tests/test_review_integrate_w1_repair.py +153 -0
  552. auditex-2.0.0/tests/test_review_integrate_w2.py +276 -0
  553. auditex-2.0.0/tests/test_review_integrate_w2_round2.py +71 -0
  554. auditex-2.0.0/tests/test_review_leftovers.py +591 -0
  555. auditex-2.0.0/tests/test_review_packaging_release_scripts.py +233 -0
  556. auditex-2.0.0/tests/test_review_packaging_release_scripts_make.py +293 -0
  557. auditex-2.0.0/tests/test_review_pypi_install.py +431 -0
  558. auditex-2.0.0/tests/test_review_reporting_exports_disclosure.py +492 -0
  559. auditex-2.0.0/tests/test_review_reporting_exports_disclosure_data_handling.py +102 -0
  560. auditex-2.0.0/tests/test_review_rules_followup.py +186 -0
  561. auditex-2.0.0/tests/test_review_rules_followup_r2.py +628 -0
  562. auditex-2.0.0/tests/test_review_rules_followup_r3.py +258 -0
  563. auditex-2.0.0/tests/test_review_sens_read_only_boundary_graph_content.py +123 -0
  564. auditex-2.0.0/tests/test_review_sens_read_only_boundary_roles.py +83 -0
  565. auditex-2.0.0/tests/test_review_sens_secrets_and_credentials_markdown.py +107 -0
  566. auditex-2.0.0/tests/test_review_setup_guided_cli.py +676 -0
  567. auditex-2.0.0/tests/test_review_tenant_bootstrap_guards.py +30 -0
  568. auditex-2.0.0/tests/test_review_v3_inputs.py +392 -0
  569. auditex-2.0.0/tests/test_review_v3_lows.py +438 -0
  570. auditex-2.0.0/tests/test_review_v3_resume.py +221 -0
  571. auditex-2.0.0/tests/test_review_v3_run_level.py +574 -0
  572. auditex-2.0.0/tests/test_review_value_rules_aad_export.py +27 -0
  573. auditex-2.0.0/tests/test_review_value_rules_defender_dns.py +595 -0
  574. auditex-2.0.0/tests/test_run.py +119 -0
  575. auditex-2.0.0/tests/test_run_bundle.py +55 -0
  576. auditex-2.0.0/tests/test_run_bundle_local_paths.py +456 -0
  577. auditex-2.0.0/tests/test_sarif_oscal_exports.py +887 -0
  578. auditex-2.0.0/tests/test_scale.py +45 -0
  579. auditex-2.0.0/tests/test_scope_catalog.py +77 -0
  580. auditex-2.0.0/tests/test_scope_postcheck.py +677 -0
  581. auditex-2.0.0/tests/test_scuba_adapters_aad.py +1136 -0
  582. auditex-2.0.0/tests/test_scuba_adapters_defender.py +580 -0
  583. auditex-2.0.0/tests/test_scuba_adapters_exchange.py +278 -0
  584. auditex-2.0.0/tests/test_scuba_adapters_powerplat.py +473 -0
  585. auditex-2.0.0/tests/test_scuba_adapters_teams.py +393 -0
  586. auditex-2.0.0/tests/test_scuba_projection.py +2904 -0
  587. auditex-2.0.0/tests/test_scuba_projection_area_hook.py +181 -0
  588. auditex-2.0.0/tests/test_scubagear_differential.py +274 -0
  589. auditex-2.0.0/tests/test_scubagear_export.py +2075 -0
  590. auditex-2.0.0/tests/test_secret_cli_matrix.py +380 -0
  591. auditex-2.0.0/tests/test_secret_hygiene.py +487 -0
  592. auditex-2.0.0/tests/test_secrets_isolation.py +29 -0
  593. auditex-2.0.0/tests/test_security_collectors.py +147 -0
  594. auditex-2.0.0/tests/test_security_defender_posture.py +49 -0
  595. auditex-2.0.0/tests/test_sensitive_key_allowlist.py +113 -0
  596. auditex-2.0.0/tests/test_sensitive_users.py +1118 -0
  597. auditex-2.0.0/tests/test_setup_guide.py +449 -0
  598. auditex-2.0.0/tests/test_sharepoint_admin_collector.py +353 -0
  599. auditex-2.0.0/tests/test_sharepoint_admin_guard.py +170 -0
  600. auditex-2.0.0/tests/test_sharepoint_collector.py +25 -0
  601. auditex-2.0.0/tests/test_signin_licence_and_compare.py +512 -0
  602. auditex-2.0.0/tests/test_single_sign_in.py +412 -0
  603. auditex-2.0.0/tests/test_smtp_tls.py +230 -0
  604. auditex-2.0.0/tests/test_structured_refusals.py +239 -0
  605. auditex-2.0.0/tests/test_support.py +50 -0
  606. auditex-2.0.0/tests/test_targeted_admission_unit.py +388 -0
  607. auditex-2.0.0/tests/test_targeted_collection_boundary.py +257 -0
  608. auditex-2.0.0/tests/test_targeted_collection_fixture_provenance.py +48 -0
  609. auditex-2.0.0/tests/test_targeted_collection_privacy_r2.py +373 -0
  610. auditex-2.0.0/tests/test_targeted_collection_privacy_repair.py +575 -0
  611. auditex-2.0.0/tests/test_targeted_collection_producer.py +292 -0
  612. auditex-2.0.0/tests/test_targeted_collection_replay.py +187 -0
  613. auditex-2.0.0/tests/test_targeted_collection_resume.py +245 -0
  614. auditex-2.0.0/tests/test_targeted_collection_resume_failure.py +298 -0
  615. auditex-2.0.0/tests/test_targeted_collector_bounds.py +69 -0
  616. auditex-2.0.0/tests/test_targeted_collector_health.py +85 -0
  617. auditex-2.0.0/tests/test_targeted_demo_metadata.py +56 -0
  618. auditex-2.0.0/tests/test_targeted_mixed_lists.py +58 -0
  619. auditex-2.0.0/tests/test_targeted_observation_admission.py +465 -0
  620. auditex-2.0.0/tests/test_targeted_pseudo_health_admission_unit.py +52 -0
  621. auditex-2.0.0/tests/test_targeted_pseudo_operation_health.py +170 -0
  622. auditex-2.0.0/tests/test_targeted_sample_sections.py +449 -0
  623. auditex-2.0.0/tests/test_targeted_users_helper.py +409 -0
  624. auditex-2.0.0/tests/test_targeted_users_malformed_output.py +53 -0
  625. auditex-2.0.0/tests/test_targeted_users_normalization.py +84 -0
  626. auditex-2.0.0/tests/test_targeted_users_output.py +166 -0
  627. auditex-2.0.0/tests/test_targeted_users_projection.py +239 -0
  628. auditex-2.0.0/tests/test_targeted_users_reference_boundary.py +31 -0
  629. auditex-2.0.0/tests/test_targeted_wire_envelope.py +77 -0
  630. auditex-2.0.0/tests/test_teams_admin_rest.py +894 -0
  631. auditex-2.0.0/tests/test_teams_app_settings.py +422 -0
  632. auditex-2.0.0/tests/test_teams_collector.py +28 -0
  633. auditex-2.0.0/tests/test_teams_policy_collector.py +320 -0
  634. auditex-2.0.0/tests/test_teams_policy_projection_join.py +124 -0
  635. auditex-2.0.0/tests/test_tenant_bootstrap_config.py +70 -0
  636. auditex-2.0.0/tests/test_tenant_bootstrap_forwarder.py +45 -0
  637. auditex-2.0.0/tests/test_tenant_bootstrap_wrapper.py +346 -0
  638. auditex-2.0.0/tests/test_tenant_identity.py +417 -0
  639. auditex-2.0.0/tests/test_transport_hygiene.py +355 -0
  640. auditex-2.0.0/tests/test_usage_report_anonymization.py +92 -0
  641. auditex-2.0.0/tests/test_validation_error_coverage.py +176 -0
  642. auditex-2.0.0/tests/test_value_rules_aad_review.py +205 -0
  643. auditex-2.0.0/tests/test_value_rules_catalogue.py +130 -0
  644. auditex-2.0.0/tests/test_value_rules_contract.py +487 -0
  645. auditex-2.0.0/tests/test_value_rules_held.py +199 -0
  646. auditex-2.0.0/tests/test_value_rules_helpers.py +287 -0
  647. auditex-2.0.0/tests/test_value_rules_oracle.py +154 -0
  648. auditex-2.0.0/tests/test_value_rules_perf.py +601 -0
  649. auditex-2.0.0/tests/test_value_rules_replay.py +576 -0
  650. auditex-2.0.0/tests/test_value_rules_s4.py +534 -0
  651. auditex-2.0.0/tests/test_value_rules_s5.py +522 -0
  652. auditex-2.0.0/tests/test_value_rules_s6.py +236 -0
  653. auditex-2.0.0/tests/test_value_rules_s7.py +619 -0
  654. auditex-2.0.0/tests/test_value_rules_s8.py +230 -0
  655. auditex-2.0.0/tests/test_value_rules_s9.py +532 -0
  656. auditex-2.0.0/tests/test_value_rules_vectors.py +634 -0
  657. auditex-2.0.0/tests/test_vendored_cli_abbreviations.py +139 -0
  658. auditex-2.0.0/tests/test_verbose_logging_redaction.py +25 -0
  659. auditex-2.0.0/tests/test_waivers.py +343 -0
  660. auditex-2.0.0/tests/test_writer_sinks_d3.py +424 -0
auditex-2.0.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
auditex-2.0.0/NOTICE ADDED
@@ -0,0 +1,46 @@
1
+ Auditex
2
+ Copyright © 2026 MAGRATHEAN UK LTD
3
+
4
+ Licensed under the Apache License, Version 2.0. See LICENSE.
5
+
6
+ This product includes third-party material:
7
+ tenant-bootstrap/vendor/microsoft-skills/ — MIT — Microsoft Corporation, from
8
+ microsoft/skills. The upstream licence text is copied at
9
+ tenant-bootstrap/vendor/microsoft-skills/LICENSE. Magrathean modified
10
+ skills/mcp-builder/scripts/requirements.txt in that subset to raise its declared
11
+ dependency versions.
12
+
13
+ src/auditex/explorer_assets/ (run explorer) bundles:
14
+ - Lucide icon path data — ISC — Copyright (c) 2026 Lucide Icons and Contributors;
15
+ icons derived from Feather — MIT — Copyright (c) 2013-present Cole Bemis.
16
+ Licence text: src/auditex/explorer_assets/LICENSE-lucide.txt.
17
+ - Barlow and Barlow Condensed fonts — SIL Open Font License 1.1 — Copyright 2017
18
+ The Barlow Project Authors. Licence text: src/auditex/explorer_assets/fonts/OFL.txt.
19
+
20
+ configs/scuba-policy-sections.json, configs/explainer-baselines.json,
21
+ configs/explainer-template.json and configs/risky-delegated-permissions.json contain
22
+ text and data from the CISA SCuBA baselines and ScubaGear (cisagov/ScubaGear, commit
23
+ 2446ad723b7f55031cc02c8aca244d731d468cba), dedicated to the public domain under
24
+ CC0 1.0 Universal. Portions of that baseline text were adapted by CISA from
25
+ Microsoft documentation, (c) Microsoft Corporation, licensed under the Creative
26
+ Commons Attribution 4.0 International licence
27
+ (https://creativecommons.org/licenses/by/4.0/). Auditex extracted and reformatted
28
+ the text; the changes are listed in docs/provenance/explainer-baselines.md.
29
+
30
+ configs/framework-catalog.json and configs/ce-plus-practice.json cite headings of the
31
+ NCSC Cyber Essentials: Requirements for IT Infrastructure v3.3. Contains public sector
32
+ information licensed under the Open Government Licence v3.0
33
+ (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
34
+
35
+ Auditex contains no language model. The optional local answer downloads a model file
36
+ from its publisher at the user's request, under that model's own licence; see
37
+ docs/guides/local-answer.md.
38
+
39
+ See docs/legal/third-party-notices.md for the full inventory, including the declared
40
+ Python dependencies.
41
+
42
+ Auditex is independent. It is not affiliated with, endorsed by or supported by Microsoft
43
+ Corporation, Google LLC, the Cybersecurity and Infrastructure Security Agency (CISA),
44
+ the National Cyber Security Centre (NCSC), IASME or the Center for Internet Security
45
+ (CIS). The framework mappings have not been authorised, sponsored or otherwise approved
46
+ by CIS or by any of them.
auditex-2.0.0/PKG-INFO ADDED
@@ -0,0 +1,292 @@
1
+ Metadata-Version: 2.4
2
+ Name: auditex
3
+ Version: 2.0.0
4
+ Summary: Read-only Microsoft 365 and Google Workspace tenant-audit toolkit for evidence collection
5
+ Author-email: MAGRATHEAN UK LTD <contact+auditex@magrathean.uk>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://magrathean.uk/solutions/auditex/
8
+ Project-URL: Repository, https://github.com/magrathean-uk/auditex
9
+ Project-URL: Issues, https://github.com/magrathean-uk/auditex/issues
10
+ Project-URL: Changelog, https://github.com/magrathean-uk/auditex/blob/main/CHANGELOG.md
11
+ Project-URL: Documentation, https://github.com/magrathean-uk/auditex/blob/main/docs/guides/install-guide.md
12
+ Keywords: microsoft-365,entra-id,google-workspace,tenant-audit,security-audit,cisa-scuba,compliance,evidence,mcp
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Information Technology
16
+ Classifier: Intended Audience :: System Administrators
17
+ Classifier: Natural Language :: English
18
+ Classifier: Operating System :: MacOS
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Topic :: Security
27
+ Classifier: Topic :: System :: Systems Administration
28
+ Requires-Python: >=3.11
29
+ Description-Content-Type: text/markdown
30
+ License-File: LICENSE
31
+ License-File: NOTICE
32
+ Requires-Dist: requests<3,>=2.34.2
33
+ Requires-Dist: msal<2,>=1.39.0
34
+ Requires-Dist: cryptography>=42
35
+ Provides-Extra: mcp
36
+ Requires-Dist: mcp<2,>=1.30.0; extra == "mcp"
37
+ Provides-Extra: test
38
+ Requires-Dist: pytest>=8; extra == "test"
39
+ Requires-Dist: jsonschema<5,>=4.18; extra == "test"
40
+ Requires-Dist: setuptools==84.2.1; extra == "test"
41
+ Provides-Extra: local-answer
42
+ Requires-Dist: llama-cpp-python==0.3.36; extra == "local-answer"
43
+ Provides-Extra: google
44
+ Requires-Dist: google-auth<3,>=2.58.1; extra == "google"
45
+ Requires-Dist: google-auth-oauthlib<2,>=1.4.1; extra == "google"
46
+ Requires-Dist: google-api-python-client<3,>=2.200.0; extra == "google"
47
+ Provides-Extra: dev
48
+ Requires-Dist: pip-audit<3,>=2.9; extra == "dev"
49
+ Requires-Dist: ruff==0.17.6; extra == "dev"
50
+ Requires-Dist: twine<8,>=7; extra == "dev"
51
+ Dynamic: license-file
52
+
53
+ <p align="center">
54
+ <img src="https://raw.githubusercontent.com/magrathean-uk/auditex/main/assets/auditex-logo.svg" width="132" height="132" alt="">
55
+ </p>
56
+
57
+ <h1 align="center">Auditex</h1>
58
+
59
+ <p align="center">A read-only Microsoft 365 and Google Workspace tenant-audit toolkit, for auditors and admins.</p>
60
+
61
+ <p align="center">
62
+ <a href="https://magrathean.uk/solutions/auditex/">Website</a> ·
63
+ <a href="https://github.com/magrathean-uk/auditex/blob/main/docs/index.md">Documentation</a> ·
64
+ <a href="https://magrathean.uk/solutions/auditex/privacy/">Privacy</a>
65
+ </p>
66
+
67
+ ## Overview
68
+
69
+ Auditex is a Python CLI and MCP toolkit for read-only Microsoft 365 and Google Workspace tenant audits. It collects local evidence, normalizes results, and produces report, export, comparison, and customer handoff artifacts.
70
+
71
+ The public audit surface does not write to production tenants. It also does not read message bodies or file contents in audit mode. The separate `tenant-bootstrap/` kit is for lab setup and rehearsal; treat it as a writable lab tool with its own credentials, outputs, and safeguards, kept out of audit, report, export, and MCP flows. `AGENTS.md` has the rules.
72
+
73
+ ## What is included
74
+
75
+ - Microsoft 365 collection through the `auditex` and `azure-tenant-audit` CLIs.
76
+ - Google Workspace collection through the optional `google` dependencies.
77
+ - Guided setup and audit flows, capability probes, and diagnostics. Microsoft 365 is audited one way: as a reader app that signs in with a certificate.
78
+ - Offline fixtures for contract checks and demonstrations.
79
+ - Report rendering, CSV/JSON and other exporters, comparison and drift gates, customer handoff packs, and a local MCP server.
80
+ - Offline imports and control-by-control review of Maester, ScubaGear and Monkey365 JSON assessments, with source hashes and strict tenant identity checks.
81
+ - Read-only privilege graph: potential routes from users, groups and applications to tier-0 control, with evidence per hop, explicit unverified prerequisites and candidate breakpoints.
82
+ - Detection coverage ("could this tenant see an attack?") and the tenant's public footprint, including MTA-STS and TLS-RPT.
83
+ - Mapping of findings to CIS Microsoft 365 Foundations v7, CISA SCuBA, Microsoft Secure Score, Zero Trust, the Microsoft cloud security benchmark, and the NCSC Cyber Essentials requirements (v3.3). A mapping shows which control a finding relates to; it is not an assessment against that framework. For Cyber Essentials, device-side requirements show as manual or assessor-tested, the ones Intune and Exchange Online evidence in part (updates, anti-malware) show as partial, and tenant-backed ones never read pass. See [framework mappings](https://github.com/magrathean-uk/auditex/blob/main/docs/reference/framework-mappings.md).
84
+ - `auditex demo`, a guided walkthrough on a fictional company, and `auditex report explorer`, a self-contained interactive HTML view of any run.
85
+
86
+ The package is Python 3.11 or newer. Its required runtime dependencies are `requests` and `msal`. Google Workspace and MCP support are optional extras.
87
+
88
+ ## Evidence, not a certificate
89
+
90
+ An Auditex report is evidence from an automated, read-only run. It is not a certificate, an assurance opinion, a penetration test or legal advice, and it does not show that a tenant is secure or that it meets Cyber Essentials, a CIS Benchmark, the CISA SCuBA baselines or any other standard. It covers only what the run could read with the access it was given; the coverage gaps are recorded in the report and are part of the result. A person still makes the judgement.
91
+
92
+ Run Auditex only against a tenant you own or have the owner's written authorisation to audit. A run folder holds personal data about the tenant's users (names, addresses, sign-in records and similar); whoever runs the audit is responsible for handling it lawfully. See [the security and privacy model](https://github.com/magrathean-uk/auditex/blob/main/docs/reference/security-privacy.md).
93
+
94
+ ## Install
95
+
96
+ Auditex runs on Linux, macOS and Windows through WSL2, with Python 3.11 or newer. Native Windows is not supported;
97
+ use WSL2. Install it from PyPI with [pipx](https://pipx.pypa.io/):
98
+
99
+ ```bash
100
+ pipx install auditex
101
+ auditex --version
102
+ auditex doctor
103
+ ```
104
+
105
+ `auditex doctor` ends with `Core ready: yes` on a working install. Optional extras add Google Workspace audits
106
+ (`google`), the local MCP server (`mcp`) and the local model summary (`local-answer`):
107
+
108
+ ```bash
109
+ pipx install --force "auditex[google,mcp]"
110
+ ```
111
+
112
+ `--force` reinstalls over the base install; list every extra you want to keep, because pipx installs exactly the
113
+ extras named on its last install. On a computer without Auditex yet, `pipx install "auditex[google,mcp]"` installs
114
+ it with the extras in one step.
115
+
116
+ Upgrade with `pipx upgrade auditex`. The [install guide](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/install-guide.md) walks through every step on
117
+ each system, from installing Python and pipx to a first offline run, upgrading, uninstalling and troubleshooting.
118
+
119
+ ## Install from source (contributors)
120
+
121
+ To change Auditex or run its checks, install from a source checkout:
122
+
123
+ ```bash
124
+ git clone https://github.com/magrathean-uk/auditex.git
125
+ cd auditex
126
+ python3 -m venv .venv
127
+ source .venv/bin/activate
128
+ python -m pip install -e '.[test]'
129
+ auditex doctor --json
130
+ ```
131
+
132
+ Run the repository commands below from inside the `auditex` folder. The activation line is for Linux and macOS.
133
+
134
+ Optional dependencies:
135
+
136
+ ```bash
137
+ python -m pip install -e '.[google]'
138
+ python -m pip install -e '.[mcp]'
139
+ ```
140
+
141
+ Useful repository checks are:
142
+
143
+ ```bash
144
+ make lint
145
+ make test
146
+ make contract-smoke
147
+ ./scripts/oss-taint-scan.sh
148
+ ```
149
+
150
+ `make contract-smoke` runs an offline sample and checks the finalized bundle contract. See [the runbook](https://github.com/magrathean-uk/auditex/blob/main/docs/development/runbook.md) for the complete local and release check matrix.
151
+
152
+ ## Main commands
153
+
154
+ Try the whole flow on a fictional company without touching any tenant:
155
+
156
+ ```bash
157
+ auditex demo
158
+ ```
159
+
160
+ `auditex demo` replays a synthetic tenant offline, then walks through access planning, findings, evidence, attack paths, and a checksum-verified customer pack, and writes an interactive HTML explorer. Use `--no-pause` for an unattended run.
161
+
162
+ Generate a provider-specific permission and scope plan before requesting access:
163
+
164
+ ```bash
165
+ auditex setup-guide m365 --collector-preset full --format md
166
+ auditex setup-guide google --collector-preset everything --format md
167
+ ```
168
+
169
+ Guided operator flow:
170
+
171
+ ```bash
172
+ auditex guided-run
173
+ auditex guided-run --flow app-audit
174
+ ```
175
+
176
+ The guided flow audits as the reader app and creates nothing in the tenant. The tenant administrator sets the app up once; every permission and setting is in [Reader app permissions](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/reader-app-permissions.md).
177
+
178
+ Offline runs contact no tenant and need no credentials:
179
+
180
+ ```bash
181
+ auditex run --offline --tenant-name demo --out outputs/offline
182
+ ```
183
+
184
+ The run writes its own folder inside `--out`, named with the tenant and a timestamp (for example
185
+ `outputs/offline/demo-run_20261121_225532`). That folder is the `<run-dir>` the commands below take.
186
+
187
+ ```bash
188
+ auditex google run --offline --sample examples/google_workspace_sample.json \
189
+ --domain example.com --tenant-name demo --out outputs/google
190
+ ```
191
+
192
+ For an authorized live Microsoft 365 audit, use the reader app with its certificate. The key file must be readable only by you; an encrypted key takes `--certificate-password-file` or `--certificate-password-env`, never the password itself:
193
+
194
+ ```bash
195
+ auditex run --tenant-name CONTOSO --tenant-id contoso.onmicrosoft.com \
196
+ --client-id <app-id> --certificate-path ~/audit-keys/auditex-reader.pem \
197
+ --certificate-thumbprint <sha1-thumbprint> \
198
+ --auditor-profile global-reader --out outputs/live
199
+ ```
200
+
201
+ Use `auditex probe live` after permission changes to identify capability blockers before a full run, and follow the generated setup guide.
202
+
203
+ Google Workspace supports domain-wide delegation and OAuth. The full Google path requires the optional dependencies and provider credentials kept outside the repository:
204
+
205
+ ```bash
206
+ auditex google doctor --json
207
+ auditex google probe --auth domain-delegation --domain example.com \
208
+ --service-account-key /path/to/service-account.json --subject admin@example.com
209
+ ```
210
+
211
+ ## Read a run and prepare a handoff
212
+
213
+ External Microsoft assessment reports can also be reviewed locally with
214
+ `auditex assessment import` and `auditex assessment compare`. See
215
+ [external assessment comparison](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/external-assessments.md) for
216
+ supported formats, evidence references and comparison limits.
217
+
218
+ Each finalized run contains a manifest, summary, report pack, evidence index, AI context, and validation result. The current contract version is recorded in `run-manifest.json`; required files and evidence rules are documented in [the output contract](https://github.com/magrathean-uk/auditex/blob/main/docs/reference/output-contract.md).
219
+
220
+ For an optional rule-only SCuBA assessment, `auditex assess <run-dir>` has
221
+ value rules for all 102 catalogue policies across Entra ID, Exchange Online, Power BI, Power Platform, Defender,
222
+ SharePoint and Teams. Rule availability does not guarantee a verdict: available evidence, the adapter and
223
+ permissions determine whether a policy can be assessed. A policy without a rule reports not assessed
224
+ (`rule_not_implemented`): "Not assessed: Auditex has no rule for this policy yet."
225
+ Assessment runs locally from the run bundle; no endpoint or model name is involved.
226
+ Assessments can attach deterministic template explanations to supported rule results. JSON, Markdown and HTML reports show them when present; findings are unchanged.
227
+ Each policy's status is in the run's `model_assessment.json`; see [AI assessment](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/ai-assessment.md#run-and-read-the-result) for coverage and output.
228
+
229
+ For an optional plain-language answer, `auditex explain <run-dir>` (or `auditex run ... --explain`) has a local model say
230
+ what is wrong in the tenant, the most severe first, and what is right. The value rules still decide every verdict and the
231
+ order; the model only selects prepared sentences, Auditex renders every word, and a selection that fails the checks shows
232
+ fixed text. It needs the optional `local-answer` extra and downloads one pinned model file from Hugging Face on first
233
+ use, under that model's own licence, then runs offline: nothing about the run or the tenant is sent anywhere. See
234
+ [the local answer guide](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/local-answer.md).
235
+
236
+ ```bash
237
+ auditex report render <run-dir> --format md
238
+ auditex report api-calls <run-dir> --format md
239
+ auditex report permissions <run-dir> --format md
240
+ auditex report proof-table <run-dir> --format md
241
+ auditex report ce-plus <run-dir> --format md
242
+ auditex report customer-pack <run-dir> --output-dir customer-pack
243
+ auditex report verify-pack customer-pack
244
+ auditex report explorer <run-dir>
245
+ auditex report explorer <run-dir> --compare <previous-run-dir>
246
+ auditex compare --run-dir run-a --run-dir run-b
247
+ auditex export list
248
+ ```
249
+
250
+ Start customer review with the handoff output, then inspect the API and permission ledgers, proof table, `data-handling.json`, and `validation.json`. Partial runs should be explained with their blocker and readiness artifacts rather than presented as complete coverage.
251
+
252
+ ## MCP
253
+
254
+ Run the local MCP server after installing the `mcp` extra:
255
+
256
+ ```bash
257
+ auditex-mcp
258
+ ```
259
+
260
+ The MCP registry exposes inventory and contract inspection, offline validation, Microsoft 365 and Google Workspace audit/probe operations, run summaries and comparisons, reports and proof tables, customer-pack verification, exports, notifications, rules, and setup guides. Audit operations retain the same read-only and no-content-read boundary as the CLI. No MCP tool takes a bearer token, client secret or auth context; the Microsoft 365 tools take the reader app's client ID, certificate thumbprint and confined paths to its key and password file. Every path argument is confined to `AUDITEX_MCP_ROOT` (default: the server's working directory).
261
+
262
+ ## Documentation
263
+
264
+ Use [docs/index.md](https://github.com/magrathean-uk/auditex/blob/main/docs/index.md) as the documentation index.
265
+
266
+ - [The install guide](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/install-guide.md) installs Auditex from PyPI with pipx, step by step.
267
+
268
+ - [The runbook](https://github.com/magrathean-uk/auditex/blob/main/docs/development/runbook.md) covers setup, operator flows, local checks, and the separate lab bootstrap kit.
269
+ - [The product manual](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/product-manual.md) explains the product workflows.
270
+ - [The setup guide](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/setup-guide.md) and [the administrator permission guide](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/admin-permission-guide.md) cover access planning.
271
+ - [The security and privacy model](https://github.com/magrathean-uk/auditex/blob/main/docs/reference/security-privacy.md) describes data handling and audit boundaries.
272
+ - [The customer handoff guide](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/customer-handoff-guide.md) covers review packs.
273
+ - [The troubleshooting guide](https://github.com/magrathean-uk/auditex/blob/main/docs/guides/troubleshooting.md) covers common failures.
274
+ - [AGENTS.md](https://github.com/magrathean-uk/auditex/blob/main/AGENTS.md) contains repository-specific development rules.
275
+ - [.github/CONTRIBUTING.md](https://github.com/magrathean-uk/auditex/blob/main/.github/CONTRIBUTING.md) covers development setup and review expectations.
276
+ - [.github/SUPPORT.md](https://github.com/magrathean-uk/auditex/blob/main/.github/SUPPORT.md) explains how to request help and report product issues.
277
+
278
+ Keep `.venv/`, `.secrets/`, tenant evidence, and generated output directories local. Never commit tokens, OAuth caches, service-account keys, or tenant evidence. Do not add external telemetry.
279
+
280
+ ## Licence
281
+
282
+ Auditex is open source under the Apache License 2.0, which provides it "as is", without warranties. See [LICENSE](https://github.com/magrathean-uk/auditex/blob/main/LICENSE) and
283
+ [NOTICE](https://github.com/magrathean-uk/auditex/blob/main/NOTICE); the fuller dependency inventory is in
284
+ [third-party notices](https://github.com/magrathean-uk/auditex/blob/main/docs/legal/third-party-notices.md). Security reporting instructions
285
+ are in [.github/SECURITY.md](https://github.com/magrathean-uk/auditex/blob/main/.github/SECURITY.md). Trademark information is in
286
+ [docs/legal/trademarks.md](https://github.com/magrathean-uk/auditex/blob/main/docs/legal/trademarks.md). Contributions: see
287
+ [CONTRIBUTING](https://github.com/magrathean-uk/auditex/blob/main/.github/CONTRIBUTING.md).
288
+
289
+ Auditex is independent. It is not affiliated with, endorsed by or supported by Microsoft, Google, CISA, the NCSC, IASME
290
+ or the Center for Internet Security. Their names are used only to say what Auditex reads or maps to.
291
+
292
+ <sub>© 2026 MAGRATHEAN UK LTD · [Legal](https://github.com/magrathean-uk/.github/blob/main/LEGAL.md)</sub>