ai-agent-security 0.22.2__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 (619) hide show
  1. ai_agent_security-0.22.2/.gitignore +61 -0
  2. ai_agent_security-0.22.2/CHANGELOG.md +310 -0
  3. ai_agent_security-0.22.2/LICENSE +202 -0
  4. ai_agent_security-0.22.2/PKG-INFO +267 -0
  5. ai_agent_security-0.22.2/README.md +228 -0
  6. ai_agent_security-0.22.2/agentsec/__init__.py +44 -0
  7. ai_agent_security-0.22.2/agentsec/__main__.py +13 -0
  8. ai_agent_security-0.22.2/agentsec/advisor.py +334 -0
  9. ai_agent_security-0.22.2/agentsec/ai/__init__.py +13 -0
  10. ai_agent_security-0.22.2/agentsec/ai/lethal_trifecta.py +302 -0
  11. ai_agent_security-0.22.2/agentsec/ai/semgrep-rules/python-llm.yaml +96 -0
  12. ai_agent_security-0.22.2/agentsec/ai_bom.py +440 -0
  13. ai_agent_security-0.22.2/agentsec/arm.py +126 -0
  14. ai_agent_security-0.22.2/agentsec/astutil.py +290 -0
  15. ai_agent_security-0.22.2/agentsec/audit.py +643 -0
  16. ai_agent_security-0.22.2/agentsec/bicep.py +323 -0
  17. ai_agent_security-0.22.2/agentsec/canary.py +1244 -0
  18. ai_agent_security-0.22.2/agentsec/cfn.py +357 -0
  19. ai_agent_security-0.22.2/agentsec/checklist/__init__.py +203 -0
  20. ai_agent_security-0.22.2/agentsec/checklist/checklist.json +11124 -0
  21. ai_agent_security-0.22.2/agentsec/checkmeta.py +84 -0
  22. ai_agent_security-0.22.2/agentsec/ci/__init__.py +9 -0
  23. ai_agent_security-0.22.2/agentsec/ci/components/container-cve/component.json +14 -0
  24. ai_agent_security-0.22.2/agentsec/ci/components/container-cve/files/.github/workflows/container-cve.yml.tmpl +83 -0
  25. ai_agent_security-0.22.2/agentsec/ci/components/container-cve/files/.trivy-images.txt +9 -0
  26. ai_agent_security-0.22.2/agentsec/ci/components/dast/component.json +14 -0
  27. ai_agent_security-0.22.2/agentsec/ci/components/dast/files/.github/workflows/dast.yml.tmpl +90 -0
  28. ai_agent_security-0.22.2/agentsec/ci/components/db-lint/component.json +14 -0
  29. ai_agent_security-0.22.2/agentsec/ci/components/db-lint/files/.github/workflows/db-lint.yml.tmpl +65 -0
  30. ai_agent_security-0.22.2/agentsec/ci/components/dockerfile-lint/component.json +11 -0
  31. ai_agent_security-0.22.2/agentsec/ci/components/dockerfile-lint/files/.github/workflows/dockerfile-lint.yml.tmpl +34 -0
  32. ai_agent_security-0.22.2/agentsec/ci/components/dockerfile-lint/files/.hadolint.yaml +28 -0
  33. ai_agent_security-0.22.2/agentsec/ci/components/frontend-sec/component.json +14 -0
  34. ai_agent_security-0.22.2/agentsec/ci/components/frontend-sec/files/.github/workflows/frontend-security.yml.tmpl +40 -0
  35. ai_agent_security-0.22.2/agentsec/ci/components/garak/component.json +14 -0
  36. ai_agent_security-0.22.2/agentsec/ci/components/garak/files/.github/workflows/llm-redteam-garak.yml.tmpl +79 -0
  37. ai_agent_security-0.22.2/agentsec/ci/components/garak/files/scripts/redteam-shim.py +221 -0
  38. ai_agent_security-0.22.2/agentsec/ci/components/promptfoo/component.json +15 -0
  39. ai_agent_security-0.22.2/agentsec/ci/components/promptfoo/files/.github/workflows/llm-redteam-promptfoo.yml.tmpl +64 -0
  40. ai_agent_security-0.22.2/agentsec/ci/components/promptfoo/files/promptfooconfig.yaml +205 -0
  41. ai_agent_security-0.22.2/agentsec/ci/components/promptfoo/files/scripts/redteam-shim.py +221 -0
  42. ai_agent_security-0.22.2/agentsec/ci/components/python-sec/component.json +14 -0
  43. ai_agent_security-0.22.2/agentsec/ci/components/python-sec/files/.github/workflows/python-security.yml.tmpl +45 -0
  44. ai_agent_security-0.22.2/agentsec/ci/components/react-doctor/component.json +16 -0
  45. ai_agent_security-0.22.2/agentsec/ci/components/react-doctor/files/.github/workflows/frontend-health.yml.tmpl +84 -0
  46. ai_agent_security-0.22.2/agentsec/ci/components/react-doctor/files/@@FRONTEND_DIR@@/react-doctor.config.json +13 -0
  47. ai_agent_security-0.22.2/agentsec/ci/components/scorecard/component.json +13 -0
  48. ai_agent_security-0.22.2/agentsec/ci/components/scorecard/files/.github/workflows/scorecard.yml.tmpl +78 -0
  49. ai_agent_security-0.22.2/agentsec/ci/components/secret-scan/component.json +14 -0
  50. ai_agent_security-0.22.2/agentsec/ci/components/secret-scan/files/.github/workflows/secret-scan.yml.tmpl +70 -0
  51. ai_agent_security-0.22.2/agentsec/ci/components/secret-scan/files/.gitleaks.toml +34 -0
  52. ai_agent_security-0.22.2/agentsec/ci/components/secret-scan/files/.gitleaksignore +6 -0
  53. ai_agent_security-0.22.2/agentsec/ci/components/self-audit/component.json +16 -0
  54. ai_agent_security-0.22.2/agentsec/ci/components/self-audit/files/.github/workflows/agentsec-audit.yml.tmpl +44 -0
  55. ai_agent_security-0.22.2/agentsec/ci/components/type-check/component.json +14 -0
  56. ai_agent_security-0.22.2/agentsec/ci/components/type-check/files/.github/workflows/type-check.yml.tmpl +44 -0
  57. ai_agent_security-0.22.2/agentsec/ci/doctor.py +479 -0
  58. ai_agent_security-0.22.2/agentsec/ci/library.py +548 -0
  59. ai_agent_security-0.22.2/agentsec/ci/render.py +31 -0
  60. ai_agent_security-0.22.2/agentsec/clean_canary.py +171 -0
  61. ai_agent_security-0.22.2/agentsec/clean_canary_fixtures.py +533 -0
  62. ai_agent_security-0.22.2/agentsec/cli.py +3140 -0
  63. ai_agent_security-0.22.2/agentsec/compounding_risk.py +246 -0
  64. ai_agent_security-0.22.2/agentsec/config.py +186 -0
  65. ai_agent_security-0.22.2/agentsec/console.py +32 -0
  66. ai_agent_security-0.22.2/agentsec/corpus.py +1437 -0
  67. ai_agent_security-0.22.2/agentsec/coverage.py +365 -0
  68. ai_agent_security-0.22.2/agentsec/crosscheck.py +152 -0
  69. ai_agent_security-0.22.2/agentsec/deps_apply.py +962 -0
  70. ai_agent_security-0.22.2/agentsec/deps_monitor.py +912 -0
  71. ai_agent_security-0.22.2/agentsec/detect.py +1221 -0
  72. ai_agent_security-0.22.2/agentsec/drift.py +309 -0
  73. ai_agent_security-0.22.2/agentsec/epss.py +148 -0
  74. ai_agent_security-0.22.2/agentsec/exceptions.py +539 -0
  75. ai_agent_security-0.22.2/agentsec/findings.py +945 -0
  76. ai_agent_security-0.22.2/agentsec/fix.py +293 -0
  77. ai_agent_security-0.22.2/agentsec/gap_report.py +101 -0
  78. ai_agent_security-0.22.2/agentsec/guard_sandbox.py +248 -0
  79. ai_agent_security-0.22.2/agentsec/guard_worker.py +559 -0
  80. ai_agent_security-0.22.2/agentsec/guards/__init__.py +7 -0
  81. ai_agent_security-0.22.2/agentsec/guards/acp_vulnerabilities.py +385 -0
  82. ai_agent_security-0.22.2/agentsec/guards/actions_script_injection.py +261 -0
  83. ai_agent_security-0.22.2/agentsec/guards/actions_sha_pin.py +105 -0
  84. ai_agent_security-0.22.2/agentsec/guards/agent_headless_trust_surface.py +295 -0
  85. ai_agent_security-0.22.2/agentsec/guards/agent_iam_control_plane_exposure.py +213 -0
  86. ai_agent_security-0.22.2/agentsec/guards/agent_iam_killchain_combination.py +294 -0
  87. ai_agent_security-0.22.2/agentsec/guards/agent_iam_tool_resource_unscoped.py +307 -0
  88. ai_agent_security-0.22.2/agentsec/guards/agent_loop_circuit_breaker.py +828 -0
  89. ai_agent_security-0.22.2/agentsec/guards/agent_memory_retention.py +162 -0
  90. ai_agent_security-0.22.2/agentsec/guards/agent_memory_security.py +403 -0
  91. ai_agent_security-0.22.2/agentsec/guards/agent_memory_user_scope.py +328 -0
  92. ai_agent_security-0.22.2/agentsec/guards/agent_resume_unverified_trigger.py +279 -0
  93. ai_agent_security-0.22.2/agentsec/guards/agent_tool_audit_log.py +181 -0
  94. ai_agent_security-0.22.2/agentsec/guards/agent_tool_overpermission.py +352 -0
  95. ai_agent_security-0.22.2/agentsec/guards/agent_tool_url_fetch_ssrf.py +414 -0
  96. ai_agent_security-0.22.2/agentsec/guards/agentic_skills_ast.py +249 -0
  97. ai_agent_security-0.22.2/agentsec/guards/ai_docker.py +458 -0
  98. ai_agent_security-0.22.2/agentsec/guards/ai_instruction_poisoning.py +435 -0
  99. ai_agent_security-0.22.2/agentsec/guards/alb_listener_http_protocol.py +164 -0
  100. ai_agent_security-0.22.2/agentsec/guards/ansi_escape_llm_output.py +235 -0
  101. ai_agent_security-0.22.2/agentsec/guards/ansible_debug_echoes_auth_variable.py +134 -0
  102. ai_agent_security-0.22.2/agentsec/guards/ansible_host_key_checking_disabled.py +114 -0
  103. ai_agent_security-0.22.2/agentsec/guards/ansible_ignore_errors_on_security_task.py +124 -0
  104. ai_agent_security-0.22.2/agentsec/guards/ansible_no_log_disabled_on_secret_task.py +138 -0
  105. ai_agent_security-0.22.2/agentsec/guards/ansible_setuid_binary_creation.py +101 -0
  106. ai_agent_security-0.22.2/agentsec/guards/ansible_sudo_nopasswd.py +103 -0
  107. ai_agent_security-0.22.2/agentsec/guards/ansible_unsafe_lookups_enabled.py +104 -0
  108. ai_agent_security-0.22.2/agentsec/guards/api_docs_exposed.py +124 -0
  109. ai_agent_security-0.22.2/agentsec/guards/approval_parser_shell_desync.py +241 -0
  110. ai_agent_security-0.22.2/agentsec/guards/argv_toctou.py +270 -0
  111. ai_agent_security-0.22.2/agentsec/guards/arm_aks_rbac_disabled.py +133 -0
  112. ai_agent_security-0.22.2/agentsec/guards/arm_apim_backend_unauthenticated.py +169 -0
  113. ai_agent_security-0.22.2/agentsec/guards/arm_appservice_https_only_disabled.py +143 -0
  114. ai_agent_security-0.22.2/agentsec/guards/arm_redis_ssl_disabled.py +116 -0
  115. ai_agent_security-0.22.2/agentsec/guards/arm_sql_tde_disabled.py +143 -0
  116. ai_agent_security-0.22.2/agentsec/guards/async_blocking_io.py +196 -0
  117. ai_agent_security-0.22.2/agentsec/guards/auth_dependency_not_applied.py +682 -0
  118. ai_agent_security-0.22.2/agentsec/guards/auth_disabled_by_default.py +149 -0
  119. ai_agent_security-0.22.2/agentsec/guards/auth_rate_limit_absent.py +208 -0
  120. ai_agent_security-0.22.2/agentsec/guards/auth_users_exposed_view.py +91 -0
  121. ai_agent_security-0.22.2/agentsec/guards/auto_updates_absent.py +231 -0
  122. ai_agent_security-0.22.2/agentsec/guards/autostart_persistence_mechanism.py +155 -0
  123. ai_agent_security-0.22.2/agentsec/guards/aws_observability_hygiene.py +336 -0
  124. ai_agent_security-0.22.2/agentsec/guards/aws_weak_tls_policy.py +362 -0
  125. ai_agent_security-0.22.2/agentsec/guards/azure_keyvault_key_no_expiration.py +131 -0
  126. ai_agent_security-0.22.2/agentsec/guards/azure_keyvault_purge_protection_disabled.py +130 -0
  127. ai_agent_security-0.22.2/agentsec/guards/azure_mssql_publicly_accessible.py +135 -0
  128. ai_agent_security-0.22.2/agentsec/guards/azure_storage_account_https_only.py +137 -0
  129. ai_agent_security-0.22.2/agentsec/guards/azure_storage_account_public_blob_access.py +135 -0
  130. ai_agent_security-0.22.2/agentsec/guards/background_tasks.py +72 -0
  131. ai_agent_security-0.22.2/agentsec/guards/base.py +7216 -0
  132. ai_agent_security-0.22.2/agentsec/guards/bicep_admin_username_literal.py +103 -0
  133. ai_agent_security-0.22.2/agentsec/guards/bicep_commandtoexecute_plaintext_settings.py +190 -0
  134. ai_agent_security-0.22.2/agentsec/guards/bicep_output_secret_not_secure.py +115 -0
  135. ai_agent_security-0.22.2/agentsec/guards/bicep_param_file_insecure_secret_value.py +112 -0
  136. ai_agent_security-0.22.2/agentsec/guards/bicep_secret_param_not_secure.py +106 -0
  137. ai_agent_security-0.22.2/agentsec/guards/bicep_secure_param_in_nested_deployment.py +229 -0
  138. ai_agent_security-0.22.2/agentsec/guards/bicep_secure_parameter_default.py +151 -0
  139. ai_agent_security-0.22.2/agentsec/guards/bola.py +156 -0
  140. ai_agent_security-0.22.2/agentsec/guards/browser_credential_store_access.py +217 -0
  141. ai_agent_security-0.22.2/agentsec/guards/build_secret.py +518 -0
  142. ai_agent_security-0.22.2/agentsec/guards/bulk_env_var_harvesting.py +162 -0
  143. ai_agent_security-0.22.2/agentsec/guards/cfn_authentication_password.py +181 -0
  144. ai_agent_security-0.22.2/agentsec/guards/cfn_batch_privileged_container.py +117 -0
  145. ai_agent_security-0.22.2/agentsec/guards/cfn_cognito_mfa_off.py +114 -0
  146. ai_agent_security-0.22.2/agentsec/guards/cfn_cognito_unauth_identities.py +117 -0
  147. ai_agent_security-0.22.2/agentsec/guards/cfn_ec2_subnet_public_ip.py +114 -0
  148. ai_agent_security-0.22.2/agentsec/guards/cfn_ecr_scan_on_push.py +108 -0
  149. ai_agent_security-0.22.2/agentsec/guards/cfn_iam_escalation_action_no_condition.py +218 -0
  150. ai_agent_security-0.22.2/agentsec/guards/cfn_iam_notaction_with_allow.py +156 -0
  151. ai_agent_security-0.22.2/agentsec/guards/cfn_iam_user_direct_policy.py +146 -0
  152. ai_agent_security-0.22.2/agentsec/guards/cfn_kms_key_rotation_not_enabled.py +118 -0
  153. ai_agent_security-0.22.2/agentsec/guards/cfn_nacl_ineffective_deny.py +145 -0
  154. ai_agent_security-0.22.2/agentsec/guards/cfn_rds_hardcoded_password_no_echo.py +277 -0
  155. ai_agent_security-0.22.2/agentsec/guards/cfn_rds_publicly_accessible.py +116 -0
  156. ai_agent_security-0.22.2/agentsec/guards/cfn_s3_public_access_canned_acl.py +125 -0
  157. ai_agent_security-0.22.2/agentsec/guards/cfn_s3_versioning_missing.py +134 -0
  158. ai_agent_security-0.22.2/agentsec/guards/cfn_vpc_flow_log_missing.py +123 -0
  159. ai_agent_security-0.22.2/agentsec/guards/cfn_waf_default_allow.py +131 -0
  160. ai_agent_security-0.22.2/agentsec/guards/cfn_wildcard_principal.py +148 -0
  161. ai_agent_security-0.22.2/agentsec/guards/checkout_price_from_server.py +91 -0
  162. ai_agent_security-0.22.2/agentsec/guards/ci_image_build_no_sbom_provenance.py +170 -0
  163. ai_agent_security-0.22.2/agentsec/guards/ci_secret_env_unscoped.py +378 -0
  164. ai_agent_security-0.22.2/agentsec/guards/claude_code_compromise.py +567 -0
  165. ai_agent_security-0.22.2/agentsec/guards/claude_hook_rce.py +210 -0
  166. ai_agent_security-0.22.2/agentsec/guards/claude_routines_security.py +167 -0
  167. ai_agent_security-0.22.2/agentsec/guards/cleartext_secret_storage.py +200 -0
  168. ai_agent_security-0.22.2/agentsec/guards/client_side_auth_decision.py +370 -0
  169. ai_agent_security-0.22.2/agentsec/guards/client_side_secret_literal.py +659 -0
  170. ai_agent_security-0.22.2/agentsec/guards/cloud_metadata_endpoint_literal.py +138 -0
  171. ai_agent_security-0.22.2/agentsec/guards/cloudtrail_logging_disabled.py +193 -0
  172. ai_agent_security-0.22.2/agentsec/guards/cloudwatch_log_group_not_kms_encrypted.py +112 -0
  173. ai_agent_security-0.22.2/agentsec/guards/code_injection_eval_exec.py +271 -0
  174. ai_agent_security-0.22.2/agentsec/guards/command_injection.py +321 -0
  175. ai_agent_security-0.22.2/agentsec/guards/compose_connection_string_credential.py +182 -0
  176. ai_agent_security-0.22.2/agentsec/guards/compose_credential_env_literal.py +231 -0
  177. ai_agent_security-0.22.2/agentsec/guards/compose_db_port_exposed.py +289 -0
  178. ai_agent_security-0.22.2/agentsec/guards/compose_dns_bypass.py +277 -0
  179. ai_agent_security-0.22.2/agentsec/guards/compose_image_digest_missing.py +132 -0
  180. ai_agent_security-0.22.2/agentsec/guards/compose_logging_disabled.py +120 -0
  181. ai_agent_security-0.22.2/agentsec/guards/compose_no_network_segmentation.py +173 -0
  182. ai_agent_security-0.22.2/agentsec/guards/compose_no_new_privileges.py +158 -0
  183. ai_agent_security-0.22.2/agentsec/guards/compose_resource_limits_absent.py +135 -0
  184. ai_agent_security-0.22.2/agentsec/guards/compose_sensitive_host_mount.py +188 -0
  185. ai_agent_security-0.22.2/agentsec/guards/compose_shared_mount_propagation.py +144 -0
  186. ai_agent_security-0.22.2/agentsec/guards/compose_tmpfs_insecure_options.py +150 -0
  187. ai_agent_security-0.22.2/agentsec/guards/compose_user_directive_missing.py +251 -0
  188. ai_agent_security-0.22.2/agentsec/guards/compose_writable_host_root_mount.py +203 -0
  189. ai_agent_security-0.22.2/agentsec/guards/compose_writable_root_filesystem.py +138 -0
  190. ai_agent_security-0.22.2/agentsec/guards/content_type_magic_bytes.py +119 -0
  191. ai_agent_security-0.22.2/agentsec/guards/cors_wildcard.py +166 -0
  192. ai_agent_security-0.22.2/agentsec/guards/credential_file_path_reference.py +217 -0
  193. ai_agent_security-0.22.2/agentsec/guards/crewai_rce_chain.py +290 -0
  194. ai_agent_security-0.22.2/agentsec/guards/cron_systemd_persistence_write.py +248 -0
  195. ai_agent_security-0.22.2/agentsec/guards/csv_injection.py +212 -0
  196. ai_agent_security-0.22.2/agentsec/guards/ctypes_load_downloaded_library.py +263 -0
  197. ai_agent_security-0.22.2/agentsec/guards/curl_pipe_to_shell.py +250 -0
  198. ai_agent_security-0.22.2/agentsec/guards/dataset_injection.py +374 -0
  199. ai_agent_security-0.22.2/agentsec/guards/datastore_auth_absent.py +308 -0
  200. ai_agent_security-0.22.2/agentsec/guards/db_role_privilege_excessive.py +363 -0
  201. ai_agent_security-0.22.2/agentsec/guards/debug_default_off.py +98 -0
  202. ai_agent_security-0.22.2/agentsec/guards/debug_route_exposed.py +232 -0
  203. ai_agent_security-0.22.2/agentsec/guards/default_service_credential.py +484 -0
  204. ai_agent_security-0.22.2/agentsec/guards/definer_dynamic_sql.py +246 -0
  205. ai_agent_security-0.22.2/agentsec/guards/definer_function_grants.py +381 -0
  206. ai_agent_security-0.22.2/agentsec/guards/dependency_version_floor.py +889 -0
  207. ai_agent_security-0.22.2/agentsec/guards/destructive_filesystem_command.py +145 -0
  208. ai_agent_security-0.22.2/agentsec/guards/dns_egress_allowlist.py +115 -0
  209. ai_agent_security-0.22.2/agentsec/guards/dns_exfiltration_pattern.py +184 -0
  210. ai_agent_security-0.22.2/agentsec/guards/docker_add_misuse.py +149 -0
  211. ai_agent_security-0.22.2/agentsec/guards/docker_apt_update_not_alone.py +140 -0
  212. ai_agent_security-0.22.2/agentsec/guards/docker_expose_ssh.py +123 -0
  213. ai_agent_security-0.22.2/agentsec/guards/docker_latest_base_tag.py +180 -0
  214. ai_agent_security-0.22.2/agentsec/guards/docker_nonroot_user.py +150 -0
  215. ai_agent_security-0.22.2/agentsec/guards/docker_privileged_flags.py +318 -0
  216. ai_agent_security-0.22.2/agentsec/guards/docker_run_sudo.py +127 -0
  217. ai_agent_security-0.22.2/agentsec/guards/docker_socket_access.py +133 -0
  218. ai_agent_security-0.22.2/agentsec/guards/dockerfile_credential_in_instruction.py +189 -0
  219. ai_agent_security-0.22.2/agentsec/guards/dockerfile_run_isolation_weakening.py +196 -0
  220. ai_agent_security-0.22.2/agentsec/guards/dockerfile_workdir_sensitive_path.py +105 -0
  221. ai_agent_security-0.22.2/agentsec/guards/dom_xss_sinks.py +974 -0
  222. ai_agent_security-0.22.2/agentsec/guards/download_execute_chain.py +310 -0
  223. ai_agent_security-0.22.2/agentsec/guards/dynamic_import_non_literal.py +155 -0
  224. ai_agent_security-0.22.2/agentsec/guards/dynamodb_table_not_encrypted.py +134 -0
  225. ai_agent_security-0.22.2/agentsec/guards/ebs_volume_not_encrypted.py +115 -0
  226. ai_agent_security-0.22.2/agentsec/guards/ecr_repository_hygiene.py +232 -0
  227. ai_agent_security-0.22.2/agentsec/guards/ecr_repository_not_kms_encrypted.py +123 -0
  228. ai_agent_security-0.22.2/agentsec/guards/ecs_efs_volume_transit_encryption_disabled.py +164 -0
  229. ai_agent_security-0.22.2/agentsec/guards/efs_file_system_not_encrypted.py +118 -0
  230. ai_agent_security-0.22.2/agentsec/guards/elasticache_transit_encryption_disabled.py +132 -0
  231. ai_agent_security-0.22.2/agentsec/guards/electron_security_misconfig.py +209 -0
  232. ai_agent_security-0.22.2/agentsec/guards/empty_password_in_config.py +240 -0
  233. ai_agent_security-0.22.2/agentsec/guards/env_file_not_gitignored.py +155 -0
  234. ai_agent_security-0.22.2/agentsec/guards/env_secret_console_log.py +188 -0
  235. ai_agent_security-0.22.2/agentsec/guards/env_secret_in_prompt.py +177 -0
  236. ai_agent_security-0.22.2/agentsec/guards/env_secret_logged.py +234 -0
  237. ai_agent_security-0.22.2/agentsec/guards/environ_dump_to_network.py +437 -0
  238. ai_agent_security-0.22.2/agentsec/guards/error_response_info_leak.py +779 -0
  239. ai_agent_security-0.22.2/agentsec/guards/fail2ban_absent.py +107 -0
  240. ai_agent_security-0.22.2/agentsec/guards/fail_safe_exception.py +203 -0
  241. ai_agent_security-0.22.2/agentsec/guards/file_system_race.py +159 -0
  242. ai_agent_security-0.22.2/agentsec/guards/forwarded_header_blind_trust.py +484 -0
  243. ai_agent_security-0.22.2/agentsec/guards/frontend_xss.py +166 -0
  244. ai_agent_security-0.22.2/agentsec/guards/fulfill_on_completed_not_created.py +91 -0
  245. ai_agent_security-0.22.2/agentsec/guards/gcp_kms_key_public.py +195 -0
  246. ai_agent_security-0.22.2/agentsec/guards/gcp_kms_rotation_period_not_set.py +126 -0
  247. ai_agent_security-0.22.2/agentsec/guards/gcp_sql_publicly_accessible.py +242 -0
  248. ai_agent_security-0.22.2/agentsec/guards/git_in_docker.py +188 -0
  249. ai_agent_security-0.22.2/agentsec/guards/go_build_supply_chain_footgun.py +183 -0
  250. ai_agent_security-0.22.2/agentsec/guards/go_pprof_exposed.py +200 -0
  251. ai_agent_security-0.22.2/agentsec/guards/go_sql_injection.py +288 -0
  252. ai_agent_security-0.22.2/agentsec/guards/go_ssh_host_key_trust.py +146 -0
  253. ai_agent_security-0.22.2/agentsec/guards/go_template_html_escaping.py +346 -0
  254. ai_agent_security-0.22.2/agentsec/guards/go_tls_verify_disabled.py +160 -0
  255. ai_agent_security-0.22.2/agentsec/guards/graphql_mutation_idor.py +223 -0
  256. ai_agent_security-0.22.2/agentsec/guards/guardrail_architecture.py +963 -0
  257. ai_agent_security-0.22.2/agentsec/guards/hardcoded_llm_provider_key.py +301 -0
  258. ai_agent_security-0.22.2/agentsec/guards/hardcoded_password_default_arg.py +125 -0
  259. ai_agent_security-0.22.2/agentsec/guards/hardcoded_private_key_in_source.py +291 -0
  260. ai_agent_security-0.22.2/agentsec/guards/header_injection.py +153 -0
  261. ai_agent_security-0.22.2/agentsec/guards/hidden_executable_dotfile.py +98 -0
  262. ai_agent_security-0.22.2/agentsec/guards/homoglyph_source_chars.py +366 -0
  263. ai_agent_security-0.22.2/agentsec/guards/hostname_regex_unsafe.py +198 -0
  264. ai_agent_security-0.22.2/agentsec/guards/iac_open_ingress.py +111 -0
  265. ai_agent_security-0.22.2/agentsec/guards/iam_escalation_action_no_condition.py +285 -0
  266. ai_agent_security-0.22.2/agentsec/guards/iam_managed_admin_policy_attached.py +189 -0
  267. ai_agent_security-0.22.2/agentsec/guards/iam_notaction_with_allow.py +166 -0
  268. ai_agent_security-0.22.2/agentsec/guards/iam_policy_attached_to_user_directly.py +144 -0
  269. ai_agent_security-0.22.2/agentsec/guards/iam_resource_scopable_wildcard.py +181 -0
  270. ai_agent_security-0.22.2/agentsec/guards/iam_role_public_assume.py +529 -0
  271. ai_agent_security-0.22.2/agentsec/guards/iam_service_wildcard.py +156 -0
  272. ai_agent_security-0.22.2/agentsec/guards/iam_wildcard.py +241 -0
  273. ai_agent_security-0.22.2/agentsec/guards/incomplete_url_scheme_check.py +143 -0
  274. ai_agent_security-0.22.2/agentsec/guards/incomplete_url_substring_sanitization.py +189 -0
  275. ai_agent_security-0.22.2/agentsec/guards/incorrect_suffix_check.py +135 -0
  276. ai_agent_security-0.22.2/agentsec/guards/input_delimiters.py +180 -0
  277. ai_agent_security-0.22.2/agentsec/guards/insecure_cookies.py +309 -0
  278. ai_agent_security-0.22.2/agentsec/guards/insecure_file_permissions.py +151 -0
  279. ai_agent_security-0.22.2/agentsec/guards/insecure_tempfile_mktemp.py +99 -0
  280. ai_agent_security-0.22.2/agentsec/guards/invisible_unicode.py +202 -0
  281. ai_agent_security-0.22.2/agentsec/guards/java_command_injection.py +187 -0
  282. ai_agent_security-0.22.2/agentsec/guards/java_hardcoded_password_key.py +214 -0
  283. ai_agent_security-0.22.2/agentsec/guards/java_ldap_injection.py +157 -0
  284. ai_agent_security-0.22.2/agentsec/guards/java_path_traversal.py +231 -0
  285. ai_agent_security-0.22.2/agentsec/guards/java_sql_injection.py +249 -0
  286. ai_agent_security-0.22.2/agentsec/guards/java_ssrf.py +177 -0
  287. ai_agent_security-0.22.2/agentsec/guards/java_tls_verify_disabled.py +228 -0
  288. ai_agent_security-0.22.2/agentsec/guards/java_unsafe_deserialization.py +196 -0
  289. ai_agent_security-0.22.2/agentsec/guards/java_weak_crypto.py +169 -0
  290. ai_agent_security-0.22.2/agentsec/guards/java_xxe_unsafe_parsing.py +191 -0
  291. ai_agent_security-0.22.2/agentsec/guards/js_buffer_noassert.py +114 -0
  292. ai_agent_security-0.22.2/agentsec/guards/js_client_side_open_redirect.py +279 -0
  293. ai_agent_security-0.22.2/agentsec/guards/js_code_injection.py +346 -0
  294. ai_agent_security-0.22.2/agentsec/guards/js_command_injection.py +774 -0
  295. ai_agent_security-0.22.2/agentsec/guards/js_cors_wildcard.py +324 -0
  296. ai_agent_security-0.22.2/agentsec/guards/js_helmet_header_disabled.py +127 -0
  297. ai_agent_security-0.22.2/agentsec/guards/js_host_header_email_link.py +139 -0
  298. ai_agent_security-0.22.2/agentsec/guards/js_http_to_file_access.py +135 -0
  299. ai_agent_security-0.22.2/agentsec/guards/js_insecure_download_sensitive_file.py +110 -0
  300. ai_agent_security-0.22.2/agentsec/guards/js_loop_bound_injection.py +129 -0
  301. ai_agent_security-0.22.2/agentsec/guards/js_path_traversal.py +328 -0
  302. ai_agent_security-0.22.2/agentsec/guards/js_private_file_exposure.py +258 -0
  303. ai_agent_security-0.22.2/agentsec/guards/js_prototype_pollution.py +153 -0
  304. ai_agent_security-0.22.2/agentsec/guards/js_regex_injection_dos.py +137 -0
  305. ai_agent_security-0.22.2/agentsec/guards/js_secure_cookies.py +237 -0
  306. ai_agent_security-0.22.2/agentsec/guards/js_security_headers_absent.py +198 -0
  307. ai_agent_security-0.22.2/agentsec/guards/js_server_side_open_redirect.py +223 -0
  308. ai_agent_security-0.22.2/agentsec/guards/js_sql_injection.py +201 -0
  309. ai_agent_security-0.22.2/agentsec/guards/js_ssrf.py +149 -0
  310. ai_agent_security-0.22.2/agentsec/guards/js_supply_chain.py +800 -0
  311. ai_agent_security-0.22.2/agentsec/guards/js_system_prompt_injection.py +229 -0
  312. ai_agent_security-0.22.2/agentsec/guards/js_weak_crypto.py +205 -0
  313. ai_agent_security-0.22.2/agentsec/guards/js_xxe_unsafe_parsing.py +179 -0
  314. ai_agent_security-0.22.2/agentsec/guards/jsx_href_scheme.py +445 -0
  315. ai_agent_security-0.22.2/agentsec/guards/jwt_alg.py +239 -0
  316. ai_agent_security-0.22.2/agentsec/guards/jwt_claims_validated.py +163 -0
  317. ai_agent_security-0.22.2/agentsec/guards/jwt_exp_too_long.py +251 -0
  318. ai_agent_security-0.22.2/agentsec/guards/jwt_key_source_allowlist.py +262 -0
  319. ai_agent_security-0.22.2/agentsec/guards/k8s_allow_privilege_escalation.py +190 -0
  320. ai_agent_security-0.22.2/agentsec/guards/k8s_automount_serviceaccount_token.py +85 -0
  321. ai_agent_security-0.22.2/agentsec/guards/k8s_default_namespace.py +131 -0
  322. ai_agent_security-0.22.2/agentsec/guards/k8s_docker_sock_mount.py +79 -0
  323. ai_agent_security-0.22.2/agentsec/guards/k8s_host_namespace_sharing.py +90 -0
  324. ai_agent_security-0.22.2/agentsec/guards/k8s_hostpath_writable_mount.py +215 -0
  325. ai_agent_security-0.22.2/agentsec/guards/k8s_privileged_capabilities.py +136 -0
  326. ai_agent_security-0.22.2/agentsec/guards/k8s_privileged_container.py +79 -0
  327. ai_agent_security-0.22.2/agentsec/guards/k8s_rbac_anonymous_binding.py +106 -0
  328. ai_agent_security-0.22.2/agentsec/guards/k8s_rbac_cluster_admin_binding.py +145 -0
  329. ai_agent_security-0.22.2/agentsec/guards/k8s_rbac_dangerous_verb.py +426 -0
  330. ai_agent_security-0.22.2/agentsec/guards/k8s_rbac_wildcard_rule.py +151 -0
  331. ai_agent_security-0.22.2/agentsec/guards/k8s_readonly_root_filesystem.py +82 -0
  332. ai_agent_security-0.22.2/agentsec/guards/k8s_resource_limits_absent.py +128 -0
  333. ai_agent_security-0.22.2/agentsec/guards/k8s_run_as_non_root.py +91 -0
  334. ai_agent_security-0.22.2/agentsec/guards/k8s_seccomp_apparmor_unconfined.py +112 -0
  335. ai_agent_security-0.22.2/agentsec/guards/k8s_unmasked_proc_mount.py +96 -0
  336. ai_agent_security-0.22.2/agentsec/guards/k8s_unsafe_sysctl.py +159 -0
  337. ai_agent_security-0.22.2/agentsec/guards/keylogging_pattern.py +165 -0
  338. ai_agent_security-0.22.2/agentsec/guards/kinesis_stream_not_encrypted.py +129 -0
  339. ai_agent_security-0.22.2/agentsec/guards/kms_key_disabled.py +108 -0
  340. ai_agent_security-0.22.2/agentsec/guards/kms_key_rotation_not_enabled.py +145 -0
  341. ai_agent_security-0.22.2/agentsec/guards/langchain_load_prompt.py +187 -0
  342. ai_agent_security-0.22.2/agentsec/guards/langchain_prompt_template_injection.py +202 -0
  343. ai_agent_security-0.22.2/agentsec/guards/langchain_serialization.py +149 -0
  344. ai_agent_security-0.22.2/agentsec/guards/langchain_unsafe_chain.py +193 -0
  345. ai_agent_security-0.22.2/agentsec/guards/ldap_injection.py +142 -0
  346. ai_agent_security-0.22.2/agentsec/guards/lethal_trifecta_guard.py +31 -0
  347. ai_agent_security-0.22.2/agentsec/guards/llm_input_size_cap.py +266 -0
  348. ai_agent_security-0.22.2/agentsec/guards/llm_json_output_unvalidated.py +445 -0
  349. ai_agent_security-0.22.2/agentsec/guards/llm_output_html_sink.py +288 -0
  350. ai_agent_security-0.22.2/agentsec/guards/llm_output_secrets_unscanned.py +322 -0
  351. ai_agent_security-0.22.2/agentsec/guards/llm_output_to_sink.py +301 -0
  352. ai_agent_security-0.22.2/agentsec/guards/llm_query_engine_execution.py +412 -0
  353. ai_agent_security-0.22.2/agentsec/guards/llm_rate_limit_absent.py +277 -0
  354. ai_agent_security-0.22.2/agentsec/guards/llm_response_logged.py +158 -0
  355. ai_agent_security-0.22.2/agentsec/guards/llm_tool_dynamic_dispatch.py +300 -0
  356. ai_agent_security-0.22.2/agentsec/guards/llm_tool_result_leak.py +546 -0
  357. ai_agent_security-0.22.2/agentsec/guards/log_injection.py +347 -0
  358. ai_agent_security-0.22.2/agentsec/guards/markdown_render_xss.py +276 -0
  359. ai_agent_security-0.22.2/agentsec/guards/mass_assignment.py +207 -0
  360. ai_agent_security-0.22.2/agentsec/guards/matview_exposed.py +266 -0
  361. ai_agent_security-0.22.2/agentsec/guards/mcp_apps_ui_isolation.py +185 -0
  362. ai_agent_security-0.22.2/agentsec/guards/mcp_config_security.py +1578 -0
  363. ai_agent_security-0.22.2/agentsec/guards/mcp_env_placeholder_exfil.py +441 -0
  364. ai_agent_security-0.22.2/agentsec/guards/mcp_hardcoded_credential.py +314 -0
  365. ai_agent_security-0.22.2/agentsec/guards/mcp_marketplace_fetch_stdio_spawn.py +296 -0
  366. ai_agent_security-0.22.2/agentsec/guards/mcp_noauth_default.py +405 -0
  367. ai_agent_security-0.22.2/agentsec/guards/mcp_oauth_flow_hardening.py +799 -0
  368. ai_agent_security-0.22.2/agentsec/guards/mcp_oauth_scope_creep.py +197 -0
  369. ai_agent_security-0.22.2/agentsec/guards/mcp_overprivileged_scope.py +157 -0
  370. ai_agent_security-0.22.2/agentsec/guards/mcp_raw_execution_tool_name.py +201 -0
  371. ai_agent_security-0.22.2/agentsec/guards/mcp_routing_desync.py +288 -0
  372. ai_agent_security-0.22.2/agentsec/guards/mcp_sampling_no_consent.py +289 -0
  373. ai_agent_security-0.22.2/agentsec/guards/mcp_sandbox_self_disable.py +262 -0
  374. ai_agent_security-0.22.2/agentsec/guards/mcp_server_card_integrity.py +240 -0
  375. ai_agent_security-0.22.2/agentsec/guards/mcp_session_id_security.py +207 -0
  376. ai_agent_security-0.22.2/agentsec/guards/mcp_ssrf_unvalidated_destination.py +366 -0
  377. ai_agent_security-0.22.2/agentsec/guards/mcp_stateless_migration.py +290 -0
  378. ai_agent_security-0.22.2/agentsec/guards/mcp_stdio_no_sanitizer.py +326 -0
  379. ai_agent_security-0.22.2/agentsec/guards/mcp_tasks_lifecycle.py +278 -0
  380. ai_agent_security-0.22.2/agentsec/guards/mcp_tool_description_injection.py +1811 -0
  381. ai_agent_security-0.22.2/agentsec/guards/mcp_tool_env_inheritance.py +165 -0
  382. ai_agent_security-0.22.2/agentsec/guards/mcp_tool_path_traversal.py +530 -0
  383. ai_agent_security-0.22.2/agentsec/guards/mcp_tool_unverified.py +485 -0
  384. ai_agent_security-0.22.2/agentsec/guards/mcp_toolgate_asymmetry.py +398 -0
  385. ai_agent_security-0.22.2/agentsec/guards/mcp_tools_list_unbounded.py +376 -0
  386. ai_agent_security-0.22.2/agentsec/guards/mcp_transport_dns_rebinding.py +256 -0
  387. ai_agent_security-0.22.2/agentsec/guards/mcp_transport_flip.py +175 -0
  388. ai_agent_security-0.22.2/agentsec/guards/mcp_transport_no_auth.py +371 -0
  389. ai_agent_security-0.22.2/agentsec/guards/mcp_transport_session_unauth.py +263 -0
  390. ai_agent_security-0.22.2/agentsec/guards/mcp_tunnel_config_security.py +553 -0
  391. ai_agent_security-0.22.2/agentsec/guards/mcp_twin_route_auth_asymmetry.py +324 -0
  392. ai_agent_security-0.22.2/agentsec/guards/mcp_unsafe_auth_url_launch.py +248 -0
  393. ai_agent_security-0.22.2/agentsec/guards/ml_artifact_committed.py +104 -0
  394. ai_agent_security-0.22.2/agentsec/guards/ml_gguf_template_injection.py +471 -0
  395. ai_agent_security-0.22.2/agentsec/guards/ml_keras_lambda_rce.py +589 -0
  396. ai_agent_security-0.22.2/agentsec/guards/ml_model_provenance.py +305 -0
  397. ai_agent_security-0.22.2/agentsec/guards/ml_onnx_external_data.py +534 -0
  398. ai_agent_security-0.22.2/agentsec/guards/ml_pickle_dangerous_global.py +510 -0
  399. ai_agent_security-0.22.2/agentsec/guards/msk_cluster_transit_encryption_disabled.py +210 -0
  400. ai_agent_security-0.22.2/agentsec/guards/multi_agent_prompt_origin.py +405 -0
  401. ai_agent_security-0.22.2/agentsec/guards/next_api_route_auth_missing.py +249 -0
  402. ai_agent_security-0.22.2/agentsec/guards/next_public_client_secret.py +145 -0
  403. ai_agent_security-0.22.2/agentsec/guards/next_server_action_no_auth.py +172 -0
  404. ai_agent_security-0.22.2/agentsec/guards/no_cache_on_sensitive.py +765 -0
  405. ai_agent_security-0.22.2/agentsec/guards/no_pan_stored.py +151 -0
  406. ai_agent_security-0.22.2/agentsec/guards/nosql_injection_js.py +217 -0
  407. ai_agent_security-0.22.2/agentsec/guards/nosql_metadata_injection.py +156 -0
  408. ai_agent_security-0.22.2/agentsec/guards/npm_ignore_scripts.py +308 -0
  409. ai_agent_security-0.22.2/agentsec/guards/npm_install_script_network.py +221 -0
  410. ai_agent_security-0.22.2/agentsec/guards/obfuscated_payload_execution.py +413 -0
  411. ai_agent_security-0.22.2/agentsec/guards/open_redirect.py +512 -0
  412. ai_agent_security-0.22.2/agentsec/guards/opensearch_domain_encryption_disabled.py +209 -0
  413. ai_agent_security-0.22.2/agentsec/guards/overly_large_regex_range.py +151 -0
  414. ai_agent_security-0.22.2/agentsec/guards/paramiko_host_key_trust.py +121 -0
  415. ai_agent_security-0.22.2/agentsec/guards/path_prefix_authz_bypass.py +168 -0
  416. ai_agent_security-0.22.2/agentsec/guards/path_traversal.py +609 -0
  417. ai_agent_security-0.22.2/agentsec/guards/payments_user_scope.py +163 -0
  418. ai_agent_security-0.22.2/agentsec/guards/pdf_embedded_javascript.py +163 -0
  419. ai_agent_security-0.22.2/agentsec/guards/pg_anon_grant.py +278 -0
  420. ai_agent_security-0.22.2/agentsec/guards/pg_default_privileges_public.py +153 -0
  421. ai_agent_security-0.22.2/agentsec/guards/pg_extension_in_public.py +174 -0
  422. ai_agent_security-0.22.2/agentsec/guards/pg_foreign_table_exposed.py +161 -0
  423. ai_agent_security-0.22.2/agentsec/guards/pg_function_immutable_reads_session.py +229 -0
  424. ai_agent_security-0.22.2/agentsec/guards/pg_function_leakproof.py +137 -0
  425. ai_agent_security-0.22.2/agentsec/guards/pg_function_search_path.py +216 -0
  426. ai_agent_security-0.22.2/agentsec/guards/pg_graphql_table_exposed.py +182 -0
  427. ai_agent_security-0.22.2/agentsec/guards/pg_rls_no_policy.py +307 -0
  428. ai_agent_security-0.22.2/agentsec/guards/pg_rls_not_forced.py +137 -0
  429. ai_agent_security-0.22.2/agentsec/guards/pg_role_bypassrls.py +126 -0
  430. ai_agent_security-0.22.2/agentsec/guards/pg_role_bypassrls_membership.py +181 -0
  431. ai_agent_security-0.22.2/agentsec/guards/pg_security_definer_view.py +287 -0
  432. ai_agent_security-0.22.2/agentsec/guards/pg_ssl_required.py +207 -0
  433. ai_agent_security-0.22.2/agentsec/guards/pgmq_queue_exposed_in_api.py +113 -0
  434. ai_agent_security-0.22.2/agentsec/guards/php_code_injection.py +401 -0
  435. ai_agent_security-0.22.2/agentsec/guards/php_command_injection.py +246 -0
  436. ai_agent_security-0.22.2/agentsec/guards/php_extract_superglobal_overwrite.py +124 -0
  437. ai_agent_security-0.22.2/agentsec/guards/php_file_inclusion.py +182 -0
  438. ai_agent_security-0.22.2/agentsec/guards/php_preg_replace_eval_modifier.py +122 -0
  439. ai_agent_security-0.22.2/agentsec/guards/php_reflected_xss.py +141 -0
  440. ai_agent_security-0.22.2/agentsec/guards/php_sql_injection.py +182 -0
  441. ai_agent_security-0.22.2/agentsec/guards/php_tls_verify_disabled.py +167 -0
  442. ai_agent_security-0.22.2/agentsec/guards/php_unsafe_deserialization.py +177 -0
  443. ai_agent_security-0.22.2/agentsec/guards/pii_llm_roundtrip.py +218 -0
  444. ai_agent_security-0.22.2/agentsec/guards/plugin_security.py +738 -0
  445. ai_agent_security-0.22.2/agentsec/guards/policy_exists_rls_disabled.py +216 -0
  446. ai_agent_security-0.22.2/agentsec/guards/policy_no_role_scope.py +457 -0
  447. ai_agent_security-0.22.2/agentsec/guards/policy_truncation.py +242 -0
  448. ai_agent_security-0.22.2/agentsec/guards/postmessage_origin.py +244 -0
  449. ai_agent_security-0.22.2/agentsec/guards/privileged_field_assignment.py +205 -0
  450. ai_agent_security-0.22.2/agentsec/guards/prompt_string_interp.py +556 -0
  451. ai_agent_security-0.22.2/agentsec/guards/proxy_tls_hardening.py +212 -0
  452. ai_agent_security-0.22.2/agentsec/guards/public_table_rls.py +340 -0
  453. ai_agent_security-0.22.2/agentsec/guards/pydantic_model_construct.py +245 -0
  454. ai_agent_security-0.22.2/agentsec/guards/python_supply_chain.py +569 -0
  455. ai_agent_security-0.22.2/agentsec/guards/rag_isolation.py +314 -0
  456. ai_agent_security-0.22.2/agentsec/guards/rag_no_instruction_filter.py +892 -0
  457. ai_agent_security-0.22.2/agentsec/guards/rag_scoped_retrieval.py +291 -0
  458. ai_agent_security-0.22.2/agentsec/guards/rag_trust_boundary.py +204 -0
  459. ai_agent_security-0.22.2/agentsec/guards/rate_limit_no_persistent_store.py +237 -0
  460. ai_agent_security-0.22.2/agentsec/guards/rate_limit_no_user_key.py +206 -0
  461. ai_agent_security-0.22.2/agentsec/guards/rds_backup_retention_too_short.py +205 -0
  462. ai_agent_security-0.22.2/agentsec/guards/rds_publicly_accessible.py +139 -0
  463. ai_agent_security-0.22.2/agentsec/guards/rds_storage_not_encrypted.py +214 -0
  464. ai_agent_security-0.22.2/agentsec/guards/react_native_insecure_token_storage.py +160 -0
  465. ai_agent_security-0.22.2/agentsec/guards/redis_glob_pattern_injection.py +181 -0
  466. ai_agent_security-0.22.2/agentsec/guards/redos.py +549 -0
  467. ai_agent_security-0.22.2/agentsec/guards/refresh_token_plaintext.py +169 -0
  468. ai_agent_security-0.22.2/agentsec/guards/regex_html_sanitizer.py +182 -0
  469. ai_agent_security-0.22.2/agentsec/guards/request_body_size_unbounded.py +219 -0
  470. ai_agent_security-0.22.2/agentsec/guards/request_model_extra_forbid.py +220 -0
  471. ai_agent_security-0.22.2/agentsec/guards/response_model_set.py +382 -0
  472. ai_agent_security-0.22.2/agentsec/guards/reverse_shell_pattern.py +189 -0
  473. ai_agent_security-0.22.2/agentsec/guards/rls_anon_write_access.py +134 -0
  474. ai_agent_security-0.22.2/agentsec/guards/rls_auth_email_lockout.py +120 -0
  475. ai_agent_security-0.22.2/agentsec/guards/rls_auth_role_unknown_literal.py +417 -0
  476. ai_agent_security-0.22.2/agentsec/guards/rls_auth_uid_unwrapped.py +249 -0
  477. ai_agent_security-0.22.2/agentsec/guards/rls_auth_users_unbound_exists.py +151 -0
  478. ai_agent_security-0.22.2/agentsec/guards/rls_current_setting_unqualified.py +135 -0
  479. ai_agent_security-0.22.2/agentsec/guards/rls_current_user_tenant_key.py +149 -0
  480. ai_agent_security-0.22.2/agentsec/guards/rls_fkey_to_auth_non_primary.py +136 -0
  481. ai_agent_security-0.22.2/agentsec/guards/rls_hardcoded_tenant_literal.py +147 -0
  482. ai_agent_security-0.22.2/agentsec/guards/rls_inverted_auth_check.py +208 -0
  483. ai_agent_security-0.22.2/agentsec/guards/rls_multiple_permissive_policies.py +157 -0
  484. ai_agent_security-0.22.2/agentsec/guards/rls_no_user_metadata_claim.py +112 -0
  485. ai_agent_security-0.22.2/agentsec/guards/rls_partition_inherits_bypass.py +172 -0
  486. ai_agent_security-0.22.2/agentsec/guards/rls_pattern_match_auth_context.py +143 -0
  487. ai_agent_security-0.22.2/agentsec/guards/rls_permissive_policy.py +363 -0
  488. ai_agent_security-0.22.2/agentsec/guards/rls_realtime_published_no_rls.py +160 -0
  489. ai_agent_security-0.22.2/agentsec/guards/rls_restrictive_only.py +161 -0
  490. ai_agent_security-0.22.2/agentsec/guards/rls_update_privileged_column.py +368 -0
  491. ai_agent_security-0.22.2/agentsec/guards/ruby_command_injection.py +261 -0
  492. ai_agent_security-0.22.2/agentsec/guards/ruby_dangerous_dispatch.py +346 -0
  493. ai_agent_security-0.22.2/agentsec/guards/ruby_mass_assignment.py +193 -0
  494. ai_agent_security-0.22.2/agentsec/guards/ruby_sql_injection.py +354 -0
  495. ai_agent_security-0.22.2/agentsec/guards/ruby_tls_verify_disabled.py +154 -0
  496. ai_agent_security-0.22.2/agentsec/guards/ruby_unsafe_deserialization.py +188 -0
  497. ai_agent_security-0.22.2/agentsec/guards/ruby_unsafe_reflection.py +199 -0
  498. ai_agent_security-0.22.2/agentsec/guards/ruby_weak_crypto.py +125 -0
  499. ai_agent_security-0.22.2/agentsec/guards/s3_bucket_canned_acl.py +208 -0
  500. ai_agent_security-0.22.2/agentsec/guards/s3_bucket_insecure_transport_allowed.py +287 -0
  501. ai_agent_security-0.22.2/agentsec/guards/s3_bucket_policy_wildcard_principal.py +234 -0
  502. ai_agent_security-0.22.2/agentsec/guards/s3_mfa_delete_disabled.py +283 -0
  503. ai_agent_security-0.22.2/agentsec/guards/s3_public_access_block_disabled.py +160 -0
  504. ai_agent_security-0.22.2/agentsec/guards/sagemaker_notebook_not_encrypted.py +126 -0
  505. ai_agent_security-0.22.2/agentsec/guards/sandbox_denylist_bypass.py +261 -0
  506. ai_agent_security-0.22.2/agentsec/guards/secret_in_url_query.py +295 -0
  507. ai_agent_security-0.22.2/agentsec/guards/secret_str_serialized.py +290 -0
  508. ai_agent_security-0.22.2/agentsec/guards/secrets_manager_default_kms.py +134 -0
  509. ai_agent_security-0.22.2/agentsec/guards/security_headers.py +133 -0
  510. ai_agent_security-0.22.2/agentsec/guards/sensitive_columns.py +280 -0
  511. ai_agent_security-0.22.2/agentsec/guards/sensitive_logging.py +276 -0
  512. ai_agent_security-0.22.2/agentsec/guards/service_role_key.py +162 -0
  513. ai_agent_security-0.22.2/agentsec/guards/session_fixation_no_regenerate.py +136 -0
  514. ai_agent_security-0.22.2/agentsec/guards/session_no_csrf.py +256 -0
  515. ai_agent_security-0.22.2/agentsec/guards/setup_network_call.py +203 -0
  516. ai_agent_security-0.22.2/agentsec/guards/sfn_observability.py +198 -0
  517. ai_agent_security-0.22.2/agentsec/guards/shared_resource_authz.py +245 -0
  518. ai_agent_security-0.22.2/agentsec/guards/skill_poisoning.py +340 -0
  519. ai_agent_security-0.22.2/agentsec/guards/skill_untrusted_exec_path.py +314 -0
  520. ai_agent_security-0.22.2/agentsec/guards/slopsquatting.py +312 -0
  521. ai_agent_security-0.22.2/agentsec/guards/sns_topic_not_encrypted.py +112 -0
  522. ai_agent_security-0.22.2/agentsec/guards/sql_race_check_then_insert.py +296 -0
  523. ai_agent_security-0.22.2/agentsec/guards/sqlalchemy_text_parameterized.py +153 -0
  524. ai_agent_security-0.22.2/agentsec/guards/sqs_queue_not_encrypted.py +123 -0
  525. ai_agent_security-0.22.2/agentsec/guards/ssh_allowlist_absent.py +99 -0
  526. ai_agent_security-0.22.2/agentsec/guards/sshd_hardening.py +142 -0
  527. ai_agent_security-0.22.2/agentsec/guards/ssrf_bracketed_ipv6_bypass.py +260 -0
  528. ai_agent_security-0.22.2/agentsec/guards/ssrf_dns_rebind_toctou.py +233 -0
  529. ai_agent_security-0.22.2/agentsec/guards/ssrf_general.py +531 -0
  530. ai_agent_security-0.22.2/agentsec/guards/ssrf_ipv6_bypass.py +113 -0
  531. ai_agent_security-0.22.2/agentsec/guards/ssrf_redirect_bypass.py +218 -0
  532. ai_agent_security-0.22.2/agentsec/guards/ssti.py +215 -0
  533. ai_agent_security-0.22.2/agentsec/guards/staticfiles_broad_mount.py +126 -0
  534. ai_agent_security-0.22.2/agentsec/guards/storage_no_rls.py +278 -0
  535. ai_agent_security-0.22.2/agentsec/guards/string_format_injection.py +169 -0
  536. ai_agent_security-0.22.2/agentsec/guards/stripe_webhook.py +696 -0
  537. ai_agent_security-0.22.2/agentsec/guards/supabase_anon_key_rls_reachable.py +185 -0
  538. ai_agent_security-0.22.2/agentsec/guards/supabase_filter_injection.py +185 -0
  539. ai_agent_security-0.22.2/agentsec/guards/supabase_storage_public.py +284 -0
  540. ai_agent_security-0.22.2/agentsec/guards/supabase_vault_exposure.py +883 -0
  541. ai_agent_security-0.22.2/agentsec/guards/supabase_vault_plaintext_leak.py +357 -0
  542. ai_agent_security-0.22.2/agentsec/guards/svg_embedded_script.py +113 -0
  543. ai_agent_security-0.22.2/agentsec/guards/system_prompt_exposure.py +375 -0
  544. ai_agent_security-0.22.2/agentsec/guards/system_prompt_leak.py +164 -0
  545. ai_agent_security-0.22.2/agentsec/guards/target_blank_noopener.py +210 -0
  546. ai_agent_security-0.22.2/agentsec/guards/terraform_hardcoded_secret_literal.py +362 -0
  547. ai_agent_security-0.22.2/agentsec/guards/tls_verify_disabled.py +315 -0
  548. ai_agent_security-0.22.2/agentsec/guards/token_in_localstorage.py +172 -0
  549. ai_agent_security-0.22.2/agentsec/guards/tool_callback_enforcement.py +1022 -0
  550. ai_agent_security-0.22.2/agentsec/guards/tool_chaining_exfil.py +208 -0
  551. ai_agent_security-0.22.2/agentsec/guards/trust_boundary.py +239 -0
  552. ai_agent_security-0.22.2/agentsec/guards/trusted_host_absent.py +143 -0
  553. ai_agent_security-0.22.2/agentsec/guards/truthy_ownership_check.py +341 -0
  554. ai_agent_security-0.22.2/agentsec/guards/unauthenticated_file_download.py +217 -0
  555. ai_agent_security-0.22.2/agentsec/guards/unawaited_async_truthy.py +209 -0
  556. ai_agent_security-0.22.2/agentsec/guards/unrestricted_file_upload.py +93 -0
  557. ai_agent_security-0.22.2/agentsec/guards/unsafe_deserialization.py +423 -0
  558. ai_agent_security-0.22.2/agentsec/guards/untrusted_package_install_source.py +181 -0
  559. ai_agent_security-0.22.2/agentsec/guards/upload_no_size_limit.py +219 -0
  560. ai_agent_security-0.22.2/agentsec/guards/upstream_response_unvalidated.py +368 -0
  561. ai_agent_security-0.22.2/agentsec/guards/version_floors.json +590 -0
  562. ai_agent_security-0.22.2/agentsec/guards/vite_client_secret.py +161 -0
  563. ai_agent_security-0.22.2/agentsec/guards/vite_sourcemap_prod.py +180 -0
  564. ai_agent_security-0.22.2/agentsec/guards/vscode_tasks_auto_exec.py +471 -0
  565. ai_agent_security-0.22.2/agentsec/guards/weak_crypto.py +216 -0
  566. ai_agent_security-0.22.2/agentsec/guards/weak_password_length_check.py +134 -0
  567. ai_agent_security-0.22.2/agentsec/guards/weak_secret_key_literal.py +151 -0
  568. ai_agent_security-0.22.2/agentsec/guards/webhook_idempotency.py +183 -0
  569. ai_agent_security-0.22.2/agentsec/guards/webhook_signature_not_verified.py +478 -0
  570. ai_agent_security-0.22.2/agentsec/guards/websocket_no_auth.py +252 -0
  571. ai_agent_security-0.22.2/agentsec/guards/websocket_origin.py +175 -0
  572. ai_agent_security-0.22.2/agentsec/guards/xpath_injection.py +118 -0
  573. ai_agent_security-0.22.2/agentsec/guards/xxe_safe.py +92 -0
  574. ai_agent_security-0.22.2/agentsec/guards/zip_bomb.py +175 -0
  575. ai_agent_security-0.22.2/agentsec/guards/zip_slip.py +273 -0
  576. ai_agent_security-0.22.2/agentsec/hostaudit/__init__.py +13 -0
  577. ai_agent_security-0.22.2/agentsec/hostaudit/audit.py +353 -0
  578. ai_agent_security-0.22.2/agentsec/hostaudit/probes.py +549 -0
  579. ai_agent_security-0.22.2/agentsec/ingest.py +396 -0
  580. ai_agent_security-0.22.2/agentsec/intake.py +241 -0
  581. ai_agent_security-0.22.2/agentsec/js_harden.py +163 -0
  582. ai_agent_security-0.22.2/agentsec/k8s.py +85 -0
  583. ai_agent_security-0.22.2/agentsec/kev.py +105 -0
  584. ai_agent_security-0.22.2/agentsec/live.py +534 -0
  585. ai_agent_security-0.22.2/agentsec/livescan.py +288 -0
  586. ai_agent_security-0.22.2/agentsec/net.py +231 -0
  587. ai_agent_security-0.22.2/agentsec/patterns.py +16 -0
  588. ai_agent_security-0.22.2/agentsec/pins.py +174 -0
  589. ai_agent_security-0.22.2/agentsec/prioritize.py +114 -0
  590. ai_agent_security-0.22.2/agentsec/python_harden.py +234 -0
  591. ai_agent_security-0.22.2/agentsec/reachability.py +183 -0
  592. ai_agent_security-0.22.2/agentsec/registry.py +1140 -0
  593. ai_agent_security-0.22.2/agentsec/report.py +298 -0
  594. ai_agent_security-0.22.2/agentsec/runners/__init__.py +8 -0
  595. ai_agent_security-0.22.2/agentsec/runners/bandit.py +88 -0
  596. ai_agent_security-0.22.2/agentsec/runners/base.py +363 -0
  597. ai_agent_security-0.22.2/agentsec/runners/eslint.py +217 -0
  598. ai_agent_security-0.22.2/agentsec/runners/gitleaks.py +69 -0
  599. ai_agent_security-0.22.2/agentsec/runners/go_osv_hygiene.py +414 -0
  600. ai_agent_security-0.22.2/agentsec/runners/hadolint.py +80 -0
  601. ai_agent_security-0.22.2/agentsec/runners/node_audit.py +160 -0
  602. ai_agent_security-0.22.2/agentsec/runners/pip_audit.py +107 -0
  603. ai_agent_security-0.22.2/agentsec/runners/react_doctor.py +198 -0
  604. ai_agent_security-0.22.2/agentsec/runners/scorecard.py +161 -0
  605. ai_agent_security-0.22.2/agentsec/runners/semgrep.py +127 -0
  606. ai_agent_security-0.22.2/agentsec/runners/trivy.py +230 -0
  607. ai_agent_security-0.22.2/agentsec/setup.py +705 -0
  608. ai_agent_security-0.22.2/agentsec/sql_state.py +214 -0
  609. ai_agent_security-0.22.2/agentsec/ssrf_fetch.py +175 -0
  610. ai_agent_security-0.22.2/agentsec/targets.py +116 -0
  611. ai_agent_security-0.22.2/agentsec/text_sanitize.py +188 -0
  612. ai_agent_security-0.22.2/agentsec/textio.py +22 -0
  613. ai_agent_security-0.22.2/agentsec/tool_version.py +200 -0
  614. ai_agent_security-0.22.2/agentsec/tooling.py +227 -0
  615. ai_agent_security-0.22.2/agentsec/triage.py +165 -0
  616. ai_agent_security-0.22.2/agentsec/triage_cli.py +465 -0
  617. ai_agent_security-0.22.2/agentsec/update_check.py +262 -0
  618. ai_agent_security-0.22.2/agentsec/walk.py +619 -0
  619. ai_agent_security-0.22.2/pyproject.toml +186 -0
@@ -0,0 +1,61 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ .eggs/
6
+ build/
7
+ dist/
8
+ .venv/
9
+ venv/
10
+ .mypy_cache/
11
+ .ruff_cache/
12
+ .pytest_cache/
13
+ .testmondata
14
+
15
+ # Tooling / local
16
+ *.log
17
+ .DS_Store
18
+ .env
19
+ .env.*
20
+ !.env.example
21
+
22
+ # scripts/validate-checklist.py's guard-emission cache (derived from the guard sources;
23
+ # regenerates itself in ~80s whenever a guard changes).
24
+ .checklist-validator-cache.json
25
+
26
+ # Audit outputs (generated)
27
+ *.sarif
28
+ audit-reports/
29
+ /tmp/
30
+ # corpus-scan output is a regenerable artifact, never repository state
31
+ corpus-out/
32
+ # The private corpus list (`corpus-scan --no-seeds --repos-file private-repos.txt`). CLAUDE.md tells
33
+ # contributors to curate private app repos here, so committing it would publish the paths/names of
34
+ # repos that are private by definition. The name is bound to the documented one by
35
+ # tests/test_corpus.py::test_documented_private_repos_file_is_gitignored.
36
+ private-repos.txt
37
+
38
+ # uv lock — agentsec is zero-runtime-dep; the dev env resolves from pyproject.
39
+ # A committed lock is an accidental artifact (drifts, 115KB). Keep it out (per CLAUDE.md).
40
+ uv.lock
41
+
42
+ # Local isolated-worktree scratch (Agent tool `isolation: "worktree"`, parallel builds) — each is
43
+ # its own git checkout, so a bare `git add -A` stages them as embedded-repo gitlinks, not content.
44
+ .claude/worktrees/
45
+ # Per-developer Claude Code permissions/settings. Untracked by design: the allowlist stores
46
+ # the LITERAL text of every approved command, so any secret ever passed inline on a command
47
+ # line is persisted here verbatim (this bit us: two entries held a live ghp_ token).
48
+ .claude/settings.local.json
49
+
50
+ # The Q8 soft-launch approach packet (infographic PNGs + repro guide + report), zipped
51
+ # for sending to an outside reviewer. A regenerable bundle of
52
+ # files already tracked individually — never repository state.
53
+ docs/*-packet.zip
54
+ # The trajectory-review changes packet sent back upstream (workflow template + patch +
55
+ # pinning test + CHANGES.md). Same shape as the packet above: a regenerable bundle of files
56
+ # already tracked individually — never repository state.
57
+ docs/trajectory-review-for-*.zip
58
+
59
+ # Plaintext private identifiers for the privacy sweep (#600). The tracked artifact is
60
+ # tests/privacy_terms.json (digests only); this file must never be committed.
61
+ .privacy-terms
@@ -0,0 +1,310 @@
1
+ # agentsec Release History
2
+
3
+ _Issue and PR numbers below (`#NNN`) refer to the maintainers' development tracker, not to this repository's issues._
4
+
5
+ **Major releases** (`v0.MINOR.0`) get a structured entry under `## Major Releases`. **Patch releases**
6
+ (`v0.MINOR.Z`, Z > 0 — fixes, hygiene, and new non-breaking detections) get a one-line entry under
7
+ `## Patch Releases`, mirroring the GitHub Release title; the full per-patch notes live in the GitHub
8
+ Release and commit messages. (The inaugural `v0.19.2` baseline entry below is a one-time snapshot of the
9
+ state at the first tag, recorded so the history has a starting point, not a `v0.MINOR.0` release.)
10
+
11
+ Versioning follows the SemVer 2.0 pre-1.0 clause: `v0.MINOR.0` is the breaking-change signal (see
12
+ [`BREAKING_CHANGES.md`](BREAKING_CHANGES.md)), `v0.MINOR.Z` is non-breaking. The tool version is welded to the
13
+ checklist registry version (`agentsec/checklist/checklist.json`), so `agentsec --version` and every report's
14
+ "Checklist registry" stamp always agree.
15
+
16
+ Use `/changelog v0.MINOR.0` to generate a new major-release entry. A patch entry is appended
17
+ automatically by `scripts/cut-release.py <version> --summary "..."` when the release is cut.
18
+
19
+ ---
20
+
21
+ ## Major Releases
22
+
23
+ ## v0.22.0 - The CI channel: a GitHub Action, pinned installs and the pre-commit manifest
24
+
25
+ **Date**: 2026-11-03
26
+ **Focus**: One supported way to run agentsec in CI, plus the stricter waiver and pragma matching queued since v0.21.0
27
+ **Stability**: Stable
28
+
29
+ ### Overview
30
+ agentsec now ships a composite GitHub Action at the repository root. It runs agentsec straight from the
31
+ action's own checkout (no install step, no network, no token at run time), writes a job summary, capped
32
+ inline annotations, a SARIF artifact and an optional code-scanning upload from a single audit pass, and
33
+ fails closed: a scan that did not complete (no readable SARIF, a crash, or a guard killed over its time
34
+ budget) fails the job in every mode. The workflows `agentsec ci add` renders now install agentsec pinned
35
+ to the release tag, with a token-free private install, and the copier template is removed in favour of
36
+ the action, `ci add` and a `.pre-commit-hooks.yaml` manifest. This is a MINOR release because the copier
37
+ template is gone and because of five matching changes queued since v0.21.0 (waivers, triage identity and
38
+ suppress pragmas); every one is listed with its migration in `BREAKING_CHANGES.md`.
39
+
40
+ ### Key Changes
41
+ #### ✨ Features
42
+ - **GitHub Action** (`action.yml`): `gate` or `advisory` mode, `fail-on`, `scanners`, `baseline`,
43
+ `baseline-snapshot`, `exclude`, `annotations`, `upload-sarif` and a feedback link in the summary;
44
+ every input reaches the shell through `env:`, and a CI self-test job runs it end to end (#1169).
45
+ - **Repo-relative SARIF and `--annotations N`**: a subdirectory scan emits repo-relative SARIF uris,
46
+ and `audit --annotations N` prints GitHub workflow commands for the N most severe non-baselined
47
+ findings (#1169).
48
+ - **Pinned, token-free CI installs**: `ci add` workflows install agentsec at `v<version>`, never
49
+ `@main`; `--install-secret NAME` hands a private-repo token to git through `GIT_ASKPASS`, never a URL
50
+ or argv; `ci doctor` flags an unpinned install (`install-unpinned`); `--advisory` and a single audit
51
+ pass for `self-audit` (#1167).
52
+ - **Pre-commit manifest** (`.pre-commit-hooks.yaml`): hook `agentsec-guards`, `language: python`, so
53
+ pre-commit installs agentsec itself; CI now runs the end-to-end `pre-commit try-repo` test (#1168).
54
+ #### 🔒 Security
55
+ - A waiver that carries a `fingerprint` matches on the fingerprint alone, with no `rule` + `location`
56
+ fallback, and the report names any waiver that suppressed more than one finding (#507).
57
+ - A URL port is no longer stripped from a finding's triage identity, so a verdict on a finding at
58
+ `:9200` no longer silently waives an unrelated one at `:6379` (#567, #700).
59
+ - An inline suppress pragma counts only when written as a comment, and the `npm-ignore-scripts` CI
60
+ pragma covers one install rather than the whole workflow file (#424, #539).
61
+ #### 🧹 Removed
62
+ - The copier template (`templates/`) and the `copier` dev dependency (#1168).
63
+
64
+ ### Schema / On-disk Changes
65
+ - `_TRIAGE_VERSION` 2 -> 3 (the URL-port identity fix): a `v2` triage file loads with a warning, and an
66
+ affected verdict goes inert so its finding re-surfaces as untriaged (fail-closed).
67
+ - Waiver matching in `agentsec-exceptions.json` and `.agentsec/suppress.json` is stricter
68
+ (fingerprint-only when a fingerprint is present).
69
+
70
+ ### Impact
71
+ **User-Facing**:
72
+ - Replace a copier-rendered `agentsec-security.yml` with the action pinned by SHA (migration steps in
73
+ `BREAKING_CHANGES.md`); re-render `ci add` workflows with `--force` to pick up the pinned install.
74
+ - A waiver or pragma that only worked through the old loose matching now lets its finding re-surface.
75
+ **Developer-Facing**:
76
+ - One audit workflow implementation remains (component library + action); the 71 patch releases since
77
+ v0.21.0 are listed under `## Patch Releases`.
78
+
79
+ ### GitHub Issues Closed
80
+ - #424, #507, #539, #567 (via #700); PRs #1167, #1168, #1169
81
+
82
+ ---
83
+
84
+ ## v0.21.0 - Machine-ledger relocation to `docs/ledger/`
85
+
86
+ **Date**: 2026-07-18
87
+ **Focus**: Separate machine-maintained state from human knowledge docs
88
+ **Stability**: Stable
89
+
90
+ ### Overview
91
+ The seven machine-maintained ledger / staging files moved out of `docs/knowledge/` into a new
92
+ dedicated directory, `docs/ledger/`. Previously the append-only JSON ledgers and the two markdown
93
+ ledgers were interleaved with ~40 human knowledge docs, with no structural signal that they are
94
+ machine-written state consumed by scripts and workflows. `docs/knowledge/` is now human knowledge only.
95
+ This is an on-disk path change (a breaking change under the welded-version policy), so it ships as the
96
+ MINOR signal v0.21.0. Runtime behavior, report output, and the CI gate are unchanged.
97
+
98
+ ### Key Changes
99
+ #### ✨ Features
100
+ - New `docs/ledger/` home for all machine state: `intake-ledger.json`, `guard-improvement-ledger.json`,
101
+ `proposed-items.json`, `deps-monitor-exceptions.json`, `feeds.json`, `marconi-merge-ledger.md`, and
102
+ `checklist-proposed-additions.md` (with a `docs/ledger/README.md` describing each).
103
+ #### 🔒 Security / Correctness
104
+ - Every reference moved with the files: the deps-monitor waiver loader (`_WAIVERS_PATH`), the
105
+ promote-proposal staging constant, `scripts/branch-status.sh`, the `threat-intake.yml` commit list,
106
+ the `/threat-intake` + `land-pr` skills/commands, and the `doc_counts.py` narrative-exclude entries
107
+ (so the moved append-only markdown stays out of the drift net).
108
+
109
+ ### Impact
110
+ **User-Facing**:
111
+ - Maintainers and forks that reference these files by path must update to `docs/ledger/<file>`
112
+ (see `BREAKING_CHANGES.md`). In-flight threat-intake PRs must relocate their staged edits.
113
+ **Developer-Facing**:
114
+ - `docs/knowledge/` is now purely human knowledge; `docs/README.md` documents the new taxonomy.
115
+
116
+ ### GitHub Issues Closed
117
+ - (none; maintainer-initiated refactor)
118
+
119
+ ---
120
+
121
+ ## v0.20.0 - Unified finding identity + fail-safe exception loading
122
+
123
+ **Date**: 2026-07-05
124
+ **Focus**: One canonical finding identity for triage + exceptions; stop silent suppression-disable
125
+ **Stability**: Stable
126
+
127
+ ### Overview
128
+
129
+ The first MINOR (breaking) release under the new policy. Triage and exceptions now compute a finding's identity
130
+ the same way, on one canonical fingerprint (issue #325), so a verdict recorded once is honored consistently.
131
+ Landing that surfaced and fixed a latent data-loss bug in exception loading. This is a **breaking** release: the
132
+ triage fingerprint scheme moves from v1 to v2, so verdicts in an `agentsec-triage.json` written by an older
133
+ version re-surface as untriaged until re-triaged. See [`BREAKING_CHANGES.md`](BREAKING_CHANGES.md).
134
+
135
+ ### Key Changes
136
+
137
+ #### 🔒 Security / Correctness
138
+ - **`merge_exceptions` no longer silently clobbers the registry.** On a malformed or unreadable
139
+ `agentsec-exceptions.json` it now raises instead of degrading to an empty registry, which had silently
140
+ disabled every suppression (a finding could re-surface, or a baselined one vanish, with no signal). Also now
141
+ catches `UnicodeDecodeError` explicitly on the read path.
142
+
143
+ #### ✨ Features
144
+ - **Unified triage + exception fingerprints** on one canonical `Finding` identity (#325).
145
+ - **Triage load warns on a stale schema version** (`_TRIAGE_VERSION` 1 → 2) instead of silently mis-matching, so
146
+ a user whose verdicts stopped applying gets an actionable message rather than confusion.
147
+
148
+ ### Schema / On-disk Changes
149
+ - `_TRIAGE_VERSION` 1 → 2 (the triage fingerprint scheme). Existing `agentsec-triage.json` verdicts re-surface
150
+ as untriaged until re-run; `agentsec triage <repo>` re-classifies them under the new scheme.
151
+
152
+ ### Impact
153
+
154
+ **User-Facing**:
155
+ - Breaking: re-run `agentsec triage` after upgrading if you rely on recorded verdicts.
156
+ - A corrupt exceptions baseline now fails loud instead of silently turning off all suppressions.
157
+
158
+ **Developer-Facing**:
159
+ - One identity function backs both triage and exceptions: no more two-scheme drift.
160
+
161
+ ### GitHub Issues Closed
162
+ - #325 (unify triage + exception finding identity)
163
+
164
+ ---
165
+
166
+ ## v0.19.2 - Release process baseline (first tagged release)
167
+
168
+ **Date**: 2026-07-05
169
+ **Focus**: Establish versioning + release process
170
+ **Stability**: Stable
171
+
172
+ ### Overview
173
+
174
+ The first tagged release. agentsec had run for months with zero git tags, no changelog, and a version that only
175
+ moved when the checklist registry moved. This release does not change the tool's behavior; it establishes the
176
+ versioning scheme and release process (issue #331) so that from here on, every release is a tag with a signal:
177
+ `v0.MINOR.0` may break (documented in `BREAKING_CHANGES.md`), `v0.MINOR.Z` does not. `v0.19.2` is a baseline
178
+ marker of the current registry state, not a feature drop.
179
+
180
+ ### Key Changes
181
+
182
+ #### 📚 Documentation
183
+ - **Versioning + release policy** (the maintainers' release-policy RFC): SemVer pre-1.0, version
184
+ welded to the checklist, single `main` trunk with tags off it, manual tag + GitHub Release. (Issue #331)
185
+ - **`CHANGELOG.md`** (this file) and **`BREAKING_CHANGES.md`** seeded.
186
+
187
+ #### 🔧 Technical
188
+ - **`/changelog` command** ported from `ai-agent-mastery`, adapted to the welded-version model.
189
+ - **MINOR-means-breaking enforcement test** (`tests/test_versioning_policy.py`): MINOR cannot advance past the
190
+ latest `BREAKING_CHANGES.md` entry.
191
+ - **The development-workflow doc**: the release-tagging open gap is closed; points at the new policy.
192
+
193
+ ### Impact
194
+
195
+ **User-Facing**:
196
+ - There is now a version to pin against and a `BREAKING_CHANGES.md` to check before upgrading.
197
+
198
+ **Developer-Facing**:
199
+ - Every release is a checklist-version bump: MINOR when something breaks (with a `BREAKING_CHANGES.md` entry),
200
+ PATCH otherwise. The enforcement test gates this in CI.
201
+
202
+ ### GitHub Issues Closed
203
+ - #331 (Define a versioning scheme + release process)
204
+
205
+ ---
206
+
207
+ ## Patch Releases
208
+
209
+ One line per patch release (`v0.MINOR.Z`, Z > 0): non-breaking fixes, hygiene, and new detections.
210
+ Newest first; the full notes for each live in its GitHub Release.
211
+
212
+ - **v0.22.2** (2026-11-17): 3 new Dockerfile guards from the cr0hn/dockerfile-security research cycle: RUN --security=insecure and dangerous chmod/SUID, docker-login/HEALTHCHECK credential exposure, WORKDIR pointing to a system directory. First PyPI release: `pipx install ai-agent-security`, and the action, issues and releases move to the public `Zard-Lab/ai-agent-security`
213
+ - **v0.22.1** (2026-11-11): Widen hardcoded-llm-provider-key/client-side-secret-literal to 5 new LLM/RAG provider-key formats (Pinecone, Replicate, Groq, LangSmith, Supabase PAT).
214
+ - **v0.21.71** (2026-10-29): Terraform AWS checks from the sonar-iac catalog: S3 MFA-delete, insecure-transport policy and canned ACL; MSK, OpenSearch, ElastiCache, EFS, ECS-EFS and Kinesis encryption; ALB plaintext listeners; weak TLS policies; RDS/Aurora backup retention; Aurora-cluster storage encryption and Redshift public access
215
+ - **v0.21.70** (2026-10-27): Docker base-image CVE floors (PHP RCE pair, CPython ssl, Node zlib) with a Dockerfile allow-old pragma; harden-host security-updates-pending and restart-owed probes; suppress pragmas anchored to real comments across the Python, SQL, CloudFormation, JS, shell and commentless guards (#1040, #1055); SQL REVOKE role-set and TypeScript provider-key fixes; corpus outlier fix
216
+ - **v0.21.69** (2026-10-20): warden-supply-chain-security batch (PR #1093, fix pass per Dean's review): curl-pipe-to-shell Python extension + 5 new guards (browser credential theft, environ-dump exfil, ctypes downloaded-library loading, setup.py install-time network, cron/systemd/LaunchAgent persistence)
217
+ - **v0.21.68** (2026-10-19): 2 new guards: supabase-vault-exposure, Supabase Vault material reachable by anon/authenticated (body-proven vault-reading SECURITY DEFINER RPCs, decrypted views, DROP+CREATE ACL resets, privilege-aware grants and revokes incl. bulk ON ALL ... IN SCHEMA ordered against the first CREATE, writable search_path on vault definer functions; dual-mode, migration defaults vs pg_dump ACL), and supabase-vault-plaintext-leak, vault exposure a schema dump cannot vouch for (literal secrets passed to vault, statement logging in a vault repo, vault in pgrst.db_schemas / [api] schemas, grants on the vault schema itself)
218
+ - **v0.21.67** (2026-10-18): aisbom research-cycle: 5 new fail-closed ML model artifact guards (ml-artifact-committed, ml-pickle-dangerous-global, ml-keras-lambda-rce, ml-gguf-template-injection, ml-onnx-external-data) that parse untrusted pickle/Keras/GGUF/ONNX files without executing them
219
+ - **v0.21.66** (2026-10-18): Datadog GuardDog research-cycle: 6 new malware-pattern guards (reverse-shell-pattern, dns-exfiltration-pattern, destructive-filesystem-command, keylogging-pattern, download-execute-chain, autostart-persistence-mechanism) and obfuscated-payload-execution extended to JS/TS
220
+ - **v0.21.65** (2026-10-18): aws-agent-identity-guard research-cycle: 4 IAM guards widened to bare policy JSON (iam-notaction-with-allow, iam-escalation-action-no-condition + PassRole PassedToService, iam-wildcard escalation partial-wildcard, iam-role-public-assume delivery-service confused-deputy review signal + org-scoping rule) and 3 new agent-workload IAM guards (agent-iam-control-plane-exposure, agent-iam-tool-resource-unscoped, agent-iam-killchain-combination)
221
+ - **v0.21.64** (2026-10-18): mcp-raw-execution-tool-name: new MCP guard flagging a tool declared with a raw code/command-execution primitive as its own name
222
+ - **v0.21.63** (2026-10-12): sentrymcp research-cycle: 2 new MCP guards (mcp-hardcoded-credential as a non-gating review signal, mcp-overprivileged-scope), mcp-tool-path-traversal and mcp-transport-no-auth extended to JS/TS, js-code-injection MCP tool-argument taint
223
+ - **v0.21.62** (2026-10-12): MCPVul research-cycle: mcp-tool-description-injection widened (8 high-risk markers + confusable duplicate-name detection), upstream-response-unvalidated widened (5 tool raw-return sinks), 2 new guards (mcp-session-id-security, mcp-unsafe-auth-url-launch)
224
+ - **v0.21.61** (2026-09-30): Wave 5 re-land: injection/execution/RCE guards (argv-toctou, sandbox-denylist-bypass, crewai-rce-chain, claude-hook-rce, policy-truncation, mcp-transport-flip, claude-routines-security) + vscode-tasks-auto-exec/log-injection/llm-query-engine-execution extensions (from the agent-audit-kit deep-mine batch, PR #955 split)
225
+ - **v0.21.60** (2026-09-30): Wave 4 re-land: agentic supply-chain and trust-boundary guards (agent-headless-trust-surface, approval-parser-shell-desync, skill-untrusted-exec-path, skill-poisoning, shared-resource-authz, agentic-skills-ast, trust-boundary) split from PR #955, with a real-corpus CRITICAL FP fix for agent-headless-trust-surface's untrusted-trigger/PR-head-checkout correlation.
226
+ - **v0.21.59** (2026-09-30): Wave 3 re-land: MCP spec-conformance guards (server-card-integrity, tasks-lifecycle, stateless-migration, tunnel-config-security, apps-ui-isolation, oauth-flow-hardening) split from PR #955, with real-corpus FP fixes for oauth-flow-hardening (authorize() verb ambiguity, JSON-Schema/Mintlify docs-site configs, and doc-nav path-like-string fragments).
227
+ - **v0.21.58** (2026-09-30): Wave 2 re-land: MCP transport/auth/sandbox core + SSRF guards (8 new checklist items, from the agent-audit-kit deep-mine batch, PR #955 split)
228
+ - **v0.21.57** (2026-09-30): Wave 6 re-land: supply-chain hygiene (npm install-script network reach, mcp-config-security unpinned-fetcher/relative-path/loopback-pivot) + tool-description-injection encoded-payload extension (from the agent-audit-kit deep-mine batch, PR #955 split)
229
+ - **v0.21.56** (2026-09-30): Add env-file-not-gitignored guard; extend mcp-config-security (ws:// transport, URL-embedded secrets, remote no-auth entries, unconventional-filename discovery); 3 version floors (mcp-framework, @mcpjam/inspector, litellm)
230
+ - **v0.21.55** (2026-09-24): 7 new MCP protocol-layer guards from agent-audit-kit (env-placeholder exfil, unvalidated SSRF destination, sampling without consent, unbounded tools/list, routing desync, toolgate asymmetry, marketplace fetch-then-spawn) + code-injection-eval-exec and mcp-config-security extensions
231
+ - **v0.21.54** (2026-09-23): Batch C (MCP hardening): new mcp-oauth-scope-creep guard + ContextCrush trust-boundary widening (rag-trust-boundary, rag-no-instruction-filter now recognize MCP tool-call results)
232
+ - **v0.21.53** (2026-09-23): dependency-version-floor: Java/Maven + Rust/Cargo ecosystem support (pom.xml, build.gradle, Cargo.lock) + MCP Java/Rust SDK floors (CVE-2026-34237, CVE-2026-42559, CVE-2026-35577)
233
+ - **v0.21.52** (2026-09-23): Batch B (MCP hardening): mcp-tool-path-traversal guard + mcp-transport-dns-rebinding guard
234
+ - **v0.21.51** (2026-09-23): Batch A (MCP hardening): promisify(exec) command-injection coverage + new mcp-transport-no-auth guard + mcp version-floor bump (CVE-2026-59950, CVE-2026-52870)
235
+ - **v0.21.50** (2026-09-23): dependency-version-floor: Go ecosystem support (go.sum) + MCP Go SDK floor (CVE-2026-33252)
236
+ - **v0.21.49** (2026-09-22): vscode-tasks-auto-exec: detect VSCode tasks.json auto-exec on folder open
237
+ - **v0.21.48** (2026-09-22): graphql applies_when tagging (2b-idor-prevention, 7-pg-graphql-no-anon-authenticated-table-exposure) + corpus discovery queries widened (mcp-server + Next.js/TS) and `count` spread across every query
238
+ - **v0.21.47** (2026-09-22): Database Security: 19 new RLS/Postgres guards mined from the pgrls-postgres-rls catalog (PR #893)
239
+ - **v0.21.46** (2026-09-20): Land codeql-security-queries batch 6: Express/Node extensions (insecure-cookies, jwt-alg, secret-in-url-query, js-cors-wildcard) + 3 new guards (js-host-header-email-link, js-loop-bound-injection, js-http-to-file-access)
240
+ - **v0.21.45** (2026-09-20): Next.js Server Actions auth guard + middleware matcher fix, outside-in scan-live-url
241
+ - **v0.21.44** (2026-09-20): React Native/Expo mobile support: AsyncStorage insecure token storage guard
242
+ - **v0.21.43** (2026-09-19): CI image build/push pipelines flagged when missing an SBOM or provenance/signing step (Google/Wiz vibe-coding report gap G4)
243
+ - **v0.21.42** (2026-09-19): Next.js guard suite batch 1: NEXT_PUBLIC_ client secrets, Route Handler auth-missing surfacing check (nextjs promoted from uncovered_stacks to a real feature)
244
+ - **v0.21.41** (2026-09-19): Supabase Splinter lint catalog audit: pgmq queue exposure, fkey-to-auth non-primary, pg_graphql anon/authenticated table exposure (3 new guards)
245
+ - **v0.21.40** (2026-09-16): rate-limit-no-persistent-store: scope the storage_uri check per-Limiter, closing a cross-file false negative
246
+ - **v0.21.39** (2026-09-15): 7 AWS resource encryption-at-rest/KMS guards (checkov batch 3): dynamodb/ebs/sqs/sns/ecr/cloudwatch/secrets-manager Terraform encryption checks
247
+ - **v0.21.38** (2026-09-14): jwt-key-source-allowlist guard (unverified JWT signing-key source) + pydantic-model-construct precision fix; stripe-payments Rule 5 (`sk_live_` secret-key literal in backend source, #731); compounding-risk co-firing signal (#683); vitest-vs-Vite frontend detection fix (#727)
248
+ - **v0.21.37** (2026-09-13): CloudFormation stack support — template detection (JSON + YAML) + 18 cfripper/cfn-nag-derived guards (KMS key rotation, wildcard resource-policy principals, IAM privilege-escalation, IAM NotAction+Allow, IAM user direct-policy, S3 versioning, S3 public canned-ACL, RDS publicly-accessible, RDS hardcoded/unmasked MasterUserPassword, ECR scan-on-push, VPC flow logs, Cognito MFA-off, Cognito unauthenticated identities, WAF default-allow, Batch privileged container, EC2 subnet auto-assign-public-IP, NACL ineffective-deny, CloudFormation::Authentication literal password), plus guard-scope fixes and the `Resources:`/`Parameters:` header-comment silent-miss fixes (#856/#857)
249
+ - **v0.21.36** (2026-09-13): PHP stack detection + 9 graudit-derived guards (php-preg-replace-eval-modifier, php-code-injection, php-command-injection, php-unsafe-deserialization, php-file-inclusion, php-sql-injection, php-tls-verify-disabled, php-extract-superglobal-overwrite, php-reflected-xss)
250
+ - **v0.21.35** (2026-09-12): ARM template detection + 5 new Azure guard checks (azure-template-analyzer batch)
251
+ - **v0.21.34** (2026-09-12): Bicep detection + 7 new @secure()-decorator guard checks (azure-bicep-linter batch)
252
+ - **v0.21.33** (2026-09-12): agentsec's first Ruby-language coverage — 8 new guards (Brakeman research batch): weak hash (MD5/SHA-1), command injection (shell string vs. the safe argv-array form), unsafe deserialization (Marshal/YAML/Oj), TLS verification disabled, Rails mass-assignment (Strong Parameters defeated), ActiveRecord SQL injection, unsafe dynamic reflection (constantize/const_get), and dynamic method dispatch (send/public_send/try) — plus Ruby stack detection and shared scanning infrastructure (`ruby_scan_dirs`, `strip_ruby_comments`)
253
+ - **v0.21.32** (2026-09-12): Java stack detection + 10 find-sec-bugs-derived guards (java-weak-crypto, java-path-traversal, java-command-injection, java-sql-injection, java-ldap-injection, java-ssrf, java-xxe-unsafe-parsing, java-unsafe-deserialization, java-hardcoded-password-key, java-tls-verify-disabled)
254
+ - **v0.21.31** (2026-09-05): 5 K8s manifest security guard checks (KubeLinter batch)
255
+ - **v0.21.30** (2026-09-05): 5 docker-compose security guard checks (DockSec batch)
256
+ - **v0.21.29** (2026-09-05): K8s RBAC dangerous-verb grants guard (Kubescape batch)
257
+ - **v0.21.28** (2026-09-05): 5 new Terraform AWS IAM guard checks (Pike batch)
258
+ - **v0.21.27** (2026-09-05): 5 new KICS Azure/GCP Terraform public-access + TLS guards
259
+ - **v0.21.26** (2026-09-04): 12 llm-stack guard extensions (llm checklist coverage 33.3% -> 36.5%), plus round-5 fixes for a loop-guard false-positive/false-negative pair
260
+ - **v0.21.25** (2026-09-02): 5 new Python guards from the NotebookLM Tier 2 sweep: Supabase filter injection and anon-key RLS reachability, Redis glob-pattern injection, truthy ownership checks, agent-resume trigger verification
261
+ - **v0.21.24** (2026-08-30): GraphQL mutation IDOR detection (graphql-mutation-idor) + the graphql stack feature, closing the NotebookLM security-news sweep
262
+ - **v0.21.23** (2026-08-30): NotebookLM sweep Tier 2 JS/TS: nosql-injection-js (Mongoose type-confusion NoSQL injection, CVE-2026-30833) + unawaited-async-truthy (unawaited async call as truthy conditional, CVE-2026-28514)
263
+ - **v0.21.22** (2026-08-29): NotebookLM sweep Tier 0: langflow CVE-2026-9198 floor bump + 5 new dependency floors (starlette DoS, ormar, vite, mastra-docs-server, mlflow) + 1 new manual checklist item
264
+ - **v0.21.21** (2026-08-27): 5 new Database Security guards from a database-sentinel research audit (policy-no-role-scope, storage-no-rls, matview-exposed, sensitive-columns, rls-auth-uid-unwrapped), plus a piv-review-pr round disclosing + pinning a shared string-literal comment-blanking gap across all 3 SQL-comment-aware guards in the batch
265
+ - **v0.21.20** (2026-08-25): js-supply-chain: lockfile-manifest drift detection, with the pnpm+yarn coexistence skip and a mutation-proofed drift test
266
+ - **v0.21.19** (2026-08-24): batch2: 5 new guards, 2 FP fixes, and the scan-dir overlap dedupe
267
+ - **v0.21.18** (2026-08-24): 5 new guards from a careful re-mine of pasted FastAPI security articles + the pre-Tier-1 backlog: secret-str-serialized, request-body-size-unbounded, llm-output-secrets-unscanned, ansi-escape-llm-output, sql-race-check-then-insert. Plus 2 false-positive fixes (auto-updates-absent, jsx-href-scheme).
268
+ - **v0.21.18** (2026-08-24): iac-security-scanner batch: 5 new guards (Step Functions, ECR, AWS observability hygiene, K8s resource limits, K8s default-namespace) + terraform_hardcoded_secret_literal extensions (variable/locals/output blocks, embedded user_data secrets)
269
+ - **v0.21.17** (2026-08-21): Tag checklist items with HIPAA (164.308/164.312) and EU AI Act (Art 9/11/12/14/15) citations; add 14-ai-interaction-disclosure (Art 50)
270
+ - **v0.21.16** (2026-08-21): compose-lint: 9 Docker Compose guards + prompt-injection-safe report output
271
+ - **v0.21.15** (2026-08-19): agent-memory-user-scope: Mem0 client write-site + hollow-scope-binding (a scope kwarg bound to a constant), plus its review-fix round
272
+ - **v0.21.14** (2026-08-16): close the SKILL.md blind spot in claude-code-compromise + obfuscated-payload-execution (shell decode-exec chains in agent-skill bundles, connectedness over proximity, gitignored `.claude/` now scanned)
273
+ - **v0.21.13** (2026-08-15): PR #601 review-fix round: proxy case-encoding, OSV batch-truncation disclosure, comment-scoped detection, library webhook verification scoped to svix/standardwebhooks after the first attempt silently suppressed genuinely unverified handlers, Grafana secrets-file recognition, README runner count, checklist-section doc fixes
274
+ - **v0.21.12** (2026-08-14): mechanism C: go-osv-hygiene runner (OSV Go module CVE scan + module-path resolution hygiene), extended same day to also check `replace`-directive targets (a `require`-clean/`replace`-vulnerable go.mod was previously invisible)
275
+ - **v0.21.11** (2026-08-14): mechanism B: go-build-supply-chain-footgun guard (unpinned go install @latest/@master/@main, GOSUMDB=off/GONOSUMCHECK)
276
+ - **v0.21.10** (2026-08-14): New webhook-signature-not-verified guard, JadePuffer defense plan B3 (default-service-credential) + B4 (db-role-privilege-excessive), hostaudit egress/crontab probes, foreign_artifacts Go-artifact-layer disclosure
277
+ - **v0.21.9** (2026-08-14): PR #548 gate fixes, rounds 3 and 4: quote-aware split_call_args, security-headers evidence scoping, protocol-relative open-redirect gap closed for both `//host` and `/\host`, TS applies_when parity on 6 guards, and a rule-4 pragma regression test that could not fail
278
+ - **v0.21.8** (2026-08-12): CodeQL JS/TS research batches 7-11: 15 new guards + 6 Python guards widened to JS/TS, plus 4 checklist-parity applies_when fixes
279
+ - **v0.21.7** (2026-08-12): 7 new guards: the first Go-specific batch (go-ssh-host-key-trust, go-pprof-exposed, go-tls-verify-disabled, go-sql-injection, go-template-html-escaping), plus client-side-auth-decision and homoglyph-source-chars, with Go support extended to invisible-unicode and hardcoded-llm-provider-key
280
+ - **v0.21.6** (2026-08-08): new llm-tool-result-leak guard: an exception stringified into an LLM tool's return value, re-derived around a single tool-class discriminator
281
+ - **v0.21.5** (2026-08-06): Extend mcp-config-security + tool-callback-enforcement + credential-file-path-reference, add auth-disabled-by-default guard (agent-threat-rules research)
282
+ - **v0.21.4** (2026-08-06): Add hardcoded-llm-provider-key guard (OpenAI/Anthropic/Google AI/Hugging Face key literals in Python source)
283
+ - **v0.21.3** (2026-08-05): full 4-rule canary liveness coverage for agent-memory-security and acp-vulnerabilities, plus the 4 OWASP tags they emit now reflected on their mapped checklist items
284
+ - **v0.21.2** (2026-08-04): new client-side-secret-literal guard, a large false-positive precision sweep across the #423/#424 guard batches, per-guard non-product surface skips, and Python openai/anthropic SDK LLM detection
285
+ - **v0.21.1** (2026-07-31): checkov batch 3 — 6 KMS/Key-Vault key-hygiene guards (AWS KMS rotation/disabled, Azure Key Vault purge-protection/key-expiration, GCP KMS public-IAM/rotation-period), plus `s3-bucket-policy-wildcard-principal` extended to `aws_kms_key` policies.
286
+ - **v0.20.20** (2026-07-16): CodeQL security-queries batches 4/5/6 (Python + JS/TS guards)
287
+ - **v0.20.16** (2026-07-16): llmarmor batch: LLM tool-dispatch + agentic guard extensions
288
+ - **v0.20.15** (2026-07-15): checkov batch 2: IAM hygiene + CloudTrail audit logging
289
+ - **v0.20.14** (2026-07-15): drogonsec 5-guard batch
290
+ - **v0.20.13** (2026-07-14): njsscan: Node.js/Express/Electron guards
291
+ - **v0.20.12** (2026-07-14): ansible-security-scanner: first Ansible playbook coverage (7 guards)
292
+ - **v0.20.11** (2026-07-14): kubesec K8s manifest security: 10 new guards
293
+ - **v0.20.10** (2026-07-14): parallel research batch: 9 new guards
294
+ - **v0.20.9** (2026-07-14): checkov IaC: 5 new guards
295
+ - **v0.20.8** (2026-07-14): skillspector: 5 new guards
296
+ - **v0.20.7** (2026-07-14): Cisco skill-scanner: 5 new guards
297
+ - **v0.20.6** (2026-07-08): mcp-tool-env-inheritance guard
298
+ - **v0.20.5** (2026-07-08): datastore-auth-absent guard + ast lexing hardening
299
+ - **v0.20.4** (2026-07-06): langflow CVE version floor
300
+ - **v0.20.3** (2026-07-05): guard/checklist precision
301
+ - **v0.20.2** (2026-07-05): supabase-storage-public write-statement gate
302
+ - **v0.20.1** (2026-07-05): Guard mitigation-pattern recognition
303
+
304
+ ---
305
+
306
+ ## Pre-v0.19.2 history
307
+
308
+ Development before the first tag is not back-filled here. The full history is in the git log and the merge ledger
309
+ (the maintainers' development-workflow doc describes the Loop A/B/C process and the ledger). Notable prior milestones: the
310
+ zero-runtime-dependency guard/runner pipeline, the tiered network-egress policy, and the checklist-as-single-source-of-truth version model (PR #121).
@@ -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 2026 Dean Prichard and Marconi Sim
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.