AI Prompt Injection: 9 Smart Defences for MSPs

Every managed service provider now has at least one AI assistant wired into something that matters — a ticketing queue, a mailbox, a documentation search, a scripting console. AI prompt injection is the flaw that makes all of those connections riskier than they look, and unlike most vulnerabilities it is not waiting on a patch. It is a structural property of how language models read text, which is why the UK’s National Cyber Security Centre has gone out of its way to say it is not the new SQL injection — it is a harder problem than that.

That distinction matters commercially, not just technically. If AI prompt injection were a bug, you would wait for a vendor fix and move on. Because it is a design characteristic, defending against it is ongoing operational work: scoping tool permissions, reviewing agent actions, monitoring inputs and outputs, and re-checking the whole lot every time a vendor ships a new feature. That is sustained engineering effort, and most MSPs have not budgeted a single hour of it.

This guide sets out what AI prompt injection is, where it reaches into a managed estate, nine defences that hold up in practice, and how to staff the work without pulling your senior engineers off client tickets.

Wooden Trojan horse monument illustrating how AI prompt injection smuggles hidden instructions past trusted systems
The oldest trick in security, restated for language models: hostile instructions arrive inside content the system was told to trust. Photo: “Trojan horse Çanakkale” by Ross Burgess, licensed CC BY-SA 3.0, via Wikimedia Commons.

What AI prompt injection actually is

A language model does not distinguish between the instructions you gave it and the content it is reading. As the NCSC puts it, there is “no distinction made between ‘data’ or ‘instructions’; there is only ever ‘next token’.” Everything in the context window competes on equal terms. AI prompt injection is simply the act of putting text somewhere the model will read it, phrased so the model treats it as a new instruction.

Compare that with SQL injection, where a parameterised query draws an absolute architectural line between code and input. No equivalent line exists inside a model. That is why the NCSC describes language models as inherently confusable and warns that the risk can be reduced but not eliminated. Any vendor promising to stop AI prompt injection outright should be treated with suspicion; the credible ones talk about reducing likelihood and limiting blast radius.

Two shapes matter day to day. Direct AI prompt injection is a user typing something adversarial into the assistant themselves — annoying, but bounded by what that user could already do. Indirect AI prompt injection is the dangerous one: the hostile instructions are hidden in content the assistant retrieves on someone else’s behalf. An email body. A PDF attachment. A knowledge base article. A web page the agent was asked to summarise. The user never sees the payload, and the model acts on it anyway.

Why AI prompt injection is an MSP problem

An in-house IT team defending one tenant has a contained problem. An MSP has a structurally worse one, for three reasons.

First, privilege. Your automation accounts are deliberately powerful: they reset passwords, create mailboxes, push scripts, read across every client tenant. When an AI agent inherits that access, a successful AI prompt injection does not get attacker-level privilege — it gets your privilege. The NCSC’s design guidance is blunt about the correct model: when a system processes information from a party, its privileges should drop to those of that party. Almost no MSP AI deployment is built that way by default.

Second, untrusted input is the job. A service desk exists to receive text from strangers. Every inbound ticket, every forwarded email, every client-supplied document is untrusted content heading straight for the tool you have just connected an AI assistant to. The AI prompt injection surface is not an edge case for an MSP — it is the core workflow.

Third, multi-tenancy turns one incident into many. A single compromised automation path can reach across a client base. That converts a contained embarrassment into a breach notification exercise spanning dozens of organisations, which is the scenario that ends contracts.

Where the untrusted text actually gets in

Before defending anything, inventory the paths. In a typical managed estate the realistic entry points are:

  • Ticket bodies and email. Anyone with your support address can put text in front of your assistant.
  • Attachments and documents. Instructions hidden in a PDF, spreadsheet or Word file that a summarisation feature happily reads.
  • Retrieved web content. Any agent permitted to browse is reading pages you do not control.
  • Knowledge bases and documentation. If clients or former staff can edit articles, they can plant instructions that persist — stored injection, and the hardest to notice.
  • Monitoring and log data. Alert text and device-supplied fields often contain attacker-controllable strings.
  • Connected SaaS via integrations. Calendar invites, CRM notes, shared files — each connector widens the AI prompt injection surface.

Write this list down per client. An estate where nobody can say which AI features are switched on cannot be defended, and “we don’t use AI” is rarely true once you check what your RMM, PSA and productivity suite quietly enabled at their last release.

Nine smart defences against AI prompt injection

None of these is a silver bullet, and anyone selling one is mistaken. Together they reduce both the chance of a successful AI prompt injection and what it can reach.

1. Inventory every AI feature and connector

Per tenant, list which assistants are enabled, what data they read, which tools they can invoke and who turned them on. Treat vendor-enabled-by-default features as changes that need reviewing, not gifts.

2. Drop privilege to the level of the data

Follow the NCSC principle literally. An agent that has just read an inbound ticket should be operating with the privileges of an anonymous emailer, not of your global admin service account. In practice this means separate, narrowly scoped identities per workflow rather than one omnipotent automation account.

3. Put a deterministic gate in front of consequential actions

The model can be talked into anything; the code around it cannot. Password resets, permission grants, outbound mail, script execution and data exports should pass through conventional logic that checks authorisation independently of what the model concluded. This is the single highest-value control against AI prompt injection.

4. Require human approval for irreversible steps

Draft, don’t send. Propose, don’t execute. Keeping a person on the approval step for anything destructive, financial or identity-related costs a few seconds and removes the worst outcomes entirely.

5. Separate retrieval from action

Agents that both read untrusted content and hold powerful tools are where AI prompt injection does real damage. Split them: one component summarises, another acts on structured, validated output. The join between them is where you enforce rules.

6. Sandbox tools and egress

Constrain what connected tools can reach. Allow-list outbound destinations so a successful AI prompt injection cannot quietly post client data to an attacker’s endpoint. Exfiltration usually needs a network path — remove it.

7. Log full inputs, outputs and tool calls

You cannot investigate what you did not record. Capture the retrieved context, the model’s output and every tool invocation, and retain it long enough to be useful. Without this, an AI prompt injection incident is unreconstructable.

8. Monitor for the patterns, accepting you will miss some

Filtering helps at the margin and fails as a primary control. Alert on the signals that matter operationally — unusual tool-call sequences, agents touching tenants they have no business in, sudden volume changes — rather than trying to pattern-match hostile phrasing.

9. Re-test after every vendor update

AI features change under you. A monthly regression pass against your own AI prompt injection test cases catches the release that quietly widened an agent’s permissions. Keep the test cases in version control and run them like any other regression suite.

The human review layer AI prompt injection still needs

Every control above assumes somebody notices. That is the part MSPs consistently under-resource. Reviewing agent transcripts, triaging anomalous tool calls, updating the test cases and chasing each vendor change is not a project with an end date — it is a standing operational duty, closer to patch management than to a migration.

It also needs judgement rather than seniority. Deciding whether an agent’s action sequence looks wrong is pattern recognition you build in weeks, not a specialism you hire for over months. What it genuinely requires is consistency: the same people doing the same review often enough to know what normal looks like in each tenant. Handing AI prompt injection review to whoever is least busy guarantees nobody develops that instinct.

The failure mode is predictable. Controls get implemented during a burst of enthusiasm, nobody owns the review, the logs accumulate unread, and six months later a vendor update has re-broadened permissions nobody re-checked. The control set was never the hard part.

What AI prompt injection defence costs in people

Be honest about the shape of the work. Across a multi-tenant estate, the recurring load is roughly: a monthly inventory pass per client, a weekly review of agent transcripts and anomalous tool calls, a regression run after each significant vendor release, and ad-hoc investigation when something looks off. It is steady, evidence-generating, moderately technical work — and it is exactly the sort of thing that gets deferred indefinitely when it sits with engineers already carrying an escalation queue.

This is where dedicated outstaffed capacity makes more sense than another local senior hire. OutsourceZA places skilled South African IT and security professionals with UK and EU teams at roughly 40–60% of equivalent local cost, on a timezone that overlaps the full UK working day rather than handing work to a night shift. For AI prompt injection review specifically, that overlap matters: when an agent does something strange at 11am in London, the person investigating it should be awake, in the same tooling and able to ask your service delivery manager a question immediately.

The outstaffing model also fits the cadence. You are not hiring for a three-month project; you are adding a named engineer to the bench who owns AI prompt injection hygiene alongside adjacent continuous work — access reviews, log retention, firmware cycles. That is a far easier role to fill and retain than a scarce, expensive AI security specialist, and it delivers the thing that actually reduces risk: somebody looking, consistently. You can see the kinds of engineers and analysts we place, or talk to us about scoping the role.

A 90-day AI prompt injection hardening plan

Days 1–30 — see it. Build the per-tenant inventory of AI features, connectors and the identities they use. Turn off anything nobody can justify. Enable logging of inputs, outputs and tool calls wherever the platform allows, and confirm retention is long enough to investigate with. Name an owner for AI prompt injection work; without a name, nothing below happens.

Days 31–60 — contain it. Re-scope automation identities so no agent holds estate-wide privilege. Put deterministic checks in front of password resets, permission changes, outbound mail, script execution and data export. Introduce human approval for irreversible actions. Allow-list egress from agent tooling.

Days 61–90 — keep it. Write a dozen AI prompt injection test cases reflecting your real workflows — a ticket containing hidden instructions, a document that tries to redirect a summarisation, a knowledge base article with embedded directives. Run them, fix what fails, and schedule the run monthly. Put agent transcript review on a weekly rota. Add “AI features changed?” to your vendor release review.

Ninety days gets you from unknown exposure to a documented, monitored position. It does not eliminate AI prompt injection, because nothing does — but it moves you from hoping to knowing, with evidence you can show a client or an auditor.

AI prompt injection FAQs

Can AI prompt injection be fixed permanently?

No. Because language models do not separate instructions from data, the NCSC’s position is that the risk can be reduced but not eliminated. Plan for containment and detection rather than prevention, and be sceptical of products claiming otherwise.

Is a content filter enough to block it?

No. Filters catch known phrasings and are routinely bypassed by rewording, encoding or splitting a payload across sources. Use filtering as one layer, and rely on privilege reduction and deterministic checks as your real controls.

We only use vendor-built AI features, not our own agents. Are we exposed?

Yes. Vendor-built assistants inside your RMM, PSA or productivity suite still read untrusted content and still hold real permissions. The inventory step matters most for exactly these features, because they are enabled by release notes rather than by a decision you made.

How would we even know an injection succeeded?

Through logs and anomaly review, which is why capturing full inputs, outputs and tool calls comes early in the plan. The signal is usually behavioural — an agent taking an action sequence that does not match the ticket it was working on.

Does defending against this need a dedicated AI security specialist?

Usually not. Most of the work is disciplined operational review: inventory, scoping, log checks, regression runs. A competent engineer with time and consistency delivers more than an expensive specialist who reviews it quarterly, which is why an outstaffed engineer on UK-overlapping hours suits the role well.

Where this leaves you

AI prompt injection is not going to be patched away, and the tools carrying the risk are already switched on across most managed estates. The realistic goal is a smaller blast radius and a faster answer to “did something happen?” — achieved through least privilege, deterministic gates, real logging and somebody whose job includes looking at it.

That last element is the one MSPs most often skip, and it is the one that makes the other eight defences worth having. If you would rather add that capacity than defer the work another quarter, learn more about how OutsourceZA works — MSP-ready South African engineers, UK and EU timezone fit, and the flexibility to scale the bench as the estate grows.

Book your consultation

Book a chat with Niel or Johan so we can understand exactly what (and who) you need for your business to succeed. It’s also a great time to ask any questions you may have. See you soon!