Regulations
Generated from the regulation profiles of anonyma/compliance of anonyma 1.3.2, so it is always what the code does.
Each profile maps categories to the provisions that name them, says which protection a strategy must give, and lists the data the regulation names that no detector covers. Policies that extend a profile are checked against it.
General Data Protection Regulation
European Union / EEA · Regulation (EU) 2016/679 · id gdpr
| Category | Recommended | Provision |
|---|---|---|
name | pseudonymize | GDPR Art. 4(1) |
email | pseudonymize | GDPR Art. 4(1) |
phone | pseudonymize | GDPR Art. 4(1) |
address | pseudonymize | GDPR Art. 4(1) |
date-of-birth | pseudonymize | GDPR Art. 4(1) |
national-id | pseudonymize | GDPR Art. 4(1) |
ssn | pseudonymize | GDPR Art. 4(1) |
passport | pseudonymize | GDPR Art. 4(1) |
drivers-license | pseudonymize | GDPR Art. 4(1) |
tax-id | pseudonymize | GDPR Art. 4(1) |
iban | pseudonymize | GDPR Art. 4(1) |
bank-account | pseudonymize | GDPR Art. 4(1) |
credit-card | pseudonymize | GDPR Art. 4(1) |
cryptocurrency | pseudonymize | GDPR Art. 4(1) |
ipv4 | pseudonymize | GDPR Art. 4(1) |
ipv6 | pseudonymize | GDPR Art. 4(1) |
url | pseudonymize | GDPR Art. 4(1) |
social-media | pseudonymize | GDPR Art. 4(1) |
medical-record | pseudonymize | GDPR Art. 9(1) |
health-insurance | pseudonymize | GDPR Art. 9(1) |
prescription | pseudonymize | GDPR Art. 9(1) |
Not covered by a detector:
- Location data (coordinates, postal codes, city names) — Add custom patterns for the formats in your data, or drop the fields that carry location.
- Device, advertising and cookie identifiers — Add custom patterns for the identifiers your systems emit.
- Special categories expressed in free text (health conditions, beliefs, union membership) — Pattern matching cannot find these. Redact the fields that may contain them, by key.
- Names that are not introduced by a title, greeting or label — Redact name fields by key; the name detector is a heuristic.
Lei Geral de Proteção de Dados Pessoais
Brazil · Lei nº 13.709/2018, as amended · id lgpd
| Category | Recommended | Provision |
|---|---|---|
name | redact | LGPD Art. 5, I |
email | redact | LGPD Art. 5, I |
phone | redact | LGPD Art. 5, I |
address | redact | LGPD Art. 5, I |
date-of-birth | redact | LGPD Art. 5, I |
national-id | redact | LGPD Art. 5, I |
tax-id | redact | LGPD Art. 5, I |
passport | redact | LGPD Art. 5, I |
drivers-license | redact | LGPD Art. 5, I |
bank-account | redact | LGPD Art. 5, I |
iban | redact | LGPD Art. 5, I |
credit-card | redact | LGPD Art. 5, I |
cryptocurrency | redact | LGPD Art. 5, I |
ipv4 | redact | LGPD Art. 5, I |
ipv6 | redact | LGPD Art. 5, I |
url | redact | LGPD Art. 5, I |
social-media | redact | LGPD Art. 5, I |
license-plate | redact | LGPD Art. 5, I |
medical-record | redact | LGPD Art. 5, II |
health-insurance | redact | LGPD Art. 5, II |
prescription | redact | LGPD Art. 5, II |
Not covered by a detector:
- CPF without punctuation, CNPJ, RG, CNH, título de eleitor, PIS/PASEP and Cartão Nacional de Saúde numbers — Only the punctuated CPF format is detected. Add custom patterns with the checksum validators for the others.
- Brazilian phone numbers in national format, CEP postal codes and addresses written in Portuguese — Add custom patterns, or redact the fields that carry them by key.
- Sensitive data in free text (health, religion, political opinion, union membership) — Pattern matching cannot find these. Redact the fields that may contain them, by key.
Personal Information Protection and Electronic Documents Act
Canada (federal, private sector) · S.C. 2000, c. 5, as amended · id pipeda
| Category | Recommended | Provision |
|---|---|---|
name | redact | PIPEDA s. 2(1) |
email | redact | PIPEDA s. 2(1) |
phone | redact | PIPEDA s. 2(1) |
address | redact | PIPEDA s. 2(1) |
date-of-birth | redact | PIPEDA s. 2(1) |
national-id | redact | PIPEDA s. 2(1) |
ssn | redact | PIPEDA s. 2(1) |
passport | redact | PIPEDA s. 2(1) |
drivers-license | redact | PIPEDA s. 2(1) |
tax-id | redact | PIPEDA s. 2(1) |
bank-account | redact | PIPEDA s. 2(1) |
iban | redact | PIPEDA s. 2(1) |
credit-card | redact | PIPEDA s. 2(1) |
ipv4 | redact | PIPEDA s. 2(1) |
ipv6 | redact | PIPEDA s. 2(1) |
social-media | redact | PIPEDA s. 2(1) |
medical-record | redact | PIPEDA s. 2(1) |
health-insurance | redact | PIPEDA s. 2(1) |
prescription | redact | PIPEDA s. 2(1) |
Not covered by a detector:
- Provincial health card numbers, postal codes, and bank transit and institution numbers — Add custom patterns. The Social Insurance Number is detected as national-id.
- Names and addresses written in French — Redact name and address fields by key; the detectors are tuned to English forms.
California Consumer Privacy Act, as amended by the California Privacy Rights Act
California, United States · Cal. Civ. Code §§ 1798.100–1798.199.100 · id ccpa
| Category | Recommended | Provision |
|---|---|---|
name | redact | Cal. Civ. Code § 1798.140(v)(1)(A) |
email | redact | Cal. Civ. Code § 1798.140(v)(1)(A) |
address | redact | Cal. Civ. Code § 1798.140(v)(1)(A) |
ipv4 | redact | Cal. Civ. Code § 1798.140(v)(1)(A) |
ipv6 | redact | Cal. Civ. Code § 1798.140(v)(1)(A) |
url | redact | Cal. Civ. Code § 1798.140(v)(1)(A) |
social-media | redact | Cal. Civ. Code § 1798.140(v)(1)(A) |
phone | redact | Cal. Civ. Code § 1798.140(v)(1)(B) |
date-of-birth | redact | Cal. Civ. Code § 1798.140(v)(1)(B) |
tax-id | redact | Cal. Civ. Code § 1798.140(v)(1)(B) |
ssn | redact | Cal. Civ. Code § 1798.140(ae) |
national-id | redact | Cal. Civ. Code § 1798.140(ae) |
passport | redact | Cal. Civ. Code § 1798.140(ae) |
drivers-license | redact | Cal. Civ. Code § 1798.140(ae) |
bank-account | redact | Cal. Civ. Code § 1798.140(ae) |
credit-card | redact | Cal. Civ. Code § 1798.140(ae) |
api-key | redact | Cal. Civ. Code § 1798.140(ae) |
medical-record | redact | Cal. Civ. Code § 1798.140(ae) |
health-insurance | redact | Cal. Civ. Code § 1798.140(ae) |
Not covered by a detector:
- Precise geolocation — Add custom patterns for coordinates, or drop the fields that carry them.
- Passwords, security codes and other account credentials — Redact credential fields by key. Only API-key shaped secrets are detected.
- Device, cookie and advertising identifiers — Add custom patterns for the identifiers your systems emit.
- Biometric information, and inferences drawn about a consumer — Pattern matching cannot find these. Redact the fields that may contain them, by key.
HIPAA Privacy Rule — de-identification by Safe Harbor
United States · 45 CFR Part 164, Subpart E · id hipaa
| Category | Recommended | Provision |
|---|---|---|
name | redact | 45 CFR § 164.514(b)(2)(i)(A) |
address | redact | 45 CFR § 164.514(b)(2)(i)(B) |
date-of-birth | redact | 45 CFR § 164.514(b)(2)(i)(C) |
phone | redact | 45 CFR § 164.514(b)(2)(i)(D) |
email | redact | 45 CFR § 164.514(b)(2)(i)(F) |
ssn | redact | 45 CFR § 164.514(b)(2)(i)(G) |
medical-record | redact | 45 CFR § 164.514(b)(2)(i)(H) |
health-insurance | redact | 45 CFR § 164.514(b)(2)(i)(I) |
bank-account | redact | 45 CFR § 164.514(b)(2)(i)(J) |
credit-card | redact | 45 CFR § 164.514(b)(2)(i)(J) |
iban | redact | 45 CFR § 164.514(b)(2)(i)(J) |
drivers-license | redact | 45 CFR § 164.514(b)(2)(i)(K) |
passport | redact | 45 CFR § 164.514(b)(2)(i)(K) |
prescription | redact | 45 CFR § 164.514(b)(2)(i)(K) |
vin | redact | 45 CFR § 164.514(b)(2)(i)(L) |
license-plate | redact | 45 CFR § 164.514(b)(2)(i)(L) |
url | redact | 45 CFR § 164.514(b)(2)(i)(N) |
ipv4 | redact | 45 CFR § 164.514(b)(2)(i)(O) |
ipv6 | redact | 45 CFR § 164.514(b)(2)(i)(O) |
national-id | redact | 45 CFR § 164.514(b)(2)(i)(R) |
tax-id | redact | 45 CFR § 164.514(b)(2)(i)(R) |
social-media | redact | 45 CFR § 164.514(b)(2)(i)(R) |
Not covered by a detector:
- City, county, precinct and ZIP code — Only street addresses are detected. Redact or generalise location fields by key.
- Admission, discharge and death dates, and ages over 89 — Only dates that look like a date of birth are detected. Redact date and age fields by key.
- Device identifiers and serial numbers — Add custom patterns for the device identifiers in your records.
- Biometric identifiers and full-face photographs — Out of reach of text processing. Remove these attachments and fields.
- Names that are not introduced by a title, greeting or label — Redact name fields by key; the name detector is a heuristic.
Payment Card Industry Data Security Standard
Global (contractual, card brands) · PCI DSS v4.0.1 · id pci-dss
| Category | Recommended | Provision |
|---|---|---|
credit-card | mask (last 4 kept) | PCI DSS v4.0.1 Req. 3.4.1 |
name | redact | PCI DSS v4.0.1 Req. 3, account data |
bank-account | mask (last 4 kept) | PCI DSS v4.0.1 Req. 3, account data |
address | redact | PCI DSS v4.0.1 Req. 3, account data |
email | redact | PCI DSS v4.0.1 Req. 3, account data |
phone | redact | PCI DSS v4.0.1 Req. 3, account data |
Not covered by a detector:
- Card verification codes, full track data and PINs or PIN blocks (sensitive authentication data) — These must not be stored at all. Redact the fields that carry them by key; no detector finds them.
- Expiration date and service code — Redact the fields that carry them by key.