Install
openclaw skills install skillguard-hardenedSecurity guard for OpenClaw skills, developed and maintained by rose北港(小红帽 / 猫猫帽帽). Audits installed or incoming skills with local rules plus Zenmux AI inten...
openclaw skills install skillguard-hardenedSkillGuard 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 技能生态的原生安全防线,用来在技能安装前、更新前、执行前,以及日常巡检时发现可疑行为,并提供隔离、恢复与强制删除等受控处置动作。)
[!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.rmtreeto permanently delete malicious skills only when explicitly confirmed with--force --yes.- Guarded Execution: Uses
subprocess.runto 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.
skills/ and .skills/. (扫描 skills/ 与 .skills/ 下的技能目录。)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
python3 {baseDir}/scripts/scan_skills.py check-install /path/to/incoming-skill
python3 {baseDir}/scripts/scan_skills.py check-update /path/to/updated-skill
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
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
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
0: No block policies matched in this check. (本次检查未命中阻断策略。)1: Block policy hit, or management action failed. (命中阻断策略,或管理动作失败。)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
PASS / WARN / BLOCK / QUARANTINE) and will not delete automatically. (默认行为是 PASS / WARN / BLOCK / QUARANTINE 四级建议,不会自动删除。)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。)ZENMUX_API_KEYZENMUX_MODELguarded_flow.py is used to integrate SkillGuard into real installation, update, and execution workflows. (guarded_flow.py 用于把 SkillGuard 接入真实安装、更新和执行流程。)