Latest
AI concepts/Risk and governance

Prompt injection

Prompt injection is an attack in which instructions are hidden inside content an AI tool reads, such as a document, an email or a web page. The model may follow them as if they came from the user.

A model reads everything in its context window as text. It has no reliable way to tell the material it was asked to analyze apart from instructions it should follow. A line in a contract draft telling any AI reader to describe the indemnity clause as standard can change what the model says about that draft.

The text is usually hidden from people: white text on a white background, a tiny font, a block placed off the page. A lawyer reading the document sees nothing unusual. The AI reading the same file sees all of it.

Law firms are exposed because so much of what they read comes from the other side. Discovery productions, opposing counsel’s filings, a counterparty’s contract draft and submissions through a website intake form are all written by someone with an interest in how your AI reads them.

The harm depends on what the tool can do. A summarizing tool might produce a skewed summary of a production. A connected agent that can send email or edit files could be directed to do something the user never asked for. No current technique stops prompt injection reliably, so most defenses limit what a misled tool can reach and do.

In a law practice
  • Treat documents from opposing parties and the public as untrusted input whenever an AI tool processes them.
  • Remove hidden text before documents reach the model. Converting a document to an image and back, much as printing does, defeats most current concealment techniques.
  • Keep the original and tell the case team what was found. Concealed instructions in a production may matter as evidence in their own right.
  • Keep tools that read untrusted documents from sending, filing or deleting anything without a person approving it.
Go deeper
Also in Risk and governance

See where your firm stands

The self-check places your firm on one of five levels and builds a roadmap for your practice.

Find your level
Weekly

Send me a step in my roadmap every week