BRAO Compliance · Legal AI
Generative AI and LLMs deliver unprecedented gains in case structuring, contract analysis, and brief preparation. For law firms and in-house legal teams, that speed advantage is matched by an existential risk: the attorney-client privilege. Feeding sensitive client data into external systems without protection breaches § 43a (2) BRAO and exposes the lawyer to criminal liability under § 203 StGB. Scaling AI safely in a legal context requires precise synchronization between software architecture and professional conduct rules.
Or email Jansen@j-law.de
01Since the reform of professional-conduct law, § 43e BRAO permits the engagement of external service providers with access to mandate-related secrets. AI vendors — whether via API or as an integrated SaaS — typically fall under this regime.
02A standard data processing agreement under Art. 28 GDPR generally does not, without specific flanking additions, cover the strict scope of the attorney-client privilege. A pure DPA protects personal data of natural persons; attorney privilege covers everything entrusted to the lawyer in the course of the mandate, including trade and business secrets of legal entities.
03To secure criminal-law protection, the agreement should — in text form — include: (i) explicit instruction of the provider on criminal consequences under § 203 StGB and a written confidentiality obligation; (ii) a strict need-to-know principle limiting any access to client secrets to what is technically indispensable; (iii) an unambiguous prohibition on using firm prompts or client data for model training; and (iv) chain-obligation control over any sub-processors, also in text form.
04The firm operates open-weight models (e.g. Llama 3, Mistral, Command R+) entirely on its own hardware or in a dedicated, isolated private cloud. Because no data ever flows to an external third party, the disclosure-to-service-provider element of § 43e BRAO is simply not triggered. Full digital sovereignty makes § 43e BRAO obsolete for this workload.
05Before data is sent to a third-party API, it runs through a firm-internal cleansing pipeline. Named entity recognition and heuristic filters automatically redact or tokenize personal data, company names, and case numbers. The AI-specific risk: modern LLMs can re-identify individuals via the mosaic effect — by linking context, stylometry, or fact-pattern signatures. Purely rule-based redaction is rarely sufficient in the AI era, because LLMs recognize statistical patterns that human reviewers miss.
06Use of capable models — ideally European foundation models such as Mistral — fully hosted by an independent German or EU provider (e.g. Ionos, Telekom Cloud, A1 Digital) under a tailored § 43e BRAO addendum, with zero-data-retention and no training on firm prompts. US frontier models hosted by US hyperscalers (including Microsoft Azure) are not a recommended option for privileged mandate data: even with EU regions and DPAs, the US CLOUD Act creates a structural leakage risk through extraterritorial access by US authorities to data controlled by US-parented providers. A sovereign architecture — European model on independent EU/German infrastructure with specific § 43e flanking contracts — is materially safer and the preferred path where Option 1 is not feasible.
07§ 43e (6) BRAO allows the client to consent to configurations that fall short of the otherwise mandatory protections under § 43e BRAO. With informed, documented consent the lawyer may engage AI tooling — including setups that would not satisfy the full need-to-know, anti-training, or chain-obligation requirements — provided the client has been clearly briefed on the residual risks (e.g. US CLOUD Act exposure, re-identification, retention by the provider). Consent should be specific to the mandate, in text form, and revocable; it does not displace § 203 StGB, but it removes the underlying breach of duty by aligning disclosure with the client's express authorization. Important caveat: the client's consent only covers their own confidential information. It does not legitimize the processing of personal data belonging to third parties (counterparties, employees, witnesses, etc.) — for that, the full GDPR stack still applies, including a data processing agreement (Art. 28 GDPR) with the provider, a valid legal basis, transfer mechanisms for any third-country processing, and the rest of the standard compliance posture.
08Self-hosted FOSS: minimal BRAO overhead, maximal GDPR compliance, performance depends on internal hardware, high initial setup cost, full auditability. Local anonymization + cloud API: moderate BRAO overhead, high GDPR posture but exposed to AI re-identification, excellent model performance, low ongoing cost. Sovereign enterprise enclave (EU model + independent EU/German host + § 43e contract): high contractual overhead, strong performance, no US CLOUD Act exposure, dependence on the provider's compliance posture. Client consent under § 43e (6): unlocks otherwise non-compliant configurations on a per-mandate basis, lowest technical overhead, but shifts the residual risk to the client and requires sophisticated, well-documented disclosure — unsuitable as a blanket policy.
09For highly sensitive core areas — M&A data rooms, criminal defense, core litigation — a self-hosted LLM architecture remains the only posture without residual legal or technical risk on data transfer. Where commercial frontier capability is required, the preferred route is a sovereign enclave: a European model such as Mistral, fully hosted by an independent German or EU provider (Ionos, Telekom Cloud, A1 Digital — the latter a former client of mine via A1 Digital), combined with a properly negotiated § 43e BRAO addendum and deep structural tokenization. US models hosted by US providers — including Microsoft Azure — should be avoided for privileged work due to the structural US CLOUD Act leakage risk. § 43e (6) client consent is a legitimate fourth path for one-off matters with sophisticated clients who, after a documented briefing on the residual risks, expressly authorize a non-compliant configuration; it should not, however, be used as a default to retrofit consent around an otherwise inadequate AI stack.
010An ICLR 2026 paper shows that hidden states — the intermediate activations a language model computes while processing an input — are a lossless encoding of the prompt. Given those states, the exact input can be reconstructed in linear time. Unlike the model’s text output, nothing is lost. Vendors do not claim they never store prompts. What OpenAI, Anthropic, and Azure actually say is more careful. OpenAI keeps some prompts and responses in abuse-monitoring logs for up to 30 days and does not use chat data for training. Anthropic does not retain conversation content by default and, under its zero-data-retention option, does not store prompts at rest after the response, yet its own caching documentation acknowledges representations held in memory while a prompt is cached. Azure calls its models stateless, storing no prompts in the model and not using them to train base models. The strongest of these is the no-persistent-storage claim, and it does not address the hidden-state or KV-cache artifact. The practical consequence for confidentiality is blunt: hidden states are the prompt in disguise, and a vendor that discards prompt text but retains hidden states or a KV cache is still holding the input verbatim.
Read the paper (arXiv:2510.15511) 011Privilege: § 43a (2) BRAO confidentiality and § 203 StGB attach to the content, not to its file format — retained hidden states carry privileged input and are treated as the text itself, including for waiver analysis. GDPR: where the prompt contains personal data, hidden states are personal data under Art. 4 (1), so retention, erasure, access and breach duties apply. This is distinct from the Hamburg DPA’s view that trained model weights are not personal data; inference-time hidden states are an exact, invertible encoding of one specific input. E-discovery: hidden-state logs are discoverable and yield verbatim prompts, so a litigation hold covering “text logs” but not activations misses the content. Trade secrets: a KV-cache leak is a disclosure of the underlying prompt content and triggers notification duties as a leak of raw text would.
012In a cloud deployment, hidden states live on someone else’s infrastructure under their retention policy — largely unauditable for the firm. With a locally run model they never leave the perimeter. That is a further argument for self-hosting privileged and trade-secret work, not for every task. One caveat on the threat model: the efficient reconstruction attack needs the per-position hidden states that a leaked KV cache exposes; exact recovery from only the final embedding is possible but has no efficient algorithm yet. So the real risk sits wherever hidden states are stored, cached or shared. The § 43e (3) BRAO agreement should therefore define “prompt data” to include hidden states, activations, embeddings and KV caches, cap their retention, prohibit their use for training or debugging, and make them subject to the same deletion, breach-notification and audit rights as prompt text.
013Even when the legal framework is clear, the market is still catching up. Many off-the-shelf AI tools are not designed for attorney-client privilege, lack a § 43e BRAO-ready confidentiality chain, and cannot sign the tailored addenda law firms need. Mapping a compliant AI stack therefore requires negotiating custom agreements, evaluating sovereign-hosting options, and sometimes accepting that the right provider simply does not exist yet for a given use case.
Vischer: AI Tools — What about data protection? (Part 31)Or email Jansen@j-law.de