Prompt injection testing

Prompt injection is the top risk in the OWASP Top 10 for LLM Applications 2026. We test whether attackers can override your AI's instructions through what users type, what documents say or what callers speak, and we show you how to contain it.

Diagram of layered security controls around an AI system

How prompt injection works

A language model reads its instructions and the content it is given in the same stream of text. It has no reliable way to tell your instructions apart from instructions hidden in that content. An attacker who can put text in front of the model can try to change what it does.

Direct injection comes from the user: a chat message or caller that says to ignore previous instructions, or that builds a role-play to get around the rules. Indirect injection is more dangerous. The instructions sit in content the model reads on someone's behalf, such as an email, a PDF, a web page, a calendar invite, a support ticket or a document in the knowledge base. The user may never see them.

The damage depends on what the model can reach. A chatbot with no data and no tools can be embarrassed. An agent with access to email, files and customer records can be turned against the business.

Attack methods we use

We build a test set for your application from public attack techniques and from your own data, tools and business rules. These are the main families.

  • Instruction override and role-play: requests to ignore rules, act as another system or enter a special mode
  • Multi-turn manipulation: building context over several messages until the model drops its guard
  • Indirect injection: hidden instructions in emails, documents, web pages, spreadsheets, image text and file metadata fed to the system
  • Retrieval poisoning: planting documents in the knowledge base that change answers for other users
  • Obfuscation: encoding, translation into other languages, unusual characters and split instructions that slip past filters
  • Tool hijacking: instructions that make an agent call a tool, change parameters or send data to an outside address
  • Data exfiltration: getting the model to place sensitive data in links, images or messages that leave your environment
  • Voice injection: spoken instructions, impersonation and background audio aimed at phone agents

What counts as a finding

Getting a model to say something odd is easy and usually harmless. We focus on injections with business impact: data the attacker should not see, actions the attacker should not trigger, commitments the business would not make and controls the attacker can switch off.

Each finding is rated by impact and by how reliably it works. Models behave probabilistically, so we repeat successful attacks and record a success rate. An attack that works one time in twenty against an agent with payment access is still serious.

Findings map to LLM01 Prompt Injection and to the categories where the injection leads, such as LLM02 Sensitive Information Disclosure, LLM03 Excessive Agency, LLM08 Hidden Context Exposure or LLM10 Improper Output Handling.

Fixes that hold up

No filter or system prompt stops prompt injection completely, and vendors who claim otherwise are overselling. Effective defence limits what a successful injection can do. Our fix plans draw on these controls, ranked for your system.

  • Give the model only the data and tools its task requires
  • Keep untrusted content separate from instructions and mark it as data
  • Require human approval for sending, paying, deleting and changing permissions
  • Stop the model from creating outbound links and images that carry dynamic data
  • Check tool calls against allowed actions and parameters outside the model
  • Filter and monitor inputs and outputs as an extra layer, with alerts
  • Log everything so an injection can be traced afterward

Why it matters more in 2026

Gartner predicts that by 2028, 25% of enterprise generative AI applications will have at least five minor security incidents a year, up from 9% in 2025, and it names content-injection attacks and MCP-based agents as drivers. Its advice is to treat any use case combining sensitive data, untrusted content and external communication as a no-go zone.

More agents now connect to email, browsers and business systems through MCP and similar tools. Each connection is a new place for injected instructions to enter and a new action they can trigger. Testing has to cover the whole chain from the content source to the final action, which a chat-window test alone will miss.

Testing retrieval and knowledge bases

Applications that answer from your documents, often called retrieval-augmented generation or RAG, add their own injection path. Anyone who can add or edit a document the system indexes can plant instructions that fire when another user asks a related question.

We test who can write to each indexed source, whether access controls carry through to search results, and whether a planted document can change answers, leak other documents or trigger tools. Fixes usually involve tighter write access, per-user filtering at retrieval time and treating retrieved text strictly as data.

Deliverables and retest

You receive a report with each finding, its OWASP mapping, the exact payload, the model's response, its success rate and its impact. A fix plan ranks remediation by risk and effort and marks which fixes are configuration and which need design changes. After you apply fixes, we retest the same payloads and their variants and issue a retest letter.

We also hand over the test set, so your team can rerun it after model updates or prompt changes. A model upgrade can reopen an injection that was closed.

Platforms we source and support for this

Ad Spin Tech is the one team that ties these together: we choose them, source them, connect them to your systems and keep the security protocols maintained after go-live.

AI security and identity

  • CrowdStrike
  • Palo Alto Networks
  • Zscaler
  • Fortinet
  • SentinelOne
  • Okta

See the full partner ecosystem

Questions buyers ask

Can prompt injection be fully prevented?

Not with current models. It can be contained by limiting data and tools, adding approvals and monitoring, so a successful injection has little effect.

Do we need testing if we use a major vendor's model?

Yes. Vendors harden their models, but your instructions, data, tools and integrations create the risk. Testing covers your application as a whole.

Is this different from jailbreaking?

Jailbreaking aims to get a model to break its safety rules. Prompt injection aims to take over the application's behaviour. They use similar techniques, and we test both.

How often should we retest?

After any change to the model, prompts, tools or data sources, and at least once a year for customer-facing systems.

Can you test Microsoft 365 Copilot for injection?

Yes, within Microsoft's testing terms. We test how Copilot handles injected content in emails, documents and shared files in your tenant.

Find out what an injection could do

Book a scoping call. We will map your AI's data, tools and inputs, then quote a prompt injection test up front.

Phone (AI receptionist answers 24/7)(212) 851-3282