agentic-security-harness 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. agentic_security_harness-1.0.0/LICENSE +201 -0
  2. agentic_security_harness-1.0.0/NOTICE +10 -0
  3. agentic_security_harness-1.0.0/PKG-INFO +286 -0
  4. agentic_security_harness-1.0.0/README.md +254 -0
  5. agentic_security_harness-1.0.0/pyproject.toml +75 -0
  6. agentic_security_harness-1.0.0/setup.cfg +4 -0
  7. agentic_security_harness-1.0.0/src/agentic_security_harness/__init__.py +220 -0
  8. agentic_security_harness-1.0.0/src/agentic_security_harness/adapter_base.py +61 -0
  9. agentic_security_harness-1.0.0/src/agentic_security_harness/adapters.py +197 -0
  10. agentic_security_harness-1.0.0/src/agentic_security_harness/attestation_policy.py +203 -0
  11. agentic_security_harness-1.0.0/src/agentic_security_harness/cli.py +4752 -0
  12. agentic_security_harness-1.0.0/src/agentic_security_harness/companion_contracts.py +1272 -0
  13. agentic_security_harness-1.0.0/src/agentic_security_harness/context_consent_campaign.py +730 -0
  14. agentic_security_harness-1.0.0/src/agentic_security_harness/corpus.py +558 -0
  15. agentic_security_harness-1.0.0/src/agentic_security_harness/covering_array.py +145 -0
  16. agentic_security_harness-1.0.0/src/agentic_security_harness/demo_adapter.py +719 -0
  17. agentic_security_harness-1.0.0/src/agentic_security_harness/demo_agent.py +551 -0
  18. agentic_security_harness-1.0.0/src/agentic_security_harness/doctor.py +306 -0
  19. agentic_security_harness-1.0.0/src/agentic_security_harness/envelope_policy.py +145 -0
  20. agentic_security_harness-1.0.0/src/agentic_security_harness/evidence_campaign.py +918 -0
  21. agentic_security_harness-1.0.0/src/agentic_security_harness/evidence_quality.py +1141 -0
  22. agentic_security_harness-1.0.0/src/agentic_security_harness/evidence_status.py +383 -0
  23. agentic_security_harness-1.0.0/src/agentic_security_harness/external_openai_compatible.py +220 -0
  24. agentic_security_harness-1.0.0/src/agentic_security_harness/external_prompt.py +88 -0
  25. agentic_security_harness-1.0.0/src/agentic_security_harness/external_runner.py +958 -0
  26. agentic_security_harness-1.0.0/src/agentic_security_harness/external_validation.py +121 -0
  27. agentic_security_harness-1.0.0/src/agentic_security_harness/ground_truth.py +116 -0
  28. agentic_security_harness-1.0.0/src/agentic_security_harness/handoff_integrity.py +351 -0
  29. agentic_security_harness-1.0.0/src/agentic_security_harness/html_report.py +620 -0
  30. agentic_security_harness-1.0.0/src/agentic_security_harness/local_profiles.py +180 -0
  31. agentic_security_harness-1.0.0/src/agentic_security_harness/local_swarm.py +1142 -0
  32. agentic_security_harness-1.0.0/src/agentic_security_harness/local_swarm_matrix.py +1396 -0
  33. agentic_security_harness-1.0.0/src/agentic_security_harness/marketing_web_injection_campaign.py +918 -0
  34. agentic_security_harness-1.0.0/src/agentic_security_harness/marketing_web_live_campaign.py +1186 -0
  35. agentic_security_harness-1.0.0/src/agentic_security_harness/matrix.py +407 -0
  36. agentic_security_harness-1.0.0/src/agentic_security_harness/memory_governance.py +136 -0
  37. agentic_security_harness-1.0.0/src/agentic_security_harness/memory_rehydration_campaign.py +1033 -0
  38. agentic_security_harness-1.0.0/src/agentic_security_harness/mock_target.py +190 -0
  39. agentic_security_harness-1.0.0/src/agentic_security_harness/models.py +237 -0
  40. agentic_security_harness-1.0.0/src/agentic_security_harness/patterns.py +695 -0
  41. agentic_security_harness-1.0.0/src/agentic_security_harness/planner_task_campaign.py +1033 -0
  42. agentic_security_harness-1.0.0/src/agentic_security_harness/portfolio_contract.py +552 -0
  43. agentic_security_harness-1.0.0/src/agentic_security_harness/presets.py +298 -0
  44. agentic_security_harness-1.0.0/src/agentic_security_harness/protected_demo_agent.py +484 -0
  45. agentic_security_harness-1.0.0/src/agentic_security_harness/py.typed +1 -0
  46. agentic_security_harness-1.0.0/src/agentic_security_harness/r5_public_projection.py +633 -0
  47. agentic_security_harness-1.0.0/src/agentic_security_harness/rag_context_campaign.py +1020 -0
  48. agentic_security_harness-1.0.0/src/agentic_security_harness/reconciliation.py +869 -0
  49. agentic_security_harness-1.0.0/src/agentic_security_harness/remediation.py +808 -0
  50. agentic_security_harness-1.0.0/src/agentic_security_harness/reporting.py +276 -0
  51. agentic_security_harness-1.0.0/src/agentic_security_harness/reviewer_receipt.py +112 -0
  52. agentic_security_harness-1.0.0/src/agentic_security_harness/run_config.py +278 -0
  53. agentic_security_harness-1.0.0/src/agentic_security_harness/run_diff.py +487 -0
  54. agentic_security_harness-1.0.0/src/agentic_security_harness/run_manifest.py +336 -0
  55. agentic_security_harness-1.0.0/src/agentic_security_harness/rundb.py +320 -0
  56. agentic_security_harness-1.0.0/src/agentic_security_harness/runner.py +133 -0
  57. agentic_security_harness-1.0.0/src/agentic_security_harness/runtime_guard_foundation.py +1203 -0
  58. agentic_security_harness-1.0.0/src/agentic_security_harness/safe_io.py +442 -0
  59. agentic_security_harness-1.0.0/src/agentic_security_harness/safe_markdown.py +78 -0
  60. agentic_security_harness-1.0.0/src/agentic_security_harness/safe_terminal.py +46 -0
  61. agentic_security_harness-1.0.0/src/agentic_security_harness/scenario_adjudication.py +285 -0
  62. agentic_security_harness-1.0.0/src/agentic_security_harness/scenario_timeline.py +297 -0
  63. agentic_security_harness-1.0.0/src/agentic_security_harness/scenarios.py +528 -0
  64. agentic_security_harness-1.0.0/src/agentic_security_harness/schema_versions.py +156 -0
  65. agentic_security_harness-1.0.0/src/agentic_security_harness/scorecard.py +46 -0
  66. agentic_security_harness-1.0.0/src/agentic_security_harness/secret_hygiene.py +126 -0
  67. agentic_security_harness-1.0.0/src/agentic_security_harness/secret_leak_campaign.py +1456 -0
  68. agentic_security_harness-1.0.0/src/agentic_security_harness/semantic_drift_campaign.py +913 -0
  69. agentic_security_harness-1.0.0/src/agentic_security_harness/semantic_propagation_campaign.py +1229 -0
  70. agentic_security_harness-1.0.0/src/agentic_security_harness/showcase.py +766 -0
  71. agentic_security_harness-1.0.0/src/agentic_security_harness/source_identity.py +44 -0
  72. agentic_security_harness-1.0.0/src/agentic_security_harness/standards_mapping.py +254 -0
  73. agentic_security_harness-1.0.0/src/agentic_security_harness/static_import_closure.py +509 -0
  74. agentic_security_harness-1.0.0/src/agentic_security_harness/stats.py +493 -0
  75. agentic_security_harness-1.0.0/src/agentic_security_harness/swarm_defense_contour.py +585 -0
  76. agentic_security_harness-1.0.0/src/agentic_security_harness/swarm_defense_live_campaign.py +1258 -0
  77. agentic_security_harness-1.0.0/src/agentic_security_harness/swarm_resilience_campaign.py +983 -0
  78. agentic_security_harness-1.0.0/src/agentic_security_harness/tool_authority_campaign.py +890 -0
  79. agentic_security_harness-1.0.0/src/agentic_security_harness/toy_adapters.py +472 -0
  80. agentic_security_harness-1.0.0/src/agentic_security_harness/trace_schema.py +49 -0
  81. agentic_security_harness-1.0.0/src/agentic_security_harness/trading_bot_stand.py +4866 -0
  82. agentic_security_harness-1.0.0/src/agentic_security_harness/validation.py +6796 -0
  83. agentic_security_harness-1.0.0/src/agentic_security_harness/version.py +3 -0
  84. agentic_security_harness-1.0.0/src/agentic_security_harness.egg-info/PKG-INFO +286 -0
  85. agentic_security_harness-1.0.0/src/agentic_security_harness.egg-info/SOURCES.txt +172 -0
  86. agentic_security_harness-1.0.0/src/agentic_security_harness.egg-info/dependency_links.txt +1 -0
  87. agentic_security_harness-1.0.0/src/agentic_security_harness.egg-info/entry_points.txt +2 -0
  88. agentic_security_harness-1.0.0/src/agentic_security_harness.egg-info/requires.txt +6 -0
  89. agentic_security_harness-1.0.0/src/agentic_security_harness.egg-info/top_level.txt +1 -0
  90. agentic_security_harness-1.0.0/tests/test_adapters.py +113 -0
  91. agentic_security_harness-1.0.0/tests/test_attestation_policy.py +261 -0
  92. agentic_security_harness-1.0.0/tests/test_boundary_variation_matrices.py +303 -0
  93. agentic_security_harness-1.0.0/tests/test_cli.py +144 -0
  94. agentic_security_harness-1.0.0/tests/test_cli_authority.py +358 -0
  95. agentic_security_harness-1.0.0/tests/test_companion_contracts.py +787 -0
  96. agentic_security_harness-1.0.0/tests/test_context_consent_campaign.py +262 -0
  97. agentic_security_harness-1.0.0/tests/test_corpus.py +172 -0
  98. agentic_security_harness-1.0.0/tests/test_covering_array.py +62 -0
  99. agentic_security_harness-1.0.0/tests/test_demo_agent.py +141 -0
  100. agentic_security_harness-1.0.0/tests/test_doctor.py +139 -0
  101. agentic_security_harness-1.0.0/tests/test_documentation_contract.py +1256 -0
  102. agentic_security_harness-1.0.0/tests/test_e2e.py +208 -0
  103. agentic_security_harness-1.0.0/tests/test_envelope_policy.py +148 -0
  104. agentic_security_harness-1.0.0/tests/test_evidence_campaign.py +274 -0
  105. agentic_security_harness-1.0.0/tests/test_evidence_quality.py +440 -0
  106. agentic_security_harness-1.0.0/tests/test_evidence_status.py +509 -0
  107. agentic_security_harness-1.0.0/tests/test_external.py +1716 -0
  108. agentic_security_harness-1.0.0/tests/test_fuzzing_integration.py +46 -0
  109. agentic_security_harness-1.0.0/tests/test_git_security_hygiene.py +102 -0
  110. agentic_security_harness-1.0.0/tests/test_golden_snapshots.py +132 -0
  111. agentic_security_harness-1.0.0/tests/test_ground_truth.py +45 -0
  112. agentic_security_harness-1.0.0/tests/test_handoff_integrity.py +320 -0
  113. agentic_security_harness-1.0.0/tests/test_html_report.py +209 -0
  114. agentic_security_harness-1.0.0/tests/test_local_suite.py +245 -0
  115. agentic_security_harness-1.0.0/tests/test_local_swarm.py +568 -0
  116. agentic_security_harness-1.0.0/tests/test_local_swarm_matrix.py +315 -0
  117. agentic_security_harness-1.0.0/tests/test_marketing_web_injection_campaign.py +306 -0
  118. agentic_security_harness-1.0.0/tests/test_marketing_web_live_campaign.py +742 -0
  119. agentic_security_harness-1.0.0/tests/test_matrix.py +197 -0
  120. agentic_security_harness-1.0.0/tests/test_memory_governance.py +135 -0
  121. agentic_security_harness-1.0.0/tests/test_memory_rehydration_campaign.py +157 -0
  122. agentic_security_harness-1.0.0/tests/test_models.py +105 -0
  123. agentic_security_harness-1.0.0/tests/test_packaging.py +113 -0
  124. agentic_security_harness-1.0.0/tests/test_planner_task_campaign.py +150 -0
  125. agentic_security_harness-1.0.0/tests/test_portfolio_contract.py +182 -0
  126. agentic_security_harness-1.0.0/tests/test_portfolio_contract_v1.py +388 -0
  127. agentic_security_harness-1.0.0/tests/test_portfolio_unification_contract.py +75 -0
  128. agentic_security_harness-1.0.0/tests/test_presets.py +246 -0
  129. agentic_security_harness-1.0.0/tests/test_protected.py +138 -0
  130. agentic_security_harness-1.0.0/tests/test_public_artifact_hygiene.py +100 -0
  131. agentic_security_harness-1.0.0/tests/test_publish_workflow.py +75 -0
  132. agentic_security_harness-1.0.0/tests/test_r4_standards_ontology_delta.py +73 -0
  133. agentic_security_harness-1.0.0/tests/test_r5_public_projection.py +124 -0
  134. agentic_security_harness-1.0.0/tests/test_rag_context_campaign.py +149 -0
  135. agentic_security_harness-1.0.0/tests/test_reconciliation.py +827 -0
  136. agentic_security_harness-1.0.0/tests/test_release_sbom.py +170 -0
  137. agentic_security_harness-1.0.0/tests/test_release_workflow.py +129 -0
  138. agentic_security_harness-1.0.0/tests/test_reporting.py +77 -0
  139. agentic_security_harness-1.0.0/tests/test_reproducible_sdist.py +87 -0
  140. agentic_security_harness-1.0.0/tests/test_reviewer_receipt.py +92 -0
  141. agentic_security_harness-1.0.0/tests/test_run_diff.py +395 -0
  142. agentic_security_harness-1.0.0/tests/test_run_manifest.py +477 -0
  143. agentic_security_harness-1.0.0/tests/test_rundb.py +215 -0
  144. agentic_security_harness-1.0.0/tests/test_runner.py +171 -0
  145. agentic_security_harness-1.0.0/tests/test_runtime_guard_foundation.py +979 -0
  146. agentic_security_harness-1.0.0/tests/test_safe_io.py +434 -0
  147. agentic_security_harness-1.0.0/tests/test_safe_markdown.py +45 -0
  148. agentic_security_harness-1.0.0/tests/test_safe_terminal.py +39 -0
  149. agentic_security_harness-1.0.0/tests/test_scenario_adjudication.py +73 -0
  150. agentic_security_harness-1.0.0/tests/test_scenario_timeline.py +169 -0
  151. agentic_security_harness-1.0.0/tests/test_scenarios.py +152 -0
  152. agentic_security_harness-1.0.0/tests/test_schema_versions.py +143 -0
  153. agentic_security_harness-1.0.0/tests/test_scorecard.py +60 -0
  154. agentic_security_harness-1.0.0/tests/test_secret_leak_campaign.py +387 -0
  155. agentic_security_harness-1.0.0/tests/test_security_portfolio_roadmap_contract.py +60 -0
  156. agentic_security_harness-1.0.0/tests/test_semantic_drift_campaign.py +538 -0
  157. agentic_security_harness-1.0.0/tests/test_semantic_propagation_campaign.py +681 -0
  158. agentic_security_harness-1.0.0/tests/test_showcase.py +377 -0
  159. agentic_security_harness-1.0.0/tests/test_source_identity.py +38 -0
  160. agentic_security_harness-1.0.0/tests/test_standards_mapping.py +98 -0
  161. agentic_security_harness-1.0.0/tests/test_static_import_closure.py +222 -0
  162. agentic_security_harness-1.0.0/tests/test_stats.py +414 -0
  163. agentic_security_harness-1.0.0/tests/test_swarm_defense_contour.py +299 -0
  164. agentic_security_harness-1.0.0/tests/test_swarm_defense_live_campaign.py +751 -0
  165. agentic_security_harness-1.0.0/tests/test_swarm_resilience_campaign.py +315 -0
  166. agentic_security_harness-1.0.0/tests/test_tool_authority_campaign.py +142 -0
  167. agentic_security_harness-1.0.0/tests/test_toy_adapters.py +92 -0
  168. agentic_security_harness-1.0.0/tests/test_toy_multi_agent.py +123 -0
  169. agentic_security_harness-1.0.0/tests/test_trace_schema_contract.py +155 -0
  170. agentic_security_harness-1.0.0/tests/test_trading_bot_stand.py +3784 -0
  171. agentic_security_harness-1.0.0/tests/test_v06_patterns.py +107 -0
  172. agentic_security_harness-1.0.0/tests/test_v07_patterns.py +65 -0
  173. agentic_security_harness-1.0.0/tests/test_validation.py +1183 -0
  174. agentic_security_harness-1.0.0/tests/test_workflow_security.py +99 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,10 @@
1
+ Agentic Security Harness
2
+ Copyright 2026 krivonosoff161
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this project except in compliance with the License.
6
+ A copy of the License is provided in the LICENSE file, or at
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ The project name, logos, and branding are not granted as trademarks.
10
+ Please preserve attribution when referencing the project or its corpus.
@@ -0,0 +1,286 @@
1
+ Metadata-Version: 2.4
2
+ Name: agentic-security-harness
3
+ Version: 1.0.0
4
+ Summary: Open-source defensive harness and learning lab for reproducing and measuring agentic AI failure modes with portable traces, attack graphs, scorecards, and data-boundary tests.
5
+ Author: Dmitry Krivonosov
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/krivonosoff161/agentic-security-harness
8
+ Project-URL: Repository, https://github.com/krivonosoff161/agentic-security-harness
9
+ Project-URL: Issues, https://github.com/krivonosoff161/agentic-security-harness/issues
10
+ Project-URL: Changelog, https://github.com/krivonosoff161/agentic-security-harness/blob/main/CHANGELOG.md
11
+ Keywords: ai-security,agentic-ai,benchmark,llm-security,prompt-injection,red-team
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Information Technology
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Security
21
+ Classifier: Typing :: Typed
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ License-File: NOTICE
26
+ Requires-Dist: pydantic<3,>=2
27
+ Provides-Extra: dev
28
+ Requires-Dist: pytest>=8; extra == "dev"
29
+ Requires-Dist: ruff>=0.5; extra == "dev"
30
+ Requires-Dist: mypy>=1.8; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ # Agentic Security Harness
34
+
35
+ [![OpenSSF Best Practices](https://www.bestpractices.dev/projects/13320/badge)](https://www.bestpractices.dev/projects/13320)
36
+ [![CI](https://github.com/krivonosoff161/agentic-security-harness/actions/workflows/ci.yml/badge.svg)](https://github.com/krivonosoff161/agentic-security-harness/actions/workflows/ci.yml)
37
+ [![CodeQL](https://github.com/krivonosoff161/agentic-security-harness/actions/workflows/codeql.yml/badge.svg)](https://github.com/krivonosoff161/agentic-security-harness/actions/workflows/codeql.yml)
38
+ ![Python](https://img.shields.io/badge/python-3.11%2B-blue)
39
+ ![License](https://img.shields.io/badge/license-Apache--2.0-green)
40
+ ![Status](https://img.shields.io/badge/status-v1.0--ready-blue)
41
+
42
+ **Your AI coding agent reads untrusted repository text. Can it keep data separate from
43
+ instructions and authority?**
44
+
45
+ Agentic Security Harness is a local, trace-first benchmark for defensive testing of
46
+ agentic AI boundary failures. It runs reproducible synthetic scenarios, records portable
47
+ traces and scorecards, and compares a deliberately vulnerable local agent with a protected
48
+ one.
49
+
50
+ In plain English: it turns “the agent behaved unsafely” into evidence you can replay,
51
+ validate, compare, and review.
52
+
53
+ ## Quickstart
54
+
55
+ Install the current source checkout:
56
+
57
+ ```bash
58
+ git clone https://github.com/krivonosoff161/agentic-security-harness.git
59
+ cd agentic-security-harness
60
+ python -m pip install .
61
+ ash quickstart --out reports/quickstart
62
+ ```
63
+
64
+ After the separately gated PyPI publication, the primary install command becomes:
65
+
66
+ ```bash
67
+ python -m pip install agentic-security-harness
68
+ ```
69
+
70
+ `ash quickstart` is local and no-network. It runs the same stable 24-pattern corpus against
71
+ both demo targets, validates the generated artifacts, and renders a self-contained HTML
72
+ report.
73
+
74
+ | Target | Modeled findings | Patterns passed |
75
+ |---|---:|---:|
76
+ | `demo-agent` | 24 | 0 |
77
+ | `protected-demo-agent` | 0 | 24 |
78
+
79
+ The deterministic result is **24 modeled findings** for the vulnerable fixture and
80
+ **0 modeled findings** for the protected fixture. This is synthetic conformance evidence,
81
+ not a production safety claim.
82
+
83
+ ![Terminal comparison showing 24 findings reduced to 0](docs/images/terminal-compare.png)
84
+
85
+ ![Rendered comparison report table](docs/images/comparison-table.png)
86
+
87
+ Inspect the committed before/after example in
88
+ [`examples/comparison-report/`](examples/comparison-report/) or validate every public
89
+ example locally:
90
+
91
+ ```bash
92
+ ash validate examples/
93
+ ash validate docs/evidence-status-registry.json
94
+ ```
95
+
96
+ ## What this is / is not
97
+
98
+ | This project is | This project is not |
99
+ |---|---|
100
+ | A reproducible benchmark for agent operating-environment boundaries. | A production safety certification. |
101
+ | A synthetic and authorized defensive testing lab. | A live exploitation or persistence toolkit. |
102
+ | A way to compare vulnerable and protected targets using portable artifacts. | Proof that a provider, model, or deployed agent is secure. |
103
+ | A stable trace/corpus contract with machine-readable validation. | A model leaderboard or CVE database. |
104
+
105
+ The benchmark focuses on agent operating-environment boundaries, not just standalone model answers.
106
+ Built-in targets are deterministic and offline. The experimental external adapter
107
+ is explicit opt-in, prompt-only, and does not execute tools. See
108
+ [`docs/benchmark-semantics.md`](docs/benchmark-semantics.md) and
109
+ [`docs/authorized-testing-paths.md`](docs/authorized-testing-paths.md).
110
+
111
+ ## Visual evidence snapshot
112
+
113
+ ![Evidence flow from scenario to validated report](docs/assets/evidence-flow.svg)
114
+
115
+ The public evidence map separates deterministic executable specifications, sanitized local
116
+ observations, historical material, and independently reviewed evidence:
117
+
118
+ - [Evidence map](docs/showcase/evidence-map.md)
119
+ - [Evidence classes](docs/evidence-classes.md)
120
+ - [Machine-readable evidence registry](docs/evidence-status-registry.json)
121
+ - [Evidence pack format](docs/evidence-pack-format.md)
122
+ - [Private/public evidence boundary](docs/private-public-evidence-boundary.md)
123
+
124
+ Public artifacts may include scenario identifiers, aggregate counts, response hashes, and
125
+ validator results. They do not include raw private prompts, raw responses, synthetic
126
+ canaries, or local paths. Keep external raw material under
127
+ `.internal/external-demo/latest`. **Do not** commit `raw_responses/` or other private
128
+ runtime evidence.
129
+
130
+ ## Current stable surface
131
+
132
+ - Trace schema `1.0`, with a bounded legacy `0.1` read/migration window.
133
+ - Corpus `1.0.0`, freezing 24 ordered synthetic pattern identifiers.
134
+ - Local targets for vulnerable/protected agent, RAG, tool, function, and multi-agent
135
+ handoff comparisons, including `toy-multi-agent` and `protected-toy-multi-agent`.
136
+ - JSON traces, scorecards, run manifests, remediation, Markdown reports, and
137
+ self-contained HTML reports.
138
+ - Deterministic validators for artifact integrity and declared benchmark semantics.
139
+ - Linux/Python 3.11-3.13 as the primary installed-package contour, with Windows 3.11
140
+ compatibility coverage.
141
+ - Reproducible wheel/sdist builds, checksums, GitHub attestations, and an exact-subject
142
+ CycloneDX SBOM in the next authorized tag workflow.
143
+
144
+ The exact shipped, experimental, planned, and historical surfaces live in
145
+ [`docs/current-state.md`](docs/current-state.md) and
146
+ [`docs/capability-matrix.md`](docs/capability-matrix.md). Technical v1 gates and honest
147
+ non-claims are in [`docs/v1-readiness.md`](docs/v1-readiness.md).
148
+
149
+ ## If you only have one minute
150
+
151
+ - Run the no-network demo above.
152
+ - Read the [committed comparison](examples/comparison-report/README.md).
153
+ - Browse the [showcase](docs/showcase/index.md) and
154
+ [scenario matrix](docs/showcase/scenario-matrix.md).
155
+ - See [weak spots and findings](docs/showcase/weak-spots-and-findings.md).
156
+ - Check [current state](docs/current-state.md) and the
157
+ [project tracker](docs/project-tracker.md).
158
+ - Bring your own local or OpenAI-compatible model through
159
+ [Run your model](docs/run-your-model.md).
160
+
161
+ ## Use your own model or runtime
162
+
163
+ The shortest cross-platform operator path is
164
+ [`docs/run-your-model.md`](docs/run-your-model.md). It covers:
165
+
166
+ 1. a no-model deterministic demo;
167
+ 2. one explicitly authorized OpenAI-compatible model;
168
+ 3. a deterministic local swarm comparison;
169
+ 4. a bounded local-model mini-swarm campaign.
170
+
171
+ Connection details and scenario selection are documented in
172
+ [`docs/connect-models.md`](docs/connect-models.md) and
173
+ [`docs/test-your-model.md`](docs/test-your-model.md). External runs are prompt-only
174
+ self-report checks unless a separately reviewed host/tool adapter exists. A coherent answer
175
+ is not evidence of safe tool execution.
176
+
177
+ ## Benchmark and evidence documentation
178
+
179
+ The README is the front door; deeper contracts live in `docs/`:
180
+
181
+ | Question | Source of truth |
182
+ |---|---|
183
+ | What is shipped now? | [Current state](docs/current-state.md) |
184
+ | What work is open? | [Project tracker](docs/project-tracker.md) and [roadmap](docs/roadmap.md) |
185
+ | Which testing paths are authorized? | [Authorized testing paths](docs/authorized-testing-paths.md) |
186
+ | Which system shapes are evaluated? | [Evaluation topologies](docs/evaluation-topologies.md) |
187
+ | What boundary model is used? | [Agentic boundary model](docs/agentic-boundary-model.md) |
188
+ | How is the corpus expanded? | [Corpus expansion plan](docs/corpus-expansion-plan.md) |
189
+ | What do metrics mean? | [Metric contract](docs/metric-contract.md) |
190
+ | How are scenarios sequenced? | [Scenario timeline](docs/scenario-timeline.md) |
191
+ | How should reports be showcased? | [Showcase checklist](docs/showcase-report-checklist.md) |
192
+ | How is evidence promoted? | [Evidence pack format](docs/evidence-pack-format.md) |
193
+ | How are changes reviewed? | [Git evidence workflow](docs/git-evidence-workflow.md) |
194
+
195
+ Specialized reviewer paths:
196
+
197
+ - [Local Prometheus workflow](docs/local-prometheus-workflow.md)
198
+ - [Local model profiles](docs/local-model-profiles.md)
199
+ - [Multi-agent handoff toy topology](docs/handoff-toy-topology.md)
200
+ - [Security audit causal map](docs/security-audit-causal-map-2026-07-15.md)
201
+ - [R5 sanitized research status](docs/r5-research-status.md)
202
+ - [Project governance](GOVERNANCE.md)
203
+
204
+ ## Standards and portfolio boundaries
205
+
206
+ The project publishes conservative mappings to OWASP LLM, NIST, and a direct-fit MITRE
207
+ ATLAS subset in [`docs/standards-mapping.md`](docs/standards-mapping.md). These are
208
+ maintainer-reviewed mappings, not certification or independent standards validation.
209
+ Independent review remains public follow-up work.
210
+
211
+ The related public contract includes:
212
+
213
+ - [Threat ontology](docs/threat-ontology.md): 26 provider-neutral failure families.
214
+ - [Scenario adjudication ledger](docs/scenario-adjudication-ledger.md): 127 bounded source
215
+ units from 13 enumerated builders.
216
+ - [Unified event envelope](docs/unified-event-envelope.md): separation of observations,
217
+ data, authority, advisories, decisions, and effects.
218
+
219
+ The 127 units are **not 127 canonical attacks** and **not a repository-wide total**. The
220
+ contract grants no executor, provider, deployment, enforcement, or production authority.
221
+
222
+ ## Public security stack
223
+
224
+ Agentic Security Harness is the benchmark/evidence layer in a small public defensive
225
+ stack:
226
+
227
+ ```text
228
+ llm-safety-playbooks -> ai-agent-handoff -> agentic-transfer-verifier -> agentic-security-harness
229
+ ```
230
+
231
+ - [`llm-safety-playbooks`](https://github.com/krivonosoff161/llm-safety-playbooks)
232
+ documents practical boundary rules.
233
+ - [`ai-agent-handoff`](https://github.com/krivonosoff161/ai-agent-handoff)
234
+ represents task briefs and handoff state as reviewable files.
235
+ - [`agentic-transfer-verifier`](https://github.com/krivonosoff161/agentic-transfer-verifier)
236
+ checks provenance, authority, approval, and audit evidence around transfers.
237
+ - This repository measures modeled failures and produces validated benchmark artifacts.
238
+
239
+ The repositories are related but not interchangeable. A playbook is not a runtime control,
240
+ a handoff file is not a sandbox, and a passing benchmark is not a production certificate.
241
+
242
+ ## Release and package status
243
+
244
+ The source tree is prepared for the stable v1 contract. Tagging, GitHub Release creation,
245
+ TestPyPI upload, and PyPI publication remain separate, auditable owner gates. Until the
246
+ package-index promotion succeeds, source and GitHub Release installation are the supported
247
+ paths.
248
+
249
+ - [Release checklist](docs/release-checklist.md)
250
+ - [PyPI release process](docs/release-to-pypi.md)
251
+ - [Changelog](CHANGELOG.md)
252
+ - [Security policy](SECURITY.md)
253
+
254
+ Independent standards review and a durable second GitHub reviewer are transparent
255
+ post-v1 credibility tasks. Their absence does not change deterministic test results, but
256
+ independent review is not claimed.
257
+
258
+ ## Development
259
+
260
+ ```bash
261
+ python -m pip install -e ".[dev]"
262
+ python -m pytest
263
+ python -m ruff check .
264
+ python -m mypy src tests tools
265
+ ash validate examples/
266
+ ```
267
+
268
+ Development follows
269
+ `idea -> issue -> branch -> implementation -> tests/artifacts -> PR -> GitHub checks -> review gate`.
270
+ See [`docs/git-evidence-workflow.md`](docs/git-evidence-workflow.md),
271
+ [`CONTRIBUTING.md`](CONTRIBUTING.md), and [`docs/agent-operating-guide.md`](docs/agent-operating-guide.md).
272
+
273
+ ## Responsible use
274
+
275
+ Use only synthetic, local, owned, or explicitly authorized targets. Do not use this project
276
+ for credential theft, persistence, evasion, destructive payloads, or unauthorized systems.
277
+ See [`SECURITY.md`](SECURITY.md) and
278
+ [`docs/authorized-testing-paths.md`](docs/authorized-testing-paths.md).
279
+
280
+ ## Citation, contributing, and license
281
+
282
+ - Citation metadata: [`CITATION.cff`](CITATION.cff)
283
+ - Governance: [`GOVERNANCE.md`](GOVERNANCE.md)
284
+ - Contributing: [`CONTRIBUTING.md`](CONTRIBUTING.md)
285
+ - Support: [`SUPPORT.md`](SUPPORT.md)
286
+ - License: Apache-2.0, see [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE)