Guide

PII masking hides the value without rewriting the document

A practical guide to pii masking: the decisions, the checks and the limits.

PII Masking: Mask Personal Data in Documents, Not Databases

PII masking hides the value without rewriting the document. PII masking replaces personal values with a token, a bar or a label so the document can be used without exposing the real data. The document keeps its structure; the value is replaced, not paraphrased.

What it means in practice

The mask has to survive the export. A drawn rectangle can be removed or ignored by a parser; a token in the text layer is part of the file. For scans, the image and the OCR layer both need the replacement.

Where the risk remains

How to verify

  1. Select and copy the masked area.
  2. Search the file for the removed value.
  3. Inspect the metadata and the attachments.
  4. OCR the page and search again.
  5. Keep the report with the output.

Where masking lives

Masking keeps the value in the system while hiding it from a viewer: the support agent sees a card number ending in four digits, the analyst sees age bands. Its purpose is exposure control inside the walls — the people who need the shape without the value. Because the value survives, masked systems inherit the security duties of the systems that hold the real data: access control, encryption, logging. Masking reduces the audience; it does not reduce the treasure.

The limits worth stating

Three limits deserve plain words. Masked output released outward is not protection — partial values and bands re-identify in combination. Format-preserving masks can be reversible by design, which is a feature inside and a vulnerability at the boundary. And masks applied at display can leak at export: the report that shows masked fields may still carry full values in the underlying query. Masking is a viewer control; the moment a copy leaves, the question becomes redaction or anonymization instead.

The export gate

Masking fails at exports more often than at screens: the CSV download, the API response, the report builder each carry their own copy of the data, and each must re-apply the mask. Gate them — a review step on any export from a masked system — rather than assuming the display rule inherited. The breach report that reads 'the masked system exported full values' is a genre of its own; the gate is how you stay out of it.

How Veilbrook fits

Veilbrook finds and masks personal data, runs a second pass and returns a removal report. It does not decide the legal standard or replace the reviewer.

Limits

No tool catches everything. OCR, handwriting and language coverage have limits. A masked document is not automatically anonymous; context can still identify a person.

What to write down

Keep the purpose, the fields removed, the reviewer, the date and the output hash. If the file changes, verify it again.

Checklist

  1. Define the purpose and the recipient.
  2. Choose the standard.
  3. Remove the fields.
  4. Verify the layers.
  5. Keep the evidence.

What to compare

Compare the unit, the included volume, the page cap, the review step and the evidence. A low headline price with a small cap can cost more than a higher plan that covers the real file. Ask for the total cost over a year, including the deployment, the integration, the training and the reviewer time. A quote that leaves out the review is not a full quote.

Questions to ask

Before you decide

Test one real document and time the review. Compare the output with a manual redaction and keep the report. A tool that looks fast in a demo can add work if the review is unclear. The sample should include a scan, an attachment and a long page.

Common mistakes

Questions

Does masking change the document?

It changes the value, not the surrounding text. The layout should remain readable.

Is a bar safer than a token?

A true replacement is safer than a visual cover. A bar can be an annotation if the tool only draws it.

Can I restore the values?

Only if you keep a mapping outside the released file, with restricted access.