Claw Permission Firewall
/install claw-permission-firewall
Claw Permission Firewall
Runtime least-privilege firewall for agent/skill actions. It evaluates a requested action and returns one of:
- ALLOW (safe to execute)
- DENY (blocked by policy)
- NEED_CONFIRMATION (risky; require explicit confirmation)
It also returns a sanitizedAction with secrets redacted, plus a structured audit record.
This is not a gateway hardening tool. It complements gateway security scanners by enforcing per-action policy at runtime.
What it protects against
- Exfiltration to unknown domains
- Prompt-injection “send secrets” attempts (secret detection + redaction)
- Reading sensitive local files (
~/.ssh,~/.aws,.env, etc.) - Unsafe execution patterns (
rm -rf,curl | sh, etc.)
Inputs
Provide an action object to evaluate:
{
"traceId": "optional-uuid",
"caller": { "skillName": "SomeSkill", "skillVersion": "1.2.0" },
"action": {
"type": "http_request | file_read | file_write | exec",
"method": "GET|POST|PUT|DELETE",
"url": "https://api.github.com/...",
"headers": { "authorization": "Bearer ..." },
"body": "...",
"path": "./reports/out.json",
"command": "rm -rf /"
},
"context": {
"workspaceRoot": "/workspace",
"mode": "strict | balanced | permissive",
"confirmed": false
}
}
Outputs
{
"decision": "ALLOW | DENY | NEED_CONFIRMATION",
"riskScore": 0.42,
"reasons": [{"ruleId":"...","message":"..."}],
"sanitizedAction": { "...": "..." },
"confirmation": { "required": true, "prompt": "..." },
"audit": { "traceId":"...", "policyVersion":"...", "actionFingerprint":"..." }
}
Default policy behavior (v1)
- Exec disabled by default
- HTTP requires TLS
- Denylist blocks common exfil hosts (pastebins, raw script hosts)
- File access is jailed to workspaceRoot
- Always redacts
Authorization,Cookie,X-API-Key, and common token patterns
Recommended usage pattern
- Your skill creates an action object.
- Call this skill to evaluate it.
- If ALLOW → execute sanitizedAction.
- If NEED_CONFIRMATION → ask user and re-run with
context.confirmed=true. - If DENY → stop and show the reasons.
Files
policy.yamlcontains the policy (edit for your environment).
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claw-permission-firewall - 安装完成后,直接呼叫该 Skill 的名称或使用
/claw-permission-firewall触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Claw Permission Firewall 是什么?
Evaluates agent actions for security risks, enforcing least-privilege policies with allow, deny, or confirmation decisions and secret redaction. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1614 次。
如何安装 Claw Permission Firewall?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-permission-firewall」即可一键安装,无需额外配置。
Claw Permission Firewall 是免费的吗?
是的,Claw Permission Firewall 完全免费(开源免费),可自由下载、安装和使用。
Claw Permission Firewall 支持哪些平台?
Claw Permission Firewall 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claw Permission Firewall?
由 bharathjanumpally(@bharathjanumpally)开发并维护,当前版本 v1.0.0。