
Pseudonymize and systematically redact your client documents before sending them to an LLM. This is the central operational rule to ensure the protection of the intellectual property of your clients in the firm or in the legal department. Concretely, this means:
- Replace names, identifiers, sensitive clauses and trade secrets with stable pseudonyms before submission to a generative AI tool.
- Keep the correspondence table in a separate access vault, under strict IAM control, never in the same environment as the LLM.
- Launch a POC test on a critical use case (sensitive customer file, M&A data room) and activate request logging from day one.
This approach simultaneously satisfies the minimization required by the GDPR (art. 5) and facilitates the governance required by the AI Act (art. 10), as confirmed by recent practical guides. The CNIL can control at any time; documenting the process is not optional.
Key points
Preventive pseudonymization, applied before any submission to an LLM, is the most direct lever to protect the intellectual property of your clients while respecting the GDPR and the AI Act.
| Point | Details |
|---|---|
| Pseudonymize before sending | Replace PII and trade secrets with stable pseudonyms prior to submission to an LLM. |
| Keep the lookup table separately | Store the recovery key in a separate vault, under strict IAM control. |
| Test re-identification | Conduct periodic tests; a high rate of PII false negatives requires an immediate audit. |
| Documenting the AIPD | Formalize purpose, subcontractors and technical measures for each AI processing exposing customer data. |
| Safe-doc for POC | Safe-doc detects more than 90 types of data, processes without storage and produces an audit report that can be used in an AIPD. |
Table of contents
- Pseudonymization or anonymization: what is the difference for the protection of your customer data?
- What regulatory obligations are imposed on your firm or management?
- What content should you pseudonymize as a priority in your customer files?
- What technical architectures for pseudonymization before an AI workflow?
- How to test the robustness of your pseudonymization?
- What governance should be put in place to make pseudonymization defensible?
- How to launch your project in 30, 60 and 90 days?
- When is pseudonymization no longer enough?
- How Safe-doc meets GDPR, AI Act requirements and business needs
- Why pseudonymization should be at the heart of your AI strategy
- Safe-doc: launch a secure POC on a critical customer file
- Sources
Pseudonymization or anonymization: what is the difference for the protection of your customer data?
The distinction is legally structuring. Pseudonymization replaces identifiers with reversible pseudonyms via a separate key. The data remains personal data within the meaning of the GDPR: all obligations apply. Anonymization is irreversible in practice. The CNIL evaluates anonymization according to three criteria: individualization (can we isolate an individual?), correlation (can we link records?) and inference (can we deduce information about an individual?). If one of these criteria is satisfied, the data is not anonymous.
- Pseudonymization: favor it for internal uses, fine-tuning on a controlled corpus, or any processing where reversibility is necessary (return to the client, audit).
- Anonymization: reserve it for publications, external sharing without possible return, or open test datasets.
- Practical consequence: poorly documented pseudonymization does not reduce your liability. As Haas Lawyers points out, its status can vary depending on the actor (manager, subcontractor, recipient) and it must be tested against re-identification.
Pro tip: Treat pseudonymization as a joint DPO + CIO project, not as a technical option that the IT team activates alone. The DPO validates the purpose and the AIPD; the CIO chooses the architecture and access controls.
What regulatory obligations are imposed on your firm or management?
The GDPR fully applies as soon as an LLM processes personal data, even in API mode. The principles of minimization (art. 5) and liability (art. 5.2) require that you document each processing and limit the data transmitted to what is strictly necessary.
The AI Act adds a layer of governance: AI systems handling sensitive data must comply with data quality (art. 10) and technical documentation requirements. Preventive pseudonymization is one of the most direct levers to respond to this.
Practical obligations to formalize:
- AIPD (data protection impact analysis): mandatory as soon as the processing presents a high risk, particularly for health data or large-scale processing.
- DPA / contractual clauses: any AI provider processing data on your behalf must sign a GDPR-compliant data processing agreement.
- Logging of LLM requests: each call must be traced (time stamp, user, data volume) to allow a CNIL audit.
- Notification of violation: in the event of a leak, you have 72 hours to notify the CNIL and, depending on the severity, the people concerned.
For consulting firms handling document flows, the combination AIPD + DPA + logging constitutes the basis that can be defended before a regulator.
What content should you pseudonymize as a priority in your customer files?
The indirect context is often underestimated: a combination of precise date + job title + geographical region can be enough to re-identify an individual in a restricted corpus. Treat these combinations with the same rigor as direct PII.
What technical architectures for pseudonymization before an AI workflow?
Three patterns cover the majority of business use cases.
Local processing (edge) or stateless service via REST API: the document is processed on the client side or in a stateless service before sending. The typical pipeline is: OCR PDF → NER (rules + ML) → stable pseudonyms → send to LLM → restore to internal environment. Never entrust an LLM with the task of anonymizing your data: this amounts to exposing the unprotected original to the model before any protection.

Secure RAG: index pseudonymized documents, store vectors excluding identifying data, and control restitution. This architecture is recommended for enterprise deployments that use internal databases, particularly with Azure OpenAI or AWS Bedrock as build targets.
Interoperability with the Microsoft ecosystem and sovereign models:
- Microsoft Information Protection (MIP) labels help classify and restrict access to documents before they reach Microsoft 365 Copilot.
- DSPM/DLP solutions like Proofpoint add a layer of classification, leak prevention and flow control to Copilot.
- For the most sensitive data, European models hosted in Europe, such as those of Mistral AI, reduce exposure to transfers outside the EU.
Pro tip: Keep the lookup table in a separate vault and limit access via granular IAM policies. No end user should be able to simultaneously access the pseudonymized document and its recovery key.
How to test the robustness of your pseudonymization?
| Metric | Description | Alert threshold |
|---|---|---|
| NER detection rate | % of PII correctly identified | < 95% → model revision |
| PII false negative rate | % of PII missed | > 2% → immediate audit |
| Residual risk score | Overall assessment after pseudonymization | Any “high” score → block sending |
| Controlled restitution time | Average time to restore a document | To be documented for the AIPD |
The essential tests to conduct:
- Re-identification test: on a representative sample, try to find the real identity from the pseudonymised document, without access to the correspondence table.
- Inference attack: check whether field combinations can infer identity or sensitive information.
- Membership inference: for corpora used in fine-tuning, evaluate whether the model memorizes identifying training data.
As DPLIANCE points out, NER alone often misses the indirect context. A robust solution combines NER, business rules, human review and periodic testing. Robustness may decrease over time as re-identification techniques evolve: plan tests at least once a year.
What governance should be put in place to make pseudonymization defensible?
Technique alone is not enough. A regulator expects documented governance.
- AI Charter: defines authorized use cases, approved tools, data prohibited from external sending.
- Classification policy: categorizes documents (public, internal, confidential, secret) and automatically triggers the required level of processing.
- AIPD: documents purpose, data categories, subcontractors, retention period and technical measures, including re-identification tests. This is the operational proof to be presented in the event of a CNIL inspection.
- DPA with AI providers: mandatory for any service provider processing data on your behalf.
- Roles: DPO (AIPD validation and compliance), CISO (architecture and controls), business owners (classification and use), AI committee (arbitrations and annual review).
- Continuing training: users must understand why they cannot copy and paste a customer contract into ChatGPT without prior pseudonymization.
For legal departments, tamper-proof logging of LLM queries is the first control to activate: it makes it possible to prove that no non-pseudonymized data has passed to an external model.
Pro tip: Associated re-identification tests with the annual review of the AI charter. A test that fails during the year should trigger an immediate review, not wait until the next cycle.
How to launch your project in 30, 60 and 90 days?
Phase 1 - Mapping (weeks 1-2)
1. Identify document flows exposing customer data to AI tools.
2. Classify the types of data present (PII, trade secrets, health data).
3. Designate those responsible (DPO, CISO, pilot business owner).
Phase 2 - Prototype (weeks 3-6)
1. Deploy a NER + redaction pipeline on a pilot department.
2. Conduct a first re-identification test on a sample.
3. Produce a summary AIPD and a residual risk report.
Phase 3 - Gradual rollout (weeks 7-12)
1. Expand to other departments based on POC results.
2. Integrate logging and access controls to the lookup table.
3. Train users and disseminate the usage playbook.
A POC on a limited use case can be operational in 4 to 8 weeks.
When is pseudonymization no longer enough?
Pseudonymization is suitable when the data is necessary for processing, the correspondence table is secure and the risk of inference remains low. Three situations require us to go further.
- Sensitive health data or files with a high risk of singling-out: prefer irreversible anonymization or refuse transfer to an external LLM.
- Contractual obligations or professional secrecy: certain contracts explicitly prohibit any processing by a third party, including pseudonymised ones.
- External distribution or publication: pseudonymized data cannot be published. Irreversible anonymization, validated by the three CNIL criteria, is the only option.
The decision procedure: re-identification test + legal assessment + documentation of the decision in the AIPD. For accounting or financial data, a guide dedicated to anonymization details the technical limits to be aware of before choosing between the two approaches.
How Safe-doc meets GDPR, AI Act requirements and business needs
Safe-doc is a SaaS solution designed for pseudonymization of sensitive documents in real time, without storing processed data. Its functions directly cover the requirements identified in this guide:
- Automatic detection of over 90 data types (PII, health data, trade secrets, internal identifiers).
- Stateless processing: no document is kept after processing, which eliminates the risk of leaks on the platform side.
- Export of the restoration mapping for controlled restitution, kept separately from the pseudonymized document.
- PDF audit report and processing logging, directly usable in an AIPD or during a CNIL inspection.
- REST API and MCP integrations, PDF/DOCX/Data Room support, compatibility with MIP labels and secure RAG pipelines.
Synthetic use case - POC M&A: a data room containing due diligence documents is pseudonymised before analysis by an LLM. Names of parties, amounts and sensitive clauses are replaced by stable pseudonyms. The team gets a structured analysis without exposing the deal. The audit report documents each processing for the AIPD.
Pro tip: For legal departments, the Safe-doc DPO page details the contractual guarantees (DPA) and proof of compliance available - useful to send directly to your DPO before launching a POC.
Why pseudonymization should be at the heart of your AI strategy
The pressure to adopt generative AI is real, and management that waits for a perfect solution before acting takes a different risk: that of seeing their teams use insecure tools in parallel, without any control. Shadow AI is not disappearing because it is banned; it moves out of sight of the RSSI.
Preventive pseudonymization is the only lever that simultaneously meets three constraints: protecting intellectual property and customer secrets, satisfying GDPR and AI Act obligations, and allowing teams to continue to work with the tools they know. This is not a defensive measure. This is what makes the use of AI defensible before a customer, a regulator or a court.
Legal responsibility and customer trust are not secondary arguments in this technical choice. They are the main driving force. A POC on a limited use case, with a re-identification report, is the quickest way to validate both business value and compliance.
Safe-doc: launch a secure POC on a critical customer file
Your teams already use AI tools. The question is no longer if, but under what conditions. Safe-doc allows you to pseudonymize a limited dataset, obtain an audit report and a residual risk score, without your documents ever being stored on the platform.

The POC takes place within a scope that you define: a department, a type of file, a volume of pages. At the end, you have a re-identification report, a summary AIPD and a usage playbook ready to distribute. Subscription terms (by seat, by volume of pages, company plans on quote) are available on the page dedicated to DPOs and compliance departments. To evaluate the stateless architecture and non-storage guarantees, security page details the technical choices. Contact the Safe-doc team to frame your POC and receive a proposal adapted to your context.
Sources
- Pseudonymization and qualification of personal data | Haas Lawyers
- Guide caviardage de données RGPD et IA 2026 | KS Agents
- Anonymization of personal data | CNIL
- Anonymization and NER by AI: the guide that untangles anonymization, pseudonymization and GDPR (2026) - DPLIANCE
- Proofpoint - Data security for generative AI (solution brief, French)
This article constitutes general information and is not a substitute for advice from a qualified attorney. Consult a qualified legal professional regarding your individual case before acting on this content.