llm-security-for-law-firms

LLM Security for Law Firms

A practical threat model and adoption checklist for deploying large language models inside legal practice, where client confidentiality, privilege, and auditability are non-negotiable.

Maintained by Rich Berman / MHSB Solutions. Field-tested framing, not vendor marketing. Issues and PRs welcome.

Who this is for

Managing partners, GCs, legal-ops leads, and the engineers deploying AI for them. It assumes you are adopting AI in a regulated, change-resistant environment and need to answer “is this safe, and can we prove it?” before “is it clever?”

The threat model (what actually goes wrong)

  1. Confidentiality leakage: privileged content sent to a training-eligible or consumer endpoint; prompt/response logging outside the firm’s control; context bleed between matters.
  2. Prompt injection & tool abuse: untrusted document/email content steering an agent into exfiltration, unauthorized actions, or conflict-gate bypass.
  3. Non-determinism in the decision path: a model, not a rule, making a conflict-screening or intake-eligibility call, with no reproducible basis.
  4. Provenance & auditability gaps: no record of what was sent, which model/version answered, and why an automated decision was made.
  5. Data retention & residency: vendor retention windows, sub-processors, and geography that violate an engagement letter or ethics rule.
  6. Over-broad access: an agent with credentials to the whole DMS when it needs one matter.

Adoption checklist

Confidentiality routing

Determinism & human-in-the-loop

Provenance & audit

Access & least privilege

Evaluation before adoption

Mapping to professional responsibility

This checklist is written to support (not replace) counsel’s own analysis under the applicable rules: competence and technology (ABA Model Rule 1.1 cmt. 8), confidentiality (1.6), supervision of non-lawyer/AI assistance (5.3), and the 2024 to 2025 guidance on generative AI. Confirm your jurisdiction’s rules; treat this as an engineering companion to that duty.


This is a living checklist. Contributions that sharpen the threat model or add jurisdiction-specific pointers are welcome. Nothing here is legal advice.