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

7w4.net提供免费和付费技能下载。

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]

🤖 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