Attacks on AI

Prompt injection defence: designing for a confusable tool

Prompt injection is the leading risk to LLM applications. The NCSC's advice is to stop hoping for a complete fix and to design so a fooled tool has little it can misuse.

Last reviewed against NCSC (UK), Anthropic and UK Government (DSIT and Home Office). Sources

Green shield with a tick above a phone showing a fingerprint

The problem

Why it is not SQL injection

OWASP puts prompt injection first in its 2025 list of risks for LLM applications [9]. The NCSC blog of 8 December 2025 argues it should not be treated like SQL injection, because SQL injection can be fully prevented with parameterised queries while prompt injection probably cannot [2]. In the NCSC's words, LLMs do not enforce a security boundary between instructions and data inside a prompt [2].

Its suggested framing is an "inherently confusable deputy": a tool with real access that can be talked into using it for the wrong person [2].

Four measures

What the NCSC advises

Brick firewall with a flame in front of it

Make people aware

Developers should know prompt injection exists, and security teams and risk owners should accept it as a residual risk that no product removes [2].

Factory site linked by wireless to a phone with a fingerprint and shield

Design for failure

Use deterministic, non-LLM safeguards to limit what the system can do, and lower the LLM's privileges to match the least trusted source it processes [2].

Tall blue server rack with glowing status lights

Make attacks harder

Separate data from instructions where you can, but a blocklist of known attack wording is easy to get around and should not be your main protection [2].

Wi-Fi signal above a hexagonal padlock

Watch for probing

Keep records of what goes in and out, which tools ran and what APIs were called. Calls that fail can be a sign that someone is testing the system [2].

A test

Walk through one tool

Take any assistant you run and answer these in order:

  1. 1

    What outside content does it read: email, web pages, uploaded files?
  2. 2

    What can it do with that content in view: send messages, change records, call APIs?
  3. 3

    Which of those actions would you refuse a stranger?
  4. 4

    Remove or require human approval for each one in answer three.

Be sceptical of promises

The NCSC says to beware any product that claims it can stop prompt injection [2]. If a use case cannot tolerate the residual risk, an LLM may not suit it [2].

More on using AI tools safely at work and whether the problem can be fixed.

How CyPro can help

Need a hand with any of this?

Patching is one job. Keeping a vulnerable system safe until it is patched, and proving it, is several more. CyPro's consultants, testers and SOC analysts can take any of them off your plate.

Scanner checking internet-facing systems for weaknesses

Vulnerability scanning

Find every internet-facing system you run, including the forgotten ones, and see which are still on a vulnerable build.

See the scanning service
Cyber security consultants planning hardening work

Hardening and segmentation

Our consultants put the controls in place that limit the damage when something is missed: firewall rules, network isolation and tighter admin access.

More on cypro.co.uk
Security analysts monitoring systems around the clock

24/7 security monitoring

Our SOC analysts watch your systems day and night for the signs of an attack in progress: unexpected processes, new outbound connections, logins that do not fit.

More on cypro.co.uk
Penetration tester probing an application for weaknesses

Penetration testing

A focused test of your systems and the controls around them, so you know they hold before an attacker finds out for you.

More on cypro.co.uk
Incident responders containing an attack

Incident response

If you may already be compromised, our responders contain it, preserve the evidence, find out what was touched and get you running again safely.

More on cypro.co.uk
Security lead advising a board

Fractional CISO for the board

A senior security lead who advises the board on what to fix first, what to accept and what to tell customers, and owns the decision record.

More on cypro.co.uk
Rocket launching from a cloud

Know your exposure

Not sure you are protected?

Many of the risks here sit in how an organisation uses AI: what tools staff run, what they can reach and who owns the risk. AI governance work sets that out so controls match the tools in use.