Advisory teams may test assistants that read client emails, prepare working papers and search cloud folders. A malicious instruction embedded in an external document could influence the assistant to disclose confidential files or trigger a connected tool. The meaningful security boundary is what an API is authorised to do, not whether a chatbot describes an instruction as suspicious.
Where the exposure develops
Untrusted PDF text, search results and messages can all carry adversarial instructions. Prompt filters cannot replace user-scoped authorisation. Review access to matter-specific folders, outbound communications and high-impact tools such as payment instructions or client-record updates.
A practical response
Begin with read-only access to synthetic records; Apply user and matter-level permissions inside connectors; Require human approval before payments, exports or changes; Log tool calls separately from conversation text; Test malicious instructions embedded in a fabricated tax document and verify that prohibited actions fail.
What to validate
Assess whether a test assistant can retrieve another client’s papers or export data to an external destination. Approval should require a confirmed access denial, an auditable event trail and an accountable business owner. A fluent response from the model is not evidence that the underlying access boundary is secure.
Identify the untrusted content and privileged action
Start with a concrete financial advisory workflow: an assistant reads a third-party PDF, summarises client correspondence or drafts a working paper using a connected file store. Map the data source, retrieval component, model, tools available to it and the target application that might receive an action. A malicious instruction inside an external document is content to be analysed, not an authorisation to send a file, change a client record or create a payment. Identify whether tools can search, export, email or modify data and which credentials they use. A read-only document assistant has a different risk profile from one with write access to finance or case-management systems. Document the business owner, protected data classes and approvals required for each possible action.
Test the boundary using harmless examples
Prepare an approved synthetic client document containing an embedded instruction to ignore previous rules and send a confidential report to an external address. Ask the assistant to summarise the document in an isolated test environment. The expected outcome is an accurate summary without execution of the embedded request, and no unauthorised tool call. Repeat with a search result or incoming email containing misleading instructions, and a case in which retrieved documents conflict. Inspect actual tool invocation records, not merely the assistant’s statement that it followed policy. The destination application should independently deny any operation outside the requesting user’s role. Do not run tests using real client secrets, genuine payment details or a production mailbox that could deliver unintended messages.
Contain misbehaving connectors instead of resetting the chat
If a connected assistant attempts an unauthorised file export or privileged update, the response owner should be able to suspend the tool identity, revoke its credentials and preserve model interaction, application and API logs. Identify whether data was actually returned or written; an attempted call does not necessarily mean disclosure occurred. Check shared API credentials and other assistants using the same connector so containment does not leave an alternate route open. Maintain a non-AI manual workflow for critical client tasks while access is restricted. Reconnection requires reviewed permission scope, controlled test prompts, clear business approval and evidence that the previously prohibited call is denied. Clearing conversation history alone cannot revoke an API token or undo a completed external transaction.
Govern the assistant as a changing integration
Separate benefit and risk measurements. Evaluate task accuracy, citation to approved source documents, avoided staff effort and the frequency of human corrections alongside data boundaries, authorisation and auditability. Require explicit human approval in the authoritative financial system before high-impact changes; a model-generated phrase such as “approved” is not valid evidence. Review new plug-ins, tools and permission changes as supplier or software changes, with an accountable owner and retest. Provide staff with guidance on what the assistant can and cannot do without relying on them to detect every malicious instruction. Report unresolved exceptions to practice leadership with a practical containment option and expiry. The goal is useful automation whose effective authority remains bounded even when its inputs are adversarial.
Quarantine the AI tool permission, not the accounting workflow
A finance assistant asked to categorise synthetic invoices may encounter a malicious instruction embedded in a supplier document. The document is input evidence, not authority to change invoice approval rules or release a payment. Construct a test invoice containing a benign-looking instruction to alter bank details through a connected tool. The tool connection should possess only the permissions necessary to read assigned data and prepare an unapproved draft. Inspect whether the assistant attempted a prohibited API call and whether the downstream accounting application rejected it even if the model was persuaded to try.
If suspect prompts or tool use are detected, revoke the affected connector and preserve the prompt, retrieval source, tool call and user decision in a privacy-appropriate incident record. Financial operations should continue through normal human approval routes; freezing all ledger access could be more disruptive than disabling one AI integration. Verify that an authorised accountant can still review and pay an independently verified invoice, while the assistant cannot silently create a new beneficiary. The finding should distinguish an injection attempt from an actual payment change, because the next containment and reporting decisions differ sharply.
Related perspective: This guide evaluates connected AI tools across financial workflows and cloud documents; the invoice-focused exercise traces one prompt-injection attempt from document to ledger-export authority. Accounting AI Prompt Injection: Contain Misuse of Connected Tools.
Sources and further reading
- NIST — AI Risk Management Framework
- OWASP — API Security Top 10, 2023
- NIST — Guide to Computer Security Log Management (SP 800-92)
Strengthen your security with Next Defence
Connecting AI assistants to client files or finance systems changes the security boundary. Next Defence helps advisory practices evaluate prompt-injection exposure, reduce tool permissions and test that sensitive actions remain subject to enforceable human and application controls. Explore our AI Security & Governance.