360 Secure SkillHub
360 安全技能中心

S³ Content Scrubber

作为 OpenClaw 扩展插件注册消息拦截器,用确定性正则规则在消息发往 Discord、Telegram、Signal 等渠道前,把 RFC 1918 地址、环回地址、localhost 端口、SSH/SCP 目标及自定义主机名替换为占位符,并提供 dryRun 预览与按接收方白名单跳过。

solomonneas
solomonneas
热度 20.64
最近更新 2026-03-20 01:51:50
分类:安全依赖:纯提示词应用场景:工作流 / 数据处理 / DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add s3-content-scrubber
Metadata
name
content-scrubber
description
OpenClaw plugin that automatically scrubs private infrastructure details (RFC 1918 IPs, localhost ports, hostnames, SSH targets) from outgoing messages. Prevents accidental exposure of internal network topology in group chats, Discord, Telegram, and other messaging surfaces. Use when deploying OpenClaw in production with access to private infrastructure.

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@192.168.4.56 and check the service on localhost:8096

After scrubbing:

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