AlphaMoatによると、2026-09時点でMoltbot Securityのダウンロード数は3,920、スター数は3で、AIスキル全体5,078件中2,645位、AIエージェントでは969件中520位です。
| プラットフォーム | インストール数 | ダウンロード数 | スター数 | コメント |
|---|---|---|---|---|
| ClawHub ↗ | 128 | 3834 | 3 | - |
| SkillHub ↗ | 128 | 3920 | 3 | — |
プラットフォームごとに集計方法と集計時点が異なります。
OpenClawなどのエージェント環境について、ゲートウェイの公開状態、権限、認証、ファイアウォール、SSH設定を確認するガイドです。推奨事項には高権限のシステム変更が含まれ、インストール手順でリモートスクリプトを実行する場合もあります。まず読み取り専用の監査を行い、インストーラーの配布元を確認してください。修正やファイアウォール・SSHの変更は個別に承認し、コンソール復旧手段を確保してください。ガイドを読むだけで安全になったと判断せず、実環境を監査してください。
資料公開日 2026-10-29
スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。
2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。
| 月 | ダウンロード数 | 前月比 | スター数 |
|---|---|---|---|
| 2026-09 | 3920 | — | 3 |
| 2026-08 | 3734 | +3.0% | 3 |
| 2026-07 | 3626 | +6.5% | 3 |
| 2026-06 | 3406 | +4.3% | 3 |
| 2026-05 | 3266 | — | 3 |
| 2026-03 | 2660 | — | 3 |
作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。
--- name: moltbot-security description: Security hardening for AI agents - Moltbot, OpenClaw, Cursor, Claude. Lock down gateway, fix permissions, auth, firewalls. Essential for vibe-coding setups. version: 1.0.3 author: NextFrontierBuilds keywords: [moltbot, openclaw, security, hardening, gateway, firewall, tailscale, ssh, authentication, ai-agent, ai-coding, claude, cursor, copilot, github-copilot, chatgpt, devops, infosec, vibe-coding, ai-tools, developer-tools, devtools, typescript, automation, llm] --- # Moltbot Security Guide
Your Moltbot gateway was designed for local use. When exposed to the internet without proper security, attackers can access your API keys, private messages, and full system access.
**Based on:** Real vulnerability research that found 1,673+ exposed OpenClaw/Moltbot gateways on Shodan.
---
## TL;DR - The 5 Essentials
1. **Bind to loopback** — Never expose gateway to public internet
2. **Set auth token** — Require authentication for all requests
3. **Fix file permissions** — Only you should read config files
4. **Update Node.js** — Use v22.12.0+ to avoid known vulnerabilities
5. **Use Tailscale** — Secure remote access without public exposure
---
## What Gets Exposed (The Real Risk)
When your gateway is publicly accessible:
- Complete conversation histories (Telegram, WhatsApp, Signal, iMessage)
- API keys for Claude, OpenAI, and other providers
- OAuth tokens and bot credentials
- Full shell access to host machine
**Prompt injection attack example:** An attacker sends you an email with hidden instructions. Your AI reads it, extracts your recent emails, and forwards summaries to the attacker. No hacking required.
---
## Quick Security Audit
Run this to check your current security posture:
```bash
openclaw security audit --deep
```
Auto-fix issues:
```bash
openclaw security audit --deep --fix
```
---
## Step 1: Bind Gateway to Loopback Only
**What this does:** Prevents the gateway from accepting connections from other machines.
Check your `~/.openclaw/openclaw.json`:
```json
{
"gateway": {
"bind": "loopback"
}
}
```
**Options:**
- `loopback` — Only accessible from localhost (most secure)
- `lan` — Accessible from local network only
- `auto` — Binds to all interfaces (dangerous if exposed)
---
## Step 2: Set Up Authentication
**Option A: Token Authentication (Recommended)**
Generate a secure token:
```bash
openssl rand -hex 32
```
Add to your config:
```json
{
"gateway": {
"auth": {
"mode": "token",
"token": "your-64-char-hex-token-here"
}
}
}
```
Or set via environment:
```bash
export CLAWDBOT_GATEWAY_TOKEN="your-secure-random-token-here"
```
**Option B: Password Authentication**
```json
{
"gateway": {
"auth": {
"mode": "password"
}
}
}
```
Then:
```bash
export CLAWDBOT_GATEWAY_PASSWORD="your-secure-password-here"
```
---
## Step 3: Lock Down File Permissions
**What this does:** Ensures only you can read sensitive config files.
```bash
chmod 700 ~/.openclaw
chmod 600 ~/.openclaw/openclaw.json
chmod 700 ~/.openclaw/credentials
```
**Permission meanings:**
- `700` = Only owner can access folder
- `600` = Only owner can read/write file
Or let OpenClaw fix it:
```bash
openclaw security audit --fix
```
---
## Step 4: Disable Network Broadcasting
**What this does:** Stops OpenClaw from announcing itself via mDNS/Bonjour.
Add to your shell config (`~/.zshrc` or `~/.bashrc`):
```bash
export CLAWDBOT_DISABLE_BONJOUR=1
```
Reload:
```bash
source ~/.zshrc
```
---
## Step 5: Update Node.js
Older Node.js versions have security vulnerabilities. You need **v22.12.0+**.
Check version:
```bash
node --version
```
**Mac (Homebrew):**
```bash
brew update && brew upgrade node
```
**Ubuntu/Debian:**
```bash
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
```
**Windows:** Download from [nodejs.org](https://nodejs.org/)
---
## Step 6: Set Up Tailscale (Remote Access)
**What this does:** Creates encrypted tunnel between your devices. Access OpenClaw from anywhere without public exposure.
**Install Tailscale:**
```bash
# Linux
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
# Mac
brew install tailscale
```
**Configure OpenClaw for Tailscale:**
```json
{
"gateway": {
"bind": "loopback",
"tailscale": {
"mode": "serve"
}
}
}
```
Now access via your Tailscale network only.
---
## Step 7: Firewall Setup (UFW)
**For cloud servers (AWS, DigitalOcean, Hetzner, etc.)**
**Install UFW:**
```bash
sudo apt update && sudo apt install ufw -y
```
**Set defaults:**
```bash
sudo ufw default deny incoming
sudo ufw default allow outgoing
```
**Allow SSH (don't skip!):**
```bash
sudo ufw allow ssh
```
**Allow Tailscale (if using):**
```bash
sudo ufw allow in on tailscale0
```
**Enable:**
```bash
sudo ufw enable
```
**Verify:**
```bash
sudo ufw status verbose
```
⚠️ **Never do this:**
```bash
# DON'T - exposes your gateway publicly
sudo ufw allow 18789
```
---
## Step 8: SSH Hardening
**Disable password auth (use SSH keys):**
```bash
sudo nano /etc/ssh/sshd_config
```
Change:
```
PasswordAuthentication no
PermitRootLogin no
```
Restart:
```bash
sudo systemctl restart sshd
```
---
## Security Checklist
Before deploying:
- [ ] Gateway bound to `loopback` or `lan`
- [ ] Auth token or password set
- [ ] File permissions locked (600/700)
- [ ] mDNS/Bonjour disabled
- [ ] Node.js v22.12.0+
- [ ] Tailscale configured (if remote)
- [ ] Firewall blocking port 18789
- [ ] SSH password auth disabled
---
## Config Template (Secure Defaults)
```json
{
"gateway": {
"port": 18789,
"bind": "loopback",
"auth": {
"mode": "token",
"token": "YOUR_64_CHAR_HEX_TOKEN"
},
"tailscale": {
"mode": "serve"
}
}
}
```
---
## Credits
Based on security research by [@NickSpisak_](https://x.com/NickSpisak_) who found 1,673+ exposed gateways on Shodan.
Original article: https://x.com/nickspisak_/status/2016195582180700592
---
## Installation
```bash
clawdhub install NextFrontierBuilds/moltbot, openclaw-security
```
Built by [@NextXFrontier](https://x.com/NextXFrontier)
開発中の学び、エラー、訂正を Markdown ファイルに記録し、再利用やワークスペースの記憶への昇格に備えます。
やりたいことを自然文で伝えると、ローカルとリモートのカタログからスキルを探して推薦するスキルです。
AI エージェント向けのブラウザ自動化コマンドラインスキルです。
利用者の訂正と自己点検を層構造の記憶に蓄え、使われ方に応じて昇格や保管を行うスキルです。
第三者のスキルを入れる前に、出所と権限と危険な作りを手順に沿って調べるスキルです。
エージェントの記憶とスキル間の状態を、型と制約を持つ知識グラフとして保存するスキルです。
AI エージェントの先回り、作業記憶、振り返りの手順を計画するためのワークスペース設定ガイドです。
効果的な Claude スキルの作成・更新ガイドです。
AI エージェントに階層型の長期記憶を用意する構成案のスキルです。
AI 搭載 PDF 生成スキル:簡単なプロンプトから SAFE、NDA、タームシート、ホワイトペーパー、メモを生成(npx ai-pdf-builder)。
エージェントの振る舞いを縛る実践的な指針のスキルです。
Skill Scaffold は AI エージェント向けスキル構造を作成する CLI です。
X(Twitter)のアルゴリズムの規則と拡散の進め方を解説します。
データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。