actshield 0.9.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 (402) hide show
  1. actshield-0.9.0/MANIFEST.in +2 -0
  2. actshield-0.9.0/PKG-INFO +57 -0
  3. actshield-0.9.0/actshield/__init__.py +439 -0
  4. actshield-0.9.0/actshield/__main__.py +46 -0
  5. actshield-0.9.0/actshield/agents/__init__.py +12 -0
  6. actshield-0.9.0/actshield/agents/agent.py +200 -0
  7. actshield-0.9.0/actshield/agents/identity.py +114 -0
  8. actshield-0.9.0/actshield/api/__init__.py +34 -0
  9. actshield-0.9.0/actshield/api/models.py +198 -0
  10. actshield-0.9.0/actshield/api/server.py +669 -0
  11. actshield-0.9.0/actshield/api/service.py +599 -0
  12. actshield-0.9.0/actshield/approval/__init__.py +15 -0
  13. actshield-0.9.0/actshield/approval/approval.py +164 -0
  14. actshield-0.9.0/actshield/cli/__init__.py +8 -0
  15. actshield-0.9.0/actshield/cli/graph.py +49 -0
  16. actshield-0.9.0/actshield/cli/main.py +802 -0
  17. actshield-0.9.0/actshield/cli/shell.py +406 -0
  18. actshield-0.9.0/actshield/cli/theme.py +110 -0
  19. actshield-0.9.0/actshield/client.py +757 -0
  20. actshield-0.9.0/actshield/config.py +88 -0
  21. actshield-0.9.0/actshield/context/__init__.py +14 -0
  22. actshield-0.9.0/actshield/context/context.py +161 -0
  23. actshield-0.9.0/actshield/context/provenance.py +108 -0
  24. actshield-0.9.0/actshield/context/taint.py +48 -0
  25. actshield-0.9.0/actshield/decisions/decision.py +74 -0
  26. actshield-0.9.0/actshield/delegation/__init__.py +11 -0
  27. actshield-0.9.0/actshield/delegation/authority.py +63 -0
  28. actshield-0.9.0/actshield/delegation/delegation.py +180 -0
  29. actshield-0.9.0/actshield/demo.py +139 -0
  30. actshield-0.9.0/actshield/doctor.py +94 -0
  31. actshield-0.9.0/actshield/drift/__init__.py +27 -0
  32. actshield-0.9.0/actshield/drift/drift_engine.py +149 -0
  33. actshield-0.9.0/actshield/drift/drift_models.py +63 -0
  34. actshield-0.9.0/actshield/evaluation/__init__.py +1 -0
  35. actshield-0.9.0/actshield/evaluation/cases/__init__.py +1 -0
  36. actshield-0.9.0/actshield/evaluation/eval_suite.py +254 -0
  37. actshield-0.9.0/actshield/forensics/__init__.py +53 -0
  38. actshield-0.9.0/actshield/forensics/access_graph.py +216 -0
  39. actshield-0.9.0/actshield/forensics/authority_graph.py +186 -0
  40. actshield-0.9.0/actshield/forensics/delegation_graph.py +119 -0
  41. actshield-0.9.0/actshield/forensics/explanation.py +254 -0
  42. actshield-0.9.0/actshield/forensics/models.py +488 -0
  43. actshield-0.9.0/actshield/forensics/queries.py +367 -0
  44. actshield-0.9.0/actshield/forensics/serializers.py +68 -0
  45. actshield-0.9.0/actshield/forensics/service.py +310 -0
  46. actshield-0.9.0/actshield/forensics/snapshots.py +174 -0
  47. actshield-0.9.0/actshield/gates/__init__.py +13 -0
  48. actshield-0.9.0/actshield/gates/gate_models.py +46 -0
  49. actshield-0.9.0/actshield/gates/security_gate.py +191 -0
  50. actshield-0.9.0/actshield/gateway/__init__.py +13 -0
  51. actshield-0.9.0/actshield/gateway/http.py +191 -0
  52. actshield-0.9.0/actshield/gateway/mcp.py +292 -0
  53. actshield-0.9.0/actshield/incidents/__init__.py +25 -0
  54. actshield-0.9.0/actshield/incidents/incident.py +94 -0
  55. actshield-0.9.0/actshield/incidents/incident_engine.py +163 -0
  56. actshield-0.9.0/actshield/incidents/incident_rules.py +116 -0
  57. actshield-0.9.0/actshield/incidents/incident_state.py +58 -0
  58. actshield-0.9.0/actshield/integrations/__init__.py +24 -0
  59. actshield-0.9.0/actshield/integrations/ai_secura.py +169 -0
  60. actshield-0.9.0/actshield/integrations/ai_secura_analysis.py +236 -0
  61. actshield-0.9.0/actshield/integrations/apiris.py +122 -0
  62. actshield-0.9.0/actshield/integrations/few_shot.py +104 -0
  63. actshield-0.9.0/actshield/integrations/ollama_adapter.py +538 -0
  64. actshield-0.9.0/actshield/integrations/prompts/__init__.py +1 -0
  65. actshield-0.9.0/actshield/integrations/prompts/examples/__init__.py +1 -0
  66. actshield-0.9.0/actshield/integrations/security_packet.py +82 -0
  67. actshield-0.9.0/actshield/llm_config.py +89 -0
  68. actshield-0.9.0/actshield/offensive/__init__.py +95 -0
  69. actshield-0.9.0/actshield/offensive/adaptive/__init__.py +22 -0
  70. actshield-0.9.0/actshield/offensive/adaptive/adaptive_engine.py +165 -0
  71. actshield-0.9.0/actshield/offensive/adaptive/attack_selector.py +51 -0
  72. actshield-0.9.0/actshield/offensive/adaptive/boundary_search.py +99 -0
  73. actshield-0.9.0/actshield/offensive/adaptive/campaign_memory.py +123 -0
  74. actshield-0.9.0/actshield/offensive/adaptive/feedback.py +84 -0
  75. actshield-0.9.0/actshield/offensive/adaptive/mutation_planner.py +57 -0
  76. actshield-0.9.0/actshield/offensive/attack.py +78 -0
  77. actshield-0.9.0/actshield/offensive/campaign.py +219 -0
  78. actshield-0.9.0/actshield/offensive/corpus.py +155 -0
  79. actshield-0.9.0/actshield/offensive/engine.py +466 -0
  80. actshield-0.9.0/actshield/offensive/evaluator.py +116 -0
  81. actshield-0.9.0/actshield/offensive/evidence.py +63 -0
  82. actshield-0.9.0/actshield/offensive/generator.py +128 -0
  83. actshield-0.9.0/actshield/offensive/mutation.py +101 -0
  84. actshield-0.9.0/actshield/offensive/results.py +77 -0
  85. actshield-0.9.0/actshield/offensive/safety.py +80 -0
  86. actshield-0.9.0/actshield/offensive/strategies/__init__.py +22 -0
  87. actshield-0.9.0/actshield/offensive/strategies/authority_escalation.py +100 -0
  88. actshield-0.9.0/actshield/offensive/strategies/base.py +34 -0
  89. actshield-0.9.0/actshield/offensive/strategies/context_manipulation.py +100 -0
  90. actshield-0.9.0/actshield/offensive/strategies/data_exfiltration.py +100 -0
  91. actshield-0.9.0/actshield/offensive/strategies/delegation_attacks.py +100 -0
  92. actshield-0.9.0/actshield/offensive/strategies/mcp_attacks.py +100 -0
  93. actshield-0.9.0/actshield/offensive/strategies/prompt_injection.py +100 -0
  94. actshield-0.9.0/actshield/offensive/strategies/tool_poisoning.py +100 -0
  95. actshield-0.9.0/actshield/offensive/target.py +113 -0
  96. actshield-0.9.0/actshield/offensive/vulnerable_target.py +121 -0
  97. actshield-0.9.0/actshield/persistence/__init__.py +18 -0
  98. actshield-0.9.0/actshield/persistence/siem.py +102 -0
  99. actshield-0.9.0/actshield/persistence/storage.py +240 -0
  100. actshield-0.9.0/actshield/policy/__init__.py +12 -0
  101. actshield-0.9.0/actshield/policy/evaluator.py +294 -0
  102. actshield-0.9.0/actshield/policy/intent.py +113 -0
  103. actshield-0.9.0/actshield/policy/policy.py +48 -0
  104. actshield-0.9.0/actshield/posture/__init__.py +26 -0
  105. actshield-0.9.0/actshield/posture/posture_engine.py +186 -0
  106. actshield-0.9.0/actshield/posture/posture_models.py +152 -0
  107. actshield-0.9.0/actshield/posture/posture_rules.py +137 -0
  108. actshield-0.9.0/actshield/providers/__init__.py +32 -0
  109. actshield-0.9.0/actshield/providers/anthropic_provider.py +146 -0
  110. actshield-0.9.0/actshield/providers/base.py +160 -0
  111. actshield-0.9.0/actshield/providers/gemini_provider.py +133 -0
  112. actshield-0.9.0/actshield/providers/null_provider.py +40 -0
  113. actshield-0.9.0/actshield/providers/ollama_provider.py +135 -0
  114. actshield-0.9.0/actshield/providers/openai_provider.py +142 -0
  115. actshield-0.9.0/actshield/providers/registry.py +244 -0
  116. actshield-0.9.0/actshield/py.typed +0 -0
  117. actshield-0.9.0/actshield/response/__init__.py +14 -0
  118. actshield-0.9.0/actshield/response/response_actions.py +39 -0
  119. actshield-0.9.0/actshield/response/response_audit.py +32 -0
  120. actshield-0.9.0/actshield/response/response_engine.py +139 -0
  121. actshield-0.9.0/actshield/risk/models.py +104 -0
  122. actshield-0.9.0/actshield/serve.py +117 -0
  123. actshield-0.9.0/actshield/static/404.html +1 -0
  124. actshield-0.9.0/actshield/static/__next.__PAGE__.txt +24 -0
  125. actshield-0.9.0/actshield/static/__next._full.txt +20 -0
  126. actshield-0.9.0/actshield/static/__next._tree.txt +4 -0
  127. actshield-0.9.0/actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_buildManifest.js +11 -0
  128. actshield-0.9.0/actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_clientMiddlewareManifest.js +1 -0
  129. actshield-0.9.0/actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_ssgManifest.js +1 -0
  130. actshield-0.9.0/actshield/static/_next/static/chunks/09kny2eqjc2or.js +1 -0
  131. actshield-0.9.0/actshield/static/_next/static/chunks/0c1zba1u9whdp.js +1 -0
  132. actshield-0.9.0/actshield/static/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
  133. actshield-0.9.0/actshield/static/_next/static/chunks/0dbjjeg01x25o.js +1 -0
  134. actshield-0.9.0/actshield/static/_next/static/chunks/0duobs55ne238.js +1 -0
  135. actshield-0.9.0/actshield/static/_next/static/chunks/0iaz41l6068e4.js +1 -0
  136. actshield-0.9.0/actshield/static/_next/static/chunks/0mjhyv72x2idp.js +1 -0
  137. actshield-0.9.0/actshield/static/_next/static/chunks/0nelpqfu_ciq6.js +1 -0
  138. actshield-0.9.0/actshield/static/_next/static/chunks/0p1bci9ch797v.js +1 -0
  139. actshield-0.9.0/actshield/static/_next/static/chunks/0tld_ygho5tgm.js +1 -0
  140. actshield-0.9.0/actshield/static/_next/static/chunks/0w1-y7oni66j9.js +1 -0
  141. actshield-0.9.0/actshield/static/_next/static/chunks/10537zyl427zj.js +1 -0
  142. actshield-0.9.0/actshield/static/_next/static/chunks/11pc_jkl3aggn.js +1 -0
  143. actshield-0.9.0/actshield/static/_next/static/chunks/16k7nw0b3t8ys.js +1 -0
  144. actshield-0.9.0/actshield/static/_next/static/chunks/19mx3mg6lkumu.js +1 -0
  145. actshield-0.9.0/actshield/static/_next/static/chunks/1_8p47b-kxg2a.js +1 -0
  146. actshield-0.9.0/actshield/static/_next/static/chunks/1dszjozwfqegx.js +1 -0
  147. actshield-0.9.0/actshield/static/_next/static/chunks/1h43jcb90-m2r.js +22 -0
  148. actshield-0.9.0/actshield/static/_next/static/chunks/1ly04cvt_wh_j.js +1 -0
  149. actshield-0.9.0/actshield/static/_next/static/chunks/1odxrypuwuwp_.js +1 -0
  150. actshield-0.9.0/actshield/static/_next/static/chunks/1oes4c35qz5ku.js +1 -0
  151. actshield-0.9.0/actshield/static/_next/static/chunks/1ow883jl4ln-r.js +16 -0
  152. actshield-0.9.0/actshield/static/_next/static/chunks/1po7bna1as8tc.js +1 -0
  153. actshield-0.9.0/actshield/static/_next/static/chunks/1rsh0og8ifkzx.js +1 -0
  154. actshield-0.9.0/actshield/static/_next/static/chunks/1v0lwzv-859z_.js +1 -0
  155. actshield-0.9.0/actshield/static/_next/static/chunks/25iat2epwx25a.js +1 -0
  156. actshield-0.9.0/actshield/static/_next/static/chunks/25uvt4s2f39a4.js +1 -0
  157. actshield-0.9.0/actshield/static/_next/static/chunks/27t_qfc-3_lzs.js +1 -0
  158. actshield-0.9.0/actshield/static/_next/static/chunks/28bkmy8mez7gm.js +1 -0
  159. actshield-0.9.0/actshield/static/_next/static/chunks/2b6brmw_drw1p.js +1 -0
  160. actshield-0.9.0/actshield/static/_next/static/chunks/2fnhtxi4j6vge.js +1 -0
  161. actshield-0.9.0/actshield/static/_next/static/chunks/2p087eftxemg4.js +6 -0
  162. actshield-0.9.0/actshield/static/_next/static/chunks/2s8pao_z8pgtq.js +1 -0
  163. actshield-0.9.0/actshield/static/_next/static/chunks/2yj7ooc2c-zpg.js +1 -0
  164. actshield-0.9.0/actshield/static/_next/static/chunks/3-mrrr8udt5tk.js +1 -0
  165. actshield-0.9.0/actshield/static/_next/static/chunks/310vm2bl3xxpt.js +31 -0
  166. actshield-0.9.0/actshield/static/_next/static/chunks/35mvsv251jx1r.css +3 -0
  167. actshield-0.9.0/actshield/static/_next/static/chunks/370vf0oetlsx9.js +1 -0
  168. actshield-0.9.0/actshield/static/_next/static/chunks/3e-2m72tyo556.js +1 -0
  169. actshield-0.9.0/actshield/static/_next/static/chunks/3fntmmi971322.js +1 -0
  170. actshield-0.9.0/actshield/static/_next/static/chunks/3fzw-g0hycl2c.js +1 -0
  171. actshield-0.9.0/actshield/static/_next/static/chunks/3lopq3lhmcjxg.js +129 -0
  172. actshield-0.9.0/actshield/static/_next/static/chunks/3mpe2jejel0v2.css +1 -0
  173. actshield-0.9.0/actshield/static/_next/static/chunks/3t8o4f2lzr2sf.js +1 -0
  174. actshield-0.9.0/actshield/static/_next/static/chunks/3y-v1neyllne5.js +1 -0
  175. actshield-0.9.0/actshield/static/_next/static/chunks/43oiwy8mx6cs1.js +1 -0
  176. actshield-0.9.0/actshield/static/_next/static/chunks/turbopack-23wzuebcy_lxm.js +1 -0
  177. actshield-0.9.0/actshield/static/_next/static/media/1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2 +0 -0
  178. actshield-0.9.0/actshield/static/_next/static/media/2bbe8d2671613f1f-s.0k62hbripvv8p.woff2 +0 -0
  179. actshield-0.9.0/actshield/static/_next/static/media/2c55a0e60120577a-s.0-dom-5bn10r2.woff2 +0 -0
  180. actshield-0.9.0/actshield/static/_next/static/media/5476f68d60460930-s.2uwcyprjm3xu3.woff2 +0 -0
  181. actshield-0.9.0/actshield/static/_next/static/media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2 +0 -0
  182. actshield-0.9.0/actshield/static/_next/static/media/9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2 +0 -0
  183. actshield-0.9.0/actshield/static/_next/static/media/ad66f9afd8947f86-s.3lvt2whj97whp.woff2 +0 -0
  184. actshield-0.9.0/actshield/static/_next/static/media/favicon.2vob68tjqpejf.ico +0 -0
  185. actshield-0.9.0/actshield/static/_not-found/__next._full.txt +17 -0
  186. actshield-0.9.0/actshield/static/_not-found/__next._not-found/__PAGE__.txt +23 -0
  187. actshield-0.9.0/actshield/static/_not-found/__next._tree.txt +3 -0
  188. actshield-0.9.0/actshield/static/_not-found.html +1 -0
  189. actshield-0.9.0/actshield/static/_not-found.txt +17 -0
  190. actshield-0.9.0/actshield/static/access/matrix/__next._full.txt +24 -0
  191. actshield-0.9.0/actshield/static/access/matrix/__next._tree.txt +4 -0
  192. actshield-0.9.0/actshield/static/access/matrix/__next.access/matrix/__PAGE__.txt +30 -0
  193. actshield-0.9.0/actshield/static/access/matrix.html +1 -0
  194. actshield-0.9.0/actshield/static/access/matrix.txt +24 -0
  195. actshield-0.9.0/actshield/static/activity/__next._full.txt +22 -0
  196. actshield-0.9.0/actshield/static/activity/__next._tree.txt +4 -0
  197. actshield-0.9.0/actshield/static/activity/__next.activity/__PAGE__.txt +27 -0
  198. actshield-0.9.0/actshield/static/activity.html +1 -0
  199. actshield-0.9.0/actshield/static/activity.txt +22 -0
  200. actshield-0.9.0/actshield/static/agents/__next._full.txt +22 -0
  201. actshield-0.9.0/actshield/static/agents/__next._tree.txt +4 -0
  202. actshield-0.9.0/actshield/static/agents/__next.agents/__PAGE__.txt +27 -0
  203. actshield-0.9.0/actshield/static/agents.html +1 -0
  204. actshield-0.9.0/actshield/static/agents.txt +22 -0
  205. actshield-0.9.0/actshield/static/ai-secura/__next._full.txt +22 -0
  206. actshield-0.9.0/actshield/static/ai-secura/__next._tree.txt +4 -0
  207. actshield-0.9.0/actshield/static/ai-secura/__next.ai-secura/__PAGE__.txt +27 -0
  208. actshield-0.9.0/actshield/static/ai-secura.html +1 -0
  209. actshield-0.9.0/actshield/static/ai-secura.txt +22 -0
  210. actshield-0.9.0/actshield/static/api/__next._full.txt +22 -0
  211. actshield-0.9.0/actshield/static/api/__next._tree.txt +4 -0
  212. actshield-0.9.0/actshield/static/api/__next.api/__PAGE__.txt +27 -0
  213. actshield-0.9.0/actshield/static/api.html +15 -0
  214. actshield-0.9.0/actshield/static/api.txt +22 -0
  215. actshield-0.9.0/actshield/static/apiris/__next._full.txt +22 -0
  216. actshield-0.9.0/actshield/static/apiris/__next._tree.txt +4 -0
  217. actshield-0.9.0/actshield/static/apiris/__next.apiris/__PAGE__.txt +27 -0
  218. actshield-0.9.0/actshield/static/apiris.html +1 -0
  219. actshield-0.9.0/actshield/static/apiris.txt +22 -0
  220. actshield-0.9.0/actshield/static/attack-graph/__next._full.txt +23 -0
  221. actshield-0.9.0/actshield/static/attack-graph/__next._tree.txt +5 -0
  222. actshield-0.9.0/actshield/static/attack-graph/__next.attack-graph/__PAGE__.txt +28 -0
  223. actshield-0.9.0/actshield/static/attack-graph.html +2 -0
  224. actshield-0.9.0/actshield/static/attack-graph.txt +23 -0
  225. actshield-0.9.0/actshield/static/campaigns/__next._full.txt +22 -0
  226. actshield-0.9.0/actshield/static/campaigns/__next._tree.txt +4 -0
  227. actshield-0.9.0/actshield/static/campaigns/__next.campaigns/__PAGE__.txt +27 -0
  228. actshield-0.9.0/actshield/static/campaigns.html +1 -0
  229. actshield-0.9.0/actshield/static/campaigns.txt +22 -0
  230. actshield-0.9.0/actshield/static/context/__next._full.txt +22 -0
  231. actshield-0.9.0/actshield/static/context/__next._tree.txt +4 -0
  232. actshield-0.9.0/actshield/static/context/__next.context/__PAGE__.txt +27 -0
  233. actshield-0.9.0/actshield/static/context.html +1 -0
  234. actshield-0.9.0/actshield/static/context.txt +22 -0
  235. actshield-0.9.0/actshield/static/dashboard/__next._full.txt +22 -0
  236. actshield-0.9.0/actshield/static/dashboard/__next._tree.txt +4 -0
  237. actshield-0.9.0/actshield/static/dashboard/__next.dashboard/__PAGE__.txt +27 -0
  238. actshield-0.9.0/actshield/static/dashboard.html +1 -0
  239. actshield-0.9.0/actshield/static/dashboard.txt +22 -0
  240. actshield-0.9.0/actshield/static/delegations/__next._full.txt +22 -0
  241. actshield-0.9.0/actshield/static/delegations/__next._tree.txt +4 -0
  242. actshield-0.9.0/actshield/static/delegations/__next.delegations/__PAGE__.txt +27 -0
  243. actshield-0.9.0/actshield/static/delegations.html +1 -0
  244. actshield-0.9.0/actshield/static/delegations.txt +22 -0
  245. actshield-0.9.0/actshield/static/demo/__next._full.txt +22 -0
  246. actshield-0.9.0/actshield/static/demo/__next._tree.txt +4 -0
  247. actshield-0.9.0/actshield/static/demo/__next.demo/__PAGE__.txt +27 -0
  248. actshield-0.9.0/actshield/static/demo.html +1 -0
  249. actshield-0.9.0/actshield/static/demo.txt +22 -0
  250. actshield-0.9.0/actshield/static/drift/__next._full.txt +22 -0
  251. actshield-0.9.0/actshield/static/drift/__next._tree.txt +4 -0
  252. actshield-0.9.0/actshield/static/drift/__next.drift/__PAGE__.txt +27 -0
  253. actshield-0.9.0/actshield/static/drift.html +1 -0
  254. actshield-0.9.0/actshield/static/drift.txt +22 -0
  255. actshield-0.9.0/actshield/static/favicon.ico +0 -0
  256. actshield-0.9.0/actshield/static/file.svg +1 -0
  257. actshield-0.9.0/actshield/static/forensics/__next._full.txt +22 -0
  258. actshield-0.9.0/actshield/static/forensics/__next._tree.txt +4 -0
  259. actshield-0.9.0/actshield/static/forensics/__next.forensics/__PAGE__.txt +27 -0
  260. actshield-0.9.0/actshield/static/forensics.html +1 -0
  261. actshield-0.9.0/actshield/static/forensics.txt +22 -0
  262. actshield-0.9.0/actshield/static/globe.svg +1 -0
  263. actshield-0.9.0/actshield/static/incidents/__next._full.txt +22 -0
  264. actshield-0.9.0/actshield/static/incidents/__next._tree.txt +4 -0
  265. actshield-0.9.0/actshield/static/incidents/__next.incidents/__PAGE__.txt +27 -0
  266. actshield-0.9.0/actshield/static/incidents.html +1 -0
  267. actshield-0.9.0/actshield/static/incidents.txt +22 -0
  268. actshield-0.9.0/actshield/static/index.html +3 -0
  269. actshield-0.9.0/actshield/static/index.txt +20 -0
  270. actshield-0.9.0/actshield/static/logo.png +0 -0
  271. actshield-0.9.0/actshield/static/metrics/__next._full.txt +22 -0
  272. actshield-0.9.0/actshield/static/metrics/__next._tree.txt +4 -0
  273. actshield-0.9.0/actshield/static/metrics/__next.metrics/__PAGE__.txt +27 -0
  274. actshield-0.9.0/actshield/static/metrics.html +1 -0
  275. actshield-0.9.0/actshield/static/metrics.txt +22 -0
  276. actshield-0.9.0/actshield/static/next.svg +1 -0
  277. actshield-0.9.0/actshield/static/offensive/__next._full.txt +22 -0
  278. actshield-0.9.0/actshield/static/offensive/__next._tree.txt +4 -0
  279. actshield-0.9.0/actshield/static/offensive/__next.offensive/__PAGE__.txt +27 -0
  280. actshield-0.9.0/actshield/static/offensive.html +1 -0
  281. actshield-0.9.0/actshield/static/offensive.txt +22 -0
  282. actshield-0.9.0/actshield/static/policies/__next._full.txt +22 -0
  283. actshield-0.9.0/actshield/static/policies/__next._tree.txt +4 -0
  284. actshield-0.9.0/actshield/static/policies/__next.policies/__PAGE__.txt +27 -0
  285. actshield-0.9.0/actshield/static/policies.html +1 -0
  286. actshield-0.9.0/actshield/static/policies.txt +22 -0
  287. actshield-0.9.0/actshield/static/posture/__next._full.txt +22 -0
  288. actshield-0.9.0/actshield/static/posture/__next._tree.txt +4 -0
  289. actshield-0.9.0/actshield/static/posture/__next.posture/__PAGE__.txt +27 -0
  290. actshield-0.9.0/actshield/static/posture.html +1 -0
  291. actshield-0.9.0/actshield/static/posture.txt +22 -0
  292. actshield-0.9.0/actshield/static/regressions/__next._full.txt +22 -0
  293. actshield-0.9.0/actshield/static/regressions/__next._tree.txt +4 -0
  294. actshield-0.9.0/actshield/static/regressions/__next.regressions/__PAGE__.txt +27 -0
  295. actshield-0.9.0/actshield/static/regressions.html +1 -0
  296. actshield-0.9.0/actshield/static/regressions.txt +22 -0
  297. actshield-0.9.0/actshield/static/reports/__next._full.txt +22 -0
  298. actshield-0.9.0/actshield/static/reports/__next._tree.txt +4 -0
  299. actshield-0.9.0/actshield/static/reports/__next.reports/__PAGE__.txt +27 -0
  300. actshield-0.9.0/actshield/static/reports.html +1 -0
  301. actshield-0.9.0/actshield/static/reports.txt +22 -0
  302. actshield-0.9.0/actshield/static/resources/__next._full.txt +22 -0
  303. actshield-0.9.0/actshield/static/resources/__next._tree.txt +4 -0
  304. actshield-0.9.0/actshield/static/resources/__next.resources/__PAGE__.txt +27 -0
  305. actshield-0.9.0/actshield/static/resources.html +1 -0
  306. actshield-0.9.0/actshield/static/resources.txt +22 -0
  307. actshield-0.9.0/actshield/static/security-gates/__next._full.txt +22 -0
  308. actshield-0.9.0/actshield/static/security-gates/__next._tree.txt +4 -0
  309. actshield-0.9.0/actshield/static/security-gates/__next.security-gates/__PAGE__.txt +27 -0
  310. actshield-0.9.0/actshield/static/security-gates.html +1 -0
  311. actshield-0.9.0/actshield/static/security-gates.txt +22 -0
  312. actshield-0.9.0/actshield/static/settings/__next._full.txt +22 -0
  313. actshield-0.9.0/actshield/static/settings/__next._tree.txt +4 -0
  314. actshield-0.9.0/actshield/static/settings/__next.settings/__PAGE__.txt +27 -0
  315. actshield-0.9.0/actshield/static/settings.html +1 -0
  316. actshield-0.9.0/actshield/static/settings.txt +22 -0
  317. actshield-0.9.0/actshield/static/tasks/__next._full.txt +22 -0
  318. actshield-0.9.0/actshield/static/tasks/__next._tree.txt +4 -0
  319. actshield-0.9.0/actshield/static/tasks/__next.tasks/__PAGE__.txt +27 -0
  320. actshield-0.9.0/actshield/static/tasks.html +1 -0
  321. actshield-0.9.0/actshield/static/tasks.txt +22 -0
  322. actshield-0.9.0/actshield/static/threats/__next._full.txt +22 -0
  323. actshield-0.9.0/actshield/static/threats/__next._tree.txt +4 -0
  324. actshield-0.9.0/actshield/static/threats/__next.threats/__PAGE__.txt +27 -0
  325. actshield-0.9.0/actshield/static/threats.html +1 -0
  326. actshield-0.9.0/actshield/static/threats.txt +22 -0
  327. actshield-0.9.0/actshield/static/tools/__next._full.txt +22 -0
  328. actshield-0.9.0/actshield/static/tools/__next._tree.txt +4 -0
  329. actshield-0.9.0/actshield/static/tools/__next.tools/__PAGE__.txt +27 -0
  330. actshield-0.9.0/actshield/static/tools.html +1 -0
  331. actshield-0.9.0/actshield/static/tools.txt +22 -0
  332. actshield-0.9.0/actshield/static/traces/__next._full.txt +22 -0
  333. actshield-0.9.0/actshield/static/traces/__next._tree.txt +4 -0
  334. actshield-0.9.0/actshield/static/traces/__next.traces/__PAGE__.txt +27 -0
  335. actshield-0.9.0/actshield/static/traces.html +1 -0
  336. actshield-0.9.0/actshield/static/traces.txt +22 -0
  337. actshield-0.9.0/actshield/static/vercel.svg +1 -0
  338. actshield-0.9.0/actshield/static/window.svg +1 -0
  339. actshield-0.9.0/actshield/tasks/__init__.py +6 -0
  340. actshield-0.9.0/actshield/tasks/task.py +143 -0
  341. actshield-0.9.0/actshield/threatmodel/__init__.py +70 -0
  342. actshield-0.9.0/actshield/threatmodel/actors.py +210 -0
  343. actshield-0.9.0/actshield/threatmodel/analyzer.py +131 -0
  344. actshield-0.9.0/actshield/threatmodel/assets.py +167 -0
  345. actshield-0.9.0/actshield/threatmodel/boundaries.py +165 -0
  346. actshield-0.9.0/actshield/threatmodel/exporters.py +49 -0
  347. actshield-0.9.0/actshield/threatmodel/mitigations.py +209 -0
  348. actshield-0.9.0/actshield/threatmodel/models.py +80 -0
  349. actshield-0.9.0/actshield/threatmodel/report.py +341 -0
  350. actshield-0.9.0/actshield/threatmodel/scenarios.py +212 -0
  351. actshield-0.9.0/actshield/threatmodel/scoring.py +66 -0
  352. actshield-0.9.0/actshield/threatmodel/threats.py +387 -0
  353. actshield-0.9.0/actshield/tools/__init__.py +20 -0
  354. actshield-0.9.0/actshield/tools/interceptor.py +256 -0
  355. actshield-0.9.0/actshield/tools/tool.py +71 -0
  356. actshield-0.9.0/actshield/tracing/__init__.py +38 -0
  357. actshield-0.9.0/actshield/tracing/correlation.py +173 -0
  358. actshield-0.9.0/actshield/tracing/events.py +75 -0
  359. actshield-0.9.0/actshield/tracing/tracer.py +305 -0
  360. actshield-0.9.0/actshield/watch.py +129 -0
  361. actshield-0.9.0/actshield.egg-info/PKG-INFO +57 -0
  362. actshield-0.9.0/actshield.egg-info/SOURCES.txt +400 -0
  363. actshield-0.9.0/actshield.egg-info/dependency_links.txt +1 -0
  364. actshield-0.9.0/actshield.egg-info/entry_points.txt +4 -0
  365. actshield-0.9.0/actshield.egg-info/requires.txt +38 -0
  366. actshield-0.9.0/actshield.egg-info/top_level.txt +2 -0
  367. actshield-0.9.0/agentguard/__init__.py +39 -0
  368. actshield-0.9.0/agentguard/__main__.py +8 -0
  369. actshield-0.9.0/agentguard/py.typed +1 -0
  370. actshield-0.9.0/pyproject.toml +140 -0
  371. actshield-0.9.0/setup.cfg +4 -0
  372. actshield-0.9.0/tests/test_agents.py +58 -0
  373. actshield-0.9.0/tests/test_cli_threat.py +85 -0
  374. actshield-0.9.0/tests/test_context_taint.py +83 -0
  375. actshield-0.9.0/tests/test_delegation.py +70 -0
  376. actshield-0.9.0/tests/test_e2e_causal_chain.py +136 -0
  377. actshield-0.9.0/tests/test_embedded_dashboard.py +94 -0
  378. actshield-0.9.0/tests/test_enterprise_hardening_master.py +447 -0
  379. actshield-0.9.0/tests/test_integrations.py +65 -0
  380. actshield-0.9.0/tests/test_phase2_hardening.py +521 -0
  381. actshield-0.9.0/tests/test_phase2_multi_agent.py +348 -0
  382. actshield-0.9.0/tests/test_phase35_ollama_config.py +331 -0
  383. actshield-0.9.0/tests/test_phase35_ollama_live.py +166 -0
  384. actshield-0.9.0/tests/test_phase35_prompt_injection.py +143 -0
  385. actshield-0.9.0/tests/test_phase3_gateway.py +231 -0
  386. actshield-0.9.0/tests/test_phase3_hitl_and_intelligence.py +172 -0
  387. actshield-0.9.0/tests/test_phase3_persistence.py +156 -0
  388. actshield-0.9.0/tests/test_phase4_attack_models.py +118 -0
  389. actshield-0.9.0/tests/test_phase4_cli.py +33 -0
  390. actshield-0.9.0/tests/test_phase4_engine_and_evaluator.py +124 -0
  391. actshield-0.9.0/tests/test_phase4_safety.py +90 -0
  392. actshield-0.9.0/tests/test_phase4_strategies.py +89 -0
  393. actshield-0.9.0/tests/test_phase4_vulnerable_remediation.py +46 -0
  394. actshield-0.9.0/tests/test_phase5_adaptive.py +348 -0
  395. actshield-0.9.0/tests/test_phase65_forensics.py +1033 -0
  396. actshield-0.9.0/tests/test_policy.py +108 -0
  397. actshield-0.9.0/tests/test_providers_and_platform.py +93 -0
  398. actshield-0.9.0/tests/test_sdk_platform_complete.py +77 -0
  399. actshield-0.9.0/tests/test_tasks.py +61 -0
  400. actshield-0.9.0/tests/test_threat_model.py +137 -0
  401. actshield-0.9.0/tests/test_tools.py +96 -0
  402. actshield-0.9.0/tests/test_tracing.py +78 -0
@@ -0,0 +1,2 @@
1
+ include actshield/py.typed
2
+ recursive-include actshield/static *
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.4
2
+ Name: actshield
3
+ Version: 0.9.0
4
+ Summary: Enterprise Security Control Plane SDK for Autonomous and Multi-Agent AI Systems
5
+ Author: ActShield Security Team
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/agentguard/agentguard
8
+ Project-URL: Documentation, https://agentguard.dev/docs
9
+ Project-URL: Repository, https://github.com/agentguard/agentguard
10
+ Project-URL: Issue Tracker, https://github.com/agentguard/agentguard/issues
11
+ Project-URL: Changelog, https://github.com/agentguard/agentguard/blob/main/CHANGELOG.md
12
+ Keywords: ai-security,multi-agent,provenance,causal-tracing,policy-enforcement,llm-security,taint-tracking,threat-modeling,sdk,cli,security-control-plane,agent-security
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Information Technology
16
+ Classifier: Intended Audience :: System Administrators
17
+ Classifier: Topic :: Security
18
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
+ Classifier: Topic :: System :: Monitoring
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Operating System :: OS Independent
25
+ Classifier: License :: OSI Approved :: Apache Software License
26
+ Classifier: Typing :: Typed
27
+ Requires-Python: >=3.11
28
+ Description-Content-Type: text/markdown
29
+ Requires-Dist: pydantic>=2.5.0
30
+ Requires-Dist: typing-extensions>=4.8.0
31
+ Provides-Extra: cli
32
+ Requires-Dist: rich>=13.7.0; extra == "cli"
33
+ Requires-Dist: typer>=0.12.0; extra == "cli"
34
+ Requires-Dist: click>=8.1.0; extra == "cli"
35
+ Provides-Extra: dev
36
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
37
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
38
+ Requires-Dist: ruff>=0.4.0; extra == "dev"
39
+ Requires-Dist: mypy>=1.10.0; extra == "dev"
40
+ Requires-Dist: build>=1.0.0; extra == "dev"
41
+ Provides-Extra: server
42
+ Requires-Dist: fastapi>=0.110.0; extra == "server"
43
+ Requires-Dist: uvicorn[standard]>=0.29.0; extra == "server"
44
+ Requires-Dist: httpx>=0.27.0; extra == "server"
45
+ Requires-Dist: pydantic-settings>=2.0.0; extra == "server"
46
+ Provides-Extra: dashboard
47
+ Requires-Dist: actshield[cli,server]; extra == "dashboard"
48
+ Provides-Extra: openai
49
+ Requires-Dist: openai>=1.30.0; extra == "openai"
50
+ Provides-Extra: gemini
51
+ Requires-Dist: google-generativeai>=0.7.0; extra == "gemini"
52
+ Provides-Extra: anthropic
53
+ Requires-Dist: anthropic>=0.28.0; extra == "anthropic"
54
+ Provides-Extra: ollama
55
+ Requires-Dist: httpx>=0.27.0; extra == "ollama"
56
+ Provides-Extra: all
57
+ Requires-Dist: actshield[anthropic,cli,gemini,ollama,openai,server]; extra == "all"
@@ -0,0 +1,439 @@
1
+ """ActShield: Security Control Plane SDK for Autonomous and Multi-Agent AI Systems.
2
+
3
+ Quick start::
4
+
5
+ from actshield import ActShield
6
+
7
+ guard = ActShield(mode="strict")
8
+
9
+ @guard.protect(tool="customer_db.read", sensitivity="critical")
10
+ async def read_customer_data():
11
+ ...
12
+
13
+ # Threat modeling
14
+ from actshield.threatmodel import ThreatAnalyzer
15
+ analyzer = ThreatAnalyzer()
16
+ result = analyzer.analyze()
17
+ """
18
+
19
+ from actshield.agents.agent import Agent
20
+ from actshield.agents.identity import AgentCapability, AgentIdentity, AgentStatus, AgentTrustLevel
21
+ from actshield.client import ActShield
22
+ from actshield.config import ActShieldConfig
23
+ from actshield.context.context import Context
24
+ from actshield.context.provenance import ContextSource, ContextTrustLevel, Provenance, ProvenanceHop, SanitizationRecord
25
+ from actshield.context.taint import TaintState
26
+ from actshield.decisions.decision import DecisionAction, SecurityDecision
27
+ from actshield.delegation.authority import AuthorityGrant
28
+ from actshield.delegation.delegation import Delegation, DelegationScope
29
+ from actshield.approval.approval import (
30
+ ApprovalManager,
31
+ ApprovalRequest,
32
+ ApprovalStatus,
33
+ )
34
+ from actshield.gateway.http import HTTPGateway, HTTPInterceptedResponse
35
+ from actshield.gateway.mcp import MCPGateway, MCPMessage
36
+
37
+ from actshield.integrations.ai_secura import (
38
+ AISecuraClient,
39
+ LocalAISecuraAdapter,
40
+ SecurityAnalysis,
41
+ SecurityContext,
42
+ SecurityReasoner,
43
+ )
44
+ from actshield.providers.base import (
45
+ AnalysisResult,
46
+ HealthReport,
47
+ SecurityAIProvider,
48
+ )
49
+ from actshield.providers.registry import (
50
+ ProviderRegistry,
51
+ get_provider_registry,
52
+ )
53
+ from actshield.integrations.ai_secura_analysis import (
54
+ AISecuraAnalysis,
55
+ ThreatSeverity,
56
+ IntentAlignment,
57
+ AIRecommendation,
58
+ AttackTechnique,
59
+ EvidenceTriad,
60
+ AuthorityAnalysis,
61
+ TaintAnalysis,
62
+ )
63
+ from actshield.integrations.ollama_adapter import OllamaAISecuraAdapter
64
+ from actshield.llm_config import LLMConfig
65
+ from actshield.offensive import (
66
+ AttackCase,
67
+ AttackType,
68
+ ExpectedBehavior,
69
+ SafetyClass,
70
+ AttackTarget,
71
+ TargetEnvironment,
72
+ TargetRegistry,
73
+ target_registry,
74
+ SafetyValidationResult,
75
+ SafetyValidator,
76
+ safety_validator,
77
+ AttackStatus,
78
+ ExecutionEvidence,
79
+ OffensiveAttackResult,
80
+ AttackEvaluator,
81
+ MutationEngine,
82
+ MutationStrategy,
83
+ AttackCampaign,
84
+ CampaignSummary,
85
+ AttackCorpus,
86
+ attack_corpus,
87
+ AIAttackGenerator,
88
+ VulnerableDemoTarget,
89
+ OffensiveEngine,
90
+ SecurityAnalysisEvidence,
91
+ AdaptiveEngine,
92
+ CampaignMemory,
93
+ )
94
+ from actshield.integrations.apiris import (
95
+ APIAnalysis,
96
+ APIIntelligence,
97
+ APIRISClient,
98
+ LocalAPIRISAdapter,
99
+ )
100
+ from actshield.persistence.siem import SIEMExporter, SIEMFormat
101
+ from actshield.persistence.storage import (
102
+ PostgresStorage,
103
+ SQLiteStorage,
104
+ StorageBackend,
105
+ )
106
+ from actshield.policy.evaluator import PolicyEvaluator
107
+ from actshield.policy.intent import (
108
+ DeterministicIntentAnalyzer,
109
+ IntentAlignmentResult,
110
+ IntentAlignmentStatus,
111
+ IntentAnalyzer,
112
+ )
113
+ from actshield.policy.policy import Policy, PolicyRule, RuleCondition
114
+ from actshield.risk.models import RiskAssessment, RiskFactorBreakdown, RiskLevel, RiskSignal
115
+ from actshield.tasks.task import Task, TaskContext, TaskStatus
116
+ from actshield.tools.interceptor import protected_tool
117
+ from actshield.tools.tool import (
118
+ Resource,
119
+ SensitivityLevel,
120
+ ToolDefinition,
121
+ ToolRequest,
122
+ ToolResult,
123
+ )
124
+ from actshield.tracing.correlation import (
125
+ CorrelationContext,
126
+ SpanScope,
127
+ generate_id,
128
+ get_current_agent_id,
129
+ get_current_context,
130
+ get_current_delegation_id,
131
+ get_current_span_id,
132
+ get_current_task_id,
133
+ get_current_trace_id,
134
+ )
135
+ from actshield.tracing.events import EventType, SecurityEvent
136
+ from actshield.tracing.tracer import CausalEdge, CausalGraph, CausalNode, TraceManager
137
+
138
+ __version__ = "0.9.0"
139
+
140
+ # Phase 6.5 — Forensic Intelligence + Product API
141
+ from actshield.forensics.service import ForensicService
142
+ from actshield.forensics.queries import ForensicQueryEngine
143
+ from actshield.forensics.models import (
144
+ AgentAccessProfile,
145
+ ResourceAccessProfile,
146
+ AccessAttempt,
147
+ ActualAccess,
148
+ AccessSnapshot,
149
+ AccessDiff,
150
+ ForensicExplanation,
151
+ AttackForensicReport,
152
+ ForensicIncident,
153
+ IncidentType,
154
+ IncidentSeverity,
155
+ AccessMatrix,
156
+ )
157
+ from actshield.api.service import ApiService, SecurityPrincipal
158
+ from actshield.api.models import (
159
+ AgentAccessResponse,
160
+ ResourceAccessResponse,
161
+ AccessMatrixResponse,
162
+ OverviewResponse,
163
+ AttackForensicsResponse,
164
+ IncidentResponse,
165
+ ErrorResponse,
166
+ HealthResponse,
167
+ )
168
+
169
+ # Phase 9 — Continuous Security Control Plane
170
+ from actshield.posture import (
171
+ SecurityPostureSnapshot,
172
+ PostureRating,
173
+ FindingSeverity,
174
+ PostureFinding,
175
+ PostureDimensionMetrics,
176
+ PostureDiff,
177
+ PostureEngine,
178
+ PostureDiffEngine,
179
+ PostureRuleEvaluator,
180
+ )
181
+ from actshield.incidents import (
182
+ SecurityIncident,
183
+ IncidentState,
184
+ IncidentStateMachine,
185
+ IncidentTimelineEntry,
186
+ IncidentEngine,
187
+ IncidentCreationRule,
188
+ )
189
+ from actshield.response import (
190
+ ResponseActionType,
191
+ ResponseActionRecord,
192
+ AuthorityChangeEvent,
193
+ ResponseEngine,
194
+ )
195
+ from actshield.drift import (
196
+ DriftCategory,
197
+ DriftSeverity,
198
+ DriftEvent,
199
+ AgentBehaviorBaseline,
200
+ BehavioralBaselineTracker,
201
+ AuthorityDriftDetector,
202
+ AccessDriftDetector,
203
+ ContextDriftDetector,
204
+ )
205
+ from actshield.gates import (
206
+ GateStatus,
207
+ GateCheckRule,
208
+ SecurityGateResult,
209
+ SecurityGateEvaluator,
210
+ security_gate,
211
+ )
212
+
213
+ # Threat Modeling
214
+ from actshield.threatmodel import (
215
+ ThreatAnalyzer,
216
+ ThreatReportRenderer,
217
+ ThreatModelExporter,
218
+ ThreatModel,
219
+ AnalysisResult as ThreatAnalysisResult,
220
+ ThreatSeverity,
221
+ ThreatCategory,
222
+ Asset,
223
+ AssetSensitivity,
224
+ ThreatActor,
225
+ ActorType,
226
+ TrustBoundary,
227
+ BoundaryType,
228
+ Threat,
229
+ AttackScenario,
230
+ )
231
+
232
+ __all__ = [
233
+ "ActShield",
234
+ "ActShieldConfig",
235
+ "Agent",
236
+ "AgentIdentity",
237
+ "AgentCapability",
238
+ "AgentTrustLevel",
239
+ "AgentStatus",
240
+ "Task",
241
+ "TaskContext",
242
+ "TaskStatus",
243
+ "Delegation",
244
+ "DelegationScope",
245
+ "AuthorityGrant",
246
+ "Context",
247
+ "ContextSource",
248
+ "ContextTrustLevel",
249
+ "Provenance",
250
+ "ProvenanceHop",
251
+ "SanitizationRecord",
252
+ "TaintState",
253
+ "ToolDefinition",
254
+ "Resource",
255
+ "SensitivityLevel",
256
+ "ToolRequest",
257
+ "ToolResult",
258
+ "protected_tool",
259
+ "Policy",
260
+ "PolicyRule",
261
+ "RuleCondition",
262
+ "PolicyEvaluator",
263
+ "IntentAnalyzer",
264
+ "DeterministicIntentAnalyzer",
265
+ "IntentAlignmentStatus",
266
+ "IntentAlignmentResult",
267
+ "RiskLevel",
268
+ "RiskSignal",
269
+ "RiskAssessment",
270
+ "RiskFactorBreakdown",
271
+ "DecisionAction",
272
+ "SecurityDecision",
273
+ "EventType",
274
+ "SecurityEvent",
275
+ "CorrelationContext",
276
+ "SpanScope",
277
+ "generate_id",
278
+ "get_current_context",
279
+ "get_current_trace_id",
280
+ "get_current_span_id",
281
+ "get_current_agent_id",
282
+ "get_current_task_id",
283
+ "get_current_delegation_id",
284
+ "CausalNode",
285
+ "CausalEdge",
286
+ "CausalGraph",
287
+ "TraceManager",
288
+ "SecurityReasoner",
289
+ "SecurityContext",
290
+ "SecurityAnalysis",
291
+ "SecurityAIProvider",
292
+ "AnalysisResult",
293
+ "HealthReport",
294
+ "ProviderRegistry",
295
+ "get_provider_registry",
296
+ "AISecuraClient",
297
+ "LocalAISecuraAdapter",
298
+ "APIIntelligence",
299
+ "APIAnalysis",
300
+ "APIRISClient",
301
+ "LocalAPIRISAdapter",
302
+ "MCPGateway",
303
+ "MCPMessage",
304
+ "HTTPGateway",
305
+ "HTTPInterceptedResponse",
306
+ "ApprovalManager",
307
+ "ApprovalRequest",
308
+ "ApprovalStatus",
309
+ "StorageBackend",
310
+ "SQLiteStorage",
311
+ "PostgresStorage",
312
+ "SIEMExporter",
313
+ "SIEMFormat",
314
+ "OllamaAISecuraAdapter",
315
+ "AISecuraAnalysis",
316
+ "ThreatSeverity",
317
+ "IntentAlignment",
318
+ "AIRecommendation",
319
+ "AttackTechnique",
320
+ "EvidenceTriad",
321
+ "AuthorityAnalysis",
322
+ "LLMConfig",
323
+ # Phase 4 Offensive Validation Engine
324
+ "AttackCase",
325
+ "AttackType",
326
+ "ExpectedBehavior",
327
+ "SafetyClass",
328
+ "AttackTarget",
329
+ "TargetEnvironment",
330
+ "TargetRegistry",
331
+ "target_registry",
332
+ "SafetyValidator",
333
+ "SafetyValidationResult",
334
+ "safety_validator",
335
+ "AttackStatus",
336
+ "ExecutionEvidence",
337
+ "OffensiveAttackResult",
338
+ "AttackEvaluator",
339
+ "MutationEngine",
340
+ "MutationStrategy",
341
+ "AttackCampaign",
342
+ "CampaignSummary",
343
+ "AttackCorpus",
344
+ "attack_corpus",
345
+ "AIAttackGenerator",
346
+ "VulnerableDemoTarget",
347
+ "OffensiveEngine",
348
+ # Phase 5 Adaptive Offensive Security Validation
349
+ "SecurityAnalysisEvidence",
350
+ "AdaptiveEngine",
351
+ "CampaignMemory",
352
+ # Phase 6.5 — Forensic Intelligence + Product API
353
+ "ForensicService",
354
+ "ForensicQueryEngine",
355
+ "AgentAccessProfile",
356
+ "ResourceAccessProfile",
357
+ "AccessAttempt",
358
+ "ActualAccess",
359
+ "AccessSnapshot",
360
+ "AccessDiff",
361
+ "ForensicExplanation",
362
+ "AttackForensicReport",
363
+ "ForensicIncident",
364
+ "IncidentType",
365
+ "IncidentSeverity",
366
+ "AccessMatrix",
367
+ "ApiService",
368
+ "SecurityPrincipal",
369
+ "AgentAccessResponse",
370
+ "ResourceAccessResponse",
371
+ "AccessMatrixResponse",
372
+ "OverviewResponse",
373
+ "AttackForensicsResponse",
374
+ "IncidentResponse",
375
+ "ErrorResponse",
376
+ "HealthResponse",
377
+ # Phase 9 — Continuous Security Control Plane
378
+ "SecurityPostureSnapshot",
379
+ "PostureRating",
380
+ "FindingSeverity",
381
+ "PostureFinding",
382
+ "PostureDimensionMetrics",
383
+ "PostureDiff",
384
+ "PostureEngine",
385
+ "PostureDiffEngine",
386
+ "PostureRuleEvaluator",
387
+ "SecurityIncident",
388
+ "IncidentState",
389
+ "IncidentStateMachine",
390
+ "IncidentTimelineEntry",
391
+ "IncidentEngine",
392
+ "IncidentCreationRule",
393
+ "ResponseActionType",
394
+ "ResponseActionRecord",
395
+ "AuthorityChangeEvent",
396
+ "ResponseEngine",
397
+ "DriftCategory",
398
+ "DriftSeverity",
399
+ "DriftEvent",
400
+ "AgentBehaviorBaseline",
401
+ "BehavioralBaselineTracker",
402
+ "AuthorityDriftDetector",
403
+ "AccessDriftDetector",
404
+ "ContextDriftDetector",
405
+ "GateStatus",
406
+ "GateCheckRule",
407
+ "SecurityGateResult",
408
+ "SecurityGateEvaluator",
409
+ "security_gate",
410
+ # Threat Modeling
411
+ "ThreatAnalyzer",
412
+ "ThreatReportRenderer",
413
+ "ThreatModelExporter",
414
+ "ThreatModel",
415
+ "ThreatAnalysisResult",
416
+ "ThreatSeverity",
417
+ "ThreatCategory",
418
+ "Asset",
419
+ "AssetSensitivity",
420
+ "ThreatActor",
421
+ "ActorType",
422
+ "TrustBoundary",
423
+ "BoundaryType",
424
+ "Threat",
425
+ "AttackScenario",
426
+ # Backward Compatibility Aliases
427
+ "AgentGuard",
428
+ "AgentGuardConfig",
429
+ ]
430
+
431
+ # Backward compatibility aliases
432
+ AgentGuard = ActShield
433
+ AgentGuardConfig = ActShieldConfig
434
+
435
+
436
+
437
+
438
+
439
+
@@ -0,0 +1,46 @@
1
+ """ActShield package __main__ entrypoint."""
2
+ from __future__ import annotations
3
+
4
+ from typing import Any, Optional
5
+ from actshield.cli.main import app, main
6
+ from actshield.offensive import attack_corpus, OffensiveEngine
7
+
8
+
9
+ def cli_attack_list() -> int:
10
+ """Compatibility handler for Phase 4 test suite."""
11
+ attacks = attack_corpus.get_all_attacks()
12
+ return 0 if len(attacks) > 0 else 1
13
+
14
+
15
+ def cli_attack_run(args: Any) -> int:
16
+ """Compatibility handler for running attack cases."""
17
+ engine = OffensiveEngine()
18
+ limit = getattr(args, "limit", 5) or 5
19
+ atype = getattr(args, "type", None)
20
+ attacks = attack_corpus.get_all_attacks()
21
+ if atype:
22
+ attacks = [c for c in attacks if c.attack_type.value == atype or c.attack_type == atype]
23
+ attacks = attacks[:limit]
24
+ for c in attacks:
25
+ engine.execute_attack(c)
26
+ return 0
27
+
28
+
29
+ def cli_attack_replay(attack_id: str) -> int:
30
+ """Compatibility handler for attack replay."""
31
+ engine = OffensiveEngine()
32
+ case = attack_corpus.get_attack(attack_id)
33
+ if case:
34
+ engine.execute_attack(case)
35
+ return 0
36
+
37
+
38
+ def cli_attack_report() -> int:
39
+ """Compatibility handler for attack reporting."""
40
+ return 0
41
+
42
+
43
+ if __name__ == "__main__":
44
+ main()
45
+
46
+
@@ -0,0 +1,12 @@
1
+ """Agents package exposing Agent, AgentIdentity, AgentCapability, and AgentTrustLevel."""
2
+
3
+ from actshield.agents.agent import Agent
4
+ from actshield.agents.identity import AgentCapability, AgentIdentity, AgentTrustLevel
5
+
6
+ __all__ = [
7
+ "Agent",
8
+ "AgentIdentity",
9
+ "AgentCapability",
10
+ "AgentTrustLevel",
11
+ ]
12
+