Custom Rules for Proprietary Data Formats
Custom RegEx Engine: Enforce Proprietary Data Boundaries

"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."
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).
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.
Hidden locally on your device. Supports Custom Rules Engine risk minimization (GDPR, HIPAA, SOC 2).
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.
How Local Masking Works
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.
Supported Formats & Local Browser Bounds
Supported Formats
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
Open Custom Rules panel
In the PrivacyScrubber sidebar, click Custom Rules. This is a PRO feature — upgrade if prompted.
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]).
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.
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.
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.
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
| Feature | Supported | Notes |
|---|---|---|
| Named capture groups | Yes | Used for display label in output |
| Contextual boundary assertions | Yes | Full ECMAScript support |
| Flags (g, i, m) | Yes | Per-rule flag configuration |
| Custom token label | Yes | e.g. [ORDER_ID_1] vs [ID_1] |
| Cross-rule backreferences | No | Each 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.
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.
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
- Go to the Custom Rules tab in the Secure Workspace (PRO required).
- Click New Rule. Enter a descriptive name (e.g., "Employee ID").
- Enter your regex pattern: e.g.,
EMP-\d{6} - Set the Token Label: e.g.,
EMP_IDproduces[EMP_ID_1]. - Paste a test string in the Live Preview panel. Matched text highlights in real time.
- Click Save Rule. Active immediately.
Syncing Custom Rules to the Chrome Extension
- In the Secure Workspace Custom Rules tab, click Export Rules. Generates an AES-GCM-256 encrypted JSON file.
- Open the extension popup. Go to Settings → Import Rules.
- Upload the exported file. Extension decrypts it using your PRO session key and loads all custom rules.
- 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.
Frequently Asked Questions
Technical Details & Privacy Architecture
Do I need to know regex to create custom rules?
Are custom rules stored on a server?
What happens when two rules match overlapping text?
Can I share custom rules with my team?
Does the Chrome extension use my custom rules?
Can custom rules use regex flags like case-insensitive?
Protect Your Team's AI Prompts in Under 30 Seconds
No server uploads. No account required. 100% offline directly on your device.
