● Talk to a security engineer: +92 323 8295031info@protonyte.com  ·  PCSF batch enrolling now

Your product has an AI feature now. Here is what testing it looks like

Prompt injection through an HTTP header. A zero-click leak out of Microsoft 365 Copilot. What belongs in the scope of an AI penetration test, taken from OWASP rather than from anyone’s marketing.

A year ago, “we have added AI” usually meant a chat box bolted onto a help page. Now it means something that reads your email, searches your documents, calls your internal APIs and acts on what it finds. The second thing has an attack surface the first one did not, and most penetration test proposals still scope it as a web form.

The one idea that explains most AI vulnerabilities

A language model cannot reliably tell the difference between the instructions you gave it and text it merely read. Everything else follows from that. If your assistant summarises an email, the email can give it orders. If it reads a web page, the page can. If it reads your server logs, the log line can - and that is not hypothetical, as we will come to.

This is why prompt injection sits at number one in the OWASP Top 10 for LLM Applications, in both the 2025 edition and the 2026 one published in August 2026. The 2026 list widened it to cover injection through images, audio and video, not just text.

What moved in the 2026 OWASP list

  • LLM01 Prompt Injection and LLM02 Sensitive Information Disclosure hold the top two places.
  • Excessive Agency rose from sixth to third - the biggest move on the list, and a direct consequence of agents being given real tools.
  • Hidden Context Exposure is new at eighth, replacing System Prompt Leakage. It covers everything the model can see that the user cannot, not just the system prompt.
  • Unbounded Consumption rose four places - cost and availability abuse is now a mainstream finding.
  • Improper Output Handling fell from fifth to tenth, which does not mean it stopped mattering. It is where model output reaches a browser, a shell or a database.
Check the ordering before you cite it

At least one widely-shared article publishes a different ordering for positions four to ten and contradicts itself within the same page. We have used the ordering that two independent summaries agree on, but if you are writing policy against this list, download the official PDF from the OWASP GenAI Security Project and read it.

Three real, patched, named cases

EchoLeak - a zero-click data leak from Microsoft 365 Copilot

CVE-2025-32711, CVSS 9.3, found by Aim Security and fixed server-side ahead of public disclosure in June 2025. One crafted email, no user interaction at all, caused Copilot to pull internal files and send their contents out. The chain is worth understanding because every link is a design decision someone made for good reasons: it slipped past the cross-prompt injection classifier, dodged link redaction using reference-style Markdown, used automatic image pre-fetching to make an outbound request with no click, and relayed the data through a Microsoft Teams preview API on an allowed domain.

Microsoft confirmed no exploitation in the wild. The lesson is not that Copilot is unsafe; it is that the exfiltration channel was built out of entirely ordinary features.

ShadowLeak - exfiltration your network never sees

Radware found that hidden HTML instructions in an email - tiny text, or white on white - would be followed by ChatGPT’s Deep Research agent when a user asked it to go through their inbox, sending inbox data to an attacker’s URL. The important part is where it happened: Radware describe it as leaking “directly from OpenAI’s cloud infrastructure, making it invisible to local or enterprise defenses.” No proxy log, no DLP alert, no confirmation prompt. Reported in June 2025, fixed in early August, acknowledged in September.

The Gemini Trifecta - the AI as the vehicle

Tenable disclosed three now-patched flaws in Google Gemini in September 2025. The one we quote most often: prompt injection hidden in the User-Agent header of an HTTP request to a cloud service. Gemini Cloud Assist later summarises those logs and carries out the instruction inside them. A second used a poisoned Chrome search history; a third used the browsing tool’s page summarisation to exfiltrate saved data without rendering any link or image.

The researcher’s summary is the sentence to take to your architects: “AI itself can be turned into the attack vehicle, not just the target.”

So what should a test of your AI feature actually cover?

Derived from OWASP’s published lists rather than from anybody’s marketing, this is the scope we would argue for:

  • Every untrusted path into the context window. Not just the chat box: emails, uploaded documents, fetched web pages, repository issues, calendar invites, log lines, HTTP headers, filenames, and in 2026, images and audio.
  • Hidden context. What can the model see that the user cannot, and can the user get it out? System prompts, retrieved documents, tool definitions, other tenants’ data.
  • Tools and agency. What can it call, with whose identity, and with what privileges? If an attacker hijacks the goal, what is within reach? This is the question that turns a content problem into a breach.
  • Exfiltration channels that need no click. Image pre-fetching, Markdown reference links, allowed-domain relay APIs, and server-side egress your own network never sees.
  • Output handling. Model output reaching a renderer, a shell, a SQL layer or a template is still XSS, command injection and SSRF. The model is just the new source of untrusted input.
  • Retrieval and memory. RAG corpus poisoning, cross-tenant retrieval, and whether anything written into long-term memory can steer later sessions.
  • Supply chain. Models, plugins, MCP servers and datasets all have provenance, and most teams cannot tell you theirs.
  • Cost and availability. Unbounded consumption is a real denial-of-wallet finding.
  • And the ordinary application test. The AI feature sits on a web app with authentication, authorisation, IDOR, multi-tenancy and API flaws. None of the OWASP AI lists replaces that, and we have found more real risk in the plumbing than in the model on every engagement so far.
Two things nobody should be selling you yet

The Agent Control Standard, published alongside the 2026 list, is at version 0.1 with core definitions only and no released implementation samples - the Cloud Security Alliance says to treat it “as an architecture to plan around rather than a deployable control.” Nobody can certify you against it. Separately, there are blog posts in circulation listing CVEs in AI tooling that we could not corroborate against any primary source. If a finding has no NVD entry and no named researcher, it does not belong in a report.

Testing an AI feature

Can prompt injection be fixed?

Not eliminated, at least not today. A model cannot reliably separate instructions you gave it from text it merely read, so the defence is architectural: limit what the model is allowed to do, confirm consequential actions with a human, and treat everything it emits as untrusted input to whatever renders it.

How is testing an AI feature scoped differently?

By what the feature can reach rather than by how many screens it has. An assistant with read access to a mailbox and the ability to call an internal API is a far larger target than a chat box, and the test has to cover the tools and the data paths, not just the prompt.

Do we still need a normal application test as well?

Yes. The AI feature sits on top of an ordinary application with ordinary authentication, authorisation and API surface, and those fail in the usual ways. The AI testing is in addition, not instead.

What about the model provider’s own security?

It is their problem and your risk. Incidents have leaked data from provider infrastructure in ways no customer-side log would show, so your controls have to assume the path exists: limit what reaches the model, and know what you sent.

Share thisLinkedInWhatsAppX

Want this done on your own systems?

We scope the work in writing first, so you know exactly what will be touched and when.

Book a free consultation Back to the blog