Loading...
Loading...
Sanitize OpenClaw agent output before display. Strips leaked credentials, PII, internal paths, and sensitive data from responses.
npx skill4agent add useai-pro/openclaw-skills-security output-sanitizer[REDACTED]| Type | Pattern | Example |
|---|---|---|
| AWS Access Key | | |
| AWS Secret Key | 40-char base64 after access key | |
| OpenAI API Key | | |
| Anthropic Key | | |
| GitHub Token | | |
| Generic Passwords | | |
| Private Keys | | PEM-formatted keys |
| JWT Tokens | | Full JWT strings |
| Database URLs | | |
<db-scheme>postgresmysqlmongodb| Type | Action | Example |
|---|---|---|
| Email addresses | Mask local part: | |
| Phone numbers | Mask digits: | Last 4 visible |
| SSN / National IDs | Full redaction: | Any 9-digit pattern with dashes |
| Credit card numbers | Mask: | Last 4 visible |
| IP addresses (private) | Keep as-is (usually config) | |
| IP addresses (public) | Evaluate context | May need redaction |
| Type | Action |
|---|---|
| Full home directory paths | Replace |
| Internal hostnames | Replace with |
| Internal URLs/endpoints | Replace domain with |
| Stack traces with internal paths | Simplify to relative paths |
| Docker/container IDs | Truncate to first 8 chars |
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:42OUTPUT 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 ~/