Why Isn’t the OWASP LLM Top 10 Enough?

Applications that use large language models (LLMs) have the same fundamental security requirements as other web applications. User accounts, APIs, databases, and access to application functionality all need to be protected. However, integrating an LLM introduces additional attack vectors that a standard web penetration test may not cover. For example, an application may correctly enforce authorization on its API endpoints while allowing an LLM assistant to retrieve documents that the current user should not be able to access. The model may process content from external sources, invoke functions, or generate output that the application uses to perform actions.

The OWASP Top 10 for LLM Applications covers risks associated with these systems, including prompt injection, sensitive information disclosure, excessive agency, and improper output handling. However, it is not a penetration testing methodology, and not all ten categories necessarily need to be tested in every application.

Models, Prompts, and Applications Are Different Security Boundaries

When assessing an LLM-based system, it is important to distinguish between the model itself, the instructions that guide its behavior, and the application components that provide access to data and functionality. The LLM model may be developed internally, deployed using a model with publicly available weights, or accessed through an external provider’s API. Many organizations use models they did not develop and do not directly control. They cannot modify the model’s parameters, training process, or underlying infrastructure.

Prompts and configuration determine how the application uses the model. Developers can define system and developer instructions, control how context is assembled, and specify how available functions should be used. However, these instructions are not a substitute for security controls. A model may follow malicious instructions embedded in a document or another untrusted source, even when those instructions conflict with its intended behavior.

The application layer manages authentication, authorization, data retrieval, API calls, and the processing of model output. Security checks must be enforced independently of whether the model follows its instructions. This distinction matters when defining the scope of a penetration test. An organization using a third-party model may not have the ability or authorization to test the provider’s internal infrastructure. It can still assess how its own application interacts with the model, what data it sends, and whether the integration allows existing security controls to be bypassed.

What Can a Standard Web Penetration Test Miss?

Web and API penetration testing covers authentication, authorization, input handling, and other application security mechanisms. These checks remain necessary for LLM applications. Additional risks arise from how the LLM processes information and interacts with other components. An application may use the model to select functions, construct API parameters, or determine the next step in a business process.

Testing must therefore consider whether content retrieved from a document can influence the model’s behavior, whether a user can obtain information beyond their permissions through a conversation, and what happens when the model requests an action. Traditional HTTP request and response testing remains important, but it may not reveal issues related to context construction, data retrieval, or the handling of generated output.

OWASP LLM Top 10 in Practice

The OWASP Top 10 for LLM Applications describes categories of security risks that should be considered when developing and testing LLM-based applications. Their applicability depends on the system’s architecture and functionality. Prompt Injection is one of the best-known categories. Malicious instructions may appear in user input, documents, web pages, or responses from external services. If the model treats this content as instructions to follow, its behavior may deviate from what the development team intended.

The consequences depend on the application’s capabilities. In a simple system that summarizes publicly available text, an attacker may only be able to influence the generated response. If the model has access to internal data or can invoke functions, the same type of attack may have more serious consequences. Excessive Agency concerns risks arising from excessive functionality, permissions, or autonomy granted to an LLM-based system. If the application allows actions to be executed without appropriate restrictions, manipulating the model’s behavior may lead to unauthorized operations.

For applications using RAG (Retrieval-Augmented Generation), Vector and Embedding Weaknesses are particularly relevant. Problems can arise when the document retrieval system does not enforce appropriate access controls. The model may then receive content that the current user is not authorized to access, even if direct API requests are properly protected.

Improper Output Handling covers insecure processing of generated output. If an application passes model-generated content to another component without appropriate validation or handling, for example when rendering HTML or executing commands, the consequences may extend to other parts of the system. Attempts to bypass the model’s instructions will not identify all these issues. Authorization, API function security, and output handling require their own test scenarios.

What Does Testing an LLM Application Look Like?

Consider a SaaS platform that allows customers to upload business documents. The platform uses an LLM assistant to answer questions about those documents, search their contents, and invoke certain API functions. During a standard penetration test, we would check whether a user can access another organization’s documents through direct API requests, whether authorization is properly enforced, and whether vulnerabilities exist in file upload processing.

The LLM integration introduces additional ways of accessing the same data. Can a user submit a question that causes the RAG system to retrieve another organization’s document? Are access controls enforced before the document content becomes available to the model? Another scenario involves a document containing malicious instructions. If an attacker can upload a document that another user will later retrieve, the attacker may attempt to influence the assistant’s behavior through that document’s content.

It is not enough to establish that the model followed the malicious instruction. Testing must determine whether the attacker can use that behavior to access unauthorized data, trigger an unauthorized action, or bypass another security control. If the assistant can invoke API functions, testing should verify that the application independently enforces authorization for each action. A model-generated function call must not allow a user to perform an operation beyond their permissions.

The same prompt may be harmless in one application and expose a serious vulnerability in another. Test scenarios therefore need to reflect the actual implementation.

Why Aren’t All Ten OWASP Categories Tested?

The OWASP LLM Top 10 helps identify risks, but it does not automatically define the scope of a penetration test. Before testing begins, the application’s architecture, data sources, available functions, and boundaries of responsibility need to be understood. This determines which categories are applicable and what can realistically be assessed.

For example, an application that does not use RAG or a vector database does not have the same document retrieval risks as a system built around those technologies. Conversely, an application that allows the model to execute actions requires testing of the permissions and restrictions applied to those functions. It is also important to distinguish between whether a risk is applicable and whether it can be tested within the agreed scope.

When an organization uses a third-party model, penetration testing usually focuses on its own application and the integration with that model. Prompt injection, data access, output handling, and function call security can be assessed without testing the model provider’s infrastructure, internal mechanisms, or training process.

Risks associated with model training and poisoning also require a different approach when an organization develops or fine-tunes its own model compared with using a pre-trained model through an API. However, using a third-party model does not eliminate the possibility of poisoning data that the application retrieves or uses to construct context. For systems that use AI agents, the separate OWASP Top 10 for Agentic Applications is also relevant, covering risks associated with autonomous tool selection and action execution.

Some categories may therefore be fully assessed, others partially tested, while some fall outside the agreed scope. These limitations should be documented so that the absence of findings is not mistaken for confirmation that the entire LLM system is secure. The nondeterministic behavior of LLMs presents another challenge. The same input may not always produce the same response, so certain tests need to be repeated, with the conditions under which specific behavior was observed clearly recorded.

What Should an LLM Penetration Testing Report Contain?

A penetration testing report should go beyond listing prompts that caused the model to behave unexpectedly. Each security finding should identify the affected component, the conditions required for exploitation, reproduction steps, and potential consequences. If the issue involves unauthorized data access, the report should demonstrate how access controls can be bypassed. If the model can trigger an unauthorized action, the assessment should identify which security mechanism is missing or failing.

A successful jailbreak does not automatically mean an attacker can compromise the application. At the same time, an application may contain a serious authorization vulnerability even if the model consistently rejects direct manipulation attempts. LLM penetration testing must therefore assess the model within the context of the application in which it operates, with clearly defined testing boundaries and documented limitations.

LLM Application Penetration Testing with AresISEC

AresISEC provides penetration testing for LLM-based applications, including their web and API components and integrations with other systems. Testing is tailored to the application’s architecture and the capabilities available to the LLM. Our assessments go beyond attempts to manipulate the model. We examine whether LLM integrations can be used to bypass access controls, retrieve unauthorized data, or execute actions without the required permissions.

Findings are documented with supporting evidence, reproduction steps, and recommendations for remediation.

Sources:

Scroll to top