ScrubGuard
v1.0.0Local-first PII and secret scrubber with checksum checks and reversible LLM tokens.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scrub_text
Scrub or reversibly tokenize PII (emails, SSNs, Luhn-verified credit cards, IBANs, phones, IPv4) and leaked API keys/secrets from text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Raw text or prompt to sanitize |
mode | string | tokenize ([EMAIL_1] + reversible vault), redact, or mask |
types | array | Optional whitelist of detector types |
rehydrate_text
Restore tokenized placeholders (e.g., [EMAIL_1], [CREDIT_CARD_1]) in LLM responses using the vault map returned by scrub_text.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text containing placeholder tokens |
vault * | object | Key-value vault map from scrub_text |
scrub_json
Recursively scrub PII and sensitive keys (password, secret, api_key, ssn) in a JSON object or array while preserving schema types.
| Parameter | Type | Description |
|---|---|---|
data * | JSON object or array to sanitize | |
mode | string |