Your first check is free. No card needed.Run a free security check

AI security testing: testing your app's AI features, and using AI to test your app

AI security testing means two different things. The first is testing an AI system, such as a chatbot, summarizer or agent inside your app, for prompt injection, data leaking through the model and tools it can be talked into misusing; the OWASP Top 10 for LLM Applications is the usual checklist. The second is using AI agents to security-test an ordinary web app the way an outsider would. An app with an AI feature needs both, because the AI feature runs on the same accounts, APIs and database as the rest of the app.

Saqr (usesaqr.com) is AI security for web apps. Its AI agents attack your live app from the outside, the way a real attacker would, and show you exactly what to fix. From $19 a month, cancel any time. Tests only apps you have shown are yours.

What are the two meanings of AI security testing?

Most of what ranks for the phrase is about the first meaning, written for companies that build or buy AI models. Most founders who search it mean the second. The table sets them side by side.

Testing AI systemsTesting with AI
What is testedA model, chatbot, assistant or agent, and what it can reachAn ordinary web app: pages, sign-in, APIs, database rules
Typical problemsPrompt injection, leaks of private data or hidden instructions, tools misused on someone else's behalf, unsafe output, runaway costOne user reaching another's data, open database rules, keys in scripts, injection, weak sessions
Usual checklistOWASP Top 10 for LLM Applications 2026, the OWASP AI Testing GuideOWASP Top 10:2025, the OWASP Web Security Testing Guide
Who does itAI red teams, your own engineers, open-source tools built for modelsAI penetration testing services and scanners, alongside human testers
Also calledAI red teaming, LLM security testing, LLM pentestingAI penetration testing, AI pentest, AI security scanner

OWASP released version 1 of its AI Testing Guide on 26 November 2025, describing it as "a practical standard for trustworthiness testing of AI systems". NIST's taxonomy of attacks on AI systems (AI 100-2, 2025) is the reference behind much of the first column.

Which do you need?

  • Your app has no AI feature: only the second meaning applies. Skip to testing with AI.
  • Your app has a chatbot, a summarize button, an AI search or an agent: both. The AI feature has its own risks, and it also adds new API routes, keys and costs to the ordinary app.
  • You train, fine-tune or host models: you need model-level red teaming as well, which this page does not cover in depth.

Where does an AI feature in a web app usually go wrong?

The OWASP Top 10 for LLM Applications 2026 is the list most teams start from. Here is what each entry tends to look like in an ordinary web app with an AI feature, and where to look.

OWASP 2026 entryWhat it looks like in a web appWhere to look
LLM01 Prompt InjectionA user, or text the model reads (a ticket, a profile, an uploaded file, a web page), changes what the model doesEvery place text from someone else reaches the model
LLM02 Sensitive Information DisclosureThe chatbot repeats another customer's data, internal notes or personal detailsWhat data is put into the model's context, and for whom
LLM03 Excessive AgencyA tool the model can call uses an admin key, so a fooled model can read or change anyone's records, send email or payThe tools each feature offers, and whose permissions they run with
LLM04 Supply ChainA third-party model, plugin, package or MCP server behaves differently than you assumedWhat you install and call, and who maintains it
LLM05 Data and Model PoisoningSomeone writes into the data your feature learns from or retrieves, and steers its answersWho can add documents, reviews or examples
LLM06 Unbounded ConsumptionAnyone can call your AI endpoint, without sign-in or limits, and run up the billSign-in, per-user quotas, input and output caps
LLM07 MisinformationUsers act on confident wrong answers, such as a made-up refund policyAnswers about prices, policy, health, money or law
LLM08 Hidden Context ExposureThe system prompt, keys or internal rules in it are repeated back to a userAnything secret in instructions or context
LLM09 Vector and Embedding WeaknessesAI search over documents returns another user's or team's filesHow retrieval is filtered by user or team
LLM10 Improper Output HandlingModel output is shown as HTML, loads an image from an address the model chose, or is passed to SQL or a shellWhere output is rendered or executed

Notice how many rows are ordinary web security wearing a new coat: whose permissions a tool runs with (access control), what an endpoint costs without limits (rate limiting), how output is rendered (cross-site scripting). That is why the second meaning of AI security testing still matters for an app with an AI feature.

How do you test your own app's AI feature?

A practical routine for a small team, on a staging copy of an app you own, with test accounts. PortSwigger's guidance on web LLM attacks gives the shape: "Identify the LLM's inputs", "Work out what data and APIs the LLM has access to", then "Probe this new attack surface for vulnerabilities" (PortSwigger).

  1. Make an inventory. For each AI feature write down: who can write the text the model reads, what data goes into its context, which tools it can call and with which credentials, and where its output goes (the screen, an email, a database, another tool). Our prompt injection checklist has a table for this.
  2. Test the endpoint like any other API. Open the browser's Network tab, find the request the AI feature makes, and send it signed out and as a second test user. It should need sign-in, act only on the caller's own data and stop after a per-user limit. This is plain access control and rate limiting, and it is where many AI features fail first; stopping strangers from running up your AI bill shows the fixes.
  3. Try direct injection. In the chat box, ask for the hidden instructions, for another user's records by name or id, and for actions on another account. A pass is not a polite refusal: it is that the tools could not have done it anyway, because the permission check lives in your code.
  4. Try indirect injection. Save a harmless planted instruction everywhere a stranger's text can reach the model: a ticket, a profile bio, an uploaded file, a page your app fetches. Then run each AI feature over it and watch for the marker word and any outgoing request. The checklist gives a ready text for this test.
  5. Look for data crossing between users. As user A, ask about user B's orders, files or messages. If your app has AI search over documents, upload a file as one team and search for it as another.
  6. Check what the tools can do. For each tool, try to make it act on an id that is not yours, and to send, delete or pay without a confirmation screen. Tools should run with the signed-in user's permissions and ask the person before anything that cannot be undone.
  7. Check how output is shown. Ask the model to answer with an HTML tag, a script, a Markdown image pointing at an address of your choice, and a link. Nothing should run, and no image should load from an address the model chose.
  8. Check the context for secrets. Read your system prompt and anything added to it. Keys, internal addresses and other customers' data do not belong there, because OWASP's 2026 guidance is that "any contents of the context should not be considered a secret".
  9. Keep the tests and run them again. Save the prompts and expected results as a small regression set, and rerun them whenever you change the model, the instructions or a tool.

Expect some tests to "fail" in the sense that the model says something it should not. What matters is whether that changes anything real: data seen, actions taken, money spent. OWASP's 2026 entry on prompt injection says defense "is therefore architectural rather than interceptive", which is why steps 2, 6 and 7 carry most of the weight.

Which tools test AI features and models?

Open-source tools built for the first meaning, each described in its own words:

  • Promptfoo (MIT): "a CLI and library for evaluating and red-teaming LLM-based apps". Its red-team plugins include tests for one user reaching another's resources through the model (docs).
  • garak from NVIDIA (Apache-2.0): "the LLM vulnerability scanner", which probes for "hallucination, data leakage, prompt injection, misinformation, toxicity generation, jailbreaks" and more.
  • PyRIT from Microsoft (MIT): an open-source framework "built to empower security professionals and engineers to proactively identify risks in generative AI systems".

These test the model and the prompts around it, usually through its API. They do not test the rest of your web app: whether the AI endpoint needs sign-in, whether its tools check ownership in code, or whether the rest of the app leaks data. Pair them with the checks above and with a test of the live app.

What is AI security testing of a web app?

The second meaning: AI agents test your running app the way a person would. They open it in a real browser, sign in with test accounts you provide, record every request it makes, form ideas about what could go wrong ("booking ids count up one by one, so can one customer ask for the next booking?") and try them. A finding counts only when they can show the request and the response that prove it.

It sits between a classic scanner, which runs a fixed list of checks, and a human penetration test, which adds an expert's judgment at a higher price and a longer wait. Its strength is the question a scanner cannot ask: should this user be allowed to see this? Its limits are that it cannot promise the app is secure, can miss long chains and business rules, and depends on the test accounts it gets.

Three pages go deeper:

How do the two meet in an app with an AI feature?

Take a support assistant that can look up orders. The first meaning asks whether a customer can talk it into revealing another customer's order. The second meaning asks whether the order lookup API behind it returns any order by id to any signed-in user. If the second answer is yes, the first question hardly matters: anyone can skip the chatbot and call the API directly.

So a sensible order for a small team:

  1. Test the app around the AI feature first: sign-in on the AI endpoint, per-user limits, access control on every API the tools call, and safe rendering of output. These are ordinary web checks, and an outside test of the live app covers them.
  2. Then test the model's behaviour: direct and indirect injection, data in the context, tool misuse, with your own planted tests or an open-source tool above.
  3. Repeat both after changes: a new tool, a new model, new data sources or new roles.

What can AI security testing not tell you?

  • No test proves an app or a model is safe. It shows what was found, with the access and time it had.
  • Prompt injection is not solved. OWASP's 2026 entry says models "make no architectural distinction between "instructions" and "data"". A test that finds nothing today can be beaten by new wording tomorrow, which is why limiting what a fooled model can do matters more than any filter.
  • Model behaviour changes. A provider's model update or a new instruction can change answers overnight. Rerun your saved tests after each change.
  • Neither meaning covers your code by itself. Code review, your builder's checks and dependency scanning catch problems an outside test cannot see.
  • Some decisions are not technical. Whether an AI feature should be allowed to send email or issue refunds at all is a product decision; testing can only show what it does today.

Where does Saqr fit?

Saqr is AI security testing in the second meaning: AI agents test your live web app from the outside, in a real browser, on sites you have shown are yours. It does not grade your prompts or the model's answers, and it is not a tool for red-teaming a model.

What it does cover for an app with an AI feature is the ordinary web security around it. On a Full task, signed in with test logins you provide, it tests AI and other paid endpoints that anyone can call without sign-in or without a limit, cross-site scripting in text shown to other users, and one user reaching another's records through your API, along with the rest of the app: database rules, keys in scripts, sign-in and sessions, inputs and settings.

  • Quick task (up to 15 minutes, read-only), Full task (up to an hour, signed-in pages too) and Deep task (about 2 hours, on Pro).
  • Every finding comes with the request and response that prove it and a fix prompt for your AI coding tool, and Saqr rechecks after you fix it.
  • It tests from the outside and does not read your code. Before a Full or Deep task it asks how far it may go, including whether it may change data.

Plans are Starter at $19 and Pro at $49 a month; your first Quick check is free, with no card. How Saqr tests your app lists what each task checks.

Questions

What is AI security testing?

It means two things. Testing AI systems, such as a chatbot or agent, for prompt injection, data leaks and tool misuse, usually against the OWASP Top 10 for LLM Applications. And using AI agents to security-test an ordinary web app the way a person would, with proof for each finding. An app with an AI feature needs both.

What is the OWASP Top 10 for LLM Applications?

OWASP's list of the most important risks in applications built on large language models. The 2026 list runs from LLM01 Prompt Injection through Sensitive Information Disclosure, Excessive Agency, Supply Chain, Data and Model Poisoning, Unbounded Consumption, Misinformation, Hidden Context Exposure and Vector and Embedding Weaknesses to LLM10 Improper Output Handling.

How do I test my chatbot for prompt injection?

On a staging copy, try direct injection in the chat box and plant a harmless instruction with a marker word in text the bot reads, such as a ticket, a profile or an uploaded file. Watch the replies for the marker and the Network tab for unexpected requests. Then check what a fooled bot could do: its tools should run with the signed-in user's permissions and ask before risky actions.

Can prompt injection be fully prevented?

Not today. OWASP's 2026 entry says no reliable prevention mechanism exists, because models do not separate instructions from data. The practical defense is to limit what a fooled model can do: user-scoped tools, confirmation before risky actions, no secrets in the context and safe rendering of output.

Does Saqr test prompt injection or red-team AI models?

No. Saqr does not grade prompts or model answers. It tests the live web app from the outside, including the parts around an AI feature: AI endpoints anyone can call without sign-in or limits, cross-site scripting in text shown to other users, and one user reaching another's records through the API.

Can AI agents security-test my web app?

Yes. AI penetration testing services and scanners use agents that explore your live app in a real browser, sign in with test accounts, try ideas a fixed scanner cannot, and report what they can prove with the request and response. They do not replace a human tester for compliance reports, and no test can promise an app is secure.

Sources

The facts above were checked against these pages on 1 December 2026. Products, prices and documentation change; follow the links for the current wording.

  1. OWASP Top 10 for LLM Applications 2026
  2. OWASP: LLM01:2026 Prompt Injection
  3. OWASP: LLM08:2026 Hidden Context Exposure
  4. OWASP AI Testing Guide
  5. NIST AI 100-2 E2025: Adversarial Machine Learning, a taxonomy (March 2025)
  6. PortSwigger Web Security Academy: Web LLM attacks
  7. OWASP Top 10:2025
  8. OWASP Web Security Testing Guide
  9. Promptfoo on GitHub
  10. Promptfoo: LLM red teaming
  11. garak on GitHub
  12. PyRIT on GitHub

Saqr is independent and is not affiliated with Promptfoo, NVIDIA, garak, Microsoft, PyRIT or PortSwigger. Each name is a trademark of its owner.