๐ฆ ClawHub
Sensitive Info Protection
by @leefj0606
Sensitive information real-time protection skill that automatically detects, alerts, and handles sensitive data in user interactions. Supports custom detecti...
๐ก Examples
Scanning Content for Sensitive Information
from scripts.detector import SensitiveDetectordetector = 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
Adding Custom Rule
from scripts.models import DetectionRulenew_rule = DetectionRule(
name="custom_secret",
pattern=r"MY_SECRET=\w+",
sensitivity="high",
description="Custom secret pattern"
)
detector.add_rule(new_rule)
Loading Configuration from File
detector.load_config("path/to/config.json")
TERMINAL
clawhub install sensitive-info-protection