✨

Security Essentials

Security Essentials · v1.1.0
安全 unknown 级 作者 nogravedev 公开目录收录
759 下载 0 安装 3.7k 收藏 0 浏览

简介

Security Essentials

原始描述

Harden your OpenClaw agent deployment — SSH lockdown, firewall rules, automated security audits, secret rotation reminders, RAM/process monitoring, and CVE a...

通过你的 Agent 添加

安装目录:security-essentials/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/security-essentials/
Codex CLI~/.codex/skills/security-essentials/
DeepSeek Harness~/.agents/skills/security-essentials/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: security-essentials description: Harden your OpenClaw agent deployment — SSH lockdown, firewall rules, automated security audits, secret rotation reminders, RAM/process monitoring, and CVE alerting. Built from real production incidents. metadata: openclaw: version: "1.0.0" author: "ClawKits" tags: ["security", "hardening", "monitoring", "devops", "audit", "firewall"]

Security Essentials — Agent Deployment Hardening

Production-tested security patterns for OpenClaw agents running on Mac, Linux, VPS, or Raspberry Pi. Built from real incidents — not theoretical checklists.

What This Skill Does

1. Host Hardening Audit

Run a comprehensive security scan of your host machine:

"Run a security audit on this machine"

Your agent checks:

  • SSH configuration — Password auth disabled? Root login blocked? Key-only access?
  • Firewall status — UFW/iptables/pf active? Only required ports open?
  • Open ports — Unexpected listeners? Database ports exposed?
  • System updates — Pending security patches? Auto-update configured?
  • File permissions — Workspace readable only by owner? .env files protected?
  • Running processes — Unknown services? Crypto miners? Unexpected listeners?

Output: Prioritized findings (🔴 Critical / 🟡 Warning / 🟢 Good) with exact fix commands.

2. Secret Hygiene

Track and rotate sensitive credentials:

"Check my secret hygiene"
"When was my GitHub token last rotated?"
  • Scans workspace files for exposed secrets (API keys, tokens, passwords)
  • Tracks rotation dates in memory/secret-rotation.json
  • Alerts when tokens are approaching expiry
  • Reminds to rotate long-lived credentials (>90 days)
  • Checks .gitignore covers all sensitive files

3. Process & RAM Monitoring

Continuous resource awareness:

"What's eating my RAM?"
"Kill anything suspicious"
  • Identifies memory-hungry processes and trends
  • Auto-kills known resource hogs (configurable allowlist)
  • Alerts on unexpected process spawns
  • Tracks baseline resource usage for anomaly detection
  • Monitors for runaway sub-agents or zombie processes

4. Network Exposure Check

Verify you're not accidentally exposed:

"Am I exposed to the internet?"
"Check my network security"
  • Scans for services listening on 0.0.0.0 (all interfaces)
  • Checks if database ports are internet-accessible
  • Verifies VPN/tunnel configurations
  • Tests DNS leak protection
  • Identifies unnecessary network services

5. Automated Security Cron

Set up recurring security checks:

"Set up daily security monitoring"

Creates a cron job that runs daily:

  • Host hardening audit (abbreviated)
  • Process anomaly check
  • Secret expiry check
  • Open port scan
  • Sends findings to your preferred channel

6. Incident Response Playbooks

Pre-built responses for common scenarios:

  • Compromised token — Revoke, rotate, audit access logs, notify
  • Unexpected process — Isolate, investigate, kill, report
  • High RAM/CPU — Identify cause, auto-cleanup, escalate if persistent
  • Failed login attempts — Check auth logs, block IPs, alert
  • Exposed secret in git — Rotate immediately, scrub history, notify

Security Audit Checklist

When your agent runs an audit, it checks these categories:

SSH (Linux/Mac)

  • Password authentication disabled
  • Root login disabled
  • Key-based auth only
  • Non-standard port (optional, defense in depth)
  • Fail2ban or equivalent installed
  • Idle timeout configured

Firewall

  • Firewall active and enabled on boot
  • Default deny incoming
  • Only required ports allowed (list them)
  • Rate limiting on SSH port
  • No wildcard allow rules

System

  • Auto-security-updates enabled
  • No world-writable directories in PATH
  • Workspace permissions 700 (owner only)
  • .env files permissions 600
  • No secrets in shell history
  • Disk encryption enabled

OpenClaw Specific

  • Gateway not exposed to public internet
  • API tokens have minimum required scopes
  • Webhook endpoints authenticated
  • Sub-agent sandboxing configured
  • Memory files not in public git repos
  • Authorized senders list is restrictive

Network

  • No databases on 0.0.0.0
  • No dev servers on public interfaces
  • DNS-over-HTTPS or DNS-over-TLS configured
  • VPN active for remote access
  • No unnecessary SSDP/mDNS exposure

Configuration

After install, customize for your environment:

  1. Set your OS type (macOS/Ubuntu/Debian/Arch/RHEL)
  2. Define your expected open ports
  3. Configure alert channel (iMessage, Discord, Telegram, etc.)
  4. Set secret rotation policy (default: 90 days)
  5. Define process allowlist (known-good services)

Usage Examples

"Run a full security audit"
"Check if any secrets are exposed in my workspace"
"Set up weekly security reports in #alerts"
"What ports are open on this machine?"
"Is my SSH config secure?"
"Check for CVEs affecting my installed packages"
"Monitor for suspicious processes"
"When should I rotate my API keys?"

Why This Exists

In March 2026, 9 OpenClaw CVEs dropped in one week. Most agents run on personal machines with default configs — SSH with password auth, no firewall, secrets in plaintext, database ports exposed. This skill is the fix.

Built from patterns developed running a production agent 24/7 on a Mac mini — every check here caught a real problem at least once.

🔓 Get the Full ClawKits Suite

Like this skill? Check out our other production-tested agent systems:

  • Agent Core ($39) — Complete agent OS with memory, heartbeats, cron, safety rules
  • The Trading Desk ($29) — 10 options strategy templates + interactive dashboard
  • ClawKits Complete Bundle ($49) — Everything above in one package

👉 https://clawkits.gumroad.com

Author

Built by ClawKits — drop-in systems for AI agents. https://clawkits.xyz

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill