openclaw-sacred-rules
OpenClaw 配置安全规则工具集,包含备份、验证、重置等运维功能,行为基本符合声明,但 reset_cooldowns.sh 存在硬编码路径和不透明的 Python heredoc 修改逻辑。
Why this conclusion was reached
0/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
No obvious high-risk egress or execution signals were found.
There is no explicit malicious chain in the report.
Dependency information is incomplete, so supply-chain confidence stays limited.
What drove the risk score up
reset_cooldowns.sh 第14行使用固定路径 /Users/admin/.openclaw/... 而非 $HOME 变量,暗示特定用户环境
reset_cooldowns.sh 通过 heredoc 内嵌 Python 直接修改 auth-profiles.json,清除 cooldown/error 等字段,文档仅简述功能未说明具体修改内容
safe_backup.sh 复制 .env 和 auth-profiles.json 到备份目录,敏感凭证被拷贝但无外传行为,属于合理运维场景
Most important evidence
reset_cooldowns.sh 行为与文档描述存在差异
SKILL.md 仅描述「清除过期冷却」功能,未说明脚本会重置 errorCount、清空 lastFailureAt、清除 failureCounts 等字段,且使用 heredoc 内嵌 Python 代码,逻辑不透明。
scripts/reset_cooldowns.sh:24 safe_backup.sh 复制敏感配置文件
脚本复制 ~/.openclaw/.env 和 auth-profiles.json 到时间戳备份目录,凭证被拷贝但未外传。虽属合理运维行为,但敏感文件操作应明确声明。
scripts/safe_backup.sh:30 硬编码路径暗示特定用户环境
reset_cooldowns.sh 第14行使用绝对路径 `/Users/admin/.openclaw/...` 而非 `$HOME/.openclaw/...`,在 Linux 或非 admin 用户环境下失效,暗示可能针对特定 macOS admin 用户。
scripts/reset_cooldowns.sh:14 Declared capability vs actual capability
safe_backup.sh:38 复制配置文件;reset_cooldowns.sh 修改 auth-profiles.json auth_checker.sh:42 执行 openclaw status;reset_cooldowns.sh 内嵌 Python heredoc 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
scripts/safe_backup.sh scripts/reset_cooldowns.sh