Install
openclaw skills install @leefj0606/sensitive-info-protectionSensitive information real-time protection skill that automatically detects, alerts, and handles sensitive data in user interactions. Supports custom detection rules, external data source integration, and interactive processing. Use when you need to: (1) Scan text content for sensitive information, (2) Configure custom sensitive data detection rules, (3) Protect against accidental exposure of credentials, personal info, or business secrets.
openclaw skills install @leefj0606/sensitive-info-protectionA general-purpose sensitive information protection skill that provides real-time scanning, detection, and interactive handling of sensitive data in conversation content. It helps prevent accidental exposure of personal information, authentication credentials, and commercial secrets through configurable detection rules.
Built-in detection for the following types:
api_key - API keys, access tokens, authentication credentialscredit_card - Credit card numbersid_card - National ID card numbers (Chinese)phone - Mobile phone numbers (Chinese)email - Email addressesbank_card - Bank card numberspassword - Password patterns in code or logssecret - Commercial secrets, confidential information markersfrom scripts.detector import SensitiveDetector
detector = SensitiveDetector()
results = detector.scan(text_content)
if results:
# Print detection results in standard format
detector.print_results(results)
# Wait for user decision to proceed
else:
# No sensitive information detected
pass
from scripts.models import DetectionRule
new_rule = DetectionRule(
name="custom_secret",
pattern=r"MY_SECRET=\w+",
sensitivity="high",
description="Custom secret pattern"
)
detector.add_rule(new_rule)
detector.load_config("path/to/config.json")
When sensitive information is detected, the following format is used:
## 检测结果
- 敏感类型: [type]
- 位置: [start:end]
- 原文: [original content]
- 敏感度: [high/medium/low]
## 操作选项
1. 确认放行
2. 修改后发送
3. 取消发送
detector.py - Main detection engine classmodels.py - Data models for detection rules and resultscli.py - Command-line interfacedefault_rules.json - Built-in default detection rulesconfiguration.md - Detailed configuration guideapi.md - API documentation for integrationdefault_config.json - Default configuration template