OpenClaw Security Audit
简介
OpenClaw Security Audit
原始描述
⚠️ HIGH PRIVILEGE SECURITY AUDIT SKILL Performs comprehensive security auditing for OpenClaw deployments. Requires system-level access for legitimate securit...
通过你的 Agent 添加
安装目录:openclaw-security/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: openclaw-security version: 1.0.1 description: | ⚠️ HIGH PRIVILEGE SECURITY AUDIT SKILL
Performs comprehensive security auditing for OpenClaw deployments. Requires system-level access for legitimate security scanning purposes. All operations are read-only and local-only.
Covers: environment isolation, privilege checks, port exposure, skill trust sources, version checks, process monitoring, sensitive directory changes, cron jobs, SSH audits, file integrity baselines, yellow-line operation audits, disk usage, environment variable leak detection, DLP scanning (private key/mnemonic detection), skill/MCP integrity tracking, and disaster recovery backups.
Use when: security audits, firewall/SSH/update hardening, risk posture review, exposure
assessment, or periodic security checks on machines running OpenClaw (laptop, workstation,
Pi, VPS).
OpenClaw Security Audit
Comprehensive security auditing for OpenClaw deployments. This skill performs automated security checks and generates reports.
⚠️ Security Notice: This skill requires elevated system access for legitimate security auditing purposes. See SECURITY.md for detailed security declarations and data handling policies.
Quick Start
Run the security audit script:
python3 scripts/openclaw_security_audit.py
This generates:
- Brief summary printed to stdout
- Detailed report saved to
/tmp/openclaw-security-reports/report-{DATE}.txt
What It Checks
Check
Description
Environment Isolation
Detects Docker/container/VM environments
Privilege Check
Verifies OpenClaw isn't running as root
Port Exposure
Checks if Gateway port 18789 is exposed
Skill Trust
Lists installed skills and their sources
Version Check
Compares current vs latest OpenClaw version
Process & Network
Captures listening ports and top processes
Sensitive Directories
Counts file changes in /etc, ~/.ssh, etc.
System Cron
Lists system timers and cron jobs
OpenClaw Cron
Retrieves internal OpenClaw scheduled tasks
SSH Audit
Recent logins and failed SSH attempts
File Integrity
SHA256 hash and permission checks
Yellow Line Audit
Compares sudo logs with memory records
Disk Usage
Root partition usage and large files
Environment Variables
Scans Gateway process for sensitive vars
DLP Scan
Detects plaintext private keys/mnemonics (read-only)
Skill/MCP Integrity
Tracks file hash changes over time
Disaster Recovery
Auto-commits OpenClaw state to Git
Security & Privacy
Data Handling
- All scans are local-only - No data leaves your machine
- Read-only operations - No system modifications
- Optional notifications only - Telegram alerts are opt-in
Sensitive Operations
| Check | Description |
|---|---|
| Environment Isolation | Detects Docker/container/VM environments |
| Privilege Check | Verifies OpenClaw isn't running as root |
| Port Exposure | Checks if Gateway port 18789 is exposed |
| Skill Trust | Lists installed skills and their sources |
| Version Check | Compares current vs latest OpenClaw version |
| Process & Network | Captures listening ports and top processes |
| Sensitive Directories | Counts file changes in /etc, ~/.ssh, etc. |
| System Cron | Lists system timers and cron jobs |
| OpenClaw Cron | Retrieves internal OpenClaw scheduled tasks |
| SSH Audit | Recent logins and failed SSH attempts |
| File Integrity | SHA256 hash and permission checks |
| Yellow Line Audit | Compares sudo logs with memory records |
| Disk Usage | Root partition usage and large files |
| Environment Variables | Scans Gateway process for sensitive vars |
| DLP Scan | Detects plaintext private keys/mnemonics (read-only) |
| Skill/MCP Integrity | Tracks file hash changes over time |
| Disaster Recovery | Auto-commits OpenClaw state to Git |
Data Handling
See SECURITY.md for detailed explanations of:
- DLP scanning (private key/mnemonic detection)
- Environment variable auditing
- Git disaster recovery
Required Permissions
This skill requires system access for:
- Running system commands (
ss,top,systemctl, etc.) - Reading OpenClaw configuration files
- Inspecting Gateway process environment
- Scanning workspace files for credential leaks
Output Format
Brief Format (stdout)
OpenClaw Daily Security Brief (2026-03-11)
[OK] Environment Isolation: Running in isolated environment
[OK] Privilege Check: Complies with least privilege principle
[WARNING] Port Exposure: Port 18789 listening on all interfaces, recommend binding to 127.0.0.1
...
Warning Items:
[WARNING] Port Exposure: Port 18789 listening on all interfaces, recommend binding to 127.0.0.1
Detailed Report
Full report saved to /tmp/openclaw-security-reports/report-{DATE}.txt
Configuration
Environment Variables
For Telegram notifications, set:
TELEGRAM_BOT_TOKEN- Bot token for sending reportsTELEGRAM_CHAT_ID- Chat ID to receive notifications
Scheduling
To run daily via OpenClaw cron:
openclaw cron add --name "daily-security-audit" --schedule "0 9 * * *" --command "python3 ~/.openclaw/workspace/skills/openclaw-security/scripts/openclaw_security_audit.py"
Version History
Version
Date
Changes
1.0.1
2026-03-16
Added SECURITY.md, enhanced documentation
1.0.0
2026-03-13
Initial release
| Version | Date | Changes |
|---|---|---|
| 1.0.1 | 2026-03-16 | Added SECURITY.md, enhanced documentation |
| 1.0.0 | 2026-03-13 | Initial release |
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。