
LLM Penetration Testing: How to Test AI Chatbots and LLM Apps for Security
Businesses across India are adding AI chatbots, copilots and AI agents to websites, apps and internal tools. These systems can be attacked in ways a normal security test does not cover: someone types the right words, or hides them in a document, and the AI leaks data or takes actions it should not. LLM penetration testing finds these weaknesses before attackers do.
Why AI apps need their own security testing
A large language model (LLM) follows instructions written in plain language, and it cannot reliably tell your instructions apart from an attacker’s. When the model is connected to customer data, a knowledge base or tools that send emails or update records, that weakness becomes a real business risk.
The OWASP Top 10 for LLM applications
The OWASP Top 10 for LLM Applications (2025) is the most widely used list of these risks. Here is what each one means and what a tester checks:
| # | Risk | What it means | What we test |
|---|---|---|---|
| LLM01 | Prompt Injection | Crafted input, typed or hidden in a document or web page, makes the model ignore its instructions. | Direct and indirect injection through chat, uploaded files, emails and retrieved pages. |
| LLM02 | Sensitive Information Disclosure | The model reveals customer data, internal documents, keys or other users’ conversations. | Attempts to extract personal data, secrets and other tenants’ data. |
| LLM03 | Supply Chain | Risky third-party models, plugins, datasets or libraries. | Review of model sources, plugins and dependencies. |
| LLM04 | Data and Model Poisoning | Manipulated training, fine-tuning or knowledge-base data changes behaviour. | Checks on who can add data to your knowledge base and how it is validated. |
| LLM05 | Improper Output Handling | Model output is trusted and passed to browsers, databases or shells unchecked. | Injection through model output: XSS, SQL and command injection. |
| LLM06 | Excessive Agency | The AI agent can take actions (send email, refund, delete) beyond what it needs. | Abuse of tools and functions the agent can call, and missing approval steps. |
| LLM07 | System Prompt Leakage | Hidden instructions, rules or credentials in the system prompt are exposed. | Extraction of the system prompt and anything sensitive inside it. |
| LLM08 | Vector and Embedding Weaknesses | Flaws in retrieval-augmented generation (RAG) stores leak or mix data. | Access control on the vector store and cross-user data leakage. |
| LLM09 | Misinformation | Confident but wrong answers that users act on. | Hallucination risks in high-impact answers and missing guardrails. |
| LLM10 | Unbounded Consumption | Requests that run up huge costs or take the service down. | Rate limits, token limits and denial-of-wallet abuse. |
How an LLM penetration test works
- Scope: which AI features, models, data sources, tools and user roles are in scope.
- Map the system: system prompts, retrieval (RAG) sources, plugins and tools, and where model output goes.
- Test the model layer: direct and indirect prompt injection, jailbreaks, system prompt extraction and data leakage.
- Test the integrations: tool and agent abuse, output-based injection, vector store access control and cost abuse.
- Test the usual layers: authentication, APIs and cloud configuration, as in a normal VAPT.
- Report and retest: findings by severity with fixes, then a retest after you fix them.
Quick checks you can do today
- List every AI feature you have, including tools bought from vendors.
- Check what data each AI feature can read, and remove anything it does not need.
- Make sure AI agents need human approval before sending money, emails or deleting data.
- Never put passwords or API keys inside system prompts.
- Set rate and token limits per user.
- Log prompts and responses so you can investigate misuse.
AI security and governance
Testing is one part of managing AI risk. If your clients ask how your AI is governed, see our ISO/IEC 42001 AI management system consulting. For technical testing of AI and connected devices, see IoT and AI security testing.
Launching or running an AI chatbot or agent?
Hackup Technology tests AI apps for prompt injection, data leakage, tool abuse and the full OWASP LLM Top 10, alongside web and API testing, with a CERT-In-aligned report and a retest.
Request AI security testingFrequently asked questions
What is LLM penetration testing?
Security testing of applications built on large language models, such as chatbots, copilots and AI agents. Testers try prompt injection, data extraction, tool abuse and output-based attacks, alongside normal web and API testing.
Is a normal VAPT enough for an AI chatbot?
No. A normal VAPT covers the web app, APIs and infrastructure, but not attacks that work through the model itself, such as prompt injection or system prompt leakage. Both are needed.
Can prompt injection be fully fixed?
Not completely today. It is reduced with layered defences: limiting what the AI can access and do, filtering inputs and outputs, separating trusted and untrusted content, and requiring human approval for sensitive actions.
How often should AI apps be tested?
Before launch, after major changes to the model, prompts, tools or data sources, and at least once a year.











