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.

LayerTypical systemsWhat is usually missed
System of recordLoan origination, loan management, core banking, policy administration, CRM, HRMSFree-text notes, attachments, audit tables, staging tables, old environments
CommunicationEmail, WhatsApp, Telegram, SMS, IVR, call recordingsPersonal phones and personal accounts, exported chats, media files
Productivity suitesGoogle Workspace, Microsoft 365, shared drivesOld copies, link sharing, trash, version history
Service deskTicketing, live chat, call transcriptsAttachments, screenshots, customer messages pasted as text
Logs and monitoringApplication logs, API gateways, error trackers, APM, SIEMRequest bodies, query strings, stack traces, debug payloads
Data platformWarehouse, lake, BI extracts, notebooksRaw landing zones, sandbox copies, CSV downloads
Vendor exchangeSFTP, email, partner portal, APITest files built from production data, the vendor's own retained copies
EndpointsLaptops, phones, printers, scannersDownloads folder, print spool, local backups
Backups and archivesDatabase backups, object storage, tapesDeletion 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.

IdentifierShapeWhat to checkCommon false positive
AadhaarTwelve digits, often written 4-4-4; first digit 2 to 9Verhoeff checksum; masked form shows only the last fourTwelve-digit account or reference numbers
PANFive letters, four digits, one letterFourth letter encodes holder type; fifth is a name initialGSTIN and invoice strings, which embed a PAN
MobileTen digits starting 6 to 9, with +91, 0 or spacesNormalise before matching; reject repeating digitsLandline numbers with an STD code, order IDs
Bank account and IFSCNine to eighteen digits; IFSC is four letters, a zero, then six charactersThe pair identifies a person; IFSC alone does notLedger and transaction references
UPI IDHandle, at sign, bank or provider handleHandle is often a mobile number or a nameGeneric business handles
Voter IDThree letters and seven digitsState and constituency patterns varyPolicy and application numbers
PassportOne letter and seven digitsCheck the file context, not the string aloneInvoice numbers
Driving licenceState code, RTO code, digitsFormats differ by stateVehicle registration numbers
Free textNames, addresses, dates of birth, salary, credit score, employment, photographs, signatures, cheque images, KYC documentsHuman review and contextNothing 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.

RouteWhat it looks likeWhat to watch
A platform with discovery built inThe provider installs an agent, or is given read access to databases and file stores, and reports what it findsHow 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 firmA team interviews, samples and scans, then hands over a reportWhether 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 pipelineModels run inside your environment against a UAT copy, with your team adjudicating the outputThe 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:

StepWhat to doOutput
1. IsolateRestore a production-like copy into a UAT or discovery environment with no outbound network and a named, small access listA safe place to work
2. SampleTake a defined sample per source: database columns, tickets, emails, chat exports, log lines. Include Hindi and regional-language text if you operate in those languagesA corpus you can describe
3. LabelHand-label 300 to 500 snippets, entity by entityA gold set
4. MeasurePrecision and recall per entity type, not one accuracy numberEvidence of fitness
5. ChooseStart with the smallest model, move up only if the gold set demands itA documented choice
6. AdjudicateReview a sample of output, record false positives and false negatives, tune thresholdsCalibrated results
7. RecordWrite each finding into the inventory: dataset, field, entity type, volume, ownerA register, not a report
8. RepeatRe-run on a schedule and whenever a system, vendor or export changesCoverage 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.

SurfaceControl that works
Application screensRole-based masking, with a reveal action that records who looked and why
LogsRedaction at source, allowlisted fields, no request bodies, no full identifiers in query strings
Non-productionSynthetic or masked copies; never restore production data into test unmasked
AnalyticsPseudonymous keys, aggregation where the task allows, no free-text customer notes
ExportsNamed recipients, expiry, watermark, no personal data in file names
Vendor sharesMinimum fields, masked where the task allows, contract terms, deletion evidence
BackupsEncryption with separated keys, and a deletion process that reaches them
AccessLeast 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.