AI Security Testing for Chatbots and LLM Apps: What the Assistant Can Reach, Not Just What It Says

Picture a team about to launch an assistant that answers customers from internal documents and can draft a refund. The model has been reviewed, the prompts have been tried, and the launch date is public. What nobody on the team can answer yet is what the assistant will do when a customer, or a document it reads, tells it to break the rules. This page is for that team, or for anyone putting an LLM app, a chatbot or a RAG system in front of customers or staff.

What an insurer’s assistant gave away

An insurance group had put an AI assistant in front of its customers. It answered questions from the company’s procedures and ticket history, and it could write notes and draft refunds in the customer system. We were asked to find out how easily it could be talked into breaking the rules.

We logged 19 findings, and three mattered most. After a few rounds of “summarize your instructions”, the assistant revealed its hidden instructions and three internal procedure documents, which contained example national ID numbers (NIK). A draft FAQ we planted in its knowledge base worked: the assistant offered a customer a double refund and said manager approval had been skipped. And links the assistant wrote appeared as live code in the staff console, which would let an attacker run scripts in a customer-service agent’s browser.

None of this showed up as an error, and a scanner had nothing to flag. Each finding depended on what the assistant could read and what it was allowed to do.

The insurer limited each conversation to that customer’s own documents, gave the assistant an approved list of tools and put a person in front of any action that changes data. Replies are now cleaned before they are displayed, and personal data is masked where documents are retrieved. When we retested, the injection techniques from the first round no longer worked. The AI security testing case study has the full account.

Where the security boundary sits

An assistant is rarely one system. The model writes the replies. The application decides what goes into the prompt. A retrieval layer pulls documents from your data sources. Tools and APIs let it look up records or take actions. And each user has permissions that the assistant should respect, often without knowing what they are.

Most of the serious problems we find sit at the joins between these parts. A document can carry instructions the model follows. A tool can do more than the user is allowed to do. A reply can turn into code on someone else’s screen. So we start with reach: which records can the assistant pull up for a user, which actions can it take, and does the system behind each one check who is asking?

What we test

Testing covers direct prompt injection typed into the chat, and indirect injection hidden in documents, pages or tickets the assistant reads. We try to extract the system prompt and other hidden context, and to make the assistant disclose another user’s data across the retrieval boundary. We check how its output is handled downstream, for example in a staff console. We also check whether the tools it can call allow actions nobody approved, which OWASP calls excessive agency.

Attacks run over several turns and with encoding tricks, because a single message rarely tells the whole story. The APIs and plugins behind the assistant are tested as well. In the insurer’s case, that included server-side request forgery through a CRM plugin and SQL injection through tool calls.

The test plan follows the OWASP Top 10 for LLM Applications (2026 edition), a public list of the main risks in LLM applications. We prove each finding before we list it, and we record the proof so your engineers can repeat it.

What you get back

Each finding in our report comes with the conversation or request sequence that proves it, and the detail needed to close the gap. The findings are mapped to the frameworks your auditor works from, such as ISO/IEC 27001:2022 and SOC 2, and to PCI DSS 4.0 where the assistant touches cardholder data. Whether an auditor accepts a report is the auditor’s call. The insurer also used our evidence in its data protection impact assessment (DPIA) under Indonesia’s Personal Data Protection Law (Law No. 27 of 2022, UU PDP).

For how an engagement runs from the first call to the report, see the penetration testing page. If you’re still deciding what to put in scope, our guide to LLM application security testing walks through it.

What this service is not

Four things sit close to this service and are easy to confuse with it. Evaluating or training the model itself, such as measuring its accuracy or bias, is not part of it. Neither is AI governance, meaning the policies and risk register for how your organization uses AI. A red team assessment is a goal-driven simulated attack on a whole organization over time, and AI systems aren’t its focus. And if the worry is your own staff pasting customer data into public AI tools, that’s what Nesgate is for: it masks sensitive data in ChatGPT, Gemini and Claude prompts, in the browser. It’s in early access with a 14-day trial.

Fully autonomous agents that chain many tools on their own are a newer area. Bring them to the scoping session and we’ll tell you plainly what we’d test and what we wouldn’t.

Questions about AI security testing

How is this different from a normal penetration test? A web or API test follows screens and requests. An assistant adds a conversation on top, plus the documents it reads and the tools it can use. In the insurer’s case, the hidden instructions came from a document in the knowledge base, so a test of the chat window alone would have missed them. We test the assistant and the systems underneath it together.

Do you test the model itself? No. Our scope is the application around the model: the LLM app, chatbot or RAG system, the data it retrieves, the tools it can call and the APIs behind it. If you have questions about the model, bring them to the scoping session and we’ll tell you plainly what we would and wouldn’t do.

Can we test before launch, in staging? Yes, and before go-live is the better time. Where we test is agreed with you at the start. In the insurer’s case, the test prompts were kept, and the team now reruns them whenever the model or its instructions change.

Start with a scoping session

In the free 90-minute scoping session, tell us what the assistant can see and do, and when it has to go live. An NDA is available before you share any details. You’ll have a scoped proposal within 24 hours, and the report follows within 10 business days of testing, with a retest included. Snipeyes is a CREST Member company certified to ISO/IEC 27001:2022, headquartered in Jakarta, Indonesia. If your assistant sits in insurance or in technology and SaaS, those pages show the sectors we work in.

Discuss your AI security requirements · Request a scoped proposal