Skip to main content
FinTrace

Prompt Injection: What Lawyers Must Check in 2026

Learn what prompt injection is, see examples hidden in documents and emails, and use a checklist before your AI assistant reads another party’s material.

Published
Updated

Prompt injection is an attempt to make an AI assistant follow an unauthorised instruction that changes its answer or causes it to take an action. Before an assistant reads another party’s documents, give it access only to the files it needs. Keep its output in draft until a person checks it against the source.

Prompt Injection Defined

In direct prompt injection, someone enters the unauthorised instruction in the assistant’s prompt box. In indirect prompt injection, the instruction comes from material the assistant reads, such as an attachment or a retrieved email.

A language model receives both the user’s instructions and the material to be analysed as input. A sentence in a document can look as much like an instruction as the user’s request. The model can use labels that mark where the document begins, but it can still mistake words inside it for a direction to follow. The OWASP explanation of prompt injection describes this problem and its implications for tool access.

Prompt Injection Examples

Check what the assistant reads as well as what a person sees in a document preview. These are places where an instruction can enter the assistant’s input:

  • A PDF’s text layer can contain words that are invisible in the page view. Compare the extracted text with the displayed page.
  • A comment attached to a spreadsheet cell can reach the assistant alongside the numbers. Include comments when you inspect the workbook.
  • An email can contain a direction addressed to the agent that reads it. Treat directions from the sender as correspondence for review.
  • Text inside an image can reach an assistant that reads images. Review screenshots and scans as well as searchable text.

Researchers reported a case to OpenAI in which an email tried to make ChatGPT disclose employee information during a research task. Anthropic reported that unauthorised instructions led Claude Code to disclose credentials during an internal security exercise. Aim Labs reported that a flaw it called EchoLeak could expose information available to Microsoft 365 Copilot without a user clicking anything. Microsoft fixed the flaw.

Documents From Another Party

When an assistant summarises disclosure, subpoenaed records or opposing correspondence, an outside instruction can change which facts it includes. In a hypothetical contract dispute, a chronology might omit a variation letter even though it changes the delivery deadline. A reader could rely on the original date unless someone checks the letter.

  1. Use your firm’s approved document tools to review the extract before the assistant sees it. Compare the text with the rendered pages. Flag unexplained instructions and send any file you cannot inspect fully for manual review.
  2. Give the assistant only the approved material. Turn off actions and connections it does not need. The assistant that reads another party’s records must have no permission to send messages, edit files or share the output.
  3. Compare the summary with a sample of original pages. Start with pages that affect disputed facts or contain material dates or figures. Check any important assertion against its cited page, and check that the summary includes the relevant records from the sample.

Keep the originals and make any changes in a working copy. Pause the workflow if you suspect injection or the assistant takes an unexpected action. Preserve the file, the output and the available activity log for your security team.

How to Prevent Prompt Injection

Limit what the assistant can access and what it can do with the content it receives. OWASP’s 2026 update to its LLM Prompt Injection Prevention Cheat Sheet recommends comparing the visible page with the extracted text. Its guidance also recommends separating trusted instructions from imported content, screening inputs and checking outputs before another system uses them.

The Australian Signals Directorate’s 2026 Agentic AI harnesses guidance recommends enforcing permissions in the software that connects the model to your systems. Give an agent the smallest set of permissions the task requires. For document review, that can mean access to one matter folder and no access to email, external websites or other clients’ records.

A filter can flag an instruction it recognises. Access controls still apply when the filter misses one. Human review catches problems that access controls cannot, such as a chronology that quietly drops a material document. In workflows where actions are authorised, require meaningful human approval before an action that could disclose or change records. Keep audit logs of the decisions and actions so you can investigate unexpected behaviour.

Questions for an AI Vendor

Ask the vendor to show how its controls work in the configuration your firm will use.

  • How can the reviewer see what the assistant ingested from PDFs, comments, images and emails?
  • How does the software enforce read-only access to a single matter with outbound tools disabled?
  • Where are actions paused for approval, and can the reviewer see the proposed destination and data before deciding?
  • What failures did you find when testing with another party’s material? Ask when the vendor repeats those tests.
  • Which actions and approvals can the firm review or export from the audit log? Ask who can suspend access after an incident.

Ask for evidence that folder restrictions and tool permissions apply even if an answer is wrong. Use a fictional matter for the demonstration and hold real matter files back until the access limits and review steps are in place.

FinTrace

Statements in. Evidence out.

FinTrace turns your bank statements into one searchable Excel ledger and a written findings report, with every finding cited to its source page.

See how FinTrace worksNo software to learn · Every finding sourced