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.
- actshield-0.9.0/MANIFEST.in +2 -0
- actshield-0.9.0/PKG-INFO +57 -0
- actshield-0.9.0/actshield/__init__.py +439 -0
- actshield-0.9.0/actshield/__main__.py +46 -0
- actshield-0.9.0/actshield/agents/__init__.py +12 -0
- actshield-0.9.0/actshield/agents/agent.py +200 -0
- actshield-0.9.0/actshield/agents/identity.py +114 -0
- actshield-0.9.0/actshield/api/__init__.py +34 -0
- actshield-0.9.0/actshield/api/models.py +198 -0
- actshield-0.9.0/actshield/api/server.py +669 -0
- actshield-0.9.0/actshield/api/service.py +599 -0
- actshield-0.9.0/actshield/approval/__init__.py +15 -0
- actshield-0.9.0/actshield/approval/approval.py +164 -0
- actshield-0.9.0/actshield/cli/__init__.py +8 -0
- actshield-0.9.0/actshield/cli/graph.py +49 -0
- actshield-0.9.0/actshield/cli/main.py +802 -0
- actshield-0.9.0/actshield/cli/shell.py +406 -0
- actshield-0.9.0/actshield/cli/theme.py +110 -0
- actshield-0.9.0/actshield/client.py +757 -0
- actshield-0.9.0/actshield/config.py +88 -0
- actshield-0.9.0/actshield/context/__init__.py +14 -0
- actshield-0.9.0/actshield/context/context.py +161 -0
- actshield-0.9.0/actshield/context/provenance.py +108 -0
- actshield-0.9.0/actshield/context/taint.py +48 -0
- actshield-0.9.0/actshield/decisions/decision.py +74 -0
- actshield-0.9.0/actshield/delegation/__init__.py +11 -0
- actshield-0.9.0/actshield/delegation/authority.py +63 -0
- actshield-0.9.0/actshield/delegation/delegation.py +180 -0
- actshield-0.9.0/actshield/demo.py +139 -0
- actshield-0.9.0/actshield/doctor.py +94 -0
- actshield-0.9.0/actshield/drift/__init__.py +27 -0
- actshield-0.9.0/actshield/drift/drift_engine.py +149 -0
- actshield-0.9.0/actshield/drift/drift_models.py +63 -0
- actshield-0.9.0/actshield/evaluation/__init__.py +1 -0
- actshield-0.9.0/actshield/evaluation/cases/__init__.py +1 -0
- actshield-0.9.0/actshield/evaluation/eval_suite.py +254 -0
- actshield-0.9.0/actshield/forensics/__init__.py +53 -0
- actshield-0.9.0/actshield/forensics/access_graph.py +216 -0
- actshield-0.9.0/actshield/forensics/authority_graph.py +186 -0
- actshield-0.9.0/actshield/forensics/delegation_graph.py +119 -0
- actshield-0.9.0/actshield/forensics/explanation.py +254 -0
- actshield-0.9.0/actshield/forensics/models.py +488 -0
- actshield-0.9.0/actshield/forensics/queries.py +367 -0
- actshield-0.9.0/actshield/forensics/serializers.py +68 -0
- actshield-0.9.0/actshield/forensics/service.py +310 -0
- actshield-0.9.0/actshield/forensics/snapshots.py +174 -0
- actshield-0.9.0/actshield/gates/__init__.py +13 -0
- actshield-0.9.0/actshield/gates/gate_models.py +46 -0
- actshield-0.9.0/actshield/gates/security_gate.py +191 -0
- actshield-0.9.0/actshield/gateway/__init__.py +13 -0
- actshield-0.9.0/actshield/gateway/http.py +191 -0
- actshield-0.9.0/actshield/gateway/mcp.py +292 -0
- actshield-0.9.0/actshield/incidents/__init__.py +25 -0
- actshield-0.9.0/actshield/incidents/incident.py +94 -0
- actshield-0.9.0/actshield/incidents/incident_engine.py +163 -0
- actshield-0.9.0/actshield/incidents/incident_rules.py +116 -0
- actshield-0.9.0/actshield/incidents/incident_state.py +58 -0
- actshield-0.9.0/actshield/integrations/__init__.py +24 -0
- actshield-0.9.0/actshield/integrations/ai_secura.py +169 -0
- actshield-0.9.0/actshield/integrations/ai_secura_analysis.py +236 -0
- actshield-0.9.0/actshield/integrations/apiris.py +122 -0
- actshield-0.9.0/actshield/integrations/few_shot.py +104 -0
- actshield-0.9.0/actshield/integrations/ollama_adapter.py +538 -0
- actshield-0.9.0/actshield/integrations/prompts/__init__.py +1 -0
- actshield-0.9.0/actshield/integrations/prompts/examples/__init__.py +1 -0
- actshield-0.9.0/actshield/integrations/security_packet.py +82 -0
- actshield-0.9.0/actshield/llm_config.py +89 -0
- actshield-0.9.0/actshield/offensive/__init__.py +95 -0
- actshield-0.9.0/actshield/offensive/adaptive/__init__.py +22 -0
- actshield-0.9.0/actshield/offensive/adaptive/adaptive_engine.py +165 -0
- actshield-0.9.0/actshield/offensive/adaptive/attack_selector.py +51 -0
- actshield-0.9.0/actshield/offensive/adaptive/boundary_search.py +99 -0
- actshield-0.9.0/actshield/offensive/adaptive/campaign_memory.py +123 -0
- actshield-0.9.0/actshield/offensive/adaptive/feedback.py +84 -0
- actshield-0.9.0/actshield/offensive/adaptive/mutation_planner.py +57 -0
- actshield-0.9.0/actshield/offensive/attack.py +78 -0
- actshield-0.9.0/actshield/offensive/campaign.py +219 -0
- actshield-0.9.0/actshield/offensive/corpus.py +155 -0
- actshield-0.9.0/actshield/offensive/engine.py +466 -0
- actshield-0.9.0/actshield/offensive/evaluator.py +116 -0
- actshield-0.9.0/actshield/offensive/evidence.py +63 -0
- actshield-0.9.0/actshield/offensive/generator.py +128 -0
- actshield-0.9.0/actshield/offensive/mutation.py +101 -0
- actshield-0.9.0/actshield/offensive/results.py +77 -0
- actshield-0.9.0/actshield/offensive/safety.py +80 -0
- actshield-0.9.0/actshield/offensive/strategies/__init__.py +22 -0
- actshield-0.9.0/actshield/offensive/strategies/authority_escalation.py +100 -0
- actshield-0.9.0/actshield/offensive/strategies/base.py +34 -0
- actshield-0.9.0/actshield/offensive/strategies/context_manipulation.py +100 -0
- actshield-0.9.0/actshield/offensive/strategies/data_exfiltration.py +100 -0
- actshield-0.9.0/actshield/offensive/strategies/delegation_attacks.py +100 -0
- actshield-0.9.0/actshield/offensive/strategies/mcp_attacks.py +100 -0
- actshield-0.9.0/actshield/offensive/strategies/prompt_injection.py +100 -0
- actshield-0.9.0/actshield/offensive/strategies/tool_poisoning.py +100 -0
- actshield-0.9.0/actshield/offensive/target.py +113 -0
- actshield-0.9.0/actshield/offensive/vulnerable_target.py +121 -0
- actshield-0.9.0/actshield/persistence/__init__.py +18 -0
- actshield-0.9.0/actshield/persistence/siem.py +102 -0
- actshield-0.9.0/actshield/persistence/storage.py +240 -0
- actshield-0.9.0/actshield/policy/__init__.py +12 -0
- actshield-0.9.0/actshield/policy/evaluator.py +294 -0
- actshield-0.9.0/actshield/policy/intent.py +113 -0
- actshield-0.9.0/actshield/policy/policy.py +48 -0
- actshield-0.9.0/actshield/posture/__init__.py +26 -0
- actshield-0.9.0/actshield/posture/posture_engine.py +186 -0
- actshield-0.9.0/actshield/posture/posture_models.py +152 -0
- actshield-0.9.0/actshield/posture/posture_rules.py +137 -0
- actshield-0.9.0/actshield/providers/__init__.py +32 -0
- actshield-0.9.0/actshield/providers/anthropic_provider.py +146 -0
- actshield-0.9.0/actshield/providers/base.py +160 -0
- actshield-0.9.0/actshield/providers/gemini_provider.py +133 -0
- actshield-0.9.0/actshield/providers/null_provider.py +40 -0
- actshield-0.9.0/actshield/providers/ollama_provider.py +135 -0
- actshield-0.9.0/actshield/providers/openai_provider.py +142 -0
- actshield-0.9.0/actshield/providers/registry.py +244 -0
- actshield-0.9.0/actshield/py.typed +0 -0
- actshield-0.9.0/actshield/response/__init__.py +14 -0
- actshield-0.9.0/actshield/response/response_actions.py +39 -0
- actshield-0.9.0/actshield/response/response_audit.py +32 -0
- actshield-0.9.0/actshield/response/response_engine.py +139 -0
- actshield-0.9.0/actshield/risk/models.py +104 -0
- actshield-0.9.0/actshield/serve.py +117 -0
- actshield-0.9.0/actshield/static/404.html +1 -0
- actshield-0.9.0/actshield/static/__next.__PAGE__.txt +24 -0
- actshield-0.9.0/actshield/static/__next._full.txt +20 -0
- actshield-0.9.0/actshield/static/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_buildManifest.js +11 -0
- actshield-0.9.0/actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_clientMiddlewareManifest.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/Yp_swxN-C9UoCRNOwkYnY/_ssgManifest.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/09kny2eqjc2or.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0c1zba1u9whdp.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0dbjjeg01x25o.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0duobs55ne238.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0iaz41l6068e4.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0mjhyv72x2idp.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0nelpqfu_ciq6.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0p1bci9ch797v.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0tld_ygho5tgm.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/0w1-y7oni66j9.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/10537zyl427zj.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/11pc_jkl3aggn.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/16k7nw0b3t8ys.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/19mx3mg6lkumu.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1_8p47b-kxg2a.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1dszjozwfqegx.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1h43jcb90-m2r.js +22 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1ly04cvt_wh_j.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1odxrypuwuwp_.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1oes4c35qz5ku.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1ow883jl4ln-r.js +16 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1po7bna1as8tc.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1rsh0og8ifkzx.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/1v0lwzv-859z_.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/25iat2epwx25a.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/25uvt4s2f39a4.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/27t_qfc-3_lzs.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/28bkmy8mez7gm.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/2b6brmw_drw1p.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/2fnhtxi4j6vge.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/2p087eftxemg4.js +6 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/2s8pao_z8pgtq.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/2yj7ooc2c-zpg.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/3-mrrr8udt5tk.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/310vm2bl3xxpt.js +31 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/35mvsv251jx1r.css +3 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/370vf0oetlsx9.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/3e-2m72tyo556.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/3fntmmi971322.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/3fzw-g0hycl2c.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/3lopq3lhmcjxg.js +129 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/3mpe2jejel0v2.css +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/3t8o4f2lzr2sf.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/3y-v1neyllne5.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/43oiwy8mx6cs1.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/chunks/turbopack-23wzuebcy_lxm.js +1 -0
- actshield-0.9.0/actshield/static/_next/static/media/1bffadaabf893a1e-s.3-6t-g6q0vh0a.woff2 +0 -0
- actshield-0.9.0/actshield/static/_next/static/media/2bbe8d2671613f1f-s.0k62hbripvv8p.woff2 +0 -0
- actshield-0.9.0/actshield/static/_next/static/media/2c55a0e60120577a-s.0-dom-5bn10r2.woff2 +0 -0
- actshield-0.9.0/actshield/static/_next/static/media/5476f68d60460930-s.2uwcyprjm3xu3.woff2 +0 -0
- actshield-0.9.0/actshield/static/_next/static/media/83afe278b6a6bb3c-s.p.2bn3s6zvc0dyp.woff2 +0 -0
- actshield-0.9.0/actshield/static/_next/static/media/9c72aa0f40e4eef8-s.1y4-pdgsjb-pw.woff2 +0 -0
- actshield-0.9.0/actshield/static/_next/static/media/ad66f9afd8947f86-s.3lvt2whj97whp.woff2 +0 -0
- actshield-0.9.0/actshield/static/_next/static/media/favicon.2vob68tjqpejf.ico +0 -0
- actshield-0.9.0/actshield/static/_not-found/__next._full.txt +17 -0
- actshield-0.9.0/actshield/static/_not-found/__next._not-found/__PAGE__.txt +23 -0
- actshield-0.9.0/actshield/static/_not-found/__next._tree.txt +3 -0
- actshield-0.9.0/actshield/static/_not-found.html +1 -0
- actshield-0.9.0/actshield/static/_not-found.txt +17 -0
- actshield-0.9.0/actshield/static/access/matrix/__next._full.txt +24 -0
- actshield-0.9.0/actshield/static/access/matrix/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/access/matrix/__next.access/matrix/__PAGE__.txt +30 -0
- actshield-0.9.0/actshield/static/access/matrix.html +1 -0
- actshield-0.9.0/actshield/static/access/matrix.txt +24 -0
- actshield-0.9.0/actshield/static/activity/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/activity/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/activity/__next.activity/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/activity.html +1 -0
- actshield-0.9.0/actshield/static/activity.txt +22 -0
- actshield-0.9.0/actshield/static/agents/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/agents/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/agents/__next.agents/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/agents.html +1 -0
- actshield-0.9.0/actshield/static/agents.txt +22 -0
- actshield-0.9.0/actshield/static/ai-secura/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/ai-secura/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/ai-secura/__next.ai-secura/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/ai-secura.html +1 -0
- actshield-0.9.0/actshield/static/ai-secura.txt +22 -0
- actshield-0.9.0/actshield/static/api/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/api/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/api/__next.api/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/api.html +15 -0
- actshield-0.9.0/actshield/static/api.txt +22 -0
- actshield-0.9.0/actshield/static/apiris/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/apiris/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/apiris/__next.apiris/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/apiris.html +1 -0
- actshield-0.9.0/actshield/static/apiris.txt +22 -0
- actshield-0.9.0/actshield/static/attack-graph/__next._full.txt +23 -0
- actshield-0.9.0/actshield/static/attack-graph/__next._tree.txt +5 -0
- actshield-0.9.0/actshield/static/attack-graph/__next.attack-graph/__PAGE__.txt +28 -0
- actshield-0.9.0/actshield/static/attack-graph.html +2 -0
- actshield-0.9.0/actshield/static/attack-graph.txt +23 -0
- actshield-0.9.0/actshield/static/campaigns/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/campaigns/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/campaigns/__next.campaigns/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/campaigns.html +1 -0
- actshield-0.9.0/actshield/static/campaigns.txt +22 -0
- actshield-0.9.0/actshield/static/context/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/context/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/context/__next.context/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/context.html +1 -0
- actshield-0.9.0/actshield/static/context.txt +22 -0
- actshield-0.9.0/actshield/static/dashboard/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/dashboard/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/dashboard/__next.dashboard/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/dashboard.html +1 -0
- actshield-0.9.0/actshield/static/dashboard.txt +22 -0
- actshield-0.9.0/actshield/static/delegations/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/delegations/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/delegations/__next.delegations/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/delegations.html +1 -0
- actshield-0.9.0/actshield/static/delegations.txt +22 -0
- actshield-0.9.0/actshield/static/demo/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/demo/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/demo/__next.demo/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/demo.html +1 -0
- actshield-0.9.0/actshield/static/demo.txt +22 -0
- actshield-0.9.0/actshield/static/drift/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/drift/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/drift/__next.drift/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/drift.html +1 -0
- actshield-0.9.0/actshield/static/drift.txt +22 -0
- actshield-0.9.0/actshield/static/favicon.ico +0 -0
- actshield-0.9.0/actshield/static/file.svg +1 -0
- actshield-0.9.0/actshield/static/forensics/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/forensics/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/forensics/__next.forensics/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/forensics.html +1 -0
- actshield-0.9.0/actshield/static/forensics.txt +22 -0
- actshield-0.9.0/actshield/static/globe.svg +1 -0
- actshield-0.9.0/actshield/static/incidents/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/incidents/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/incidents/__next.incidents/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/incidents.html +1 -0
- actshield-0.9.0/actshield/static/incidents.txt +22 -0
- actshield-0.9.0/actshield/static/index.html +3 -0
- actshield-0.9.0/actshield/static/index.txt +20 -0
- actshield-0.9.0/actshield/static/logo.png +0 -0
- actshield-0.9.0/actshield/static/metrics/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/metrics/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/metrics/__next.metrics/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/metrics.html +1 -0
- actshield-0.9.0/actshield/static/metrics.txt +22 -0
- actshield-0.9.0/actshield/static/next.svg +1 -0
- actshield-0.9.0/actshield/static/offensive/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/offensive/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/offensive/__next.offensive/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/offensive.html +1 -0
- actshield-0.9.0/actshield/static/offensive.txt +22 -0
- actshield-0.9.0/actshield/static/policies/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/policies/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/policies/__next.policies/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/policies.html +1 -0
- actshield-0.9.0/actshield/static/policies.txt +22 -0
- actshield-0.9.0/actshield/static/posture/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/posture/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/posture/__next.posture/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/posture.html +1 -0
- actshield-0.9.0/actshield/static/posture.txt +22 -0
- actshield-0.9.0/actshield/static/regressions/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/regressions/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/regressions/__next.regressions/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/regressions.html +1 -0
- actshield-0.9.0/actshield/static/regressions.txt +22 -0
- actshield-0.9.0/actshield/static/reports/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/reports/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/reports/__next.reports/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/reports.html +1 -0
- actshield-0.9.0/actshield/static/reports.txt +22 -0
- actshield-0.9.0/actshield/static/resources/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/resources/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/resources/__next.resources/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/resources.html +1 -0
- actshield-0.9.0/actshield/static/resources.txt +22 -0
- actshield-0.9.0/actshield/static/security-gates/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/security-gates/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/security-gates/__next.security-gates/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/security-gates.html +1 -0
- actshield-0.9.0/actshield/static/security-gates.txt +22 -0
- actshield-0.9.0/actshield/static/settings/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/settings/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/settings/__next.settings/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/settings.html +1 -0
- actshield-0.9.0/actshield/static/settings.txt +22 -0
- actshield-0.9.0/actshield/static/tasks/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/tasks/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/tasks/__next.tasks/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/tasks.html +1 -0
- actshield-0.9.0/actshield/static/tasks.txt +22 -0
- actshield-0.9.0/actshield/static/threats/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/threats/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/threats/__next.threats/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/threats.html +1 -0
- actshield-0.9.0/actshield/static/threats.txt +22 -0
- actshield-0.9.0/actshield/static/tools/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/tools/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/tools/__next.tools/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/tools.html +1 -0
- actshield-0.9.0/actshield/static/tools.txt +22 -0
- actshield-0.9.0/actshield/static/traces/__next._full.txt +22 -0
- actshield-0.9.0/actshield/static/traces/__next._tree.txt +4 -0
- actshield-0.9.0/actshield/static/traces/__next.traces/__PAGE__.txt +27 -0
- actshield-0.9.0/actshield/static/traces.html +1 -0
- actshield-0.9.0/actshield/static/traces.txt +22 -0
- actshield-0.9.0/actshield/static/vercel.svg +1 -0
- actshield-0.9.0/actshield/static/window.svg +1 -0
- actshield-0.9.0/actshield/tasks/__init__.py +6 -0
- actshield-0.9.0/actshield/tasks/task.py +143 -0
- actshield-0.9.0/actshield/threatmodel/__init__.py +70 -0
- actshield-0.9.0/actshield/threatmodel/actors.py +210 -0
- actshield-0.9.0/actshield/threatmodel/analyzer.py +131 -0
- actshield-0.9.0/actshield/threatmodel/assets.py +167 -0
- actshield-0.9.0/actshield/threatmodel/boundaries.py +165 -0
- actshield-0.9.0/actshield/threatmodel/exporters.py +49 -0
- actshield-0.9.0/actshield/threatmodel/mitigations.py +209 -0
- actshield-0.9.0/actshield/threatmodel/models.py +80 -0
- actshield-0.9.0/actshield/threatmodel/report.py +341 -0
- actshield-0.9.0/actshield/threatmodel/scenarios.py +212 -0
- actshield-0.9.0/actshield/threatmodel/scoring.py +66 -0
- actshield-0.9.0/actshield/threatmodel/threats.py +387 -0
- actshield-0.9.0/actshield/tools/__init__.py +20 -0
- actshield-0.9.0/actshield/tools/interceptor.py +256 -0
- actshield-0.9.0/actshield/tools/tool.py +71 -0
- actshield-0.9.0/actshield/tracing/__init__.py +38 -0
- actshield-0.9.0/actshield/tracing/correlation.py +173 -0
- actshield-0.9.0/actshield/tracing/events.py +75 -0
- actshield-0.9.0/actshield/tracing/tracer.py +305 -0
- actshield-0.9.0/actshield/watch.py +129 -0
- actshield-0.9.0/actshield.egg-info/PKG-INFO +57 -0
- actshield-0.9.0/actshield.egg-info/SOURCES.txt +400 -0
- actshield-0.9.0/actshield.egg-info/dependency_links.txt +1 -0
- actshield-0.9.0/actshield.egg-info/entry_points.txt +4 -0
- actshield-0.9.0/actshield.egg-info/requires.txt +38 -0
- actshield-0.9.0/actshield.egg-info/top_level.txt +2 -0
- actshield-0.9.0/agentguard/__init__.py +39 -0
- actshield-0.9.0/agentguard/__main__.py +8 -0
- actshield-0.9.0/agentguard/py.typed +1 -0
- actshield-0.9.0/pyproject.toml +140 -0
- actshield-0.9.0/setup.cfg +4 -0
- actshield-0.9.0/tests/test_agents.py +58 -0
- actshield-0.9.0/tests/test_cli_threat.py +85 -0
- actshield-0.9.0/tests/test_context_taint.py +83 -0
- actshield-0.9.0/tests/test_delegation.py +70 -0
- actshield-0.9.0/tests/test_e2e_causal_chain.py +136 -0
- actshield-0.9.0/tests/test_embedded_dashboard.py +94 -0
- actshield-0.9.0/tests/test_enterprise_hardening_master.py +447 -0
- actshield-0.9.0/tests/test_integrations.py +65 -0
- actshield-0.9.0/tests/test_phase2_hardening.py +521 -0
- actshield-0.9.0/tests/test_phase2_multi_agent.py +348 -0
- actshield-0.9.0/tests/test_phase35_ollama_config.py +331 -0
- actshield-0.9.0/tests/test_phase35_ollama_live.py +166 -0
- actshield-0.9.0/tests/test_phase35_prompt_injection.py +143 -0
- actshield-0.9.0/tests/test_phase3_gateway.py +231 -0
- actshield-0.9.0/tests/test_phase3_hitl_and_intelligence.py +172 -0
- actshield-0.9.0/tests/test_phase3_persistence.py +156 -0
- actshield-0.9.0/tests/test_phase4_attack_models.py +118 -0
- actshield-0.9.0/tests/test_phase4_cli.py +33 -0
- actshield-0.9.0/tests/test_phase4_engine_and_evaluator.py +124 -0
- actshield-0.9.0/tests/test_phase4_safety.py +90 -0
- actshield-0.9.0/tests/test_phase4_strategies.py +89 -0
- actshield-0.9.0/tests/test_phase4_vulnerable_remediation.py +46 -0
- actshield-0.9.0/tests/test_phase5_adaptive.py +348 -0
- actshield-0.9.0/tests/test_phase65_forensics.py +1033 -0
- actshield-0.9.0/tests/test_policy.py +108 -0
- actshield-0.9.0/tests/test_providers_and_platform.py +93 -0
- actshield-0.9.0/tests/test_sdk_platform_complete.py +77 -0
- actshield-0.9.0/tests/test_tasks.py +61 -0
- actshield-0.9.0/tests/test_threat_model.py +137 -0
- actshield-0.9.0/tests/test_tools.py +96 -0
- actshield-0.9.0/tests/test_tracing.py +78 -0
actshield-0.9.0/PKG-INFO
ADDED
|
@@ -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
|
+
|