Every enterprise believes it has one main system. In lending it is the loan origination system and the loan management system; in insurance it is the policy administration system; in a hospital it is the patient record. That system is where the business is recorded, and it is usually the best protected part of the estate.
The rest of the work happens somewhere else. A credit officer asks a customer for a fresh salary slip over email. Operations sends an address proof to a colleague on WhatsApp because the shared drive is slow. A support ticket carries a screenshot of a customer's passbook. A collections agency gets a file over email. An engineer shares an application log with a vendor to debug a failed transaction, and the log carries the full request body: name, mobile number, PAN, maybe an Aadhaar number.
That is the real map. One system of record, and eight or ten other places where personal data is copied, pasted, attached and forwarded. A consent system can only govern what the enterprise can see, and a masking rule can only protect a field somebody has found. Discovery comes first.
Start with the work, not the database
The record of processing activities is the list of what the enterprise does. Discovery turns each row into a set of places. For every activity, answer six questions with the people who do the work:
- Which system is the record of truth for this activity?
- What does the team do when that system cannot do the task? The answer is where the spreadsheets, personal email and WhatsApp groups are.
- What gets emailed, to whom, and with what attached?
- What is pasted into a ticket, a chat or a CRM note?
- Who receives logs, extracts or screenshots when something breaks?
- Which vendor receives a file, in what format, over which channel, and what happens to it afterwards?
Sit with operations, the back office, collections, customer service and IT. Ask to see the screen, not the process document. Then pick twenty real cases and follow them end to end. Pull everything the enterprise holds on five customers, including email, tickets, call recordings, chat exports, logs and vendor files. Time how long that takes and write down every system you had to touch. That exercise is the cheapest discovery tool available, and it finds the places a scanner never reaches.
Where the data sits
The rows below are the layers worth covering in an Indian enterprise. Most programmes cover the first and stop.
| Layer | Typical systems | What is usually missed |
|---|---|---|
| System of record | Loan origination, loan management, core banking, policy administration, CRM, HRMS | Free-text notes, attachments, audit tables, staging tables, old environments |
| Communication | Email, WhatsApp, Telegram, SMS, IVR, call recordings | Personal phones and personal accounts, exported chats, media files |
| Productivity suites | Google Workspace, Microsoft 365, shared drives | Old copies, link sharing, trash, version history |
| Service desk | Ticketing, live chat, call transcripts | Attachments, screenshots, customer messages pasted as text |
| Logs and monitoring | Application logs, API gateways, error trackers, APM, SIEM | Request bodies, query strings, stack traces, debug payloads |
| Data platform | Warehouse, lake, BI extracts, notebooks | Raw landing zones, sandbox copies, CSV downloads |
| Vendor exchange | SFTP, email, partner portal, API | Test files built from production data, the vendor's own retained copies |
| Endpoints | Laptops, phones, printers, scanners | Downloads folder, print spool, local backups |
| Backups and archives | Database backups, object storage, tapes | Deletion that never reaches them, restores that reintroduce old data |
In a lender, the first row is where the money is made. The other eight are where the exposure is, and where a customer's data outlives the purpose it was collected for. The workspace and M365 page covers the productivity layer, and the third-party exchange page covers the vendor layer.
The identifiers that matter in India
Pattern matching is the first pass, not the answer. These are the shapes worth encoding.
| Identifier | Shape | What to check | Common false positive |
|---|---|---|---|
| Aadhaar | Twelve digits, often written 4-4-4; first digit 2 to 9 | Verhoeff checksum; masked form shows only the last four | Twelve-digit account or reference numbers |
| PAN | Five letters, four digits, one letter | Fourth letter encodes holder type; fifth is a name initial | GSTIN and invoice strings, which embed a PAN |
| Mobile | Ten digits starting 6 to 9, with +91, 0 or spaces | Normalise before matching; reject repeating digits | Landline numbers with an STD code, order IDs |
| Bank account and IFSC | Nine to eighteen digits; IFSC is four letters, a zero, then six characters | The pair identifies a person; IFSC alone does not | Ledger and transaction references |
| UPI ID | Handle, at sign, bank or provider handle | Handle is often a mobile number or a name | Generic business handles |
| Voter ID | Three letters and seven digits | State and constituency patterns vary | Policy and application numbers |
| Passport | One letter and seven digits | Check the file context, not the string alone | Invoice numbers |
| Driving licence | State code, RTO code, digits | Formats differ by state | Vehicle registration numbers |
| Free text | Names, addresses, dates of birth, salary, credit score, employment, photographs, signatures, cheque images, KYC documents | Human review and context | Nothing reliable |
The last row is the one that defeats automated discovery. A name is not a pattern, an address is not a pattern, and a customer's story pasted into a ticket is not a pattern. If the plan has no human review step, the plan covers the easy half of the problem.
Three ways to find it, in the order that works
1. Interview and sample. Walk the process, pull the cases, record what you find. This produces the map that tooling is later pointed at.
2. Rules and checksums. Regular expressions plus validation, run over database text columns, exports of email and tickets, log samples and file shares. Cheap, explainable, and high precision after tuning. Weak on Indic scripts, transliteration, scanned documents and free text.
3. Models. Token-classification or small language models, run privately, to catch what rules miss: names, addresses, mixed-language notes, transliterated Hindi or Tamil, and the unstructured text that makes up most of a service desk. Treat the output as leads for a human, not as findings.
Who runs the discovery
There are three routes, and the difference between them is mostly about who holds the data and who keeps the method afterwards.
| Route | What it looks like | What to watch |
|---|---|---|
| A platform with discovery built in | The provider installs an agent, or is given read access to databases and file stores, and reports what it finds | How much access is granted, where the findings and any copies live, what happens on exit, and whether the scan covers email, chat and tickets or only the database |
| A consulting firm | A team interviews, samples and scans, then hands over a report | Whether you get a register you can maintain or a document you file, who can reuse the method, and what access the firm keeps |
| Your own open-weight pipeline | Models run inside your environment against a UAT copy, with your team adjudicating the output | The skills to build and tune it, OCR for scanned documents, and the discipline to keep human review in the loop |
None of these is wrong. The mistake is choosing one before the scope is known. A vendor tool given unrestricted production access before the enterprise knows what it holds has inverted the order of the work. Start with interviews and a sampled copy, then decide how much of the estate to automate.
The open-weight route, done privately
There is a third option between buying a discovery suite and hiring a consultant: run an open-weight model inside your own environment, against a copy of your data. The advantage is not the licence fee. It is that the data never leaves, you can iterate as often as you like, and the output is evidence you control.
A useful starting point is the Indic PII Extractor collection on Hugging Face. At the time of writing the collection lists three token-classification models at roughly 17, 36 and 58 million parameters, which makes them small enough to run on ordinary hardware. Read the model card for each one before use: entity labels, training data, languages and known limits are what an auditor will ask about, and they differ between the three.
A workable sequence:
| Step | What to do | Output |
|---|---|---|
| 1. Isolate | Restore a production-like copy into a UAT or discovery environment with no outbound network and a named, small access list | A safe place to work |
| 2. Sample | Take a defined sample per source: database columns, tickets, emails, chat exports, log lines. Include Hindi and regional-language text if you operate in those languages | A corpus you can describe |
| 3. Label | Hand-label 300 to 500 snippets, entity by entity | A gold set |
| 4. Measure | Precision and recall per entity type, not one accuracy number | Evidence of fitness |
| 5. Choose | Start with the smallest model, move up only if the gold set demands it | A documented choice |
| 6. Adjudicate | Review a sample of output, record false positives and false negatives, tune thresholds | Calibrated results |
| 7. Record | Write each finding into the inventory: dataset, field, entity type, volume, owner | A register, not a report |
| 8. Repeat | Re-run on a schedule and whenever a system, vendor or export changes | Coverage that stays current |
Two honest warnings. A model is a lens, not a certificate: it will miss a scanned PDF unless you add OCR, and it will invent structure in long numbers. And the model must run inside the boundary. Pasting production records into a public chatbot to see what it finds is the exact leak the exercise is meant to prevent.
From finding to fixing: masking and access
For every field the discovery finds, four decisions: does it need to be here at all, who needs the real value, what does everyone else see, and how is the real value protected.
| Surface | Control that works |
|---|---|
| Application screens | Role-based masking, with a reveal action that records who looked and why |
| Logs | Redaction at source, allowlisted fields, no request bodies, no full identifiers in query strings |
| Non-production | Synthetic or masked copies; never restore production data into test unmasked |
| Analytics | Pseudonymous keys, aggregation where the task allows, no free-text customer notes |
| Exports | Named recipients, expiry, watermark, no personal data in file names |
| Vendor shares | Minimum fields, masked where the task allows, contract terms, deletion evidence |
| Backups | Encryption with separated keys, and a deletion process that reaches them |
| Access | Least privilege, a break-glass path, quarterly review with evidence |
Logs deserve their own paragraph because they are the classic leak. A support engineer shares a log with a vendor, the log contains the request body, and the vendor now holds customer identifiers it never needed. Fix it at the logging library: log an internal customer ID instead of a name, redact PAN, Aadhaar, mobile, email and account numbers before the line is written, block sensitive query parameters at the gateway, keep raw payloads out of the log platform, restrict who can query it, set retention, and test the whole chain.
Proving it works
- Planted canaries. Seed synthetic records with valid-format PAN, Aadhaar and mobile numbers into UAT. Confirm the scanner finds them, the DLP rule blocks them, and the logs redact them. This is the only end-to-end test that proves coverage rather than intent.
- Field-level walk. Take one real record, view it as each role, and write down what each role sees.
- Access review evidence. Who has access, who approved it, when it was last checked.
- Adjudication log. Who reviewed model output, what was accepted, what was rejected and why.
- Re-run evidence. A dated run after a change, with the diff.
Keep the discovery register and the test results together. The reporting and audit evidence page describes how that material becomes something a regulator or auditor can follow.
Where enterprises go wrong
- Scanning the database and calling it discovery. The database is one row in the table above.
- Running a model against production data through a public service, which creates the breach it was meant to prevent.
- Reporting a model's accuracy as a compliance metric. Accuracy on someone else's data says nothing about your estate.
- Masking the screen while leaving the export, the log and the warehouse untouched.
- Treating masked Aadhaar as harmless everywhere. The last four digits plus a name and a phone number still identify a person.
- Discovery with no owner, producing a report that is filed rather than a register that is used.
- Treating discovery as a one-time project in an estate that changes every quarter.
The decisions to make
- Scope of the first pass: one business line end to end, or the whole estate shallowly.
- Build, buy or both: private open-weight models, a platform with discovery built in, or a firm that does the work with you. The tools page lists options by control category.
- Where the discovery environment lives, who can reach it, and how findings leave it.
- The masking policy per role, and whether a reveal-and-log path is allowed.
- Which entity types require human review because no pattern will find them.
- How often discovery re-runs, and what event triggers an unscheduled run.
Next step
Discovery gives you the field list. The next problem is making the consent recorded for those fields mean something in every system that acts on it: making consent reach every system. If you need help with any of this, write to us and we will help.