Pay Now
Book a security review

NIST CSF 2.0 · BOTH DIRECTIONS

LLM Application Security Testing

If you are building something with a language model in it, you have added a component that can be talked into things. Traditional testing asks whether input can break the code. This asks whether input can persuade the system to ignore its instructions, reveal what it was given, or use a tool it was never meant to use on someone else's behalf.

AI SECURITY · SECURING ADOPTIONOWASP LLM Top 10Prompt injectionTool and agency abuse

The problem

Instructions and data arrive through the same channel

A language model reads everything it is given as one stream. Your system instructions, the user question, the document retrieved to answer it, the web page summarised along the way - all of it arrives as text, and the model has no reliable way to know which part is authority and which part is content.

That is the root of prompt injection, and it is not a bug that gets patched. Text placed inside a document your application will read can address the model directly, and the model may follow it, because following instructions in text is the entire function of the thing.

It gets sharper the more capable the application is. A model that only answers questions can be made to say something embarrassing. A model that can call tools, send messages or query a database can be made to do those things on behalf of whoever wrote the text it read.

What we test

The failures that actually appear

Structured against the OWASP Top 10 for LLM Applications, and weighted towards what we find in real builds.

TEST 01

Direct prompt injection

Can a user talk the application out of its instructions - into a different role, into revealing its configuration, into ignoring the limits it was given.

TEST 02

Indirect injection

Instructions hidden inside content the application retrieves - a document, an email, a web page. The more serious variant, because the attacker never interacts with your application at all.

TEST 03

Data leakage

Whether one user can reach another user's data through the model, whether retrieval respects permissions, and whether the system prompt or connected data can be extracted.

TEST 04

Excessive agency

What the application can actually do when persuaded. Send mail, write records, call an internal service, spend money. Almost always broader than the build team intended.

TEST 05

Output handling

Whether model output is trusted downstream - rendered as HTML, executed as code, passed into a query. A classic vulnerability arriving through a new door.

TEST 06

Cost and availability

Whether an attacker can drive your token spend to a level that hurts, which is a denial of service attack with an invoice attached.

Design that survives

What we look for in the architecture

Because the honest position is that prompt injection cannot be fully prevented, so the design has to limit what a successful injection achieves.

  • The model holds no permissions of its own - it acts as the user, so it can never reach data that user could not.
  • Any consequential action requires human confirmation, so persuading the model is not sufficient to cause the action.
  • Tool access is narrow and specific rather than general, and each tool is scoped to the smallest capability that works.
  • Retrieved content is treated as untrusted data throughout, never as instruction.
  • Output is escaped and validated before anything downstream renders or executes it.
  • Prompts, responses and tool calls are logged, so an investigation afterwards has something to read.

Be honest about the options

What each kind of testing covers

  Standard application test LLM-specific testing Both
Injection into code and queries Yes Partly Yes
Authentication and access control Yes At the data layer Yes
Prompt injection No Yes Yes
Tool and agency abuse No Yes Yes
Model output handling Partly Yes Yes
Right when No AI component AI bolted onto a tested app Anything customer-facing

Questions

What businesses ask about LLM Application Security Testing

Short answers to what gets asked most. If yours is not here, put it to us directly and you will get the same answer in writing.

We only use Copilot, we do not build anything. Does this apply?

Not this service. Using Microsoft AI products is a configuration and governance question - the relevant work is Copilot readiness and AI governance. This is for businesses building their own applications with a model inside them, whether for customers or for internal use.

Can prompt injection be fixed?

Not eliminated, and anyone claiming otherwise is overselling. Instructions and data share a channel, and filtering helps without closing it. What can be done is limiting the consequence - narrow permissions, confirmation before consequential actions, treating output as untrusted. The goal is that a successful injection achieves very little.

When should we test?

Before launch, and again after any change to the tools the model can call or the data it can reach. Those two changes alter the consequence of a successful injection more than anything else, and they are frequently made after launch without any security review.

Do you test the model itself?

Not the underlying foundation model - that belongs to its provider and their own testing. We test your application: how you prompt it, what data you connect, what tools you expose, how you handle its output, and what a determined user can make the whole system do.

How it is bought

Quoted per engagement, never per user

A penetration test or a vCISO day is not a per-user product, and any firm that prices it that way is selling you something else. We scope it, quote it, and the price does not move.

Book a security review

Find out exactly where you stand, before someone else does

We will measure what you have against NIST CSF 2.0, tell you the three things worth fixing first, and put it in writing. No charge, and no obligation to buy anything afterwards.