Agent Action Gate

io.github.AAH20由 GitHub 账号 AAH20 发布v0.2.0更新于 Oct 24, 2026

Gate/Prove: deny unattended destructive agent tools. Instant Audit $499 on a2zsoc.com.

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

一个本地策略闸门,用于检查智能体与 MCP 工具调用,拒绝无人值守的破坏性操作,除非提供人工审批令牌,并记录每次决策。

可以做什么
  • 评估拟执行的工具调用,返回拒绝、模拟或允许的决策,未知工具默认拒绝。
  • 对高风险的破坏、开通或下线操作,要求提供证明令牌并显式标记已批准后才允许执行。
  • 写入类操作默认进入模拟模式,不产生实际副作用。
  • 将决策写入仅追加、哈希链式的操作账本,并可校验该账本。
  • 返回包含账本编号与回执哈希的信封,并声明模型置信度绝不等于审批。
  • 可从命令行运行带 ATT&CK 标签的样例用例与成本估算。
适用场景
适用于运行可能调用破坏性或开通类工具的智能体或 MCP 客户端,并希望在执行前设置检查点的场景。也适合需要为合规或尽职调查保留闸门决策审计记录的团队。
运行要求
以本地 Python 进程通过 stdio 运行,需在项目目录下用模块命令启动,或使用 Docker 镜像。证明令牌通过 AAG_PROVE_TOKEN 环境变量或命令行参数提供。可通过 AAG_KILL_SWITCH 或标记文件启用紧急停止。
安装前请注意
该服务器本身不执行工具;只有当客户端确实在调用工具前先调用闸门时才有效。证明令牌是经环境变量传递的共享密钥,需妥善保护。README 带有明显商业推广,推销付费审计与咨询,并声明拒绝无偿试用。决策会写入本地账本文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agent Action Gate,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Agent Action Gate

Gate/Prove runtime for agent and MCP tool calls.

Normalize tool intent → deny unknown → never treat model confidence as approval → HITL prove on destructive / provision / decommission → Action Ledger (hash chain).

Extracted from GRC_Claw @grc-claw/agent-policy-firewall. This repo is the sharp foundry slice: one command, no cathedral.

Commercial (how this is sold): $499 Instant Audit and consultation on a2zsoc.com.

Why this exists (revenue + cost)

AI-agent companies do not pay for “another MCP.” They pay to stop unattended destructive tools and to prove Gate/Prove gaps before SOC 2 Type I, PE diligence, or insurance renewal.

Cost driverWhat this gate doesBuyer outcome
Ungated shell.exec / disable-control / decommissionDENY unless HITL prove token + approvedAvoid production blast
Agent “95% sure”never_equate_intent_to_approval: trueIntent ≠ ledger proof
Write tools fire on first thoughtDefault SIMULATE (no side effects)FDE minutes, not incident cost
No audit trailAppend-only Action Ledger with hash chainDiligence packet

Hard rule: never equate agent intent or model score to human approval.

Illustrative cost sketch (not a quote): make bench.

Quick start

bash
make demo
bash
PYTHONPATH=. python3 -m aag demoPYTHONPATH=. python3 -m aag check fixtures/t1059_unattended_shell.jsonPYTHONPATH=. python3 -m aag bench

Unattended high-tier calls DENY even at 0.99 confidence. ALLOW needs AAG_PROVE_TOKEN (or --prove-token) and approved: true.

bash
export AAG_PROVE_TOKEN='replace-me'PYTHONPATH=. python3 -m aag check fixtures/proved_decommission.json --prove-token "$AAG_PROVE_TOKEN"

Kill-switch: AAG_KILL_SWITCH=1 or touch artifacts/KILL.

MCP stdio server

This process never executes tools. Clients call gate_check before they would invoke a destructive tool.

bash
PYTHONPATH=. python3 -m aag serve

Cursor / Claude example (mcpServers):

json
{  "agent-action-gate": {    "command": "python3",    "args": ["-m", "aag", "serve"],    "cwd": "/path/to/agent-action-gate",    "env": { "PYTHONPATH": ".", "AAG_PROVE_TOKEN": "replace-me" }  }}

Docker / registry image:

bash
docker run --rm -i ghcr.io/aah20/agent-action-gate:0.2.0

Official MCP Registry name: io.github.AAH20/agent-action-gate

Envelope

Every decision includes:

  • never_equate_intent_to_approval: true
  • allow_auto_execute (false on unattended high tiers)
  • mode: deny | simulate | allow
  • ledger_id / receipt_hash
  • CTAs: Instant Audit + consultation

Library mapper

Same Gate/Prove policy from Python without the stdio loop:

python
from aag.gate import AgentActionGatefrom aag.mcp import evaluate_mcp_call
gate = AgentActionGate(prove_token="replace-me")evaluate_mcp_call(gate, {"params": {"name": "shell.exec", "arguments": {"note": "no payload"}}})

Fixtures (labeled, not payloads)

FileTechniqueExpected
t1059_unattended_shell.jsonT1059DENY unattended destructive
t1078_read_identity.jsonT1078ALLOW read
t1562_impair_defenses.jsonT1562DENY unattended destructive
write_ticket_simulate.json—SIMULATE write
proved_decommission.jsonT1578ALLOW only with HITL token

Layout

text
aag/  gate.py      HITL + kill-switch + unknown deny  ledger.py    hash-chained JSONL  server.py    MCP stdio (gate_check, ledger_verify)  mcp.py       MCP tools/call mapper (no execution)  cost.py      illustrative avoidance sketch  demo.py      fixture runnerfixtures/      ATT&CK-tagged casesserver.json    MCP Registry metadatatests/         Gate/Prove + MCP contract

Paid evaluation (not free prove)

If you deploy agents or MCP servers and need a Gate/Prove read before SOC 2, PE diligence, or insurance:

→ $499 Instant Audit
→ consultation (sprint / vCISO)

Unpaid take-homes: refuse — run make demo and buy Instant Audit.

License

MIT

来源:README.md,提交 8ff0d35

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分