Zero-Trust Data Sanitization

Custom Rules for Proprietary Data Formats

Custom RegEx Engine: Enforce Proprietary Data Boundaries

100% On Your Device Airplane Mode Zero Network Leakage
Free to start · $0 Free / $99/mo Teams
Custom Regex Rules Editor
Key Safeguards: Custom Rules Engine
On-Device Execution

"PrivacyScrubber custom rules let security teams define proprietary regex patterns and exact keyword lists for internal codenames, UUIDs, and account IDs. Structural patterns save locally while sensitive keyword dictionaries stay encrypted at rest with WebCrypto AES-256-GCM."

Define Pattern: Write custom regular expressions (supporting custom corporate pattern rules) to target your specific company formats.
Choose Token: Assign a unique placeholder tag (e.g. [SECRET_PROJ]) to replace matched characters during scanning.
Sorted Execution: Rules are automatically sorted descending by length to prevent subset collisions and run locally in the Web Worker.

Zero-Limit Custom Rules for Proprietary Data Formats Masking

Save encrypted regex detection engine rules locally and batch-scrub files in Airplane Mode ($15/mo).

See PRO ($15/mo)
Live Turnkey Simulator · ZTDS Engine

Interactive PII Detection & Sanitization Sandbox

Test real-time masking on your device. Choose an industry sample or paste your own text to test instant reversible redaction.

Protected by Custom Rules Engine: CustomerSSNPhone NumbersEmail AddressesPANAPI Access Keys
0 Bytes Uploaded
<1.8ms Latency
Select Industry Test Payload:
Raw Input Payload
0 chars
On-Device Isolated Session
1-Click Safe AI Launch:
Automated Detection Classes:
Customer / Employee NamesSSNPhone NumbersEmail AddressesCredit Card Numbers (PAN)API Access Keys / TokensPhysical AddressesInternal Server Hostnames
Enterprise Challenge

The Challenge with AI Data Workflows

Standard PII scanners only look for generic data like emails and SSNs. However, the most devastating leaks in Generative AI often involve internal code names, proprietary UUIDs, and custom API token formats that off-the-shelf tools completely ignore.

Zero Network & Cloud Leakage
Prevents direct PII leaks before prompts hit external AI models.
Zero-Trust Resolution

How Local Masking Works

1

Define Pattern

Write custom regular expressions (supporting custom corporate pattern rules) to target your specific company formats.

2

Choose Token

Assign a unique placeholder tag (e.g. [SECRET_PROJ]) to replace matched characters during scanning.

3

Sorted Execution

Rules are automatically sorted descending by length to prevent subset collisions and run locally in the Web Worker.

Supported Formats & Local Browser Bounds

Supported Formats

Regular Expressions (Regex)Exact String Matches

Local Runtime Guardrails

  • Regex must be compatible with the JavaScript (V8) RegExp engine
  • Avoid catastrophic backtracking patterns to prevent UI thread blocking
  • Custom rules override default token mappings if conflicts occur

How Custom Rules Engine Works in 5 Steps

100% On-Device · Zero Server Uploads

4 min total
1

Open Custom Rules panel

In the PrivacyScrubber sidebar, click Custom Rules. This is a PRO feature — upgrade if prompted.

2

Add a new rule

Click + Add Rule. Enter a rule name (e.g., Employee ID), your regex pattern (e.g., EMP-\d{6}), and a replacement token (e.g., [EMP_ID]).

3

Test your pattern

Paste a sample text containing your target pattern into the test field. Click Test to verify the regex matches correctly before saving.

4

Save and activate

Click Save Rule. The rule is immediately active — all future scrubs apply your custom patterns first, sorted by length to prevent overlapping matches.

5

Export your ruleset

Click Export Rules to download your custom ruleset as JSON. Share it via TEAMS session handoff for consistent redaction across your entire organization.

What you need: Knowledge of your proprietary data patterns (regex syntax) PRO subscription or Lifetime license
ZTDS™ Standard ConformanceCustom Boundary Invariants & Zero-Telemetry Rule Engine

The Custom Rules engine adheres to the Zero-Trust Data Sanitization (ZTDS™) standard by compiling custom regex patterns and proprietary boundary checks into temporary local memory. Internal project code names, UUIDs, and custom API keys are stripped with zero cloud telemetry, ensuring proprietary trade secrets never cross perimeter boundaries.

Custom Regex Rules: Catch What Generic Scanners Miss

Every organization has proprietary data formats that no generic PII scanner covers: internal employee IDs, policy numbers, claim references, API key formats. The Custom Rules engine lets you define ECMAScript regex patterns that run inside the same local detection pipeline as the built-in rules.

Regex Engine Capabilities

Swipe table horizontally to compare

FeatureSupportedNotes
Named capture groupsYesUsed for display label in output
Contextual boundary assertionsYesFull ECMAScript support
Flags (g, i, m)YesPer-rule flag configuration
Custom token labelYese.g. [ORDER_ID_1] vs [ID_1]
Cross-rule backreferencesNoEach rule is independent

Enterprise Governance: Strict CISO Lock vs. Additive Local Overlay

Enterprise compliance requires a dual-track approach: IT security leads need to enforce non-negotiable corporate compliance baselines, while individual knowledge workers need the agility to sanitize ad-hoc project codenames and case IDs without filing IT tickets.

Strict CISO Mode (Locked Rules)

Corporate custom rules are marked with [ENTERPRISE LOCKED] in the employee's extension. Employees cannot edit, delete, or disable them. When Strict CISO Hard Lock is active, the extension master toggle is permanently locked ON.

Additive Local Rules Overlay

Managed workers can add personal [LOCAL] regex rules directly in their Chrome extension popup. The engine merges [...corpRules, ...localRules] in local device memory, giving workers immediate protection with 0 IT ticket delay.

Step-by-Step: Creating a Custom Rule

  1. Go to the Custom Rules tab in the Secure Workspace (PRO required).
  2. Click New Rule. Enter a descriptive name (e.g., "Employee ID").
  3. Enter your regex pattern: e.g., EMP-\d{6}
  4. Set the Token Label: e.g., EMP_ID produces [EMP_ID_1].
  5. Paste a test string in the Live Preview panel. Matched text highlights in real time.
  6. Click Save Rule. Active immediately.

Syncing Custom Rules to the Chrome Extension

  1. In the Secure Workspace Custom Rules tab, click Export Rules. Generates an AES-GCM-256 encrypted JSON file.
  2. Open the extension popup. Go to Settings → Import Rules.
  3. Upload the exported file. Extension decrypts it using your PRO session key and loads all custom rules.
  4. Rules are now active on all supported AI platforms: ChatGPT, Claude, Gemini, DeepSeek, and more.

Development teams building sanitized log pipelines for AI debugging use custom rules extensively for proprietary token formats, internal error codes, and service mesh identifiers that no generic scanner covers.

Enterprise deployments can configure hardcoded rulesets that cannot be modified by end users — a key control requirement for SOC 2 Type II audit trails where rule consistency must be demonstrable.

On-Device ZTDS™ Execution & Conformance Verification

All sensitive-data detection and safe masking execute 100% on your device — Zero Network & Cloud Leakage, with no cloud proxies or external subprocessors.

100% On-Device Airplane Mode Verified IETF RFC Draft
ZTDS™ Verified
ZTDS-CERT-2026-PRIVACYSCRUBBER-WEB-D0EA62
ZTDS™ Spec v1.0 Verified Capability·ZTDS-CERT-2026-PRIVACYSCRUBBER-WEB-D0EA62
Verify Cryptographic Seal

Frequently Asked Questions

Technical Details & Privacy Architecture

Do I need to know regex to create custom rules?
No. The interface provides 40+ pre-built templates for common enterprise formats (order IDs, policy numbers, employee IDs, etc.). You can test any pattern against sample text in the live preview panel before saving. For advanced users, full ECMAScript regex syntax is supported including contextual boundary assertions and named capture groups.
Are custom rules stored on a server?
No. Custom rules are saved locally in your browser, namespaced to your PRO session token. They are never transmitted to any server. Browser storage persists across page refreshes while remaining isolated per browser profile.
What happens when two rules match overlapping text?
The engine resolves overlaps deterministically: rules are sorted by match length (longest match wins). If two rules match the exact same character range, the rule with higher specificity takes precedence. No character is replaced twice.
Can I share custom rules with my team?
Yes. TEAMS subscribers can export the entire ruleset as an AES-GCM-256 encrypted JSON file. Any team member with an active TEAMS session can import it. Only authorized members can decrypt it, as the key is derived from the team's subscription ID.
Does the Chrome extension use my custom rules?
Yes. When you activate PRO in the extension popup, your custom rules are imported via the Export/Import flow (Settings → Import Rules). The extension then applies them to all text scrubbed on any supported AI platform.
Can custom rules use regex flags like case-insensitive?
Yes. The engine supports global (g), multiline (m), and case-insensitive (i) flags per rule. Named capture groups are supported for display labeling in the output. Backreferences within a single pattern work. Cross-rule backreferences are not supported.
100% Zero-Trust Deployment

Protect Your Team's AI Prompts in Under 30 Seconds

No server uploads. No account required. 100% offline directly on your device.