Content Scrubber

👤 solomonneas 📦 v1.0.0 ⭐ 4.2 ⬇️ 662 下載
🔒 IT運維與安全 免費

📖 技能介紹


name: content-scrubber version: 1.0.0 description: "OpenClaw plugin that scrubs private infrastructure details from outgoing messages. Regex-based redaction of RFC 1918 IPs, localhost ports, SSH targets, and hostnames before they reach Discord, Telegram, or other messaging surfaces."


Content Scrubber

An OpenClaw extension plugin that intercepts outgoing messages and redacts private infrastructure details before delivery.

What It Catches

  • RFC 1918 IPv4 addresses: 10.x.x.x, 172.16-31.x.x, 192.168.x.x
  • Loopback addresses: 127.x.x.x
  • localhost with ports: localhost:8080, localhost:3000, etc.
  • SSH/SCP targets: user@10.0.0.1:/path
  • Custom hostnames: configurable hostname patterns

How It Works

The plugin registers as a message interceptor. Before any message leaves OpenClaw (Discord, Telegram, Signal, etc.), it runs through regex-based scrubbing rules that replace private details with safe placeholders like [redacted-ip], [redacted-service], [redacted-target].

Rules are deterministic (regex, not LLM), so they're fast, auditable, and never miss edge cases that an LLM scrubber would.

Installation

  1. Copy the plugin files to your OpenClaw extensions directory: ~/.openclaw/extensions/content-scrubber/ ├── index.ts ├── openclaw.plugin.json └── package.json

  2. Add to your openclaw.json plugins config: json { "plugins": { "entries": { "content-scrubber": { "enabled": true, "config": { "dryRun": false, "allowedRecipients": [] } } } } }

  3. Restart OpenClaw.

Configuration

Option Type Default Description
dryRun boolean false Log what would be scrubbed without actually redacting
allowedRecipients string[] [] Chat IDs where scrubbing is skipped (e.g., private DMs with yourself)

Example

Before scrubbing:

SSH into admin@10.0.0.50 and check the service on localhost:8096

After scrubbing:

SSH into [redacted-target] and check the service on [redacted-service]

小蔥技能站7w4.net發現了升級外掛。

🤖 AI 評測

這個外掛質量不錯,能有效過濾訊息中的內部 IP、埠等敏感資訊,防止意外洩露。它執行速度快、配置簡單,日誌清晰好排查。主要不足是規則是固定的,無法自定義新增新的過濾模式,靈活性受限。總體而言,它解決了實際問題,適合有隱私保護需求的場景使用。

📊 多維度評分

適應性4.4
規範性4.1
有效性4.2
可靠性4
可信度4.3

📁 包含檔案 (6 個)

📄 SKILL.md 2.1 KB
📄 _meta.json 135 B
📄 index.ts 3.1 KB
📄 openclaw.plugin.json 444 B
📄 package.json 234 B
📄 skill-card.md 2.1 KB