Skill Trust Decision

openclaw-sacred-rules

OpenClaw 配置安全规则工具集,包含备份、验证、重置等运维功能,行为基本符合声明,但 reset_cooldowns.sh 存在硬编码路径和不透明的 Python heredoc 修改逻辑。

Install decision first Source: ClawHub Scanned: Apr 23, 2026
Files 6
Artifacts 0
Violations 0
Findings 3

Why this conclusion was reached

0/4 dimensions flagged
Pass
Declared vs actual capability

Declared resources and inferred behavior are broadly aligned.

Pass
Hidden execution and egress

No obvious high-risk egress or execution signals were found.

Pass
Attack chain and severe findings

There is no explicit malicious chain in the report.

Review
Dependencies and supply chain hygiene

Dependency information is incomplete, so supply-chain confidence stays limited.

What drove the risk score up

硬编码路径 +10

reset_cooldowns.sh 第14行使用固定路径 /Users/admin/.openclaw/... 而非 $HOME 变量,暗示特定用户环境

内联 Python 逻辑不透明 +10

reset_cooldowns.sh 通过 heredoc 内嵌 Python 直接修改 auth-profiles.json,清除 cooldown/error 等字段,文档仅简述功能未说明具体修改内容

备份脚本复制敏感文件 +5

safe_backup.sh 复制 .env 和 auth-profiles.json 到备份目录,敏感凭证被拷贝但无外传行为,属于合理运维场景

Most important evidence

Medium Doc Mismatch

reset_cooldowns.sh 行为与文档描述存在差异

SKILL.md 仅描述「清除过期冷却」功能,未说明脚本会重置 errorCount、清空 lastFailureAt、清除 failureCounts 等字段,且使用 heredoc 内嵌 Python 代码,逻辑不透明。

scripts/reset_cooldowns.sh:24
在 SKILL.md 中详细说明脚本会修改 auth-profiles.json 的哪些字段及原因。
Low Sensitive Access

safe_backup.sh 复制敏感配置文件

脚本复制 ~/.openclaw/.env 和 auth-profiles.json 到时间戳备份目录,凭证被拷贝但未外传。虽属合理运维行为,但敏感文件操作应明确声明。

scripts/safe_backup.sh:30
文档中明确说明备份包含凭证文件,建议用户将备份目录加密或放在安全位置。
Low Priv Escalation

硬编码路径暗示特定用户环境

reset_cooldowns.sh 第14行使用绝对路径 `/Users/admin/.openclaw/...` 而非 `$HOME/.openclaw/...`,在 Linux 或非 admin 用户环境下失效,暗示可能针对特定 macOS admin 用户。

scripts/reset_cooldowns.sh:14
使用 $HOME 变量替代硬编码路径,确保跨平台兼容性。

Declared capability vs actual capability

Filesystem Pass
Declared READ
→
Inferred WRITE
safe_backup.sh:38 复制配置文件;reset_cooldowns.sh 修改 auth-profiles.json
Shell Pass
Declared WRITE
→
Inferred WRITE
auth_checker.sh:42 执行 openclaw status;reset_cooldowns.sh 内嵌 Python heredoc
Environment Pass
Declared READ
→
Inferred READ
auth_checker.sh:26 source ~/.openclaw/.env 读取环境变量

Suspicious artifacts and egress

No obvious IOC was extracted.

Dependencies and supply chain

There are no structured dependency warnings.

File composition

6 files · 610 lines
Markdown 2 files · 282 linesShell 3 files · 227 linesPython 1 files · 101 lines
Files of concern · 2
scripts/safe_backup.sh Shell · 78 lines
safe_backup.sh 复制敏感配置文件
scripts/reset_cooldowns.sh Shell · 69 lines
reset_cooldowns.sh 行为与文档描述存在差异 · 硬编码路径暗示特定用户环境
Other files · recovery.md · config_validator.py · auth_checker.sh · SKILL.md

Security positives

所有脚本行为基本符合文档描述,未发现凭证外传或恶意网络请求
auth_checker.sh 遵循「不直接读取认证文件」原则,使用 CLI 工具
config_validator.py 仅验证 JSON 结构,不修改文件
safe_backup.sh 有备份验证步骤(json.tool 校验)
无 base64 编码、eval、远程脚本下载等高危模式