Install
openclaw skills install @bustes01/vps-openclaw-security-hardeningProduction-ready security hardening for VPS running OpenClaw AI agents. Includes SSH hardening (custom port), firewall, audit logging, credential management, and intelligent alerting. Follows BSI IT-Grundschutz and NIST guidelines with minimal resource overhead.
openclaw skills install @bustes01/vps-openclaw-security-hardeningProduction-ready security hardening for AI agent deployments on VPS.
DO NOT run OpenClaw on servers/machines with sensitive personal data. Use a dedicated machine (VPS, bare-metal, or on-premise server dedicated to OpenClaw).
Before installing:
Supported OS: Ubuntu 20.04+, Debian 11+. Not for Windows (use WSL2) or macOS.
You must choose a custom SSH port (1024-65535) before installing. This makes you conscious of the security decision.
# Choose your port (example: 4848)
export SSH_PORT=4848
# Install
cd ~/.openclaw/skills/vps-openclaw-security-hardening
sudo ./scripts/install.sh
# Verify
./scripts/verify.sh
# Test SSH (new terminal)
ssh -p ${SSH_PORT} root@your-vps-ip
| Layer | Protection | Implementation |
|---|---|---|
| Network | Firewall, SSH hardening | UFW, custom port (your choice), key-only |
| System | Auto-updates, monitoring | unattended-upgrades, auditd |
| Secrets | Credential management | Centralized .env, 600 permissions |
| Monitoring | Audit logging, alerting | Kernel-level audit, multi-channel alerts |
| Component | RAM | Disk |
|---|---|---|
| Auditd | ~2 MB | 40 MB max |
| UFW | ~1 MB | Negligible |
| Scripts | ~5 MB | Negligible |
| Total | <10 MB | <50 MB |
scripts/install.sh - Main installationscripts/verify.sh - Verify installationscripts/rollback-ssh.sh - Emergency rollbackscripts/critical-alert.sh - Telegram alertsscripts/daily-briefing.sh - Daily reportsrules/audit.rules - Audit configurationSee README.md for full documentation.
MIT - See LICENSE file
| 权限 | 范围 | 用途 | 说明 |
|---|---|---|---|
| 执行 | sudo | SSH 加固、防火墙、auditd 安装 | 系统安全配置变更 |
| 文件系统 | 写入 | /etc/ssh/sshd_config | SSH 端口/认证模式配置 |
| 文件系统 | 写入 | /etc/audit/rules.d/ | 内核级审计规则 |
| 文件系统 | 写入 | /etc/cron.d/ | 安装定期安全简报定时任务 |
| 文件系统 | 读取 | /var/log/audit/audit.log | 安全事件监控 |
| 网络 | 出站 | 用户配置的告警渠道 | 安全事件通知(Telegram/Discord/Slack/Webhook) |
| 凭证 | 读取 | .env 文件 (权限 600) | 加载告警 Token |
🔒 数据外传声明:安全事件信息仅在用户显式配置告警 Token 后发送到外部服务。不配置 Token 则不产生任何外传流量。