A legal practice introduces a document-summary assistant to reduce time spent reviewing correspondence. Initially the tool searches only the active matter that a lawyer has opened. Later, a connector gains permission to index archived matters, a shared knowledge library and counsel correspondence. The assistant now returns plausible answers that may include privileged material from another client. The risk is permission creep behind an apparently helpful interface, and the remedy has to enforce matter confidentiality at the source of retrieval.
Understand the exact professional boundary
Law firms may have overlapping clients, related litigation, ethical walls, information barriers and differing duties to maintain confidentiality. ‘Works at this firm’ is not a sufficient attribute for access to every document in the document-management system. In a fictional matter, lawyer A is instructed on a commercial dispute; lawyer B handles a separate sensitive transaction. A broad search connector retrieves an archived memo associated with B and includes two sentences in A’s generated summary. The assistant might cite the memo accurately while still making an unauthorised disclosure.
Start by identifying the practice’s authoritative matter membership and ethical-wall decisions. Determine whether they reside in a legal practice management platform, the document system or a separate conflicts register. If the assistant’s index is built from a nightly export using an administrator service account, it may not inherit later membership changes. Even when the user interface displays only documents that the lawyer can browse, a retrieval API or embedding store can bypass those restrictions if it fails to recheck permissions at query time.
Follow the answer back to the retrieved source
Review a safe sample of query logs, retrieved-document IDs, matter IDs, connector identity, access decisions and response citations. Do not publish privileged text in a general security issue tracker to demonstrate the problem. A reference to a prohibited document in the retrieval set is different from that document being included in the final answer; both may matter, but the disclosure claim requires careful evidence. Incomplete model logs should be acknowledged rather than supplemented with assumptions about what users probably saw.
Ask how permissions are resolved at each stage: document ingestion, index update, search retrieval, reranking, answer generation and export of a conversation. A permission check only at ingestion can become stale when a lawyer leaves a matter. A permission check only on the final citation list may permit prohibited text to influence the answer even if citations are hidden. The receiving retrieval service should validate current user and matter scope before returning content to the model, including snippets used in context construction.
Test the boundary using invented matters
Create fictitious matters Red and Blue, with distinctive dummy facts in each. Assign a test lawyer to Red only. A Red query should return an authorised summary; a Blue-specific query and a combined-search query should return no Blue content. Repeat after removing the lawyer from Red, and verify that previous assistant sessions, cached search results and downloadable exports do not expose Red after access withdrawal. Include a legitimate lawyer who is authorised for both matters as a positive control.
Try the same denial through the assistant’s API, chat interface, bulk document summariser and any integrated search sidebar. A model prompt asking it to ‘ignore the matter restriction’ is a useful negative test only if the enforcement happens at the retrieval layer. The test should also check indirect leakage: a generated answer that omits a prohibited citation but reproduces a unique dummy fact still fails the boundary. Use fabricated documents throughout, and preserve the identifiers and policy version rather than sensitive content.
Keep ethical walls separate from ordinary team lists
A practice may have a lawyer in a broad department group while a specific matter remains subject to an information barrier. Importing departmental groups directly into assistant permissions can defeat the ethical wall. Resolve the most restrictive applicable condition first, and make an authoritative denial effective even where another group would ordinarily allow access. Document who can create, modify and approve these barriers. A support engineer should not be able to grant a broad assistant index role as a convenient workaround for a retrieval error.
For legal holds and defensible retention, access revocation must not mean deleting case records that the firm has a duty to preserve. Separate authority to retain documents from authority to search them for general assistance. Archived matters can remain stored while ordinary lawyer or assistant access is removed. Have legal and records specialists approve that distinction; the system should not infer retention policy from whether a matter is currently active.
Watch for silent connector changes
Permission creep may arrive through a vendor upgrade rather than an intentional partner decision. A new connector version adds shared-drive indexing; a support feature impersonates users; a summarisation tool begins storing conversation histories for other members of a team. Establish a register of available tools, service accounts, API scopes, permitted repositories and data-handling destinations. Review changes before enabling an index expansion. The approval should reference actual matter classes and personal-information categories, not merely the name of a SaaS product.
Where the assistant uses an external model service, inspect contractual terms for data processing, retention, training use, subprocessors and deletion or export rights. A promise of enterprise privacy does not demonstrate correct internal matter authorisation. The practice should also determine who can view model prompts, generated summaries and debugging traces, because these may reproduce privileged passages even when the original DMS remains protected.
Build detection that looks for the harmful transaction
Count successful retrievals where a document matter is not in the user’s currently approved set. Alert on changes to connector permission scopes, unusual index growth and support-account queries across unrelated matters. Measure both denied cross-matter requests and unexpected successful ones. A rise in search volume is ambiguous during discovery-heavy litigation; evidence of prohibited matter association is more specific. The logs should include stable document and matter identifiers without adding the retrieved privileged paragraphs to every dashboard.
If an apparent cross-matter result is found, preserve the relevant audit chain under limited legal privilege arrangements as directed by counsel. Identify who may have received the answer and whether it was exported or forwarded. Disconnect the broad retrieval path while maintaining legitimate authorised case work where possible. Communications should avoid asserting that client secrets were exposed merely because an index once contained prohibited content, but should not understate confirmed returned text.
The matter merger and split edge case
Suppose two matters are combined for an authorised disclosure review and later separated again. The document-management permissions may change before the assistant’s search index catches up. Build a synthetic case in which a lawyer briefly has access to both matter libraries, then loses one entitlement at the split. Verify the retrieval service uses current permissions for every query and cannot surface a stale cached answer from the temporarily shared period. If a privileged case administrator must perform a narrow historical search, document the separate exception and expiry. This test is stronger than a one-off role review because it exercises the lifecycle that usually produces permission creep.
Make confidentiality a release criterion
Before every material assistant upgrade, a designated matter owner should approve the test dataset, the technology owner should demonstrate both allowed and denied retrieval paths, and the firm’s information governance lead should review any expansion of repositories or retention. A vendor certification or a successful general chatbot demonstration cannot replace these practice-specific tests. Review active legal matters, archived materials and special barriers separately because they have different membership lifecycles.
The operational result is a tool that saves lawyers time without converting firm-wide document storage into firm-wide conversational knowledge. Success is not the absence of complaints. It is proof, on representative paths and with an attributable audit trail, that a lawyer cannot obtain a prohibited matter’s content through the assistant, even when the assistant’s language makes the request sound reasonable.
Sources and context
- ASD Essential Eight: https://www.cyber.gov.au/resources-business-and-government/essential-cyber-security/essential-eight
- NIST Cybersecurity Framework 2.0: https://www.nist.gov/cyberframework
How Next Defence can assist
For legal and professional services, Next Defence can scope the specific AI supply chain and delegated decisions problem in this example: A legal practice gives a document-summary assistant permission to search archived client matters. An engagement could translate the intended safeguard—bind retrieval to matter membership and require purpose-specific source citations—into an owner-approved work plan and a reproducible check to ask a synthetic user to summarise a document from a matter they cannot open directly. Any assessment would be limited to the agreed systems and would respect the operational constraint: Client confidentiality cannot depend on a prompt asking the model to behave.