返回顶部
c

content-scrubber内容擦除器

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
125
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

content-scrubber

内容擦除器

一个OpenClaw扩展插件,用于拦截外发消息并在投递前编辑私有基础设施细节。

捕获内容

  • - RFC 1918 IPv4地址:10.x.x.x、172.16-31.x.x、192.168.x.x
  • 回环地址:127.x.x.x
  • 带端口的本地主机:localhost:8080、localhost:3000等
  • SSH/SCP目标:user@10.0.0.1:/path
  • 自定义主机名:可配置的主机名模式

工作原理

该插件注册为消息拦截器。在任何消息离开OpenClaw(Discord、Telegram、Signal等)之前,它会通过基于正则表达式的擦除规则,将私有细节替换为安全的占位符,如[已编辑-IP]、[已编辑-服务]、[已编辑-目标]。

规则是确定性的(使用正则表达式,而非大语言模型),因此速度快、可审计,且永远不会遗漏大语言模型擦除器可能遗漏的边缘情况。

安装

  1. 1. 将插件文件复制到您的OpenClaw扩展目录:

~/.openclaw/extensions/content-scrubber/
├── index.ts
├── openclaw.plugin.json
└── package.json

  1. 2. 添加到您的openclaw.json插件配置中:
json { plugins: { entries: { content-scrubber: { enabled: true, config: { dryRun: false, allowedRecipients: [] } } } } }
  1. 3. 重启OpenClaw。

配置

选项类型默认值描述
dryRun布尔值false记录将被擦除的内容,但不实际编辑
allowedRecipients
字符串数组 | [] | 跳过擦除的聊天ID(例如,与自己的私密对话) |

示例

擦除前:

通过SSH登录admin@10.0.0.50并检查localhost:8096上的服务

擦除后:

通过SSH登录[已编辑-目标]并检查[已编辑-服务]上的服务

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 content-scrubber-1776116842 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 content-scrubber-1776116842 技能

通过命令行安装

skillhub install content-scrubber-1776116842

下载

⬇ 下载 content-scrubber v1.0.0(免费)

文件大小: 3.72 KB | 发布时间: 2026-4-14 14:22

v1.0.0 最新 2026-4-14 14:22
Initial release of Content Scrubber for OpenClaw:

- Redacts RFC 1918 IPs, loopback addresses, localhost ports, SSH/SCP targets, and custom hostnames from outgoing messages.
- Uses fast and auditable regex-based rules, not LLM methods.
- Configurable via `dryRun` mode and `allowedRecipients` for fine-grained control.
- Integrates as a message interceptor for Discord, Telegram, Signal, and other messaging platforms.
- Easy installation and setup in the OpenClaw extensions directory.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部