Skip to content

PII Detection

PII Detection scans free-text fields for personally identifiable information that shouldn’t be stored in those fields. It helps organizations comply with data privacy regulations like GDPR, CCPA, and HIPAA.

The PII Detection strategy analyzes text content for patterns that match:

  1. Social Security Numbers (SSN) — numeric patterns like XXX-XX-XXXX
  2. Credit Card Numbers — 13–19 digit sequences matching card network patterns
  3. Email Addresses — in fields where email storage is not expected
  4. Phone Numbers — in free-text fields (not dedicated phone fields)
  5. National ID Numbers — country-specific patterns

The Defaults section provides three preset groups of detection patterns:

PresetDescription
StandardCore PII patterns — Social Security Number, Credit Card Number, Email Address, US Phone Number
CriticalHigh-risk financial and identity patterns
ExtendedFull set including IP Address, IBAN, Date of Birth, International Phone, and more

Each pattern shows its regex expression and can be individually enabled or disabled. You can also add your own patterns in the Add Custom Pattern section by entering a regex and a label.

PII Detection configuration with Detection Patterns presets (Standard, Critical, Extended), pattern list, and Field Overrides

Click on a field in the Field Overrides table to open its configuration modal. You can select which detection patterns apply to that field — choose a preset or enable/disable individual patterns. The modal also lets you add custom patterns specific to that field. Use the Revert to Global link to reset.

Per-field configuration modal for the Description field with detection patterns and custom pattern input

ResultScore
No PII detected100
Some PII foundProportional to clean percentage
PII in all records0
No data0

DQS uses Java-compatible regular expressions to detect PII in free-text fields. See the Regex Tester for an interactive tester and a full library of PII patterns — including SSN, credit cards (Visa, Mastercard, Amex), IBAN, passport numbers, PESEL, NIP, and more.

  • Audit Description and Notes fields for accidentally stored credit card numbers
  • Monitor free-text fields for social security numbers
  • Compliance reporting for data privacy regulations
  • Pre-migration data cleansing