How to mask PII before AI reads a claim file
- By
- Luv, Context Labs
- Published
- Updated
The short answer
Detect every sensitive field in the claim file, including inside scanned images and photos, then mask or replace it with a reversible token inside your own environment before any AI model is called. Keep only the data the task needs, let authorized staff re-identify results, and test how many sensitive items your detector misses before going live.
Key facts
- The NAIC Insurance Data Security Model Law defines nonpublic information to include SSNs, driver's license numbers, account and card numbers, access codes, biometric records, and health information (Model #668, Section 3K). 28 jurisdictions had adopted it as of November 3, 2026 (NAIC map).
- Under GLBA, state insurance authorities enforce the privacy provisions for insurers (15 U.S.C. 6805(a)(6)).
- HIPAA's Safe Harbor method lists 18 identifiers, including vehicle identifiers, license plates and full-face photos (45 CFR 164.514(b)(2)). It is a useful checklist even where HIPAA does not apply.
- Masking in the user interface is not masking. If the model provider receives the raw text, the data has left your control.
- Tokenization replaces values like "John Smith" with PERSON_1 everywhere, keeping the claim file readable for AI and reversible for adjusters.
Which rules apply to claim data that AI will read?
| Situation | What applies |
|---|---|
| Any licensee holding consumer data | Written information security program; encrypt nonpublic information sent over external networks; retention and disposal schedule (NAIC Model #668, Sections 4A, 4B(4), 4D(2)(d)) |
| An AI vendor or model provider processes the data | Due diligence and required safeguards for third-party service providers (Model #668, Section 4F); vendor audit rights (NAIC AI bulletin, item 4.0, text) |
| Consumer financial or health information is disclosed | GLBA privacy, enforced by state insurance regulators; NAIC Model #672 governs nonpublic personal financial and health information held by licensees, with authorization rules for health data (Model #672, Article V) |
| You are licensed in New York | Third-party provider policy covering encryption in transit and at rest (23 NYCRR 500.11) |
| You are a HIPAA covered entity (health plans, clearinghouses, certain providers) | HIPAA Privacy Rule and de-identification standards (45 CFR 160.103, 164.514). Auto medical payments, liability and workers' compensation are excepted benefits outside the "health plan" definition (42 U.S.C. 300gg-91(c)(1)) |
| California consumers | CCPA exemptions are listed in Civil Code 1798.145; the Attorney General notes it exempts certain medical and consumer credit reporting information (CA AG). Do not assume all claim data is exempt |
This is a summary, not legal advice. State versions differ; confirm with counsel.
How do you mask PII in a claim file step by step?
1. Inventory what a claim file contains
List every document type (loss notice, police report, estimate, medical bills, ACH form, photos, emails) and the sensitive fields in each. Use Model #668's nonpublic information list and HIPAA's 18 identifiers as your checklist.
2. Decide the action for each field
| Field | Action | Why |
|---|---|---|
| SSN, date of birth, bank account, driver's license number | Mask fully | Not needed to prepare most claims |
| Medical diagnosis and treatment lines | Mask, unless the task is medical review | Health information under Model #668, Section 3K(3) |
| Names, addresses, phone, email | Tokenize | AI needs to know who is who, not the real name |
| Policy number, VIN, plate | Tokenize; match to policy with fixed rules before the AI step | Needed for coverage matching, not for reasoning |
| Date of loss, amounts, deductible | Keep | The task depends on them |
| Signatures, faces in photos | Blur or remove from images | Biometric and photo identifiers |
3. Detect in every format
Run text detection on native text, OCR on scans and handwriting, and image detection on photos for faces, plates and documents in frame. Email signatures and forwarded threads hide phone numbers and addresses.
4. Mask inside your environment, before the model call
Run detection, masking, and the token vault inside your own cloud account or data center. The model should receive only masked text. Log each call with what was sent.
5. Use consistent, reversible tokens
Replace each value with the same token everywhere in the file (PERSON_1, VIN_1). The AI can still see that the driver on the police report is the policyholder. Keep the token map in your environment only.
6. Re-identify only for authorized roles
When results return, restore original values only for authorized adjusters. Log every re-identification. Payments and letters should be generated from the system of record, not from AI text.
7. Test the masker, then keep testing
Hand-label a sample of files and measure recall: how many sensitive items the detector found. Report misses by document type. Rerun the test whenever you add a new form, channel or OCR engine.
Worked example: a 42-page auto claim file (fictional)
This example is fictional. The carrier, file and counts are invented to show the method and arithmetic.
Bayview Casualty prepares a 42-page personal auto claim file for AI review: loss notice, police report, estimate, tow invoice, ER bill, ACH form, 6 photos and 9 emails. Its detector finds 118 sensitive items:
| Action | Items | Count |
|---|---|---|
| Mask fully | SSN 2, DOB 3, bank account 1, driver's license 2, signatures 4, face in photo 1, medical lines 7 | 20 |
| Tokenize | Names 31, addresses 12, phones 8, emails 5, policy numbers 14, VINs 6, plates 4 | 80 |
| Keep | Internal claim number references 18 | 18 |
| Total | 118 |
What the model sees: "PERSON_1 reported a collision on 2026-10-14 at ADDRESS_2. Vehicle VIN_1, plate PLATE_1. Estimate $9,240." The VIN was matched to the policy by a fixed rule before masking, so coverage matching does not depend on the AI.
Before go-live, Bayview tests the masker on 50 hand-labelled files with 5,900 sensitive items. It finds 5,841: 5,841 ÷ 5,900 = 99.0% recall. The 59 misses are mostly handwritten phone numbers on scanned forms. Bayview adds a second OCR pass and a human spot-check for any file with handwriting, then retests.
Note: this is pseudonymization, not HIPAA de-identification. The date of loss is kept because the task needs it, while Safe Harbor would require removing all date elements except year.
Where does PII masking go wrong?
- Masking after the model call. Hiding fields on screen does nothing if the raw text went to the model provider.
- Text only. Photos of licenses, plates and faces carry identifiers too.
- Inconsistent tokens. If "Jane Doe" becomes PERSON_1 on one page and PERSON_4 on another, the AI cannot link parties.
- Masking what the task needs. Removing the date of loss breaks coverage checks; decide per field.
- Token vault outside your environment. Then the vendor holds the key to re-identify everything.
- No miss rate. Without measured recall, nobody knows how much PII still reaches the model.
How does Context Labs fit in?
Context Labs (thecontextlabs.com) is an AI workforce platform for insurance, banking and private equity. It learns how your experts run multi-hour workflows, then pairs AI judgment with deterministic execution and waits for human approval on critical steps.
On an auto claim, Context masks sensitive fields (name, SSN, date of birth, bank account, and policy number) before AI reads the file. Data stays in your environment, with zero data retention, including for AI. Context deploys in your private cloud (VPC) or on-premise, logs every action, controls every role, and uses encryption. Ask us for our security documentation and we will walk your security team through the architecture. Then run the test in step 7 on your own files. See AI claims document extraction.
FAQ
Is it legal to send claim files to an AI model?
It can be, with controls. Model #668 requires safeguards and oversight of third-party service providers that handle nonpublic information, and GLBA privacy rules apply to consumer financial data. Masking before the model call, contracts on data use, and deployment in your own environment reduce what leaves your control. Confirm your state's rules with counsel.
Does HIPAA apply to property and casualty claims?
Usually not to the P&C insurer itself. HIPAA binds covered entities such as health plans, and its health plan definition excludes excepted benefits like auto medical payments, liability and workers' compensation coverage. Medical records in a claim file are still health information under the NAIC data security model law, so protect them.
What is the difference between masking and tokenization?
Masking removes or blacks out a value permanently. Tokenization replaces it with a consistent placeholder, such as PERSON_1, that can be swapped back by authorized users. Use masking for data the task never needs, like SSNs, and tokenization for names and identifiers the AI must track across documents.
Which fields should never reach an AI model?
For most claim preparation tasks: SSNs, dates of birth, bank and card numbers, driver's license numbers, passwords or access codes, and signatures. These are in Model #668's nonpublic information list and are rarely needed to extract or route a claim. Medical details should reach the model only for medical review tasks.
How do we know masking worked?
Measure it. Hand-label a sample of files, run the detector, and calculate recall: items found divided by items present. Report misses by document type, since handwriting and photos fail most often. Retest whenever you add a new document type, intake channel or OCR engine.
Related guides
- PII fields to mask in a claim file: full checklist
- How Context defends against prompt injection
- The nightly sanitization agent
- How to pilot insurance AI on your own closed claims
- How to automate FNOL intake without losing adjuster control
- Build vs buy AI agents for insurance carriers
- AI workflow automation for insurance
Sources
- NAIC, Insurance Data Security Model Law #668, Sections 3K, 4A, 4B, 4D, 4F
- NAIC, Model #668 adoption map (status as of November 3, 2026)
- NAIC, Privacy of Consumer Financial and Health Information Regulation #672
- NAIC, Model Bulletin: Use of Artificial Intelligence Systems by Insurers
- 15 U.S.C. 6805 (GLBA enforcement), Cornell LII
- FTC, Gramm-Leach-Bliley Act overview
- 45 CFR 160.103, Cornell LII
- 45 CFR 164.514, Cornell LII
- 42 U.S.C. 300gg-91(c)(1), Cornell LII
- 23 NYCRR 500.11, Cornell LII
- California Attorney General, CCPA
