kime541200

openclaw-server-secure-skill

IT運用・セキュリティv1.0.0
作者:kime541200更新日 2026-05-17@clawhub_kime541200/openclaw-server-secure-skill
サーバー運用セキュリティスキャン

AlphaMoatによると、2026-09時点でopenclaw-server-secure-skillのダウンロード数は4,392、スター数は1で、AIスキル全体5,078件中2,221位、IT運用・セキュリティでは264件中124位です。

インストール数
147
ダウンロード数
4392
スター数
1
総合順位
#2,221
全体の上位 44% · IT運用・セキュリティの上位 47%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗14742571-
SkillHub ↗14643921—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

ワークフローにはsudo権限が必要なシステムコマンドが含まれ、SSH、ネットワーク、ファイアウォール設定を変更します。誤ると管理アクセスが途絶えたりサービスが公開されたりする可能性があります。実施前に対象OSとネットワーク構成に照らして各コマンドを確認し、検証済みの鍵認証セッションとコンソールまたはプロバイダーの復旧手段を確保してください。インストーラーの出所とパッケージバージョンも確認し、変更後にサービス、待受ポート、Tailscaleの状態を検証します。

資料公開日 2026-10-29

できること

  • セルフホスト型OpenClawのセキュリティ強化手順を計画する
  • Tailscaleで管理アクセスを制限する構成を考える
  • 変更後にSSH、ファイアウォール、サービスを確認するリストを作る

使う場面

  • サーバーOSとネットワーク構成を確認できた場合
  • システム変更前にコンソールやプロバイダーの復旧経路を用意できる場合
  • 各sudoコマンドを確認し変更後に独立して検証できる場合

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

既存サーバーのセキュリティ強化チェックリストを作り、接続を中断する可能性のある変更を示してください。sudoコマンド、インストーラー、ファイアウォール変更は実行しないでください。

月次の推移

ダウンロード数4392
2983374044962026-03 · ダウンロード数 30872026-05 · ダウンロード数 37662026-07 · ダウンロード数 40902026-08 · ダウンロード数 41772026-09 · ダウンロード数 439226-0326-09
スター数1
0122026-03 · スター数 12026-05 · スター数 12026-07 · スター数 12026-08 · スター数 12026-09 · スター数 126-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-094392—1
2026-084177+2.1%1
2026-074090—1
2026-053766—1
2026-033087—1

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

4.0 KB・ClawHub v1.0.0
---
name: openclaw-server-secure-skill
description: Comprehensive security hardening and installation guide for OpenClaw (formerly Clawdbot/Moltbot). Use this skill when the user wants to secure a server, install the OpenClaw agent, or configure Tailscale/Firewall for the agent.
---

# OpenClaw Server Security & Installation

## Overview
This skill guides the setup of a secure, self-hosted OpenClaw instance. It covers SSH hardening, Firewall configuration, Tailscale VPN setup, and the OpenClaw installation itself.
すべて表示(全 129 行)
## Workflow

### Phase 1: System Hardening

1. **Lock down SSH**
    - Goal: Keys only, no passwords, no root login.
    - Action: Modify `/etc/ssh/sshd_config`.
    - Commands:
      ```bash
      # Backup config
      sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
      # Disable Password Auth
      sudo sed -i 's/^#*PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config
      # Disable Root Login
      sudo sed -i 's/^#*PermitRootLogin .*/PermitRootLogin no/' /etc/ssh/sshd_config
      # Reload SSH
      sudo sshd -t && sudo systemctl reload ssh
      ```

2. **Default-deny Firewall**
    - Goal: Block everything incoming by default.
    - Action: Install and enable UFW.
    - Commands:
      ```bash
      sudo apt update && sudo apt install ufw -y
      sudo ufw default deny incoming
      sudo ufw default allow outgoing
      sudo ufw enable
      ```
      *Note: Ensure you have console access or a fallback before enabling if SSH is not yet allowed on another interface, though we configure Tailscale next.*

3. **Brute-force Protection**
    - Goal: Auto-ban IPs after failed login attempts.
    - Action: Install Fail2ban.
    - Commands:
      ```bash
      sudo apt install fail2ban -y
      sudo systemctl enable --now fail2ban
      ```

### Phase 2: Network Privacy (Tailscale)

4. **Install Tailscale**
    - Goal: Create a private VPN mesh network.
    - Commands:
      ```bash
      curl -fsSL https://tailscale.com/install.sh | sh
      sudo tailscale up
      ```
    - *Wait for user to authenticate the Tailscale link.*

5. **Configure SSH & Web via Tailscale**
    - Goal: Allow traffic only from the Tailscale subnet (100.64.0.0/10) and remove public access.
    - Commands:
      ```bash
      # Allow SSH over Tailscale
      sudo ufw allow from 100.64.0.0/10 to any port 22 proto tcp
      # Remove public SSH access (Adjust rule name/number as needed)
      sudo ufw delete allow OpenSSH || sudo ufw delete allow 22/tcp
      # Allow Web ports over Tailscale
      sudo ufw allow from 100.64.0.0/10 to any port 443 proto tcp
      sudo ufw allow from 100.64.0.0/10 to any port 80 proto tcp
      ```

6. **Disable IPv6 (Optional)**
    - Goal: Reduce attack surface.
    - Commands:
      ```bash
      sudo sed -i 's/IPV6=yes/IPV6=no/' /etc/default/ufw
      if ! grep -q "net.ipv6.conf.all.disable_ipv6 = 1" /etc/sysctl.conf; then
        echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
      fi
      sudo sysctl -p && sudo ufw reload
      ```

### Phase 3: OpenClaw Installation

7. **Install OpenClaw**
    - Commands:
      ```bash
      npm install -g openclaw && openclaw doctor
      ```

8. **Configure Owner Access**
    - **Required Input:** Ask the user for their **Telegram ID**.
    - Action: Update the config to allowlist only that ID.
    - JSON Config Target (verify location via `openclaw doctor`):
      ```json
      { 
        "dmPolicy": "allowlist", 
        "allowFrom": ["YOUR_TELEGRAM_ID"], 
        "groupPolicy": "allowlist" 
      }
      ```

9. **Secure Credentials**
    - Goal: Restrict file permissions.
    - Commands:
      ```bash
      chmod 700 ~/.openclaw/credentials 2>/dev/null || true
      chmod 600 .env 2>/dev/null || true
      ```

10. **Final Audit**
    - Action: Run the built-in security audit.
    - Command:
      ```bash
      openclaw security audit --deep
      ```

## Verification Status
Run to confirm:
```bash
sudo ufw status verbose
ss -tulnp
tailscale status
openclaw doctor
```

IT運用・セキュリティの人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。