当前位置: 首页 > Skill >

SkillGuard Hardened

SkillGuard Hardened

1.0.5 2026.11.14 浏览:600
获取Skill文件查看使用说明
作者:苏禾许可证:
本文目录展开

小红帽 / 猫猫帽帽 / rose北港 SkillGuard (Hardened)

SkillGuard is a native security defense line for the OpenClaw skill ecosystem. It detects suspicious behavior before installing, updating, or executing skills, as well as during routine inspections. It provides controlled remediation actions such as quarantine, restore, and forced deletion. (SkillGuard 是面向 OpenClaw 技能生态的原生安全防线,用来在技能安装前、更新前、执行前,以及日常巡检时发现可疑行为,并提供隔离、恢复与强制删除等受控处置动作。)

Security Transparency & Disclosures (安全透明度与披露)

[!NOTE] SkillGuard is a high-privilege security tool. To protect your system, it requires certain capabilities that might be flagged by general scanners:

  • File Remediation: Uses shutil.rmtree to permanently delete malicious skills only when explicitly confirmed with --force --yes.
  • Guarded Execution: Uses subprocess.run to execute skills within a monitored wrapper.
  • Remote Updates: Downloads latest security policies and official skill manifests from trusted domains only (moltbook.com, fluxapay.xyz).
  • Clean Package: As of v1.0.2, all malicious test fixtures have been removed from the distribution package and are now generated dynamically during local testing only.

What It Does (功能说明)

  • Scans skill directories located under skills/ and .skills/. (扫描 skills/ 与 .skills/ 下的技能目录。)
  • Uses local static rules to identify high-risk behaviors, sensitive access, persistence, obfuscation, and prompt injection. (用本地静态规则识别高危行为、敏感访问、持久化、混淆与提示词注入。)
  • Uses Zenmux Claude for semantic-level intent auditing, identifying deviations between "declared capabilities" and "actual behavior". (用 Zenmux Claude 做语义级意图审计,识别“声明能力”和“实际行为”之间的偏移。)
  • Outputs structured JSON reports for easy consumption by other Agents or automated flows. (输出结构化 JSON 报告,便于其他 Agent 或自动化流程消费。)
  • Supports isolation (quarantine) and restoration by default, and never physically deletes skills without explicit confirmation. (默认支持隔离与恢复,不会在没有显式确认的情况下直接物理删除技能。)

Commands (指令)

Full Audit (全量审计)

python3 {baseDir}/scripts/scan_skills.py scan
python3 {baseDir}/scripts/scan_skills.py scan --root /root/clawd/skills --root /root/clawd/.skills
python3 {baseDir}/scripts/scan_skills.py --format json scan
python3 {baseDir}/scripts/scan_skills.py scan --auto-remediate quarantine
python3 {baseDir}/scripts/scan_skills.py scan --auto-remediate delete --force --yes

Install Gate (安装门禁)

python3 {baseDir}/scripts/scan_skills.py check-install /path/to/incoming-skill

Update Gate (更新门禁)

python3 {baseDir}/scripts/scan_skills.py check-update /path/to/updated-skill

Pre-Execution Gate (执行前门禁)

python3 {baseDir}/scripts/scan_skills.py check-exec /path/to/skill
python3 {baseDir}/scripts/guarded_flow.py exec --skill-root /path/to/skill -- bash /path/to/skill/scripts/run.sh

Guarded Install / Update Flows (守卫安装/更新流)

python3 {baseDir}/scripts/guarded_flow.py npx-add owner/repo@skill -g -y
python3 {baseDir}/scripts/guarded_flow.py npx-update
python3 {baseDir}/scripts/guarded_flow.py moltbook-install
python3 {baseDir}/scripts/guarded_flow.py moltbook-update

Quarantine / Restore / Delete (隔离/恢复/删除)

python3 {baseDir}/scripts/manage_skill.py quarantine suspicious-skill --reason "manual review"
python3 {baseDir}/scripts/manage_skill.py restore suspicious-skill
python3 {baseDir}/scripts/manage_skill.py list
python3 {baseDir}/scripts/manage_skill.py delete suspicious-skill --force --yes
python3 {baseDir}/scripts/manage_skill.py clean suspicious-skill
python3 {baseDir}/scripts/manage_skill.py disinfect suspicious-skill --action delete --force --yes

Exit Codes (退出状态码)

  • 0: No block policies matched in this check. (本次检查未命中阻断策略。)
  • 1: Block policy hit, or management action failed. (命中阻断策略,或管理动作失败。)

Report Output (报告输出)

Default JSON reports are written to: (默认 JSON 报告写入:)

/root/clawd/output/skillguard/reports/

Quarantine state and audit logs are written to: (隔离态与审计日志写入:)

/root/clawd/output/skillguard/quarantine/
/root/clawd/output/skillguard/audit.log

Safety Model (安全模型)

  • The default behavior acts as a 4-level recommendation (PASS / WARN / BLOCK / QUARANTINE) and will not delete automatically. (默认行为是 PASS / WARN / BLOCK / QUARANTINE 四级建议,不会自动删除。)
  • Deletion (delete) requires explicit flags --force --yes. (delete 必须显式传入 --force --yes。)
  • clean / disinfect scan a skill first, then quarantine or delete it based on the resulting recommendation. (clean / disinfect 会先扫描,再按风险结果自动隔离或删除技能。)
  • scan --auto-remediate upgrades bulk scanning into bulk quarantine/delete, and defaults to acting on BLOCK / QUARANTINE. (scan --auto-remediate 可把批量扫描升级为批量查杀,默认只处置 BLOCK / QUARANTINE。)
  • Remediation actions only take effect within whitelisted skill root directories or SkillGuard's quarantine directory. (处置动作只允许在白名单技能根目录或 SkillGuard 的隔离目录内生效。)
  • The Zenmux API Key is never hardcoded; it must be provided via environment variables: (Zenmux Key 不写死在代码里,需通过环境变量提供:)
    • ZENMUX_API_KEY
    • Optional model override: ZENMUX_MODEL

Notes (注意事项)

  • If the Zenmux API Key is not configured, SkillGuard will fallback to local rule mode and note in the report that AI auditing is not enabled. (如果没有配置 Zenmux Key,SkillGuard 会退回本地规则模式,并在报告里写明 AI 审计未启用。)
  • Suitable as a pre-security checker for skill marketplaces, skill installers, or Agent schedulers. (适合作为技能市场、技能安装器、Agent 调度器的前置安全检查器。)
  • guarded_flow.py is used to integrate SkillGuard into real installation, update, and execution workflows. (guarded_flow.py 用于把 SkillGuard 接入真实安装、更新和执行流程。)

相关文章

更多
Yii2 Security组件加密解密功能详解

Yii2框架内置了Security组件,提供了一系列用于数据加密、解密、哈希及随机生成的安全工具。本文详细解析了encryptByKey、generatePasswordHash、hashData等核心方法的使用场景与原理,涵盖从基础字符串生成到防止时序攻击的高级用法,帮助开发者在应用中实现可靠的数据安全保障。

2026.06.12 945
主流开源PHP漏洞扫描工具推荐:RIPS、Progpilot与PHP-security-scanner对比

排查 PHP 代码安全时,直接运行静态分析工具比人工审计更高效。推荐优先使用 RIPS 进行深度漏洞挖掘,用 Progpilot 做合规性检查,或借助 PHP-security-scanner 快速定位常见注入点。

2025.09.25 721
Skill 文件
  • SKILL.md
    • 小红帽 / 猫猫帽帽 / rose北港 SkillGuard (Hardened)
    • Security Transparency & Disclosures (安全透明度与披露)
    • What It Does (功能说明)
    • Commands (指令)
      • Full Audit (全量审计)
      • Install Gate (安装门禁)
      • Update Gate (更新门禁)
      • Pre-Execution Gate (执行前门禁)
      • Guarded Install / Update Flows (守卫安装/更新流)
      • Quarantine / Restore / Delete (隔离/恢复/删除)
    • Exit Codes (退出状态码)
    • Report Output (报告输出)
    • Safety Model (安全模型)
    • Notes (注意事项)
  • 项目或源文件

相关 Skill

更多
lobster-rank lobster-rank Scan locally installed OpenClaw skills, collect evidence data, submit to the lobster ranking server for scoring, and let the user confirm uploading their result to the public leaderboard. Use when the user asks to score, rate, evaluate, rank, or certify their lobster / AI agent capability set, or wants to upload their score to the leaderboard.
skill-list skill-list 列出 OpenClaw Skills:以表格形式展示所有 skills、显示功能介绍、找出功能重复的 skills。Use when: 用户想知道安装了哪些 skills、某个 skill 是做什么的、或者想找出重复功能的 skills。
Best Practice Skill Creator Best Practice Skill Creator Create OpenClaw skills from best practice videos or image sequences. Use when creating skill from video, generating skill from screenshots, converting tutori...
Skill From Memory Skill From Memory Convert memory, conversation history, or completed tasks into publishable OpenClaw skills. Use when (1) A task or workflow should be reusable, (2) Extracting...
ScamShield Verifier (Web3 Security) ScamShield Verifier (Web3 Security) 终极 Web3 与 OpenClaw 安全层,使用 x402 API 验证仓库、技能或钱包地址是否为恶意。