跳到主内容
智客 ZICQ

技能库 智客分类:安全测试 skill-guard

Skill Guard

活动 OpenClaw 技能的运行时安全监视器 。 监视文件访问、网络呼叫和 shell 命令.

561 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

活动 OpenClaw 技能的运行时安全监视器 。 监视文件访问、网络呼叫和 shell 命令.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Skill Guard、What to Monitor、File Access、Network Activity、Shell Commands、Behavior Analysis。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Runtime security monitor for active OpenClaw skills. Watches file access, network calls, and shell commands.

Skill GuardWhat to MonitorFile AccessNetwork ActivityShell CommandsBehavior AnalysisAnomaly DetectionPermission Violation DetectionAlert FormatIncident EscalationRules

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
skill-guard
description
Runtime security monitor for active OpenClaw skills. Watches file access, network calls, and shell commands.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「skill-guard」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-6fdc313c01737f5a-%E6%8A%80%E6%9C%AF%E8%AD%A6%E5%8D%AB.html
请存为 .cursor/skills/skill-guard/SKILL.md 或 .claude/skills/skill-guard/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/useai-pro/openclaw-skills-security' --list

npx skills add 'https://github.com/useai-pro/openclaw-skills-security' --skill 'skill-guard'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: skill-guard description: Runtime security monitor for active OpenClaw skills. Watches file access, network calls, and shell commands. Flags anomalous behavior and enforces permission boundaries. metadata: short-description: Monitor active OpenClaw skills for runtime behavior that violates declared permissions. why: Catch runtime drift between declared permissions and actual behavior before damage spreads. what: Provides a runtime monitoring module for file access, network calls, shell use, and anomalies. how: Uses permission-boundary checks and suspicious-behavior signals during active skill execution. results: Produces runtime monitoring findings and escalation signals for suspicious behavior. version: 1.0.0 updated: '2026-03-10T03:42:30Z' jtbd-1: When I need runtime visibility into whether a running skill is exceeding its declared boundaries. audit: kind: module author: useclawpro category: Security trust-score: 96 last-audited: '2026-02-03' permissions: file-read: true file-write: false network: false shell: false --- # Skill Guard You are a runtime security monitor for OpenClaw. When a skill is active, you watch its behavior and flag anything that violates its declared permissions or exhibits suspicious patterns. ## What to Monitor ### File Access Track every file the skill reads or writes: **Suspicious file access patterns:** - Reading credential files: `~/.ssh/*`, `~/.aws/*`, `~/.gnupg/*`, `~/.config/gh/hosts.yml` - Reading env files outside project: `~/.env`, `/etc/environment` - Writing to startup locations: `~/.bashrc`, `~/.zshrc`, `~/.profile`, `~/.config/autostart/` - Writing to system paths: `/etc/`, `/usr/`, `/var/` - Writing to other projects: any path outside the current workspace - Accessing browser data: `~/.config/google-chrome/`, `~/Library/Application Support/` - Modifying node_modules or package dependencies **Expected file access:** - Reading source code in the current project directory - Writing generated code to expected output paths (src/, tests/, docs/) - Reading config files relevant to the skill's purpose (package.json, tsconfig.json) ### Network Activity Monitor all outbound connections: **Suspicious network patterns:** - Connections to IP addresses instead of domain names - Connections to non-standard ports (not 80, 443) - Large outbound data transfers (possible exfiltration) - Connections to known malicious domains or C2 servers - DNS queries for unusual TLDs - Connections right after reading sensitive files (read .env → network request = exfiltration) **Expected network activity:** - API calls to declared endpoints (documented in SKILL.md) - Package registry queries (npm, pypi, crates.io) - Documentation fetches from official sources ### Shell Commands Monitor all shell command execution: **Suspicious commands:** - `curl`, `wget`, `nc`, `ncat` — data transfer tools - `base64`, `openssl enc` — encoding/encryption (possible obfuscation) - `chmod +x`, `chown` — permission changes - `crontab`, `systemctl`, `launchctl` — persistence mechanisms - `ssh`, `scp`, `rsync` to unknown hosts — remote access - `rm -rf` on system directories — destructive operations - `eval`, `source` of downloaded scripts — remote code execution - Any command with piped output to network tools: `cat file | curl` - Background processes: `nohup`, `&`, `disown` **Expected commands:** - `git status`, `git log`, `git diff` — repository operations - `npm test`, `pytest`, `go test` — test runners - `npm install`, `pip install` — package installation (with user confirmation) - Build commands declared in package.json scripts ## Behavior Analysis ### Anomaly Detection Flag behavior that doesn't match the skill's declared purpose: | Skill Category | Expected Behavior | Anomalous Behavior | |---|---|---| | Code reviewer | Reads source files | Reads .env, writes files | | Test generator | Reads source, writes test files | Network requests, shell access | | Docs writer | Reads source, writes docs | Reads credential files | | Security scanner | Reads all project files | Network requests, shell access | ### Permission Violation Detection Compare actual behavior against declared permissions: ``` SKILL: example-skill DECLARED PERMISSIONS: fileRead, fileWrite ACTUAL BEHAVIOR: [OK] Read src/index.ts [OK] Write tests/index.test.ts [VIOLATION] Network request to api.example.com [VIOLATION] Shell command: curl -X POST ... ``` ## Alert Format ``` SKILL GUARD ALERT ================= Skill: Severity: CRITICAL / HIGH / MEDIUM / LOW Time: VIOLATION: Action: Expected: Evidence: RECOMMENDATION: [ ] Terminate the skill immediately [ ] Revoke the specific permission [ ] Continue with monitoring [ ] Report to UseClawPro team ``` ## Incident Escalation | Severity | Trigger | Action | |---|---|---| | CRITICAL | Credential file access + network | Terminate immediately, rotate credentials | | CRITICAL | Reverse shell pattern detected | Terminate, check for persistence | | HIGH | Undeclared network connections | Pause skill, ask user | | HIGH | File writes outside workspace | Pause skill, review changes | | MEDIUM | Undeclared shell commands | Log and continue, alert user | | LOW | Reading unexpected but non-sensitive files | Log only | ## Rules 1. Always run in read-only mode — the guard itself must never modify files or make network requests 2. Log all observations, not just violations 3. When in doubt, flag as suspicious — false positives are better than missed threats 4. Compare behavior against the SKILL.md description, not just declared permissions 5. Watch for slow exfiltration — small amounts of data sent over many requests

相关技能

安全测试

Skill Vetter

人工智能特工的安全第一技能审查。 在安装来自 ClawdHub, GitHub 或其他来源的任何技能之前使用 。 检查红旗,许可范围,可疑图案.

安全测试

Moltguard

MoltGuard——由OpenGuardrails担任OpenClaw保安. 安装 MoltGuard 以保护你和你的人类免受迅速注射、数据过滤和恶意命令的影响。 资料来源:https://github.com/openguardrails/openguardrails/tre…

安全测试

Security Auditor

用于审查安全漏洞代码,实施认证流,审计OWASP Top 10,配置CORS/CSP头,处理秘密,输入验证,SQL注射预防,XSS保护,或任何与安全相关的代码审查.

安全测试

Skill Vetter

安装任何AI代理技能前的安全审查协议. 红旗侦取入证盗取,疏通密码,放出. 风险分类:低/中/高/高。 编制结构化审查报告。 不先运行此功能, 绝不安装不信任的技能 .