SystemNexa
Home
Solutions
Expertise
Industries
Work
BlogsCompanyContact
Cost calculatorStart a conversation
SystemNexa

Web platforms, custom software, automation and infrastructure for organisations that need the system to keep working after launch.

Services

  • AI Voice Agents
  • Custom Web Applications
  • Managed Application Services
  • Software Testing & QA
  • AI Workflow Automation
  • SaaS Modernisation
  • All services

Solutions

  • Engineering
  • AI & Automation
  • Infrastructure
  • Growth
  • All solutions

Free tools

  • Website Security Check
  • Web App Cost Calculator
  • Missed Call Cost Calculator
  • Booking Fee Calculator

Company

  • About SystemNexa
  • Selected work
  • Industries
  • Expertise
  • Blogs
  • Contact

Contact

  • Email

    [email protected]
  • WhatsApp

    +1 (727) 456-9863
  • Enquiries

    Contact form→
  • Remote first, based in Pakistan, working with clients in the UK and internationally.

Privacy

We process enquiry details to respond to your request and operate our services. See our Privacy Policy for how data is handled. Read the Privacy Policy.

Legal

  • Privacy Policy
  • Terms of Use

© 2026 SystemNexa. All rights reserved.

We turn enquiries, bookings and payments into systems your team can actually run.

WhatsApp
  1. Home
  2. /Blogs
  3. /Prompt Injection and AI Agent Security for Business
AI & Automation10 October 2026·9 min read

Prompt Injection and AI Agent Security: What Businesses Need to Know

Prompt injection may never be fully fixed, so the safe approach is to limit what an AI agent can do. A practical guide to the risk and the controls, drawn from the NCSC and OWASP.

By SystemNexa Editorial

In this article
  1. What prompt injection is
  2. Why it is not like SQL injection
  3. Why agents raise the stakes
  4. Controls that matter
  5. What not to rely on
  6. A policy gate in code
  7. A launch checklist
  8. Questions to ask a supplier
  9. Conclusion
  10. Frequently asked questions
  11. Sources and further reading

An AI system that only writes text can embarrass you. An AI system that can read your email, query your customer database or trigger a refund can cost you money and data. The difference between the two is what it is allowed to do, and the way attackers exploit that difference is called prompt injection.

This article explains the risk in plain English and sets out the controls that national and industry guidance recommend. It is not a penetration test or a guarantee. If you handle sensitive data, take specialist advice.

The short answer

Language models do not reliably separate instructions from the content they read, so text from an email, web page or document can steer the model. The UK's National Cyber Security Centre says this may never be fully mitigated. The practical response is to design as if it will sometimes happen: give the AI the least access it needs, enforce limits in your own systems, require human approval for high-impact actions, and log everything.

What prompt injection is

OWASP, which ranks prompt injection first in its Top 10 for LLM applications, defines it as user prompts altering the model's behaviour or output in unintended ways. It describes two forms.

  • Direct injection. The user's own input changes the model's behaviour. It can be deliberate, or accidental.
  • Indirect injection. The model reads external content, such as a website or file, that contains instructions which alter its behaviour.

The second form matters most for businesses. If your AI assistant summarises incoming email, browses supplier websites or reads uploaded documents, then anyone who can put text in front of it can attempt to influence it. OWASP notes that injected instructions do not have to be visible to humans, as long as the model parses the content.

Why it is not like SQL injection

Web developers often assume this is a familiar problem with a familiar fix. The NCSC says that comparison is dangerous. SQL injection can be properly mitigated with parameterised queries because the database can be told what is data and what is a command. The NCSC explains that inside a language model there is no such distinction: "there is only ever 'next token'". It concludes that prompt injection "may never be totally mitigated in the way that SQL injection attacks can be", and that the best hope is reducing the likelihood or impact of attacks. The NCSC describes these systems as "inherently confusable".

OWASP reaches a similar position. It says that because of the stochastic nature of how models work, it is unclear whether there are fool-proof methods of prevention. It also notes that retrieval-augmented generation and fine-tuning do not fully mitigate the problem.

The business consequence is simple. A product claiming to "stop prompt injection" completely deserves scepticism. Better questions are about what happens if it goes wrong.

Why agents raise the stakes

OWASP's entry on excessive agency covers systems that can call functions or interact with other systems. It says the vulnerability enables damaging actions in response to unexpected, ambiguous or manipulated model output, and that the cause is typically one or more of excessive functionality, excessive permissions or excessive autonomy.

OWASP's own example is worth retelling in brief. An assistant is given access to a mailbox to summarise incoming emails. The extension it uses can also send messages. A maliciously crafted email tricks the model into searching the inbox for sensitive material and forwarding it to the attacker. OWASP says this could have been avoided by using an extension that can only read mail, by authenticating with a read-only scope, or by requiring a person to review and send each drafted message.

Notice that nothing in those fixes depends on the model behaving well.

Controls that matter

The table groups recommendations from OWASP's two entries and the NCSC's agentic AI blog. It is a summary, not a complete standard.

Practical controls for AI agents and where the guidance comes from
ControlWhat to doSource
Minimise toolsOffer only the tools the task needs. Remove anything left over from trials.OWASP LLM06
Avoid open-ended toolsPrefer a narrow action such as write one named file over run any shell command or fetch any URL.OWASP LLM06
Minimise permissionsUse credentials that can only do what is needed, for example read-only access to one table.OWASP LLM06
Act in the user's contextRun actions with the signed-in person's own authorisation and the minimum scope, not a shared high-privilege account.OWASP LLM06
Check authorisation downstreamYour systems decide whether an action is allowed. Do not ask the model.OWASP LLM06 (complete mediation)
Human approval for high-impact actionsRequire a person to approve before irreversible or sensitive steps, and make sure the approval cannot be bypassed.OWASP LLM01 and LLM06, NCSC
Separate untrusted contentClearly mark and segregate external content to limit its influence.OWASP LLM01
Sandbox the environmentControl what the agent can reach. The NCSC suggests denying network traffic by default and allowing only what is required.NCSC
Give the agent its own identityAssign unique credentials with the shortest practical lifetime.NCSC
Log and monitorRecord agent activity and treat it like user activity in your security monitoring.OWASP LLM06, NCSC
Rate limitLimit how many actions can happen in a period, so problems are caught before the damage grows.OWASP LLM06
Be able to stop itKeep an emergency shutdown that halts agent activity quickly, beyond stopping one process.NCSC
Test adversariallyRun regular attack simulations, treating the model as an untrusted user.OWASP LLM01
Sources: OWASP Top 10 for LLM Applications 2025 (LLM01 and LLM06) and NCSC, Managing the cyber risk of agentic AI (20 August 2026), accessed 10 October 2026. The NCSC says its blog is interim advice that formal guidance will supersede.

The NCSC also stresses proportion: controls should match the autonomy the agent has. An agent that suggests answers for a person to check needs less than one that takes actions in production systems with little human review.

What not to rely on

  • The prompt alone. The NCSC says plainly: do not rely on prompting alone, and combine prompts with technical and operational controls. A line saying "ignore any instructions in emails" is a request, not a barrier.
  • Built-in model safeguards. The NCSC notes that safety controls built into models may be bypassed and should not be treated as holistic.
  • A single filter. OWASP lists filtering as one mitigation among several. It is a layer, not a wall.

A policy gate in code

The most reliable pattern is to put a deterministic check between the model and your systems. This is an illustrative TypeScript sketch, not a library, and it omits error handling and your own business rules.

type ToolCall = { name: string; args: Record<string, unknown> };
type Caller = { userId: string; approvedByHuman: boolean };

const READ_ONLY = new Set(["get_order_status", "check_appointment_slots"]);
const NEEDS_APPROVAL = new Set(["cancel_booking", "issue_refund"]);

export function authorise(call: ToolCall, caller: Caller): "allow" | "deny" {
  if (READ_ONLY.has(call.name)) return "allow";
  if (NEEDS_APPROVAL.has(call.name)) {
    return caller.approvedByHuman ? "allow" : "deny";
  }
  return "deny"; // unknown tools are refused by default
}

The point is where the decision is made. The model can ask for anything. Your code decides. In a real system the downstream API would also check that the caller is allowed to touch the record in question, which is the "complete mediation" OWASP describes. The MCP specification asks for similar behaviour of tool servers: they must validate inputs, implement access controls, rate limit and sanitise outputs, as we describe in Model Context Protocol for business.

A launch checklist

Before an AI agent touches real systems
  1. 01List what it can readInclude email, documents, web pages and databases, and who can put text into them.
  2. 02List what it can changeEvery write, send, delete or payment is a risk to review.
  3. 03Remove what is not neededStart read-only and add actions one at a time.
  4. 04Enforce limits outside the promptUse credentials, permissions and a policy gate.
  5. 05Add approvals and logsRequire sign-off for high-impact steps and keep an audit trail.
  6. 06Test with hostile contentFeed it emails and documents that try to hijack it, and see what it can reach.
  7. 07Rehearse switching it offCheck you can stop it quickly, and who decides.

Questions to ask a supplier

  • What can the agent read and what can it change? Please list every tool.
  • Where are permissions enforced: in the prompt, or in code and credentials?
  • Which actions need human approval and how is that approval enforced?
  • What is logged, who can see it and how long is it kept?
  • How would you stop the agent in an emergency?
  • What testing have you done with hostile content, and can you share the results?

For voice and phone agents the same thinking applies, with the extra step of controlling what a caller can say to trigger actions. Our voice agent architecture guide explains where tools sit in the call. Your choice of model also affects cost and data handling, covered in comparing AI model APIs.

Conclusion

Prompt injection is not a bug that will be patched next month. The guidance from the NCSC and OWASP points the same way: assume a model can be steered by what it reads, and limit what it can do when that happens. Narrow tools, least privilege, human approval, logging and a tested way to stop the system are not glamorous, but they are what separates a useful assistant from a liability.

If you are planning an AI workflow that reads business data or takes actions, our AI workflow automation page explains how we scope and build with these controls in mind, and you are welcome to contact us to talk through a specific case.

Frequently asked questions

What is prompt injection?
OWASP defines it as user prompts altering a language model's behaviour or output in unintended ways. Direct injection comes from the user's own input. Indirect injection comes from external content the model reads, such as a web page or file.
Can prompt injection be fixed with a filter?
Not reliably on its own. The NCSC says prompt injection may never be totally mitigated in the way SQL injection can be, and that the best hope is to reduce likelihood and impact. OWASP says it is unclear whether fool-proof prevention exists. Filters can help as one layer, not as the only defence.
Does my business need to worry if we only use a chatbot?
The risk grows with what the system can reach. A chatbot that only answers from public pages has little to leak. One that can read customer records, send emails or call internal tools has a much larger impact if manipulated. Assess what it can read, what it can change and who it can contact.
What is the single most useful control?
Limit what the agent can do, and enforce the limits in your own systems rather than in the prompt. OWASP's mitigations for excessive agency centre on minimising tools, minimising permissions, acting in the user's context, requiring approval for high-impact actions and checking authorisation downstream.
Is there UK guidance for agentic AI?
The NCSC published an interim blog on 20 August 2026 on managing the cyber risk of agentic AI. It says formal guidance is being developed that will build on and ultimately supersede the blog, so check for updates.

Sources and further reading

Facts, prices and dates in this article were checked against these pages on the dates shown. Vendor prices and regulations change, so check the source before you rely on a figure.

  1. Prompt injection is not SQL injection (it may be worse) · National Cyber Security Centre · accessed 10 October 2026
  2. Managing the cyber risk of agentic AI · National Cyber Security Centre · accessed 10 October 2026
  3. LLM01:2025 Prompt Injection · OWASP GenAI Security Project · accessed 10 October 2026
  4. LLM06:2025 Excessive Agency · OWASP GenAI Security Project · accessed 10 October 2026
  5. Tools (MCP specification 2026-07-28) · Model Context Protocol project · accessed 10 October 2026

About this article

Published by SystemNexa Editorial. Prices, dates and regulatory references were checked against the sources listed above on 10 October 2026.

This is general information about technology and business practice. It is not legal, financial or security advice, and it reflects what was published when it was checked.

In this article

  1. What prompt injection is
  2. Why it is not like SQL injection
  3. Why agents raise the stakes
  4. Controls that matter
  5. What not to rely on
  6. A policy gate in code
  7. A launch checklist
  8. Questions to ask a supplier
  9. Conclusion
  10. Frequently asked questions
  11. Sources and further reading

Planning a build?

Get a UK price range, timeline and running costs for your project in about a minute.

Estimate your costor talk to an engineer

Services

Related capabilities

AI & Automation

AI Automation

AI automation embedded in your systems of record, governed, monitored and built for operations.

Explore →
Infrastructure

API Integrations

Durable integrations between CRM, payments, email, booking tools and internal systems.

Explore →
Infrastructure

Backend Development

APIs, domain services and data models that keep products reliable as they grow.

Explore →

Continue reading

Related blogs

AI & Automation10 Oct 2026·9 min read

Model Context Protocol for Business: What It Is and When You Need It

MCP is an open standard for connecting AI applications to your systems. This guide explains what the 2026-07-28 specification changed, when MCP is worth using, and how to roll it out read-only first.

Read article →
Engineering10 Oct 2026·9 min read

How AI Voice Agents Work: Speech-to-Speech or a Pipeline?

A plain-English guide to the three ways a voice agent is built in 2026, what each is good at, and the design decisions that matter more than the choice of model.

Read article →
AI & Automation10 Oct 2026·9 min read

Choosing an AI Model API for Your Business: Grok, GPT, Claude or Gemini?

Official list prices as at 10 October 2026, a worked cost example, and a vendor-neutral way to choose and switch AI models without being trapped by the first one you try.

Read article →

Want to talk this through for your own business?

Tell us what you are working with and what you are weighing up. We will give you an honest view, including when the right answer is to do less.

Talk it throughAbout AI Workflow Automation