Skip to content

feat: add Indian ID detectors#54

Merged
pixincreate merged 1 commit intomasterfrom
feature/indian-id-detectors
May 4, 2026
Merged

feat: add Indian ID detectors#54
pixincreate merged 1 commit intomasterfrom
feature/indian-id-detectors

Conversation

@pixincreate
Copy link
Copy Markdown
Owner

Summary

Add 5 new detectors for sensitive Indian government identification numbers:

  1. Aadhaar - 12-digit unique identification number
  2. Voter ID (EPIC) - 10-character alphanumeric Election Photo ID Card
  3. APAAR - 12-digit Unique ID for students
  4. PAN Card - 10-character alphanumeric Permanent Account Number
  5. ABHA - 14-digit Ayushman Bharat Health Account ID

Rationale

These 5 IDs have the potential to destroy people's lives if leaked and made public. Adding them to the detector improves security for Indian users.

Closes

Closes #14

Copilot AI review requested due to automatic review settings May 4, 2026 17:44
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds five new regex-based detectors to detectors.toml so the scanner can flag Indian government ID numbers alongside the existing secret/PII patterns in the codebase.

Changes:

  • Added detector entries for Aadhaar, Voter ID (EPIC), APAAR, PAN, and ABHA IDs.
  • Marked all five new detector types as HIGH severity.
  • Extended the detector catalog without changing scanner/runtime code.

Comment thread detectors.toml Outdated
Comment thread detectors.toml Outdated
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
@pixincreate pixincreate force-pushed the feature/indian-id-detectors branch from 257aa9a to 6a29b77 Compare May 4, 2026 17:52
@pixincreate pixincreate merged commit 922a25b into master May 4, 2026
5 checks passed
@pixincreate pixincreate deleted the feature/indian-id-detectors branch May 4, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more detectors

2 participants