← 返回
安全合规

OpenClaw Security Audit

⚠️ HIGH PRIVILEGE SECURITY AUDIT SKILL Performs comprehensive security auditing for OpenClaw deployments. Requires system-level access for legitimate securit...
⚠️ 高权限安全审计技能。对 OpenClaw 部署进行全面安全审计,需系统级访问权限以执行合法安全检查。
iaadoa
安全合规 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 700
下载
💾 3
安装
1
版本
#latest

概述

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

CheckDescription
--------------------
Environment IsolationDetects Docker/container/VM environments
Privilege CheckVerifies OpenClaw isn't running as root
Port ExposureChecks if Gateway port 18789 is exposed
Skill TrustLists installed skills and their sources
Version CheckCompares current vs latest OpenClaw version
Process & NetworkCaptures listening ports and top processes
Sensitive DirectoriesCounts file changes in /etc, ~/.ssh, etc.
System CronLists system timers and cron jobs
OpenClaw CronRetrieves internal OpenClaw scheduled tasks
SSH AuditRecent logins and failed SSH attempts
File IntegritySHA256 hash and permission checks
Yellow Line AuditCompares sudo logs with memory records
Disk UsageRoot partition usage and large files
Environment VariablesScans Gateway process for sensitive vars
DLP ScanDetects plaintext private keys/mnemonics (read-only)
Skill/MCP IntegrityTracks file hash changes over time
Disaster RecoveryAuto-commits OpenClaw state to Git (opt-in)

Security & Privacy

Data Handling

  • All scans are local-only - No data leaves your machine
  • Read-only operations - No system modifications (except opt-in features)
  • Opt-in external features - Git backup and Telegram notifications are disabled by default

Sensitive Operations

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

Optional Features (Disabled by Default)

To enable external operations, set the following environment variables:

Git Disaster Recovery

export SECURITY_AUDIT_ENABLE_GIT=1

Enables automatic Git commit and push of OpenClaw state to your configured remote.

Telegram Notifications

export SECURITY_AUDIT_ENABLE_TELEGRAM=1
export TELEGRAM_BOT_TOKEN="your-bot-token"
export TELEGRAM_CHAT_ID="your-chat-id"

Sends audit summary to Telegram after each run.

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

VersionDateChanges
------------------------
1.0.22026-03-16Made Git backup and Telegram opt-in features (disabled by default)
1.0.12026-03-16Added SECURITY.md, enhanced documentation
1.0.02026-03-13Initial release

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-19 15:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,586
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,150
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,699