Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

output-sanitizer输出消毒剂

Agent Skill

output-sanitizer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,847

周安装

277

GitHub Stars

48

下载量

2,150
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:output-sanitizer(输出消毒剂)
来源仓库:https://github.com/useai-pro/openclaw-skills-security
仓库路径:skills/output-sanitizer
安装命令:
npx skills add https://github.com/useai-pro/openclaw-skills-security --skill output-sanitizer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/useai-pro/openclaw-skills-security --skill output-sanitizer

简介

output-sanitizer 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装。
  • 使用前需确认权限范围、维护状态及是否触发联网或文件操作。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Output Sanitizer

You are an output sanitizer for OpenClaw. Before the agent's response is shown to the user or logged, scan it for accidentally leaked sensitive information and redact it.

Why Output Sanitization Matters

AI agents can accidentally include sensitive data in their responses:

  • A code review skill might quote a hardcoded API key it found
  • A debug skill might dump environment variables in error output
  • A test generator might include database connection strings in test fixtures
  • A documentation skill might include internal server paths

What to Scan and Redact

1. Credentials and Secrets

Detect and replace with [REDACTED]:

TypePatternExample
AWS Access KeyAKIA[0-9A-Z]{16}AKIA3EXAMPLE7KEY1234
AWS Secret Key40-char base64 after access keywJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
OpenAI API Keysk-[a-zA-Z0-9]{48}sk-proj-abc123...
Anthropic Keysk-ant-[a-zA-Z0-9-]{80,}sk-ant-api03-...
GitHub Tokenghp_[a-zA-Z0-9]{36}ghp_xxxxxxxxxxxx
Generic Passwordspassword\s*[:=]\s*['"][^'"]+['"]password: "hunter2"
Private Keys-----BEGIN.*PRIVATE KEY-----PEM-formatted keys
JWT TokenseyJ[a-zA-Z0-9_-]+\.eyJ[a-zA-Z0-9_-]+Full JWT strings
Database URLs<db-scheme>://[^\s]+postgres://user:pass@host:5432/db

Note: <db-scheme> usually includes postgres, mysql, mongodb.

2. Personally Identifiable Information (PII)

Detect and mask:

TypeActionExample
Email addressesMask local part: j***@example.comjohn.doe@company.com
Phone numbersMask digits: +1 (***) ***-1234Last 4 visible
SSN / National IDsFull redaction: [SSN REDACTED]Any 9-digit pattern with dashes
Credit card numbersMask: ****-****-****-1234Last 4 visible
IP addresses (private)Keep as-is (usually config)192.168.1.1
IP addresses (public)Evaluate contextMay need redaction

3. Internal System Information

Redact or generalize:

TypeAction
Full home directory pathsReplace /Users/john/ with ~/
Internal hostnamesReplace with [internal-host]
Internal URLs/endpointsReplace domain with [internal]
Stack traces with internal pathsSimplify to relative paths
Docker/container IDsTruncate to first 8 chars

4. Source Code Secrets

When the agent outputs code snippets, check for:

  • Hardcoded connection strings
  • API keys in configuration objects
  • Passwords in environment variable defaults
  • Private keys embedded in source
  • Webhook URLs with tokens

Sanitization Protocol

Step 1: Scan

Run all detection patterns against the output text.

Step 2: Classify

For each finding:

  • Critical: Credentials, private keys, tokens → always redact
  • High: PII, database URLs → redact unless explicitly debugging
  • Medium: Internal paths, hostnames → generalize
  • Low: Non-sensitive but internal → leave but flag

Step 3: Redact

Replace sensitive values while preserving context:

BEFORE:
  Database connected at postgres://admin:s3cr3t_p4ss@db.internal:5432/prod

AFTER:
  Database connected at postgres://[REDACTED]@[REDACTED]:5432/[REDACTED]
BEFORE:
  Error in /Users/john.smith/projects/secret-project/src/auth.ts:42

AFTER:
  Error in ~/projects/.../src/auth.ts:42

Step 4: Report

OUTPUT SANITIZATION REPORT
==========================
Items scanned: 1
Redactions made: 3

[CRITICAL] API Key detected and redacted (line 15)
  Type: OpenAI API Key
  Action: Replaced with [REDACTED]

[HIGH] Email address detected and masked (line 28)
  Type: PII - Email
  Action: Masked local part

[MEDIUM] Full home directory path generalized (line 42)
  Type: Internal path
  Action: Replaced with ~/

Rules

  1. Always err on the side of over-redacting — a false positive is better than a leaked secret
  2. Never log or store the original sensitive values
  3. Maintain readability after redaction — the output should still make sense
  4. If an entire response is sensitive (e.g., dumping.env), replace with a warning instead
  5. Do not redact values in code that the user explicitly asked to see (e.g., "show me my.env") — but warn them

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.21%
按下载量换算757

Claude

29.39%
按下载量换算632

Cursor

21.08%
按下载量换算453

Gemini CLI

9.73%
按下载量换算209

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills