Redact Processor
Description
With this Processor you can identify and redact Personally Identifiable Information (PII) in your data stream. This includes items like:
- Social Security numbers
- Email addresses
- Credit cards
- Phone numbers
This Processor identifies PII based on pattern detection. When the specified pattern is detected, you have the option to replace it with a specified string, or use a standard hash. When using this Processor in a Mezmo Edge Pipelines for Local Data, you can also specify a regular expression to use for pattern detection.
Configuration
Pre-defined Patterns
Social Security Number
The US social security number pattern matches any valid social security number sequence, with or without optional delimiters.
Examples:
- XXX YY ZZZZ
- XXX-YY-ZZZZ
- XXX YY-ZZZZ
- XXX-YY ZZZZ
- XXXYYZZZZ
Phone Number
The phone number pattern matches valid phone numbers, with or without space, hypen or period (.) delimiters.
Valid phone numbers include:
- +1 XXX YYY ZZZZ
- +1 (XXX) YYY ZZZZ
- +1.(XXX).YYY.ZZZZ
- +1XXXYYYZZZZ
- +1-XXX YYY.ZZZZ, etc. .
The matcher will also match parts of sequences (false positives). Partially matched phone numbers includes:
- XXX.YYY.ZZZZ will be matched in the input +1_XXX.YYY.ZZZZ
- XXX.YYY.ZZZZ will be matched in the input +1.MXXX.YYY.ZZZZ
Credit Card Number
The credit card pattern currently matches Visa, Mastercard, American Express, Diners club and JCB card numbers.
Visa
13 to 16 digit numbers starting with 4. Examples: 4XXXXXXXXXXXX or 4XXXXXXXXXXXXXXX
Mastercard
16 digit numbers starting with 21-27 (new range) or 51-57 (old range).
Examples: 21XXXXXXXXXXXXXX or 56XXXXXXXXXXXXXX
American Express (AMEX)
15 digit numbers starting with 34 or 37. Examples: 34XXXXXXXXXXXXX or 37XXXXXXXXXXXXX
Diners Club
14 digit numbers starting with 300-305 or 360-389. Examples: 300XXXXXXXXXXX or 389XXXXXXXXXXX
JCB
15 digit numbers starting with 2131 or 1800 or 16 digit numbers starting with 35. Examples: 2131XXXXXXXXXXX.
Email Address
Matches RFC 5322 compliant email addresses.
Examples: user@dummy.com, user@127.0.0.1, etc
Interactive Demo
Check out an interactive demo of the Redact Processor as a component in a Compliance group, as well as instructions for building a version of the Pipette with your own sample data.