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. Issues and PRs welcome.

How to use this: read it live at mhsbai.github.io/llm-security-for-law-firms, or print it and adopt the checklist as an internal standard you run through before signing off on an AI deployment.

Who this is for

Managing partners, GCs, legal-ops leads, and the engineers deploying AI for them. It assumes you are adopting AI where a wrong answer is an ethics or malpractice exposure, not just a bug, and you 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 and 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 and auditability gaps: no record of what was sent, which model/version answered, and why an automated decision was made.
  5. Data retention and 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 and human oversight

Provenance and audit

Access and 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 nonlawyer and AI assistance (5.3), and ABA Formal Opinion 512 (2024) on generative AI. Confirm your jurisdiction’s rules; treat this as an engineering companion to that duty.

License

MIT. See LICENSE.


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