Skip to content

Commit

Permalink
pii-types
Browse files Browse the repository at this point in the history
  • Loading branch information
arjun-akto committed Oct 3, 2024
1 parent 6a2a613 commit d0f8d8d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions pii-types/filetypes.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"types": [
{"name": "IMAGE", "regexPattern" : "([^\\s]+(\\.(?i)(jpe?g|png|svg))$)", "sensitive":false, "onKey": false, "active" : false},
{"name": "DATA FILE", "regexPattern" : "([^\\s]+(\\.(?i)(pdf|js|css|woff|txt))$)", "sensitive":false, "onKey": false, "active" : false}
{"name": "IMAGE", "regexPattern" : "([^\\s]+(\\.(?i)(jpe?g|png|svg))$)", "sensitive":false, "onKey": false, "active" : false, "tagLists": ["PII"], "dataTypePriority": "MEDIUM"},
{"name": "DATA FILE", "regexPattern" : "([^\\s]+(\\.(?i)(pdf|js|css|woff|txt))$)", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["RESOURCE"], "dataTypePriority": "MEDIUM"}
]
}

20 changes: 10 additions & 10 deletions pii-types/fintech.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"types": [
{"name": "PAN CARD", "regexPattern" : "[A-Z]{5}[0-9]{4}[A-Z]{1}", "sensitive":false, "onKey": false, "active" : false},
{"name": "US Medicare Health Insurance Claim Number", "regexPattern" : "[0-9]{9}[A-Za-z]{1}[0-9a-zA-Z]?", "sensitive":false, "onKey": false, "active" : false},
{"name": "Indian Unique Health Identification", "regexPattern" : "[0-9]{14}", "sensitive":false, "onKey": false, "active" : false},
{"name": "United Kingdom National Insurance Number", "regexPattern" : "(?!BG)(?!GB)(?!NK)(?!KN)(?!NT)(?!TN)(?!ZZ)(?! ?.O)[A-CE-EG-HJ-PR-TW-Za-ce-eg-hj-pr-tw-z]{2}[0-9]{6}[A-Da-d]{1}", "sensitive":false, "onKey": false, "active" : false},
{"name": "Finnish Personal Identity Number", "regexPattern" : "([0-2][0-9]|[3-3][0-1])([0-0][1-9]|[1-1][0-2])[0-9]{2}[Aa\\+\\-]{1}([0-8][0-9][2-8]|[1-8][0-9][0-9])[0-9A-Ya-y]", "sensitive":false, "onKey": false, "active" : false},
{"name": "Canadian Social Insurance Number", "regexPattern" : "[0-9]{9}", "sensitive":false, "onKey": false, "active" : false},
{"name": "German Insurance Identity Number", "regexPattern" : "[0-9]{2}([0-2][0-9]|[3-3][0-1])([0-0][1-9]|[1-1][0-2])[0-9]{2}[A-Za-z][0-9]{3}", "sensitive":false, "onKey": false, "active" : false},
{"name": "Japanese Social Insurance Number", "regexPattern" : "[0-9]{12}", "sensitive":false, "onKey": false, "active" : false},
{"name": "IBAN EUROPE", "regexPattern" : "[A-Z]{2}?[ ]?[0-9]{2}[ ]?\\s*(\\d{4}\\s*){4,10}(\\d{1,2}\\s*)?", "sensitive":false, "onKey": false, "active" : false},
{"name": "US ADDRESS", "regexPattern" : "\\d{1,5}(\\s[\\w-.,]*){1,6},\\s[A-Z]{2}\\s\\d{5}\\b", "sensitive":false, "onKey": false, "active" : false}
{"name": "PAN CARD", "regexPattern" : "[A-Z]{5}[0-9]{4}[A-Z]{1}", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["PII","FINANCE"], "dataTypePriority": "CRITICAL"},
{"name": "US Medicare Health Insurance Claim Number", "regexPattern" : "[0-9]{9}[A-Za-z]{1}[0-9a-zA-Z]?", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["PII", "HEALTHCARE"], "dataTypePriority": "HIGH"},
{"name": "Indian Unique Health Identification", "regexPattern" : "[0-9]{14}", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["HEALTHCARE", "PII"], "dataTypePriority": "HIGH"},
{"name": "United Kingdom National Insurance Number", "regexPattern" : "(?!BG)(?!GB)(?!NK)(?!KN)(?!NT)(?!TN)(?!ZZ)(?! ?.O)[A-CE-EG-HJ-PR-TW-Za-ce-eg-hj-pr-tw-z]{2}[0-9]{6}[A-Da-d]{1}", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["FINANCE", "PII"], "dataTypePriority": "HIGH"},
{"name": "Finnish Personal Identity Number", "regexPattern" : "([0-2][0-9]|[3-3][0-1])([0-0][1-9]|[1-1][0-2])[0-9]{2}[Aa\\+\\-]{1}([0-8][0-9][2-8]|[1-8][0-9][0-9])[0-9A-Ya-y]", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["PII"], "dataTypePriority": "HIGH"},
{"name": "Canadian Social Insurance Number", "regexPattern" : "[0-9]{9}", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["PII"], "dataTypePriority": "HIGH"},
{"name": "German Insurance Identity Number", "regexPattern" : "[0-9]{2}([0-2][0-9]|[3-3][0-1])([0-0][1-9]|[1-1][0-2])[0-9]{2}[A-Za-z][0-9]{3}", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["FINANCE", "PII"], "dataTypePriority": "HIGH"},
{"name": "Japanese Social Insurance Number", "regexPattern" : "[0-9]{12}", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["FINANCE", "PII"], "dataTypePriority": "HIGH"},
{"name": "IBAN EUROPE", "regexPattern" : "[A-Z]{2}?[ ]?[0-9]{2}[ ]?\\s*(\\d{4}\\s*){4,10}(\\d{1,2}\\s*)?", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["FINANCE", "PII"], "dataTypePriority": "HIGH"},
{"name": "US ADDRESS", "regexPattern" : "\\d{1,5}(\\s[\\w-.,]*){1,6},\\s[A-Z]{2}\\s\\d{5}\\b", "sensitive":false, "onKey": false, "active" : false, "tagsLists": ["PII"], "dataTypePriority": "MEDIUM"}
]
}

0 comments on commit d0f8d8d

Please sign in to comment.