How Data Redaction
Actually Works.
Every time someone pastes a customer email, a medical record, a credit card number, or an API key into ChatGPT, that data leaves their machine and enters a system they don't control. Data redaction stops it, catching specific patterns before they cross the network boundary. Here's how the detection works, pattern by pattern, across the four major categories: PII, PHI, PCI, and secrets.
Data redaction catches sensitive information, names, Social Security numbers, medical records, credit card numbers, API keys, and passwords, before it leaves your computer on its way to ChatGPT, Claude, or Copilot. It uses layered detection: regex patterns match structured formats like emails and credit cards, entropy analysis spots random-looking strings like API tokens, and contextual matching catches data that only becomes sensitive in context, like a diagnosis next to a patient name. Shield runs all three layers locally on your machine, so your data never reaches an external AI provider.
Pattern Categories
๐ค Personally Identifiable Information
Any data that can identify a specific individual, the broadest category of sensitive data that must be caught before it leaves your network.
Email Address
Standard RFC 5322 email format. Detected via regex with domain validation. Common in support tickets, email transcripts, customer CRM entries, and form data pasted into prompts.
Social Security Number
US SSN in XXX-XX-XXXX format, plus unformatted variants. Also catches ITIN (Individual Taxpayer Identification Number) patterns. One of the highest-risk PII types under GDPR, CCPA, and state breach notification laws.
Phone Number
North American (NANP) and international formats. Matches (XXX) XXX-XXXX, XXX-XXX-XXXX, +X-XXX-XXX-XXXX, and common international variants. Catches phone numbers embedded in support tickets, sales calls, and contact forms.
Physical Address
Street addresses, PO boxes, and rural route numbers. Uses multi-line context matching, a street number followed by a street name, city, state, and ZIP. Catches addresses from CRM records, shipping labels, and legal documents pasted into prompts.
Date of Birth
DOB in multiple formats: MM/DD/YYYY, DD-MM-YYYY, YYYY-MM-DD, and written forms like 'January 15, 1985'. Often paired with age indicators. Critical for age-restricted data handling under COPPA and GDPR.
Architecture
How Redaction Stops Data at the Network Boundary
The redaction engine runs entirely on your machine, in the green boundary. Raw prompts containing names, SSNs, medical records, credit card numbers, and API keys arrive from your application. Shield identifies patterns using regex, entropy analysis, and contextual matching, then replaces each sensitive value with a typed placeholder ([EMAIL], [SSN], [API_KEY]). Only the cleaned prompt crosses the red boundary to the AI provider. When the response comes back, Shield can optionally rehydrate it, swapping placeholders back to original values, so you see a complete result, but the AI provider never had the real data.
Compliance
How Frameworks Map to Redaction Requirements
FAQ
Common Questions
Related Articles
Stop Sensitive Data Before It Reaches an AI Provider
Shield installs in minutes and starts catching PII, PHI, PCI data, and secrets immediately, running locally on your machine, with patterns you can customize. Your data never leaves your network.
Last updated: July 17, 2026