Definition

What is prompt injection?

It is an attack in which text given to an LLM makes it act or answer in a way its owner never planned.

Last reviewed against NCSC, OWASP GenAI Security Project and Microsoft Security Response Center. Sources

Two server towers, one on fire, linked by a cycle of arrows to a laptop

The answer

In one paragraph

OWASP defines prompt injection as inputs that change what an LLM does or says in unintended ways [2]. The result can be disclosure of sensitive data, harmful content, unauthorised access or manipulated decisions [2]. The NCSC calls it an application vulnerability, one that appears when developers put their own instructions and untrusted content into a single prompt [1].

Scales weighing a pile of paperwork against an alarm clock and coins

Why it works

One stream of text

An LLM reads its instructions and the material it is given as one sequence. The NCSC says current systems enforce no security boundary within it [1], so a sentence inside an email, a web page or a document can be taken as an order.

OWASP adds that the text need not be visible to a person, as long as the model can read it [2]. That is why a document can look ordinary to the staff member who opens it.

Related terms

Do not confuse these

Businessman with empty pockets imagining stacks of coins and banknotes

Jailbreaking

In OWASP's account jailbreaking is a close relative, an injection whose target is a model's safety rules [2].

Hand reaching for a lifebuoy above a pile of paperwork

SQL injection

It sounds similar but the NCSC says the two need different defences, because SQL injection has a proper cure and this does not. See the comparison [1].

Where it ranks

OWASP places prompt injection first, as LLM01, in the 2025 edition of its top risks for applications built on LLMs [2].

Tangled green cable between a round badge and an arrow tip

Next

Where to go

Learn the two forms, see some documented examples or go to the plan for what to do about it.

How CyPro can help

Need a hand planning for this?

Understanding the change is one job. Working out what it means for your systems, your suppliers and your roadmap is several more. CyPro's consultants can take any of them on.

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
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
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
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
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
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
Rocket launching from a cloud

Plan ahead

Want a plan for your organisation?

Prompt injection only shows up when someone tries it against your own tools. Penetration testing can probe the AI features you run or build, to see what a hostile instruction could reach.