13 min read
Section 203 StGB and AI in Law Firms and Practices
For professional secret holders, GDPR compliance is not enough: disclosure is a crime. What Section 203 StGB, 43e BRAO and 62a StBerG require for AI use.
Why does GDPR compliance not solve the problem of professional secrecy?
Because they are two separate legal regimes. The GDPR protects personal data and sanctions violations with fines against the company. Section 203 of the German Criminal Code (StGB) protects the secrets of others and threatens the professional personally with imprisonment of up to one year or a fine. Meeting one requirement does not mean the other has been checked.
The reluctance in precisely these professions has an understandable reason. According to the survey by the Federal Statistical Office (Statistisches Bundesamt) for 2025, 26 percent of all companies in Germany use artificial intelligence. Among non-users, the Federal Statistical Office names lack of knowledge at 72 percent, unclear legal consequences at 62 percent and data protection concerns at 60 percent as the most common obstacles. For law firms and practices, one point is added that does not even appear in these statistics: the professional's personal risk of criminal liability.
0 %
lack of knowledge
0 %
unclear legal consequences
0 %
data protection concerns
Source: Federal Statistical Office, 2025 survey
The difference already shows in what is protected. The GDPR protects natural persons. Section 203 StGB protects secrets, regardless of whom they belong to. The Federal Chamber of Tax Advisors (Bundessteuerberaterkammer) puts it clearly in its FAQ on AI in the tax advisory profession: unlike under the GDPR, data of legal persons is also protected. The balance sheet of a GmbH, a restructuring plan, a turnaround strategy all fall under professional secrecy, even though they would be largely unproblematic under data protection law.
The legal consequence also lies on a different level. A GDPR violation leads to fine proceedings against the law firm or the practice. A violation of Section 203 StGB is a criminal offense committed by the professional personally, prosecuted upon complaint by the person affected, with professional consequences up to and including revocation of admission. Anyone who has properly implemented the basics of GDPR-compliant AI use is therefore halfway there. The second half is a matter of professional and criminal law, and it follows its own rules.
What exactly does Section 203 StGB make a criminal offense?
It is a criminal offense to disclose without authorization a secret of another person that was entrusted to the professional or otherwise became known to them. Section 203 (1) StGB names physicians, dentists, pharmacists and other health professions in No. 1, professional psychologists in No. 2, and lawyers, notaries, auditors and tax advisors in No. 3. The penalty is up to one year, and under subsection 6, up to two years when acting for payment.
What matters is what legally counts as disclosure. The German Federal Bar (Bundesrechtsanwaltskammer, BRAK) makes clear in its guide on AI use that, for access to client secrets, it does not matter whether the AI provider actually takes note of them. It is sufficient that the provider has the possibility to do so. This means that merely uploading a document or entering a prompt relating to a client matter onto the servers of an external provider already fulfills the elements of the offense, even if no human ever looks at it there and the data is deleted after a short time.
The scope of the secret is regularly underestimated. According to the BRAK guide, in principle everything from a mandate is covered, including the client's name and the mere fact that a mandate was granted at all. The same principle applies to physicians: even the information that a particular person is a patient of a particular practice is protected. The duty of confidentiality ends neither with the mandate nor, under Section 203 (5) StGB, with the death of the person concerned.
For physicians, it additionally applies that health data belongs to the special categories of personal data under Art. 9 GDPR. The German Medical Association (Bundesärztekammer) and the National Association of Statutory Health Insurance Physicians (Kassenärztliche Bundesvereinigung) state in their joint guidance on medical confidentiality that the general rules on confidentiality and data protection must be observed when using medical AI systems with personal health data, and that contributing persons, including external operators of such systems, must be bound to confidentiality. Practices that introduce a dictation or transcription solution are therefore subject to the same duty of review as a law firm that uses a language model for drafting pleadings. The difference lies solely in the sensitivity of the data, not in the legal framework.
This is why the common workaround of anonymization only helps to a limited extent. The BRAK expressly points out that it is regularly not enough to remove names and addresses if client information can be inferred from the context. In a matter with few parties, an unusual industry or a specific case number, the data remains attributable.
What conditions apply to AI providers as contributing persons?
Since the 2017 reform, Section 203 (3) sentence 2 StGB permits disclosure to other persons who contribute to the professional activity, insofar as this is necessary for making use of their services. The Act on the Reform of the Protection of Secrets in the Involvement of Third Parties entered into force on November 9, 2017 and ties this permission to several conditions.
The conditions are not in the Criminal Code itself but in the respective professional law. For lawyers, Section 43e of the Federal Lawyers' Act (BRAO) governs the use of services; for tax advisors, the largely parallel provision of Section 62a of the Tax Advisory Act (StBerG). Both provisions are almost identical in structure and requirements.
| Requirement | Section 43e BRAO | Section 62a StBerG |
|---|---|---|
| Access only to the extent necessary | Subs. 1 | Subs. 1 |
| Careful selection, immediate termination in case of violation | Subs. 2 | Subs. 2 |
| Contract in text form with minimum content | Subs. 3 | Subs. 3 |
| Obligation of confidentiality with instruction on criminal liability | Subs. 3 No. 1 | Subs. 3 No. 1 |
| Services abroad only with comparable level of protection | Subs. 4 | Subs. 4 |
| Consent for mandate-related services | Subs. 5 | Subs. 5 |
| Data protection law continues to apply alongside | Subs. 8 | Subs. 8 |
What happens if this obligation is not imposed is governed by Section 203 (4) StGB. Under No. 1, the professional is personally liable to prosecution if they have not ensured that a contributing person was bound to secrecy and that person then discloses a secret without authorization. Under No. 2, the same applies to the contributing person who in turn uses further persons. With cloud services involving subcontractors, data center operators and model providers, this chain quickly becomes several links long.
Even the first condition cuts away more than many expect. Access may only be granted to the extent necessary for the service, and the BRAK translates this into a need-to-know principle: it must be carefully examined whether the provider absolutely needs access to client information. For language models, the guide reaches a clear conclusion and states that transmitting client secrets is not necessary according to the state of the art, because use is also possible without this data and passing it on would involve incalculable risks for clients. For many cloud applications, the permission therefore already fails before the question of the contract arises.
In practice, it usually fails at the second step. The standard terms of the large providers contain no confidentiality obligation with instruction on the criminal consequences. The Federal Chamber of Tax Advisors writes that concluding such a contract with a provider, if this possibility exists at all, may be complicated and time-consuming in individual cases. That is a cautious way of phrasing a simple finding: an individual tax advisor does not negotiate special clauses with a US corporation. What is practicable instead is shown in the article on the ChatGPT alternative for law firms and practices. How these professional obligations relate to the requirements of the AI Act and the GDPR is a further level that remains to be examined in parallel.
Why is a data processing agreement not enough under Section 203 StGB?
Because the two contracts answer different questions. The data processing agreement under Art. 28 GDPR governs the processing of personal data on behalf of the controller. The obligation under Section 203 (4) StGB in conjunction with Section 43e BRAO or Section 62a StBerG governs whether disclosure is permitted at all. One contract does not replace the other.
The differences can be clearly compared. Anyone who reviews both contracts side by side quickly sees that a standard data processing agreement leaves several points open that must be regulated under professional law.
Protected interest: Personal data.
Legal consequence of a violation: Fine and damages.
Addressee of the sanction: The responsible company.
Instruction on criminal liability: Not provided for.
Review of the level abroad: Level of data protection.
Consent of the person concerned: Usually not required.
Protected interest: Secrets of others, including those of companies.
Legal consequence of a violation: Imprisonment or fine, plus consequences under professional law.
Addressee of the sanction: The professional personally.
Instruction on criminal liability: Mandatory content of the contract.
Review of the level abroad: Comparable protection of secrets.
Consent of the person concerned: Required for mandate-related use.
The last point is the one most often overlooked. Under Section 43e (5) BRAO and Section 62a (5) StBerG, consent is required if the service directly serves a specific individual mandate and is not merely a general work tool of the firm. An AI assistant that drafts a specific pleading or analyzes a particular set of facts tends to fall into the first category. The Federal Chamber of Tax Advisors states the consequence unequivocally: without the client's consent, no data at all that allows conclusions about clients may be entered into publicly accessible AI services.
In addition, there is a level of proof that applies independently of the contractual framework.
BackgroundCJEU judgment C-203/22: explainability as a duty
On February 27, 2025, the Court of Justice of the European Union ruled in case C-203/22 that, for the right of access regarding automated decisions, neither stating mathematical formulas nor an abstract description of the procedural steps is sufficient.
Anyone who integrates AI into client- or patient-related processes must therefore not only justify its admissibility but also be able to explain how a specific result came about. With a closed cloud service whose model version changes without notice, this is difficult to achieve.
How can the question of disclosure be avoided?
By not giving any third party the possibility of access in the first place. If the language model runs on hardware in your own network, there is no contributing person within the meaning of Section 203 (3) StGB, no declaration of obligation, no review of the level of protection abroad and no client consent. Then no secret is disclosed at all, and no justification is needed.
With US providers, the situation becomes even more acute. The CLOUD Act obliges US companies to hand over data in their custody, even if the servers are located in Frankfurt. This collides precisely with the requirement of Section 43e (4) BRAO and Section 62a (4) StBerG that the protection of secrets abroad must be comparable to that in Germany. The BRAK writes that it has not been conclusively clarified whether the level of data protection can be used as the benchmark at all, and recommends preferring providers with server locations in Germany or Europe where possible.
The hope that this question will be resolved politically has not been fulfilled so far. The General Court of the European Union dismissed the action against the EU-US Data Privacy Framework on September 3, 2025 in case T-553/23; the applicant lodged an appeal with the CJEU on October 31, 2025, and the proceedings are pending. In parallel, the Privacy and Civil Liberties Oversight Board, whose oversight function was part of the US commitments, has been without a quorum since January 2025, after three of its five members were dismissed. A professional secret holder making a decision today cannot assume that the legal basis will still be the same in three years.
In practice, local processing does not mean giving up the useful use cases. Document recognition and data extraction, as described in the practical article on automated invoice processing, transcription of dictations and conversation notes, summaries of extensive files and internal research in your own records run reliably on local hardware. For which tasks the quality gap to large cloud models remains noticeable is covered in the detailed comparison of local AI and cloud AI.
For practice, this means a clear dividing line instead of a blanket ban. Everything relating to clients, patients or companies stays local. General research on legislative changes, wording help without reference to a specific matter and marketing texts may go to the cloud, because no secret of another person is disclosed there. Once you set this boundary in writing and enforce it in the team, you have the foundation that will be required in any review under professional law anyway.
Conclusion
The claim that Section 203 StGB prevents any use of AI in law firms and practices goes too far. In 2017, the legislature deliberately created a way to involve IT service providers, and both the BRAK and the Federal Chamber of Tax Advisors explicitly describe in their guides how this can work. Anonymized queries, EU providers with a sound contractual framework and documented consents are viable solutions.
But they are laborious, and they remain open to challenge. Each of these solutions assumes that an anonymization actually holds, that a provider signs a confidentiality obligation with instruction on criminal liability, and that the assessment of the protection of secrets abroad will still hold in three years. None of these assumptions is in the hands of the professional, who in the end is personally liable to prosecution.
Local processing reverses this logic. Where no third party has the possibility of access, there is no disclosure, no declaration of obligation and no dependence on an adequacy decision whose survival has been uncertain since the pending appeal. That is not an argument against the cloud, but one for a clean division.
Anyone in a law firm or practice who does not yet have a written rule on which content may go into which system should not wait until the first client complaint. The duty of careful selection applies from the first day of use, not from the day of the review.
This article is for general information purposes only and does not constitute legal advice. An individual legal review is required to assess a specific situation.
Sources
- § 203 StGB, Verletzung von Privatgeheimnissen
- § 43e BRAO, Inanspruchnahme von Dienstleistungen
- § 62a StBerG, Inanspruchnahme von Dienstleistungen
- Gesetz zur Neuregelung des Schutzes von Geheimnissen bei der Mitwirkung Dritter, BGBl. I 2017 S. 3618
- BRAK: Hinweise zum Einsatz von künstlicher Intelligenz (as of December 2024)
- BStBK: FAQ, KI im steuerberatenden Berufsstand
- BÄK and KBV: Ärztliche Schweigepflicht (2025)
- DSK: Orientierungshilfe KI und Datenschutz (May 6, 2024)
- Federal Statistical Office: Use of artificial intelligence in companies
- CJEU, case C-203/22 (Dun & Bradstreet), judgment of February 27, 2025
- General Court, case T-553/23 (Latombe), judgment of September 3, 2025