From 6a29b77660e1ad7eaa7e0d775a3d32a5a5fdb1ab Mon Sep 17 00:00:00 2001 From: PiX <69745008+pixincreate@users.noreply.github.com> Date: Mon, 4 May 2026 23:14:45 +0530 Subject: [PATCH] feat: add Indian ID detectors Add detectors for: - Aadhaar (12-digit) - Voter ID EPIC (10-char alphanumeric) - APAAR (12-digit) - PAN Card (10-char alphanumeric) - ABHA Health ID (14-digit) These IDs have the potential to destroy people's lives if leaked. Closes #14 --- detectors.toml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/detectors.toml b/detectors.toml index ab974a1..f433aad 100644 --- a/detectors.toml +++ b/detectors.toml @@ -250,3 +250,27 @@ name = "GoogleOAuthTokenDetector" pattern = "ya29\\.[0-9A-Za-z\\-_]+" finding_type = "Google OAuth Token" severity = "HIGH" + +[[detectors]] +name = "AadhaarCardDetector" +pattern = "\\b\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}\\b" +finding_type = "Aadhaar Card Number" +severity = "HIGH" + +[[detectors]] +name = "VoterIDDetector" +pattern = "\\b[A-Z]{3}\\d{7}\\b" +finding_type = "Voter ID (EPIC)" +severity = "HIGH" + +[[detectors]] +name = "PANCardDetector" +pattern = "\\b[A-Z]{5}\\d{4}[A-Z]\\b" +finding_type = "PAN Card Number" +severity = "HIGH" + +[[detectors]] +name = "ABHADetector" +pattern = "\\b\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{2}\\b" +finding_type = "ABHA Health ID" +severity = "HIGH"