
Law firms already use AI; that question is settled. The open question is how to do it without exposing client files. Pasting a brief, a contract or an excerpt from a case file into ChatGPT, Claude, Gemini or Copilot sends that information to the model provider. For a lawyer, that is an ethics risk, a criminal risk and a GDPR risk at the same time.
Can you use AI without breaching professional secrecy? Yes, on one condition: the tool must never receive information that identifies the client, the opposing party or third parties. Pseudonymizing documents before sending them achieves exactly that.
This guide is written from the French and European perspective, where client confidentiality is especially strict. It explains what professional secrecy covers in a digital firm, what the profession's bodies recommend, how to pseudonymize a file before using AI, how to handle court documents and sensitive data, and which measures to put in place at the firm. US readers will find the same logic in the ABA's guidance, covered briefly below.
The golden rule: the AI works on the pseudonymized version of the document. The real names stay at the firm and are put back only at the end, locally.
Key takeaways
| Point | Details |
|---|---|
| Secrecy covers digital tools too | Email, cloud storage, collaboration platforms and AI tools are covered just like paper. |
| Banning AI is not enough | Without an approved tool, staff use AI on the side: that is Shadow AI. |
| Masking names is not enough | Context (places, dates, amounts, family situation) can be enough to recognize a client. |
| The GDPR comes on top of secrecy | Legal basis, minimization, sensitive data, retention periods, contracts with providers. |
| Telling the client matters | State in the engagement letter which tools you use and which safeguards apply. |
Table of contents
- Professional secrecy applies to digital tools too
- What the profession's bodies recommend
- The concrete risks of unsupervised AI use
- Pseudonymizing a file before using AI
- Court documents and the GDPR
- Sensitive data in client files
- Measures to put in place at the firm
- Internal policy, contracts and engagement letters
- The most common mistakes
- Safe-doc for law firms
- Frequently asked questions
- Further reading
- Sources
- Recommended reading
Professional secrecy applies to digital tools too

In France, a lawyer's professional secrecy is general and absolute. Article 66-5 of the law of December 31, 1971, which governs the legal profession, covers consultations, correspondence with the client or between lawyers, meeting notes and every document in the file, in every area of practice. A breach is a criminal offense under article 226-13 of the French Criminal Code, and a disciplinary matter for the bar.
This secrecy does not depend on the medium. It applies in the same way to email and attachments, to online storage and collaboration platforms, to online translation, transcription and drafting tools, and therefore to generative AI tools.
The exceptions are strictly defined by law, for example in anti-money-laundering matters. Outside those cases, passing information from a file to an unauthorized third party, AI vendors included, exposes the lawyer, even when the disclosure is accidental.
What the profession's bodies recommend
The Conseil national des barreaux (CNB), the national body representing French lawyers, has adopted a guide on ethics and artificial intelligence (in French). It urges lawyers to be careful with client data and to assess the risks before adopting a tool: where is the data processed, is it retained, is it used to train the model, and who can access it? On the data protection side, the CNIL and EDPB recommendations complete this ethical framework.
Several points come up again and again. Safeguards must be equivalent to those of European law: hosting and processing in the European Union, or appropriate safeguards for any transfer. Any reuse of client data to train or improve models must be ruled out, and providers must be bound by a contract that meets article 28 of the GDPR. The client is informed that digital tools are used and which safeguards apply.
The American Bar Association reached a similar conclusion in its Formal Opinion 512 of July 2024. Under Model Rule 1.6, a client's informed consent is required before information relating to the representation goes into a self-learning generative AI tool, and boilerplate language in an engagement letter does not count as informed consent. Pseudonymizing first reduces what the tool ever sees, which makes that conversation with the client much simpler.
Banning AI at the firm does not protect secrecy. Usage carries on outside any control, on personal accounts. Offering a sanctioned tool, with pseudonymization, is the only answer that holds up over time. See also: Shadow AI by the numbers.
What about in-house counsel?
In France, in-house lawyers have long had no equivalent to attorney-client secrecy. Law No. 2026-122 of February 23, 2026 (in French) makes the legal opinions they write confidential, under conditions. It takes effect on a date set by decree, and early 2027 at the latest. This protection is narrower than a lawyer's professional secrecy: legal departments still have to protect their own documents when they use AI.
The concrete risks of unsupervised AI use
The first risk is prompt retention: depending on the tool and the plan, the text you send may stay with the provider. Some consumer plans even allow it to be reused to train the models. Processing may also take place outside the European Union, in countries without equivalent safeguards.
Two risks come from how people work. Staff who use a personal account fall outside any contract between the firm and the vendor. And even without a name, the context of a detailed account (town, date, occupation, family situation) can be enough to point to a specific person.
| Type of tool | Risk level | Priority measure |
|---|---|---|
| Consumer AI, personal account, no pseudonymization | Critical | Ban it, and offer an alternative |
| Unencrypted consumer messaging | High | Encryption, expiring links or a secure space |
| Online storage outside the EU | Very high | Migration or contractual safeguards |
| Professional AI under contract, no pseudonymization | High | Pseudonymize before sending |
| AI with prior pseudonymization | Under control | Regular audit, impact assessment |
| Sovereign storage with access logging | Low | Access control and permission reviews |
Pseudonymizing a file before using AI
Pseudonymization (article 4(5) of the GDPR) replaces names, contact details, amounts and identifiers with neutral aliases before sending. The AI no longer receives identifying information; the firm keeps the table that maps back to the real data. To do it right in the ChatGPT or Claude window, the Safe-Doc Chrome extension pseudonymizes with no copy and paste.
The four-step method
You upload the document (PDF, Word or text), then check the pseudonymization: review what was detected and add anything missing, such as a nickname, a shop name or a small locality. The cleaned version then goes to ChatGPT, Claude or the tool of your choice, and the real names are restored in the result, locally, using the mapping table. For day-to-day precautions, see ChatGPT, Claude and confidential documents.
What to mask
Mask every person: the client, but also the opposing party, witnesses, experts and any third party named. Mask their contact details and identifiers too (addresses, phone numbers, email addresses, ID numbers), along with the case references: file, docket or contract numbers.
Amounts and dates should be masked when, taken together, they make the case recognizable. The same goes for places and distinctive context: a small town, a rare occupation, a well-known business.
Pro tip: Masking only the names is not enough. The narrative context of a case (a divorce in a town of 800 people, a dismissal at the only factory in the county) can point to the people as surely as a name. Pseudonymize the distinctive context as well.
Use consistent aliases (CLIENT, OPPOSING_PARTY_1, WITNESS_2) rather than blanks. The AI can then follow the legal reasoning without knowing who the people are.
For the detailed method on PDFs (metadata, signatures, annotations): Pseudonymizing PDF contracts.
Court documents and the GDPR
The GDPR applies to documents that companies and lawyers file in court. Only processing by the competent criminal authorities falls under a separate regime, and that does not release the parties from their own obligations. Notaries, another profession bound by secrecy, face the same questions: see notarial deeds and the GDPR.
The principles to follow

Before assembling the exhibits, identify the legal basis for the processing: legal obligation, legitimate interest or performance of a contract. Minimization means sharing only the data needed to make the case: an exhibit in an employment dispute that contains information about colleagues not involved in the case is a problem, even if that information looks harmless.
Purpose limitation also restricts reuse: data gathered for one proceeding cannot be freely reused in another dispute. Information that is not needed must be redacted, especially information about people outside the dispute.
Preparing a compliant exhibit
For each exhibit, find the personal data, including indirect identifiers such as file numbers or business addresses. Then apply the minimization test: remove or mask what is not needed. Document the processing (legal basis, purpose, redaction measures) and involve the DPO from the start of evidence gathering, not once the exhibits are already assembled. And keep a record of every transmission.
Keep a short sheet per proceeding: legal basis, categories of data, redaction measures applied. It serves both the case file and any inspection by the CNIL, France's data protection authority.
Admissible evidence is not the same as compliant processing
Since the plenary ruling of France's highest civil court, the Cour de cassation, on December 22, 2023 (No. 20-20.648), evidence obtained unlawfully or unfairly can be admitted if it is essential to exercising the right to evidence and if the harm to the other party's rights is strictly proportionate.
Whether evidence is admissible in court and whether its processing complies with the GDPR are two separate questions. An exhibit can be accepted by the court and still expose its author to a CNIL penalty for the way the data was collected or shared.
Professional secrecy and the right to evidence
When a discovery-type order targets confidential documents, the judge weighs the right to evidence against the protection of secrecy or privacy. Requests that are too broad are rejected. Temporary escrow of the documents or sorting by a neutral third party are the usual safeguards. A targeted request, with suitable safeguards, always stands a better chance than a general one.
Sensitive data in client files

Law firm files concentrate data that the GDPR protects most strictly. Article 9 data (health, ethnic origin, political opinions, religious beliefs, trade union membership, sex life) is everywhere in family law, employment law and personal injury. Article 10 data, criminal convictions and offenses, is at the heart of criminal files. Add financial and identity data: financial situations, ID documents, bank accounts. To rank these categories, see our guide to sensitive data classification.
For these files, pseudonymizing before any external processing is not optional. Security by default applies from the first criminal or family case, whatever the size of the firm.
Retention periods
There is no single retention period for a law firm file. Data collected for anti-money-laundering purposes (know your customer) must be kept for five years after the end of the business relationship. For everything else, the firm must set a retention policy by type of file, taking into account the limitation periods for its own professional liability, and document it. Keeping data longer than necessary without justification breaches the GDPR; destroying it too early can leave the firm without a defense.
Measures to put in place at the firm
The foundation is hosting in the European Union, with recognized security guarantees. For exchanges, French lawyers use RPVA, the bar's secure network, to communicate with the courts; with clients, prefer secure spaces or time-limited links over ordinary attachments. Workstations, backups and any exchange containing client data are encrypted.
Each file has its own space, with individual access rights, and access logging shows who opened which file and when. Pseudonymization becomes systematic before any use of an AI tool or external provider, and an impact assessment comes before deploying any AI tool that processes high-risk data.
Security is not just for large firms. For a solo practice, three habits cover most of it: pseudonymize before using AI, stop sending sensitive documents as ordinary attachments, and encrypt your computer and your backups.
Internal policy, contracts and engagement letters
Every digital provider is bound by a data processing agreement (article 28 of the GDPR) that sets out purposes, security, location, subprocessors and data deletion, with a ban on training for AI tools. Every staff member signs a confidentiality undertaking, updated when the tools change, and the whole team knows the list of approved and banned tools.
The firm also needs an incident response procedure: when a breach poses a risk, the CNIL must be notified within 72 hours (article 33 of the GDPR). The engagement letter states which digital tools are used, where they are located and which protections apply. Monitoring what the CNB and the CNIL publish keeps the internal rules up to date.
Pro tip: Add a short paragraph on AI use to your engagement letters: which tools, which safeguards, and the fact that documents are pseudonymized before any processing. It builds trust as much as it protects you.
The most common mistakes
The most common mistake is to ban AI without offering an alternative: usage then moves to personal accounts. Two mistakes concern pseudonymization itself: masking only the names while leaving the context that identifies the case, and forgetting the opposing party and third parties.
Other mistakes come from firm habits: sending sensitive documents as ordinary attachments, confusing admissible evidence with GDPR compliance, keeping every file forever with no retention policy, and not telling the client that digital tools are used.
Safe-doc for law firms

For a firm, the deciding question is where the documents go. With Safe-doc, they stay nowhere: the document is processed and then deleted, the mapping table stays at the firm, and the AI tool only ever sees aliases.
Safe-doc does pseudonymization and nothing else, with no workspace or built-in chat where your files would pile up. You keep working with the assistant of your choice, and the parties' real names are restored in the answer. See the page for law firms.
Frequently asked questions
Can a lawyer use ChatGPT or Claude for client files?
Yes, as long as the tool receives no information that identifies the client, the opposing party or third parties. Pseudonymize the documents before sending, use a tool covered by a suitable contract, and inform the client.
Does professional secrecy cover email and the cloud?
Yes. A lawyer's secrecy covers all consultations, correspondence and documents in the file, whatever the medium.
Is masking names enough?
No. Places, dates, amounts and contextual details can be enough to recognize a person. They need to be handled too.
What does the French law of February 23, 2026 change for in-house counsel?
It makes in-house lawyers' legal opinions confidential, under conditions, from a date set by decree and early 2027 at the latest. This protection remains narrower than a lawyer's professional secrecy.
Can evidence obtained without complying with the GDPR be used in court?
In France, it can be admitted if it is essential and proportionate, under Cour de cassation case law. But that does not protect against CNIL action over the processing itself.
How long should a client file be kept?
There is no single period. Know-your-customer data collected for anti-money-laundering purposes is kept for five years after the relationship ends. For the rest, the firm must set and document a policy by type of file.
What should you do if a file leaks?
Contain it, assess the risk, notify the CNIL within 72 hours if the breach poses a risk to individuals, inform the individuals if the risk is high, and document the incident.
Further reading
- ChatGPT, Claude and confidential documents: how to use them without exposing your data
- Pseudonymizing PDF contracts: the complete guide for legal teams and DPOs
- Notaries: personal data, notarial deeds and AI, the GDPR obligations
Sources
- CNB: guide on ethics and artificial intelligence (in French)
- Légifrance: Law No. 2026-122 of February 23, 2026 on the confidentiality of in-house counsel's legal opinions (in French)
- American Bar Association: Generative AI for lawyers, maintaining confidentiality (Formal Opinion 512)
- CNIL: anonymizing personal data (in French)
This article is general information and does not replace advice from a qualified lawyer. Consult a legal professional about your situation before acting on this content.