BD openclaw-security-audit
OpenClaw 安全巡检工具,一键执行系统安全扫描并生成通俗易懂的报告。 使用场景:用户说"安全巡检"、"安全检查"、"安全审计"、"巡检"、"security audit"、"检查安全"、"系统安全"等。 触发条件:任何与 OpenClaw 安全检测、审计、巡检相关的请求。 运行依赖: 必需:Node.js v18+、openclaw CLI(用于定时任务管理) 脚本调用的系统命令(缺失时对应检查项会 SKIP,不影响其他项): macOS:find、lsof、netstat、ps、last、lastb、grep、awk、cat、sudo Linux:find、ss、lsof、ps、journalctl、last、lastb、grep、awk、cat、sudo Windows:wmic、netstat、tasklist、findstr 默认行为:本地离线模式,不产生任何网络请求。 ⚠️ --push 高风险提示:启用后会向远端发送设备标识(MAC 地址、主机名、持久化 agent_id)和本机完整 Skill 清单,且 agent_id 会在本机永久保存并每次复用。--push 只能在用户单次手动运行时使用;cron 定时任务中严禁包含 --push,以防止设备信息被长期自动上报。 数据上报端点(仅 --push 模式,由本技能作者运营的 Changeway 云端威胁情报服务): https://auth.ctct.cn:10020/changeway-open/api/pushAuditData https://auth.ctct.cn:10020/changeway-open/api/skills/assessment 数据边界说明:脚本对每项检查生成两个字段——detail(完整命令输出,仅本地落盘,绝不上传)和 brief(人工编写的结果摘要,--push 模式下上传)。上传的 data[] 通过 `JSON_DATA.map(({ item, brief }) => ({ item, brief }))` 构造(脚本第 995 行),明确排除 detail 字段;包含 detail 的完整 outputObj 仅写入本地磁盘(脚本第 984 行)。 签名机制:请求头 X-SIGN 为 SHA-256(mac + hostname + timestamp + nonce) 的十六进制摘要,无独立密钥,仅用于服务端防重放校验。 本地写入:扫描报告保存至 ~/.openclaw/security-reports/(含 report-YYYY-MM-DD.txt 和 report.json),Skill 哈希基线保存至 ~/.openclaw/skill-hashes/,设备 ID 保存至 ~/.openclaw/.agent-id,首次运行标记文件 ~/.openclaw/.audit-first-run。
As a process D 39/100 · Unfinished process — weak spots: result and completion, when it triggers, inputs and preconditions
How to improve
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- Shorten the description to 1024 characters.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 5
✓ No critical or high findings
Medium and low: 5
-
low Dangerous commands
cmd-cron-mentionreferences/cron-setup.md:127Mentions editing / listing crontab (documentation of a security skill)crontab -e # 删除相关行
security skill
A further 4 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 4. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- error
description-longdescription is 1252 chars, limit 1024 - warning
description-no-whendescription does not say WHEN to use the skill (no "use when")
Process rating: all ten parameters 39/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Failures and branches. Linear process with no failure handling
- 0Progress reporting. Says nothing while it works
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 4 mutating operations with no state check
- 40Consistency. Frontmatter name (openclaw-security-audit) differs from the folder (openclaw-security-watchdog)
- 60Tools and files. Uses tools (node) that frontmatter does not declare
- 100Steps. 33 steps
- 100Execution cost. Instruction body is 1389 tokens
- low The response is described with custom markup (3 tags): a typed call is more reliable
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Description length 1251: 120–800 characters recommended
- +3Output format is not stated: the model decides each time
- +1No license
- +2Single-language instructions
- +4Structure: 12 headings
- +3Step-by-step instructions: 33 items
- +4Has examples (5 code blocks)
- +4Reference files are cited in the instructions (1 of 1)
- +3All 1 scripts are documented
Quality base 70; lint remarks subtract, signals add up to 100. Result: 51.