# Veil-Then-Reveal: Protecting PII Privacy via Reversible Pseudo-Anonymization in Zero-Trust User--LLM Interaction

DevFeed: [Veil-Then-Reveal: Protecting PII Privacy via Reversible Pseudo-Anonymization in Zero-Trust User--LLM Interaction](<https://devfeed.tech/articles/veil-then-reveal-protecting-pii-privacy-via-reversible-pseudo-anonymization-in-zero-trust-user-llm-interaction-101373.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.22800>)

Author: Mohamed Elmahallawy, Mohamed Shaaban, Thomas E. Carroll

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [pii](<https://devfeed.tech/topics/pii.md>), [Security & Privacy](<https://devfeed.tech/topics/security-privacy.md>), [Zero Trust](<https://devfeed.tech/topics/zero-trust.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [online privacy](<https://devfeed.tech/topics/online-privacy.md>)

Tags: [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [llm](<https://devfeed.tech/tags/llm.md>), [pii](<https://devfeed.tech/tags/pii.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [zero-trust](<https://devfeed.tech/tags/zero-trust.md>)

## AI overview

Veil-then-Reveal (VtR) keeps plaintext personally identifiable information on the user's device by replacing detected PII with realistic, same-type surrogates before prompts reach remote LLM providers, treated as untrusted. It uses format-preserving encryption for structured values such as phone and credit-card numbers, and a keyed-hash dictionary with a secure vault for semantic values such as names and organizations. Session-specific mappings support cross-session unlinkability, and the user restores original values in responses. A rank-class FPE strategy handles dates while preserving format and ambiguity and reducing cipher evaluations. Across three datasets with 11,322 annotated PII instances, the reported results are 97.9% detection recall, 95.2% protection of detected values, and 99.9% round trip; echoed surrogates had 100% end-to-end restoration.

## Source excerpt

arXiv:2610.22800v2 Announce Type: replace Abstract: Large language models (LLMs) increasingly process sensitive documents and personal information, yet sending prompts containing personally identifiable information (PII) to remote providers exposes data subjects and organizations to risks from logging, retention, model training, and unintended disclosure. Existing anonymization methods often mask or remove PII, while conventional encryption eliminates the lexical and structural cues needed for effective LLM processing. We present Veil-then-Reveal (VtR), a user-side PII pseudo-anonymization framework for privacy-preserving LLM interaction under a zero-trust threat model. VtR treats remote LLM providers as untrusted and sends only pseudo-anonymized prompts, keeping plaintext PII on the user. VtR first detects PII and replaces it with realistic, same-type, in-vocabulary surrogates before prompts leave the user's device, preserving their linguistic and structural properties. It combines format-preserving encryption (FPE) for structured PII, such as phone and credit-card numbers, with a keyed-hash dictionary and secure vault for semantic PII, such as names, locations, and organizations. Session-specific mappings provide cross-session unlinkability, while user-side restoration reversibly replaces surrogates with their original values in LLM responses. We further introduce a rank-class FPE strategy for dates that preserves format and ambiguity while reducing cipher evaluations. Evaluation on three datasets containing 11,322 annotated PII instances achieves 97.9% detection recall, 95.2% protection of detected values, and 99.9% round trip; 100% of echoed surrogates end-to-end round-trip restoration.