skill-guard

skill-guard is a skill for Claude Code, Codex from UseAI-pro/openclaw-skills-security. It costs 35 tokens per session (1,373 once invoked), scanned B, original, MIT.

A runtime security monitor for active OpenClaw skills. It watches file access, network connections, and shell commands for actions outside declared permissions or suspicious behavior.

In plain words
What is it for?
Use it to monitor skills while they run and flag risky access to credentials, browser data, environment files, system paths, other projects, or dependencies.
Why use it?
It helps catch a skill reading sensitive files, changing system settings, contacting unexpected services, or working outside the current project. It also enforces the access limits defined for the skill.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to monitor skills while they run and flag risky access to credentials, browser data, environment files, system paths, other projects, or dependencies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/useai-pro/openclaw-skills-security/skill-guard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add UseAI-pro/openclaw-skills-security --skill skill-guard
Clone the repo
git clone --depth 1 https://github.com/UseAI-pro/openclaw-skills-security

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-guard

README.md
[![agentmods](https://agentmods.dev/badge/skills/useai-pro/openclaw-skills-security/skill-guard/github.svg)](https://agentmods.dev/skills/useai-pro/openclaw-skills-security/skill-guard)
Your own site
<a href="https://agentmods.dev/skills/useai-pro/openclaw-skills-security/skill-guard"><img src="https://agentmods.dev/badge/skills/useai-pro/openclaw-skills-security/skill-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-guard

Your own site · 80×15
<a href="https://agentmods.dev/skills/useai-pro/openclaw-skills-security/skill-guard"><img src="https://agentmods.dev/badge/skills/useai-pro/openclaw-skills-security/skill-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,373 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 11 Mar 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01373
Opus 5 $0.00017 $0.00687
Sonnet 5 $0.00007 $0.00275
Haiku 4.5 $0.00003 $0.00137

Measured 10d ago against content hash 7769a4888039, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

skill-guard scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `rm -rf` on system directories — destructive operations

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `curl`, `wget`, `nc`, `ncat` — data transfer tools
skills/skill-guard/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 155 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 155 lines · 35 tokens per session scan B 7769a4888039

Subscribe to this mod's changes

skill-guard is a skill published in the GitHub repository UseAI-pro/openclaw-skills-security (71 stars, last pushed 6mo ago), licensed MIT. It adds 35 tokens to every session and 1,373 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

clawmoat

Real-time AI agent security scanner. Detects prompt injection, jailbreak attempts, credential/secret leaks, PII exposure, and dangerous tool calls. Activate when: (1) scanning inbound messages or tool outputs for prompt injection, (2) checking outbound content for credential leaks or PII, (3) auditing agent session…

darfaz/clawmoat · 107 tokens

trent-openclaw-security

Assess your Agent deployment against security risks using Trent.

trnt-ai/trent-openclaw-security-assessment · 16 tokens

security-guide

A security deployment guide for OpenClaw, with instructions in English and Chinese. It covers network exposure, container isolation, credentials, permissions, and audit logging.

jnMetaCode/shellward · 23 tokens

prompt-guard

600+ pattern AI agent security defense covering prompt injection, supply chain injection, memory poisoning, action gate bypass, unicode steganography, and cascade amplification. Optional API for early-access and premium patterns. Tiered loading, hash cache, 11 SHIELD categories, 10 languages.

seojoonkim/prompt-guard · 61 tokens

secureclaw

Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.

adversa-ai/secureclaw · 28 tokens

secureclaw

Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI…

adversa-ai/secureclaw · 95 tokens