From d0f8d8db769f8faabdb016be1c35b2d12ef94bca Mon Sep 17 00:00:00 2001 From: arjun Date: Thu, 3 Oct 2024 13:45:26 +0530 Subject: [PATCH] pii-types --- pii-types/filetypes.json | 5 +++-- pii-types/fintech.json | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/pii-types/filetypes.json b/pii-types/filetypes.json index f0c7ab8049..f293c4a079 100644 --- a/pii-types/filetypes.json +++ b/pii-types/filetypes.json @@ -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"} ] } + \ No newline at end of file diff --git a/pii-types/fintech.json b/pii-types/fintech.json index 283a037fe3..c52916b37e 100644 --- a/pii-types/fintech.json +++ b/pii-types/fintech.json @@ -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"} ] } \ No newline at end of file