
Personal data rarely sits in one obvious paragraph. It is in the header, the signature block, the footer, a comment, a tracked change, an attachment name, a hidden spreadsheet column, a scanned ID page. PII redaction is the work of finding all of it, replacing it, and being able to say what you removed.
Part of PII and data masking concepts. For the adjacent case, read pii masking and data masking vs redaction.
What counts as PII
The exact legal definition depends on the jurisdiction and the context. For document work in the US, these are the categories that matter most:
| Category | Examples |
|---|---|
| Identity | Full name, maiden name, signature, date of birth, place of birth, nationality, photograph, passport, driver’s license, state ID, SSN. |
| Contact | Home or work address, email address, phone and fax numbers, social media handle, personal website. |
| Financial | Bank account, routing number, IBAN, card number, tax ID, credit report, income, invoice and payment references. |
| Health | Patient ID, medical record number, diagnosis, prescription, treatment, health plan ID, clinical notes, sick leave. |
| Employment | Employee ID, salary, performance review, disciplinary record, union membership, recruitment notes. |
| Education | Student ID, transcript, grades, disciplinary files, financial aid records. |
| Digital | IP address, device ID, login name, cookie ID, session token, API key embedded in a document. |
| Client-defined | Matter number, policy number, case reference, vessel name, local tax ID, internal code. |
Some identifiers are context-dependent. An IP address, a license plate, a voice recording or a job title can be personal data in one matter and not in another. That is why the policy, not only the model, decides what gets removed.
Redaction, masking, pseudonymization, anonymization
| Term | What it means | Reversible? |
|---|---|---|
| Redaction | Removing or replacing the value in the document so it cannot be read or copied. | No, if the value is replaced; the original is gone from the output. |
| Masking | Replacing a value with a bar, a label or a token. Often used as a synonym for redaction. | Depends on whether the original is stored elsewhere. |
| Pseudonymization | Replacing a value with a stable token and keeping a separate mapping. | Yes, with the mapping. |
| Anonymization | Removing the ability to link the data back to a person, considering the context and the means reasonably likely to be used. | No, by definition. |
Important: masking a name is usually pseudonymization, not anonymization. Whether a document is anonymous depends on its content and the legal context. Veilbrook does not give legal advice; your DPO or lawyer decides.
Where PII hides in a document
- Body text: names, IDs, account numbers, dates, addresses, free-text notes.
- Headers and footers: client names, matter numbers, page stamps, internal references.
- Signatures: names, titles, email addresses, phone numbers, company details.
- Comments and tracked changes: reviewer names, deleted text, internal discussion.
- Metadata: author, last editor, file path, creation date, GPS coordinates.
- Hidden content: hidden rows and columns, white text, off-slide objects, speaker notes.
- Attachments: embedded files, images, CSV exports, earlier versions.
- Scans and images: ID pages, screenshots, handwritten notes, photographed documents.
- File names: “Smith_vs_Jones_settlement.pdf” is a disclosure on its own.
How Veilbrook handles PII
Veilbrook combines three layers, because no single model is enough:
- Detection: a model finds likely personal data by context, including names and addresses that no regex will catch.
- Rules: deterministic checks catch formats a model can miss — IBAN checksums, card numbers, national ID patterns, phone formats, dates, account structures.
- Verification: a second pass re-reads the masked document and looks for personal data that remains. Uncertain spans are flagged for a human.
You choose the policy: which types to mask, which to keep, whether to use bars, labels or consistent tokens, and whether a reviewer must approve. The output is the masked document plus a removals list, not a silent result.
PII redaction before AI
The fastest way to leak a client file is to paste it into a cloud assistant. Veilbrook’s gateway mode is built for that step: it masks the document before it reaches the model, lets the model work on tokens, and restores the real values in the answer. The mapping stays on your side; the model never sees the names, accounts or health data.
This is useful for legal research, drafting, summarization and translation, where the task needs the document but not the identities inside it. It is not a license to send anything anywhere: your AI policy still decides which tools are allowed.
Before you share a redacted document
- Open the masked file in a different viewer and try to copy the masked areas.
- Search the file for each name, account number and email you removed.
- Check headers, footers and signature blocks, not only the body.
- Remove or review comments and tracked changes.
- Inspect document properties and metadata.
- Check hidden rows, columns, layers and speaker notes.
- List and open every attachment.
- Check the file name and the folder path.
- Confirm the policy used (types, exceptions, reviewer).
- Keep the removal report with the released file.
Proof and limits
Our target: catch at least 99 of every 100 personal details. Every version is tested on a fixed benchmark before release, compared with the best available alternatives, and published with its misses (How we test).
No detector catches everything. Names in images, unusual scripts and degraded scans remain hard. Veilbrook flags uncertainty instead of hiding it.
Two commitments matter as much as the score. In the cloud, documents are processed and deleted; on-premise, they never leave your network. We do not train our models on customer documents.