Skip to main content
Next Defence - Next-Gen AI Cyber Security Firm
Australia & New Zealand[email protected](02) 9064 2614
INSIGHT

Legal AI Research Assistants Must Not Reveal Documents Outside the Matter

A legal research assistant may retrieve legislation and public judgments while also indexing privileged client documents.

Legal AI queries inherit the matter’s confidentiality boundary

A legal research assistant may retrieve legislation and public judgments while also indexing privileged client documents. A user authorised for one matter should not gain visibility of another client’s internal advice through a broad semantic search. Create two fictional matters with similar wording and a deliberately distinctive confidential sentence in one. Ask the assistant a permissible research question for the first matter, then a question designed to elicit the second matter’s material. Examine the retrieval permissions, tool calls and cited source identifiers rather than judging only whether the final answer sounds plausible. If an external model or vendor processes document snippets, identify what is transmitted, retained and available to its support staff. The firm’s matter owner should decide what can be indexed and which outputs require lawyer review before use with a client or court.

A closer look at the access path

Two concrete operations define the boundary. First, an assigned solicitor receives a cited answer from documents permitted in one active synthetic legal matter. Second, a maliciously crafted document or broad retrieval index reveals snippets from another client’s privileged files. Trace the retrieval access-control list, cited source document, embedding-store permissions, model tool instructions, supplier retention settings and the user session. The assessor should be able to show how an authorised matter search succeeds while a cross-matter excerpt is denied. Apply matter-level retrieval filters and restricted tool permissions, supported by independently reviewed data-handling terms.

The consequence of getting it wrong

The tangible business objective is: AI efficiency must preserve client privilege, source accuracy and trustworthy evidence paths. A restriction would have to preserve the approved action: An assigned solicitor receives a cited answer from documents permitted in one active synthetic legal matter. The proposed improvement is: Apply matter-level retrieval filters and tool restrictions with an independently reviewed data-handling agreement.

Accountable authority: Legal innovation partner and client confidentiality owner. The original control assumption needs testing: The AI assistant displays correct legal reasoning but silently uses documents outside the authorised matter. A reliable review should include technical evidence from audit retrieval ACL, source citation, embedding store permissions, prompt/tool instructions, vendor retention and user session context. and an acceptance decision that the legitimate action still functions: An assigned solicitor receives a cited answer from documents permitted in one active synthetic legal matter. The requested security improvement is: Apply matter-level retrieval filters and tool restrictions with an independently reviewed data-handling agreement.

How to change the effective permission

An appropriately scoped exception might be required because hallucination and unauthorised retrieval are separate risks and require different acceptance tests. It should be tied to the current approved activity: An assigned solicitor receives a cited answer from documents permitted in one active synthetic legal matter. The exception must not permit: A maliciously crafted document or broad retrieval index reveals snippets from another client’s privileged files.

Demonstrate both outcomes

Build a positive case from this authorised operation: An assigned solicitor receives a cited answer from documents permitted in one active synthetic legal matter. Construct a negative case using: A maliciously crafted document or broad retrieval index reveals snippets from another client’s privileged files. Relevant observations: Audit retrieval ACL, source citation, embedding store permissions, prompt/tool instructions, vendor retention and user session context. Final condition: AI efficiency must preserve client privilege, source accuracy and trustworthy evidence paths.

Keep the improvement effective

Final responsibility sits with legal innovation partner and client confidentiality owner. Retain the evidence set: Audit retrieval ACL, source citation, embedding store permissions, prompt/tool instructions, vendor retention and user session context. The improvement is: Apply matter-level retrieval filters and tool restrictions with an independently reviewed data-handling agreement. Retest the unsafe path: A maliciously crafted document or broad retrieval index reveals snippets from another client’s privileged files.

After implementation, rerun this practical test: Ask the assistant a cross-matter question with a planted canary document, requiring refusal and correct source citations. Confirm the final business result: AI efficiency must preserve client privilege, source accuracy and trustworthy evidence paths. Deny this operation after the change: A maliciously crafted document or broad retrieval index reveals snippets from another client’s privileged files.

An exception worth recording

For independent assurance, demonstrate the precise experiment: Ask the assistant a cross-matter question with a planted canary document, requiring refusal and correct source citations. The analyst should correlate the result with audit retrieval ACL, source citation, embedding store permissions, prompt/tool instructions, vendor retention and user session context. A successful test must preserve an assigned solicitor receives a cited answer from documents permitted in one active synthetic legal matter. without accepting a maliciously crafted document or broad retrieval index reveals snippets from another client’s privileged files.

Prompt instructions in documents are not authority

A hostile document can contain text that asks a research assistant to ignore the user’s question, reveal other files or send material to an external service. In a controlled test, place a harmless instruction marker in a synthetic document and inspect whether the retrieval or tool orchestration treats it as executable instruction. The model may summarise the document, but it should not gain access to a different matter or call an outbound tool merely because retrieved text requests it. Limit application credentials to the matter resources needed and record any attempted tool invocation separately from actual network delivery. Test a legitimate lawyer’s ability to find the correct cited source alongside the denied cross-matter retrieval. A vendor assurance about model training policy does not substitute for verifying the firm’s own retrieval, logging and access-control architecture.

The file audit has to survive a dispute

When a research output influences legal advice, retain enough provenance for an authorised reviewer to identify the query, permitted corpus, retrieved document versions, citations and user who accepted the output. Do not indiscriminately store confidential client passages in an external monitoring platform. Include a simulated case where an assistant quotes an out-of-date draft as if it were the signed opinion; the lawyer should be able to inspect source status and correct the response before reliance. Staff offboarding must remove access to indexing connectors, cached extracts and vendor support portals, not just the main application. A firm should periodically retest two similar confidential matters because new embeddings, document moves and platform upgrades can change retrieval behaviour without any visible role change. A credible acceptance result is useful research with the wrong client’s material demonstrably unavailable.

Check search indexes after a matter closes

A closed legal matter may remain in a vector index or document cache even after the firm removes the user from the matter-management system. Include a synthetic closing event and attempt to retrieve a distinctive privileged phrase through the AI research tool from an unrelated matter. The application should enforce matter authority at retrieval time and explain what happens to cached embeddings and generated summaries. Where contractual retention requires an archive, design narrow authorised retrieval rather than leaving the material in a general workspace. Review who can delete, reindex and audit those records, including external implementation partners. A successful browser denial is incomplete if a separate retrieval API still returns the material to an authenticated user without matter permission.

Lawyer review remains an independent obligation

Even if the assistant retrieves only authorised sources, it can paraphrase a judgment incorrectly or blend client-specific facts with public commentary. Provide a fabricated legal question whose proper answer depends on distinguishing a signed instruction from an earlier draft. Require the lawyer to inspect source identifiers and the status of retrieved records before relying on the response. Store sufficient audit detail to reproduce that check while avoiding wholesale copies of privileged content in vendor monitoring systems. The firm’s product owner should define which outputs may become internal notes and which require professional review before client communication or filing. A secure retrieval route reduces disclosure risk; it does not automatically establish legal accuracy or professional suitability.

Sources and further reading

Explore Next Defence expertise

Explore how Next Defence can help address the risks behind legal ai research assistants must not reveal documents outside the matter. Our specialists can review the relevant controls and source evidence, demonstrate whether the unsafe operation is prevented, and help deliver the following outcome: AI efficiency must preserve client privilege, source accuracy and trustworthy evidence paths. We work with the appropriate service owner and technical teams to keep authorised operations available.

Explore related cyber security services ↗

LET'S TALK

Let’s talk about your security.

Tell us what you are protecting, where you need greater visibility or what you want to achieve. We will help identify the right next step.

Talk to a Security Specialist

Describe your security requirements. Please do not submit passwords, credentials or confidential incident evidence. This form is not an emergency incident-response channel.

Form powered by HubSpot. Review our Privacy Policy. If the form doesn’t load, email [email protected].