Shinydocs Pro ships with 97 rules for finding potential personally identifiable information (PII) and personal sensitive information (PSI). You choose which ones run under Settings > Analysis > PII. See Detecting Potential PII and PSI using Shinydocs Pro.
How a rule finds a match
Each rule looks for documents whose text contains the pattern it targets, usually near a related keyword (for example, a nine-digit number near "SIN"). Shinydocs Pro then checks each candidate against the rule's pattern, and, for credit cards and the Canadian SIN, checks the number's check digit (the Luhn algorithm). Only documents that pass are tagged.
A tagged document gets the rule's value in potential_pii, and the text that matched is saved in pii_matches.
Sensitivity
-
0 - Low: public or low-risk information, such as an email address or postal code.
-
1 - Medium: could cause harm if exposed, such as a driver's license or passport number.
-
2 - High: highly sensitive, such as a social insurance number, credit card number or API key.
The Overview and the Catalog's PII filter group results by sensitivity, and by display group where a rule has one.
Default rules
|
Rule |
Display group |
Sensitivity |
Check digit (Luhn) |
|---|---|---|---|
|
US Individual Taxpayer Identification Number |
|
3 |
|
|
Anthropic API Key |
|
2 - High |
|
|
AWS Access Key ID |
|
2 - High |
|
|
AWS Secret Access Key |
|
2 - High |
|
|
Canadian Social Insurance Number |
Social Security Numbers |
2 - High |
Yes |
|
Credit card (AMEX) |
Credit cards |
2 - High |
Yes |
|
Credit Card (Diner's Club) |
Credit cards |
2 - High |
Yes |
|
Credit Card (Discover) |
Credit cards |
2 - High |
Yes |
|
Credit Card (JCB) |
Credit cards |
2 - High |
Yes |
|
Credit card (MasterCard) |
Credit cards |
2 - High |
Yes |
|
Credit card (Visa) |
Credit cards |
2 - High |
Yes |
|
Google API key |
|
2 - High |
|
|
IBAN |
|
2 - High |
|
|
OpenAI API Key |
|
2 - High |
|
|
Stripe Publishable API Key |
|
2 - High |
|
|
Stripe Secret API Key |
|
2 - High |
|
|
SWIFT/BIC Code |
|
2 - High |
|
|
US Bank Routing Number |
|
2 - High |
|
|
US Employer Identification Number |
|
2 - High |
|
|
USA Social Security Number (Formatted) |
Social Security Numbers |
2 - High |
|
|
USA Social Security Number (Masked) |
Social Security Numbers |
2 - High |
|
|
USA Social Security Number (Proximity) |
Social Security Numbers |
2 - High |
|
|
Australian Medicare Number |
|
1 - Medium |
|
|
Australian Tax File Number |
|
1 - Medium |
|
|
Canadian driver's licenses (13 rules, one per province and territory) |
Driver's licenses |
1 - Medium |
|
|
Canadian passport number |
Passport numbers |
1 - Medium |
|
|
Ontario Health Card |
Health card numbers |
1 - Medium |
|
|
UK National Insurance Number |
Social Security Numbers |
1 - Medium |
|
|
US driver's licenses (51 rules, one per state and DC) |
Driver's licenses |
1 - Medium |
|
|
US Medicare number |
|
1 - Medium |
|
|
USA Passport number |
Passport numbers |
1 - Medium |
|
|
Canadian postal code |
Postal codes |
0 - Low |
|
|
Email address |
|
0 - Low |
|
|
IP address (IPv4) |
IP addresses |
0 - Low |
|
|
Vehicle Identification Number (VIN) |
|
0 - Low |
|
To add your own rules, see Adding custom PII and ROT rules to Shinydocs Pro Control Center.