360 Secure SkillHub
360 安全技能中心

Content Scrubber

这是OpenClaw的消息清洗插件,核心功能是拦截 outgoing 消息,用正则规则红act私有基础设施敏感信息(含RFC1918 IP、SSH目标等),替换为安全占位符。典型场景为用户通过OpenClaw向Discord、Telegram等平台发送含基础设施细节的消息时,防止泄露敏感信息。输入是原始待发消息,输出为清洗后的安全消息,规则确定性强、快速可审计,支持dryRun、跳过指定接收者等配置。

solomonneas
solomonneas
热度 45.64
最近更新 2026-05-11 17:34:36
分类:安全依赖:第三方 API应用场景:法律文档

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add content-scrubber
Metadata
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:

    {
      "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]