What AI security engineers do at law firms
AI security engineers at law firms secure large language model applications that touch privileged client files, matter management systems and shared document workspaces. Their work is to find and fix prompt injection, excess agent permissions, data exposure through retrieval and weak controls on MCP servers before those features reach lawyers and clients.
In a typical week the engineer tests a document review assistant with hostile content embedded in uploaded files and emails, reviews which tools an agent can call and what each can read, changes or send, and checks that a retrieval pipeline enforces the same access rules as the matter system. They work with the firm's IT team on logging, with knowledge management on how matters are indexed, and with product owners on threat models before a feature launches.
Client confidentiality is the reason this role differs from the same role in other sectors. The SRA Code of Conduct for Firms requires firms to keep client affairs confidential, and ABA Formal Opinions 477R and 483 expect lawyers to secure electronic communication of client information and to monitor for and act on breaches. Ethical walls between matters make retrieval access control central: an assistant that summarizes one matter must never surface a document from a matter the user cannot see.
Firms usually hire for this role when they add an AI assistant to matter search, connect an agent to email or document management, or are asked by clients or co-counsel to show how AI tools handle their files. Remote AI security engineers for this work are available through Hire AI security engineers, and DeployOpen can quote the role on request through contact DeployOpen.
Security control areas this role covers in law firms
Law firm security teams protect privileged client files and matter systems. An AI security engineer works on the controls below where the firm has built AI features that touch that data.
Encryption and secure sharing of client files
Client email and document workspaces need encryption and access control, with extra precautions for sensitive matters. The AI security engineer checks which agents, plugins and MCP servers can reach those workspaces, and limits each tool to the files the task needs. Ask candidates how they would prove an agent cannot pull a privileged file into a summary sent to the wrong recipient.
Breach monitoring and client notice
Firms must monitor for compromise of client information, contain it, and find out what happened. For AI features, the engineer adds logging of prompts, tool calls and decisions so the firm can reconstruct what an agent accessed. Good candidates explain which logs they would need to answer a client's question about a specific matter.
Confidentiality and matter walls
Where a firm must keep information from crossing matters, the separation has to hold in the retrieval layer too. The engineer checks that a retrieval pipeline never returns a document the asking user lacks access to, because access rules that sit outside the vector store are a common source of exposure. Ask candidates to describe a retrieval test that would catch a document from a walled matter appearing in another matter's answer.
Baseline endpoint and account hygiene
Lawyer devices and accounts need patching, malware protection, access review and secure backups. For AI features, the engineer reviews the model and dependency supply chain, including plugins and MCP servers, and removes tools that a matter does not need. Strong candidates treat each new plugin as a new access path that needs the same review as a user account.
Regulations that shape the engineer's access and work
The table maps each regulation that applies to law firm data to what it asks of AI systems and the access the engineer needs to test those controls.
| Rule | Who it applies to | What it means for the engineer's work and access |
|---|---|---|
| ABA Formal Opinions 477R and 483 | Lawyers and law firms in the United States, as model ethics guidance that state bars adopt in their own form. | Firms must secure electronic communication of client information and monitor for breaches. The engineer needs read access to the AI tool's logs, prompt and tool-call records, and the document systems the AI reads, to test whether client data stays within matter limits and whether breaches would be detected. |
| SRA Code of Conduct for Firms and cyber security guidance | Law firms regulated by the SRA in England and Wales. | Firms must keep client affairs confidential and protect client information with access controls. The engineer needs test accounts with restricted matter access to check that an AI assistant cannot retrieve documents across matter walls, and review of the access control configuration for those systems. |
| UK GDPR | Firms processing personal data of people in the United Kingdom. | Firms must apply security measures chosen by risk and test them regularly, and must assess their AI providers' security guarantees. The engineer needs access to the AI system's data flows, vendor configuration and test data sets containing personal data, handled under the firm's controls. |
| General Data Protection Regulation (GDPR) | Firms that process personal data of people in the European Union. | Firms must keep personal data secure and notify breaches to the supervisory authority. The engineer needs visibility of where personal data enters prompts, retrieval indexes and logs, so the firm can determine what a breach would expose. |
| Cyber Essentials | United Kingdom organizations that want a certified baseline, including law firms the SRA points to it. | Covers firewalls, secure configuration, update management, user access control and malware protection, with cloud services in scope. The engineer needs admin-level review of the cloud services and endpoints the AI tools run on, to check the baseline is in place around them. |
| ISO/IEC 27001:2022 | Organizations of any size or sector that choose to run and certify an information security management system. | Requires controls chosen through risk assessment, with records kept. The engineer needs access to the AI risk register, threat models and control evidence, so the firm can show which AI controls were tested and what they found. |
Skills that matter for AI security work at law firms
Each skill below maps to a risk that AI features create inside a firm's document and matter systems. Test each one with a hands-on exercise, because candidates who have only read the OWASP guidance will describe the attacks without being able to run them.
Prompt injection testing
The engineer tests whether instructions hidden in documents, emails or web pages can make a model ignore its rules, reveal privileged matter content or take actions for an attacker. A strong candidate shows a working indirect injection against an application that reads outside documents, then explains what the model did and which control stopped or failed to stop it. Ask for a write-up that includes the exact document content used and the observed effect.
OWASP guidance for LLM applications
The engineer uses the OWASP guidance for large language model applications as a checklist for review, covering injection, unsafe output handling, excess agency and sensitive information disclosure. Ask the candidate to walk through one risk from the guidance on a system they describe, naming the controls they would test and the evidence that would show each control works.
MCP server and agent tool security
The engineer reviews the tools an agent can call and the Model Context Protocol (MCP) servers that expose them, checking tool descriptions, authentication and the scope of each permission. The main control is least privilege: each tool should read or change only what its task needs. In an interview, ask how the candidate would limit a file-search tool so it cannot reach a matter folder outside the user's scope.
Retrieval pipeline access control
The engineer checks whether a retrieval pipeline returns documents the asking user is not allowed to see, which is a common failure when access rules live in the document system but not in the vector store. A strong candidate explains where the permission check must run and how to test it with two users who hold different matter rights. Ask them to describe how they would prove that a restricted document never appears in an answer.
Logging of agent behavior
The engineer makes prompts, tool calls, retrieved sources and model decisions visible in logs, so the firm can investigate an incident and meet its duty to monitor for breaches. Good logging must also respect confidentiality, so the candidate should explain how they keep client content out of logs or restrict who can read them. Ask what they would log for one agent action and how long they would keep it.
Interview questions for AI security engineer candidates
Five situational questions for judging AI security engineer candidates on the risks specific to law firm document and matter systems, with the answers that separate strong candidates from weak ones.
| Question to ask | A strong answer covers | Warning sign |
|---|---|---|
| Walk me through how you would test a document summarizer that reads client-supplied files for indirect prompt injection. What would you put in the test document and what would you check for? | Plants instructions inside a document body, metadata, comments and tracked changes, then checks whether the model follows them. Checks whether the injected text can alter the summary, trigger a tool call, or pull content from another matter. Shows the injection with a working demonstration and records the exact input that caused it. | Treats prompt injection as a theoretical risk or only tests for obvious phrases like 'ignore previous instructions'. Does not mention documents from outside parties, such as opposing counsel or third-party data rooms, as a source of injected content. |
| An agent in our matter management tool can search, read, edit and send email. Which of these tools would you restrict first, and how would you decide? | Starts from what the task requires and removes send and external write permissions first. Separates read access from write access, and checks whether each tool can reach other matters or client workspaces. Proposes scoping permissions per matter and requiring human approval for outbound email. | Asks for broader access so the agent works better, or wants to restrict tools by name without checking what each can actually do. Does not consider that a single injected instruction could chain tool calls to send a client file externally. |
| A retrieval system returned a document from a matter the user is not staffed on. Walk me through how you would find out why and fix it. | Checks whether access control is applied before or after retrieval, and whether the vector store carries matter or ethical-wall metadata. Tests the same query as users with different matter access. Fixes the check where it is enforced, so access is filtered before ranking and before the model sees the text, and adds a regression test for the case. | Suggests fixing the prompt to tell the model not to reveal the document, which leaves the data in the model's context. Does not check whether the retrieval index itself respects matter boundaries. |
| Describe how you would log prompts, retrieved documents and tool calls for an AI feature that handles privileged client material, and how that log would support a breach investigation. | Logs enough to rebuild what the model saw and did, including which matter each retrieved document belonged to. Protects the logs themselves as confidential client records with restricted access and retention set by the firm. Ties logging to the firm's duty to monitor for breaches and to find out what was exposed. | Proposes logging full prompts and documents in plain text with no access restriction, or no logging at all for privacy reasons. Does not separate the investigation need from the confidentiality of the logged content. |
| Suppose an AI tool at the firm may have exposed client information to another client. What do you do in the first day, and who do you involve? | Preserves logs and affected configurations before changing anything. Scopes which matters and documents were exposed. Involves the firm's general counsel, risk and privacy leads early, since the firm must decide on client notice. Notes that the firm's regulator and data protection authority may need to be told, depending on jurisdiction and the data involved, and that the engineer supplies facts for that decision. The firm makes the decision. | Jumps straight to patching or switching the tool off without preserving evidence. Says the engineer should decide whether clients are told. Treats the incident as a technical fault with no client confidentiality or notification angle. |
| What would you check before approving a third-party MCP server or model plugin that connects the AI tool to the firm's document system? | Reviews the server's tool descriptions for instructions that could mislead the model, checks authentication and whether it can reach more data than the task needs, and confirms where the code and model come from. Asks whether the server logs requests and whether the firm's vendor due diligence covers it. | Approves on the basis that the vendor is well known. Checks only that the server runs, without reviewing what each tool can read or send. |
Common mistakes when hiring AI security engineers for law firms
- Treating AI features as outside existing confidentiality controls. Teams often launch an assistant over matter files through a new tool with its own access model, so client confidentiality rules that already apply to email and document systems stop being enforced. Ask candidates how they would bring an AI feature under the same encryption, access and logging controls used for client file workspaces, the controls the ABA's Formal Opinions 477R and 483 expect firms to apply to sensitive client information.
- Granting agents broad document access. An agent given read access to the whole document management system can return any file to any user who asks. Ask the candidate to show how they would reduce each tool's permissions to what the task needs and how they would test that a user without matter access cannot retrieve that matter's documents through the agent.
- Skipping matter-wall testing. Where a firm must keep confidential information from crossing matters, retrieval indexes and vector stores often sit outside the matter walls set up for file servers and teams. Hiring someone who only tests the chat interface misses this. Ask candidates how they would confirm that a retrieval pipeline respects the same separation between teams, servers and access rights the firm uses to keep matters apart.
- Failing to define who owns AI risk. Product, knowledge management, IT and the risk function may each assume another owns prompt injection, logging and client notice. When an incident happens, no one is ready to monitor, contain and support notice to clients as the ABA's Opinion 483 expects. Settle ownership in writing before the engineer starts, and ask candidates how they would work with product and engineering teams to threat model an AI feature before launch.
Questions law firms ask about hiring AI security engineers
What does an AI security engineer test first at a law firm?
Start with the AI features that read outside documents, such as document review assistants and matter search tools. Test for indirect prompt injection, where instructions hidden in a file or web page change what the assistant does, and confirm the effect with a working demonstration. Then check what the assistant can reach, because the damage from an injection depends on the tools and data behind it.
How does this role differ from an application security engineer?
An application security engineer focuses on the web and API code of a product. An AI security engineer focuses on how a language model, its retrieval pipeline and its agent tools handle untrusted input and permissions. Most law firms need both, and the AI role is the one that covers document-grounded assistants and agents. See Hire application security engineers for law firms for the neighboring role.
Can one engineer cover AI security for the whole firm?
One engineer can cover a small set of AI features, such as one document assistant and one matter search tool. A firm that runs several agents, connects tools to matter management and email, or builds its own retrieval pipelines usually needs more capacity, and it should scope the work in phases. Set the first target as the features that touch privileged client files.
What should the job description say for this role?
List the AI systems the engineer will test, such as the assistants, agents and MCP servers in use or planned, and name the document and matter systems they connect to. State that the engineer must show prompt injection and access control findings with evidence, and that the work includes reviewing tool permissions. Avoid generic phrases like AI expert, because they attract candidates who have not tested a live LLM application.
How does the CyberHire lab round judge a candidate?
Every engineer DeployOpen places completes a CyberHire lab for the role, and the client reviews the scored run before accepting the engineer. A hands-on round should test whether the candidate can find an indirect prompt injection in an application that reads outside documents and show its effect. It also checks whether the candidate can cut an agent's tool permissions to what the task needs, and whether they can fix a retrieval pipeline that returns a document the user should not see. The client reviews the task timeline, the command log and the score against the pass mark, along with blind scorecards from each reviewer. The client's own interviews should then test the candidate's grasp of firm confidentiality duties. See CyberHire hands-on assessments for how the lab works.
Who decides whether the AI security work meets the firm's ethics and data rules?
The firm's own lawyers and risk owners decide how ABA Formal Opinions 477R and 483, or the SRA Code of Conduct for Firms, apply to their practice. The engineer's job is to test the systems, show the exposure and fix the technical controls, such as access checks in retrieval and logging of agent decisions. Ask the firm's ethics counsel or adviser to set the requirements, and have the engineer report against them.
Does the firm need a report from a certification body for AI security?
There is no certification body that issues an AI security report under these rules, so the firm should not expect one for this role. If the firm also decides to pursue an ISO/IEC information security certification, an independent certification body issues that certificate. DeployOpen does not issue audit reports, attestations or certifications. For those, see ISO/IEC readiness with DeployOpen.
Hiring AI security engineers through DeployOpen
Global talent that saves cost. DeployOpen places an remote AI security engineer with your team. Before you accept, you review the engineer's scored CyberHire run.
Assessed in CyberHire
- Every engineer DeployOpen places completes a CyberHire lab for the role, and the client reviews the scored run before accepting the engineer
- The run shows a task timeline with the time, points, hints and wrong answers for each task
- The run shows a command log with every command, the time and the host it ran on, with pasted commands marked
Rates
- Rates are quoted for each role
- Ask for the quote with the role description, so it reflects the skills the role needs
Hours and terms
- Engineers work remotely
- Working hours are agreed for each role
- Contract terms are agreed for each role
How to start
- Send the role description, and DeployOpen replies with a quote for the role
- Hiring your own staff instead? CyberHire runs the same hands-on assessment for your candidates
Sources and further reading
- American Bar Association (ABA): ABA Formal Opinions 477R and 483 ↗
- Solicitors Regulation Authority (SRA): SRA Code of Conduct for Firms and cyber security guidance ↗
- Information Commissioner's Office (ICO): UK GDPR ↗
- European Union (Regulation (EU) 2016/679): General Data Protection Regulation ↗
- National Cyber Security Centre (NCSC): Cyber Essentials ↗
- International Organization for Standardization (ISO) and International Electrotechnical Commission (IEC): ISO/IEC 27001:2022 ↗

