DLP Detection Patterns

Configure patterns to detect PII, API keys, credentials, and custom data

Built-in Detection Patterns

Signal Canary includes pre-configured patterns for common sensitive data types. These patterns are optimized for accuracy and minimize false positives.

Personal Identifiers

PatternDetectsExample
ssnUS Social Security Numbers123-45-6789
passportPassport Numbers (US, UK, EU)A12345678
drivers_licenseDriver's License NumbersD123-456-789
national_idNational ID NumbersVarious formats

Financial Data

PatternDetectsExample
credit_cardCredit/Debit Card Numbers4111-1111-1111-1111
bank_accountBank Account Numbers123456789012
routing_numberBank Routing Numbers021000021
ibanInternational Bank NumbersGB82WEST12345698765432

Credentials & Secrets

PatternDetectsExample
api_keyCommon API Key Formatssk-proj-abc123...
aws_keyAWS Access KeysAKIAIOSFODNN7...
github_tokenGitHub Personal Access Tokensghp_xxxx...
private_keyRSA/SSH Private Keys-----BEGIN RSA PRIVATE KEY-----
passwordPassword patterns in codepassword = "..."

Contact Information

PatternDetectsExample
emailEmail Addressesuser@example.com
phonePhone Numbers (US/Intl)+1 (555) 123-4567
addressPhysical Addresses123 Main St, City, ST 12345

Creating Custom Patterns

For organization-specific data, you can create custom detection patterns using regular expressions (regex).

1 Go to Pattern Settings

In your DLP policy, click Add Custom Pattern.

2 Define the Pattern

Enter a name and the regex pattern to match:

Name: Employee ID
Pattern: EMP-[0-9]{6}

3 Test Your Pattern

Use the test panel to verify matches before saving.

Regex Tips for DLP

Keep patterns specific to avoid false positives. A pattern that matches too broadly will flag legitimate content.

Common Regex Syntax

[0-9]Any digit 0-9
[A-Z]Any uppercase letter
[a-zA-Z]Any letter (upper or lower)
{n}Exactly n occurrences
{n,m}Between n and m occurrences
+One or more
*Zero or more
?Zero or one (optional)
\bWord boundary
|OR (alternative patterns)

Pattern Examples

Internal Project Codes

# Match: PROJ-ABC-12345
Pattern: PROJ-[A-Z]{3}-[0-9]{5}

Customer Account Numbers

# Match: CUST-2024-00001234
Pattern: CUST-[0-9]{4}-[0-9]{8}

Internal IP Addresses

# Match: 10.x.x.x or 192.168.x.x
Pattern: (10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|192\.168\.[0-9]{1,3}\.[0-9]{1,3})

Medical Record Numbers

# Match: MRN-12345678
Pattern: MRN-[0-9]{8}

API Endpoints (Internal)

# Match: api.internal.company.com
Pattern: api\.internal\.[a-z]+\.com
Escape special regex characters (. * + ?) with a backslash when you want to match them literally.

Well-designed patterns are the foundation of effective DLP. Take time to test and refine your patterns for the best results.

Ready to Try Signal Canary?

Create your first tracking pixel in under 5 minutes. No credit card required.

Get Started Free