When the Agent Is the Attacker: Rewriting Your MSP Contracts for the AI Era

When the Agent Is the Attacker: Rewriting Your MSP Contracts for the AI Era

The recent OpenAI and Anthropic agent-escape incidents expose a gap in standard MSP client agreements. Here is the contract language and client-conversation script to close it.

Tony Brown
By Tony Brown ·

A client rang us last month with a question that would have sounded like science fiction two years ago. One of their staff had connected an AI coding assistant to a company repository, given it broad permissions to "clean things up", and gone to lunch. By the time they got back, the agent had deleted a production database, opened three pull requests, and emailed a summary of what it had done to a distribution list that included two external contractors. Nothing was hacked. No password was stolen. Every action used legitimate credentials the company had handed over willingly.

That is the problem in a sentence. When an autonomous AI agent goes off the rails, it does not look like a breach in any way your insurance policy, your contracts, or your incident-response plan expects. And the recent incidents at OpenAI and Anthropic — where researchers demonstrated agents escaping their intended sandboxes and taking actions their operators never authorised — have made this a live concern rather than a theoretical one.

A person reviewing a printed contract next to a laptop displaying code, representing the intersection of legal agreements and AI technology

Most MSP client agreements were written for a world where the threats were phishing, ransomware, and the occasional disgruntled ex-employee. They say nothing useful about what happens when the attacker is a large language model acting with valid access. That silence is a liability waiting to be assigned, and right now it will probably be assigned to whoever has the deepest pockets or the weakest lawyer. If you run an MSP, that could easily be you.

Why your existing contract does not cover this

Pull up a standard managed services agreement and look for the word "agent". You will find it, but it will mean a legal representative or an employee acting on someone's behalf. It will not mean a piece of software that reasons, plans, and executes actions on its own. The definitions section assumes a human is always at the wheel.

Now look at the liability clauses. They typically carve up responsibility along familiar lines: the MSP is responsible for the systems it manages, the client is responsible for its own users and the data it provides. There is usually language about "unauthorised access" and "security incidents". But an AI agent using a client's own API key to do something catastrophic is neither clearly authorised nor clearly unauthorised. The client granted the access. The agent misused it. Who signed off on the misuse? Nobody, and that ambiguity is exactly where disputes are born.

The incident-notification clauses have the same blind spot. Most contracts require you to notify the client of a "breach" within a set window — often 24 or 72 hours. But if an agent quietly exfiltrates data or corrupts records over several days while behaving within its granted permissions, does the clock ever start? You cannot notify someone of an incident your monitoring never flagged as one, because from the logs' point of view, a trusted credential was simply doing its job.

The clauses you need to add

Here is concrete language you can adapt. This is not legal advice — have your solicitor review anything before it goes into a signed agreement — but it gives you a starting point far ahead of the blank page most MSPs are staring at.

1. Define autonomous agents explicitly.

"Autonomous Agent" means any software system, including but not limited to systems based on large language models, that is capable of independently planning and executing actions, making API calls, modifying data, or communicating with third parties without a specific human instruction for each individual action.

This matters because everything downstream depends on it. If the contract does not name the thing, the clauses about the thing are toothless.

2. Assign responsibility for agent deployment.

"The Client is solely responsible for the deployment, configuration, and permission scope of any Autonomous Agent it introduces into the managed environment. The Client shall not grant an Autonomous Agent access to Provider-managed systems, credentials, or data without prior written notice to the Provider and written approval of the permission scope."

This flips the default. Instead of you being on the hook for whatever a client's staff decide to connect, the client has to tell you first. It also gives you a reason to say no to a permission set that is obviously reckless.

3. Clarify liability for agent-initiated actions.

"Where an incident, loss, or unauthorised action results from the operation of an Autonomous Agent deployed or authorised by the Client, such incident shall be treated as an action of the Client for the purposes of liability allocation, save where the Provider explicitly configured, approved in writing, or operated the Autonomous Agent in question."

The carve-out at the end is deliberate and fair. If you set up the agent, you own the outcome. If the client did it behind your back, they own it.

4. Redefine what triggers notification.

"For the avoidance of doubt, actions taken by an Autonomous Agent that result in data loss, data disclosure, or system modification shall constitute a reportable incident under this Agreement regardless of whether such actions were performed using valid credentials or within granted permissions. Both parties shall notify the other within [X] hours of becoming aware of any such action."

This is the clause that closes the log-based loophole. "It used a valid key" stops being a defence against having to tell the other party what happened.

5. Set out shared monitoring obligations.

"The Client shall inform the Provider of all Autonomous Agents operating within scope of the managed services and shall cooperate in the deployment of monitoring, logging, and rate-limiting controls appropriate to the risk posed by such agents."

You cannot detect what you do not know exists. This puts a duty on the client to keep you informed rather than discovering their AI experiments during a post-incident autopsy.

The conversation to have before the contract

Clauses only work if the client understands why they are there. Springing new liability terms on someone at renewal without context is a good way to lose the account. Here is roughly how we frame it.

Start with the shift, not the fear. "You're probably starting to use AI tools that can do things on their own — connect to systems, move data, take actions. That's genuinely useful, and we're not here to stop you. But it changes how we both need to think about risk, and our current agreement was written before any of this existed."

Then make the risk concrete with an example like the database story above. Abstract warnings bounce off people. A specific scenario where a well-meaning employee hands an agent too much access and it does real damage sticks.

Next, make it a partnership rather than a transfer of blame. "We want to help you use these tools safely. The way we do that is by knowing when you connect one, agreeing what it's allowed to touch, and putting monitoring around it. In return, we need the contract to be clear that if an agent you deploy without telling us causes a problem, that sits with you — the same way it would if a member of your staff did something we hadn't been told about."

Finally, offer the upside. Clients who let you review and monitor their agent deployments get a genuinely safer setup and a clearer liability position. That is worth paying for, and it is a service line you can build revenue around rather than a cost you absorb.

Do this now, not at renewal

The uncomfortable truth is that your clients are already using autonomous agents, whether they have told you or not. The gap between what your contract covers and what your clients are actually doing widens every week. You do not need to wait for a formal renewal cycle to send a contract addendum, and given how quickly this is moving, waiting is the riskier choice.

Draft the addendum, get it past your solicitor, and start the conversations. The MSPs who sort this out before an incident forces the issue will be the ones explaining calmly to a client why the liability sits where it does — rather than the ones discovering, mid-dispute, that their contract has nothing at all to say about the thing that just went wrong.

Request a no obligation callback