Confidentiality and ethics
Encrypted AI for Law Firms: What Encryption Covers
By Lucerna LawPublished 9 min readUpdated
Encrypted AI for law firms means client files are scrambled while they travel to the service and while they sit in its storage. It does not mean nobody can read them. Whoever holds the key can, and the text has to be readable each time the model answers a question about it.
What does "encrypted" mean when an AI vendor says it?
When an AI vendor says a product is encrypted, it is describing one or both of two things: encryption in transit, which covers a file while it travels over the network, and encryption at rest, which covers a file while it sits on a disk. Neither phrase says who is able to undo the encryption.
The NIST glossary entry for encryption defines the word as "the cryptographic transformation of data to produce ciphertext." Ciphertext is unreadable without a key. That is the whole idea, and everything that matters to a law firm follows from where the key is kept.
In transit
Encryption in transit protects the connection between two computers. Someone who taps the network between a lawyer's browser and the service sees ciphertext. Both ends of the connection see the real text, because each end holds what it needs to decrypt.
On Amazon's cloud it is a requirement. Amazon's page on data protection in Amazon Bedrock, the service that runs models for other companies' products, says of communication with AWS resources: "We require TLS 1.2 and recommend TLS 1.3." TLS is the protocol behind the padlock in a browser's address bar.
At rest
Encryption at rest protects stored data. If someone walks off with a disk, or reaches the raw storage without going through the service, they get ciphertext.
On Amazon's storage this is now a default. Amazon's guide to server-side encryption with AWS KMS keys in Amazon S3 says that since January 5, 2023, all new objects uploaded to its S3 storage are encrypted automatically, with keys Amazon manages. So a product that stores files in S3 can say "encrypted at rest" without having done anything further.
Who holds the encryption key: vendor, cloud provider or firm?
The encryption key for a firm's files is held by one of three parties: the cloud provider, the AI vendor, or the firm itself. A security page that says only "encrypted" does not say which, and the three arrangements give a firm very different amounts of control.
Amazon's documentation of the types of AWS KMS keys is a useful map, because it defines each arrangement.
| Arrangement | Who creates and controls the key | What the AWS page says about it |
|---|---|---|
| Provider-owned key | The cloud provider's own service | The account holder "cannot audit activities on these keys" and cannot delete them |
| Key in the vendor's account | The AI vendor | Recommended "for customers who want full control over the lifecycle and usage of their keys" |
| Key in the firm's account | The law firm | The same key type, created in an account the firm controls |
"Customer-managed" depends on who the customer is
AWS calls the second kind a customer managed key. The customer in that phrase is AWS's customer, which is the AI vendor. A vendor can truthfully tell a law firm that its files are under a customer managed key while the firm has no control over that key at all.
So when the phrase appears in a security questionnaire, the follow-up is whose account the key lives in and who can change its permissions.
A separate key for each customer
A vendor can create one key per customer instead of one key for everything. That can limit a fault: exposure of the files under one customer's key need not hand over another customer's. It also makes it possible to destroy one customer's key.
It does not change who can read. If the vendor created the key and holds it, the vendor's systems can use it.
A key the firm holds
Where a firm creates the key in its own cloud account and grants the vendor permission to use it, the firm can withdraw that permission. The S3 guide explains why that has teeth: to download an object encrypted under a KMS key, the requester needs the kms:Decrypt permission on that key. Without it the stored object stays ciphertext.
This arrangement asks more of the firm. Someone at the firm has to run a cloud account, guard it, and know what happens to the service if the key is disabled. A firm weighing that much involvement is close to the question of running legal AI on its own hardware or in a cloud service.
Why can an encrypted AI tool still read a firm's documents?
An encrypted AI tool can still read a firm's documents because reading them is its job. A model works on the words themselves. Before the tool can answer a question about a lease, it has to decrypt the lease, or the text taken from it, and hand that text to the model.
Follow one file through a hypothetical product.
01
Upload
The file travels from the browser to storage inside an encrypted connection
02
Storage
The file is written to disk as ciphertext under some key
03
Reading
The service uses the key to decrypt the file and extracts the text, so it can be searched and cited
04
A question
The question and the relevant text go to a model over an encrypted connection. The model receives readable text
05
The answer
It comes back over an encrypted connection and is stored
At steps 3 and 4 the text is in the clear inside the vendor's systems and the model provider's. Encryption at rest and in transit are both fully in force, and the service is reading the document anyway. That is by design.
Encryption decides who can read a file by accident, and the key decides who can read it on purpose.
The same reasoning applies to anything the service derives from a file. Extracted text, a search index and saved answers are copies of the content in another form. Each sits somewhere, under some key, and that key may differ from the one protecting the original file. The post on AI document review describes what a model is sent on each question.
What encryption does not protect a law firm against
Encryption does not protect a law firm against anyone who gets to the data through the front door. A person with a valid login, a vendor employee with rights to the keys, and the service itself all receive decrypted text. Encryption guards against the network tap and the stolen disk.
The table is general reasoning about a service built the way the earlier sections describe. It is not a finding about any product, and a given vendor's design can differ.
| Threat | Does encryption at rest and in transit stop it? | What does |
|---|---|---|
| Someone intercepts traffic between browser and service | That is its purpose | Encryption in transit |
| Someone obtains the raw storage without the key | That is its purpose | Encryption at rest |
| A lawyer's password is phished and the attacker signs in | No. The service decrypts for a valid login | A second sign-in step and prompt removal of old accounts can help |
| A vendor employee with access to the keys or the database reads a file | No | The vendor's own access controls can limit it, and a record of access can show it |
| A colleague opens a matter they are screened from | No | Access rules inside the firm's workspace |
| The vendor uses the text for another purpose | No | The contract forbids it or does not |
| A subpoena is served on the vendor | No, where the vendor holds the key | Nothing technical. A notice term in the contract can require the vendor to tell the firm |
Two rows deserve a second look. The compromised account is the plainest: to the service, an attacker holding a lawyer's password is that lawyer. And vendor staff access is a matter of honesty in the vendor's documents. A vendor that holds the keys and says "we cannot see your data" is describing a policy as if it were a technical limit.
None of this makes encryption unimportant. Comment 18 to ABA Model Rule 1.6 lists the factors that bear on whether a lawyer's safeguards are reasonable. They include the sensitivity of the information, the likelihood of disclosure if additional safeguards are not employed, and the cost and difficulty of the safeguards. Encryption is one safeguard among those a firm weighs. States adopt their own versions of the rule and its comments.
How Lucerna Law encrypts a firm's files and text
Lucerna Law encrypts each firm's original files under a key made for that firm alone, and Lucerna Law holds that key in its own AWS account. The text read out of those files is stored in a database that is not under that key. Its homepage and privacy policy say both things.
In terms of the table above, this is the middle arrangement with one key per customer. The firm does not hold the key.
- In transit. The homepage says original files go from the browser straight to Amazon Web Services storage over HTTPS.
- Original files at rest. Encrypted under a key created for the firm in Lucerna Law's AWS account. The first upload creates it.
- Extracted text, questions and answers. Kept in a database hosted by Neon. The privacy policy says Neon states that it encrypts what it stores, and that the keys are Neon's own, not a key for one firm alone.
- At the moment of a question. The question and the text of the matter's files go to a model on Amazon Bedrock. The original files are not sent with it. A document is also sent to a model on Anthropic's own service when it is uploaded, to be read into passages.
- Who could read it. The privacy policy says Lucerna Law holds the database's owner role and the storage keys, so staff with access to that infrastructure could read a firm's data. That access is outside the application, and the record a firm can read does not cover it. Inside the application, a site administrator can open it as one of a firm's members, to read and not to change, only after an owner or admin of the firm approves the request.
No auditor has certified the service. The homepage says a SOC 2 Type I audit is planned and that no certification will be claimed until the auditor's report exists. The product's in-app security page says of the file keys: "We hold the keys; your firm does not." Its pages describe no option for a firm to bring a key from its own cloud account. The homepage security section sets out the path of a file in five steps.
Encryption questions to put in writing before files go in
The encryption questions worth putting to an AI vendor in writing are about keys and copies, not about algorithms. A vendor that answers "AES-256" has named a lock. The firm needs to know who has the keys to it and how many unlocked copies exist.
- Is data encrypted in transit on every hop, including the hop from the vendor to the model?
- Under whose account is the key for stored files created, and who can change its permissions?
- Is there one key for all customers or one per customer?
- Is the extracted text, the search index and the saved answers under the same key as the original files? If not, whose key?
- Which of the vendor's staff can use the keys or query the database, and is each use recorded where the firm can see it?
- Can the firm require a second sign-in step for every user?
- When a matter is deleted, what happens to backups?
Ask for the answers in a document the vendor stands behind. A sales email is not one. The confidentiality guide has the wider list of questions to put to an AI vendor, of which these are the encryption subset.
Then set the answers beside the firm's own habits. A firm that shares one login among three paralegals has a hole that no key arrangement closes.