PII Types
Border detects 20+ types of personally identifiable information, organized by category.Financial
| Type | Description | Validation |
|---|---|---|
credit_card | Credit/debit card numbers | Luhn algorithm + network detection |
iban | International Bank Account Numbers | MOD-97 checksum |
aba_routing | US bank routing numbers | Weighted checksum |
crypto_address | Bitcoin, Ethereum addresses | Format validation |
Credit Card Networks
Border identifies card networks from prefixes:| Network | Prefix |
|---|---|
| Visa | 4xxx |
| Mastercard | 51-55xx, 2221-2720 |
| Amex | 34xx, 37xx |
| Discover | 6011, 644-649, 65 |
| JCB | 3528-3589 |
| UnionPay | 62xx |
Personal
| Type | Description | Validation |
|---|---|---|
email | Email addresses | Format validation |
phone | Phone numbers (US/international) | Format validation |
ssn | US Social Security Numbers | Area/group rules |
passport | Passport numbers | Format match |
drivers_license | Driver’s license numbers | Format match |
date_of_birth | Birth dates (multiple formats) | Date validation |
SSN Validation
Border validates SSN structure:- Area code (first 3 digits): Not 000, 666, or 900-999
- Group number (middle 2 digits): Not 00
- Serial number (last 4 digits): Not 0000
Credentials
| Type | Description | Pattern |
|---|---|---|
api_key | Generic API keys | Context-aware |
aws_key | AWS Access Key IDs | AKIA..., ABIA... |
stripe_key | Stripe API keys | sk_live_, pk_live_ |
github_token | GitHub tokens | ghp_, gho_, etc. |
slack_token | Slack tokens | xoxb-, xoxp- |
jwt | JSON Web Tokens | eyJ... format |
Network
| Type | Description |
|---|---|
ip_address | IPv4 addresses |
ipv6_address | IPv6 addresses |
mac_address | MAC addresses |
Other
| Type | Description | Validation |
|---|---|---|
vin | Vehicle ID Numbers | Check digit validation |
medical_record | Medical record numbers | MRN prefix format |