Skill Trust Decision

openclaw-security-patrol

OpenClaw 安全巡检工具,功能为本地安全检测和可选威胁情报上报。代码质量良好,安全设计合理,所有敏感操作(网络上报、敏感文件读取)均在文档中明确声明并需要用户显式确认。

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

Why this conclusion was reached

0/4 dimensions flagged
Pass
Declared vs actual capability

Declared resources and inferred behavior are broadly aligned.

Review
Hidden execution and egress

2 lower-risk artifacts were extracted and still need context.

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

--push 模式会上报 MAC 地址、主机名、agent_id、Skill 清单到 auth.ctct.cn,但已明确声明且需用户同意

敏感路径扫描能力 +5

代码可扫描 ~/.ssh、/etc/shadow 等敏感路径,但仅用于安全基线生成,不外传

凭证启发式扫描 +5

存在正则扫描私钥/助记词功能,但仅本地分析不外传

Most important evidence

Medium Data Exfil

--push 模式外部数据上报

完整检测模式会向 auth.ctct.cn:10020 上报 MAC 地址、主机名、agent_id(持久化)、Skill 清单等敏感数据,形成设备指纹化风险

SKILL.md:32
已在文档中明确声明风险,用户需显式回复「2 已了解」确认知情同意后才执行。定时任务中禁止使用 --push。
Low Sensitive Access

敏感系统文件扫描能力

generateConfigBaseline 函数会读取 /etc/shadow、/etc/passwd、~/.ssh/authorized_keys 等文件计算哈希基线

scripts/openclaw-hybrid-audit-changeway.js:280
仅用于防篡改基线生成,不外传数据。符合安全工具的合法使用场景。
Low Sensitive Access

进程环境变量扫描

[3/14] 检查网关进程环境变量中是否存在 SECRET/TOKEN/PASSWORD/KEY 等敏感变量名

scripts/openclaw-hybrid-audit-changeway.js:360
仅检测变量名存在性,不读取变量值,结果仅本地落盘。
Low Credential Theft

工作区私钥/助记词扫描

[12/14] 启发式扫描工作区文件中的十六进制私钥模式和助记词模式

scripts/openclaw-hybrid-audit-changeway.js:430
仅本地分析不外传,命中结果仅标记需人工复核。

Declared capability vs actual capability

Filesystem Pass
Declared WRITE
→
Inferred WRITE
scripts/openclaw-hybrid-audit-changeway.js:146-150
Network Pass
Declared READ
→
Inferred READ
SKILL.md:32-37 - --push 模式下向 auth.ctct.cn:10020 发送数据
Shell Pass
Declared WRITE
→
Inferred WRITE
scripts/openclaw-hybrid-audit-changeway.js:195-260 - spawnSync 调用系统命令白名单
Environment Pass
Declared READ
→
Inferred READ
scripts/openclaw-hybrid-audit-changeway.js:360-390 - 读取网关进程环境变量名

Suspicious artifacts and egress

Medium External URL
https://auth.ctct.cn:10020/changeway-open/api/pushAuditData

SKILL.md:32

Medium External URL
https://auth.ctct.cn:10020/changeway-open/api/skills/assessment

SKILL.md:33

Dependencies and supply chain

There are no structured dependency warnings.

File composition

3 files · 1973 lines
JavaScript 1 files · 1447 linesMarkdown 2 files · 526 lines
Files of concern · 2
scripts/openclaw-hybrid-audit-changeway.js JavaScript · 1447 lines
敏感系统文件扫描能力 · 进程环境变量扫描 · 工作区私钥/助记词扫描
SKILL.md Markdown · 372 lines
--push 模式外部数据上报 · https://auth.ctct.cn:10020/changeway-open/api/pushAuditData · https://auth.ctct.cn:10020/changeway-open/api/skills/assessment
Other files · cron-setup.md

Security positives

SKILL.md 文档完整,详细说明了隐私风险和两种运行模式
使用 spawnSync 而非 exec/execSync,shell 注入风险低
命令白名单机制严格,仅限 15 个固定命令
Unix/Linux 系统 shell: false,参数均为硬编码数组
--push 模式需要用户显式确认(回复「2 已了解」),定时任务禁止 --push
防重放机制(时间戳 + nonce + 签名),虽有局限但有安全意识
数据上报仅上传 brief 摘要,不上传 detail 完整输出
无外部依赖(仅用 Node.js 内置模块),供应链风险低
代码头部包含 @integrity sha256 哈希用于完整性验证