{"stack":{"key":"ai-llm-app","name":"AI / LLM app","scope":"Applications that send user or business data to a language model and act on or display what it returns, including tool-calling agents and retrieval."},"stacks":[{"key":"ai-llm-app","name":"AI / LLM app","scope":"Applications that send user or business data to a language model and act on or display what it returns, including tool-calling agents and retrieval."}],"level":1,"item_count":17,"chapters":[{"id":"V1","name":"Encoding and Sanitization","sections":[{"id":"V1.2","name":"Injection Prevention","cheat_sheets":[{"name":"Bean Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Bean_Validation_Cheat_Sheet.html"},{"name":"Cross Site Scripting Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html"},{"name":"DOM based XSS Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html"},{"name":"File Upload Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html"},{"name":"Injection Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html"},{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"},{"name":"Java Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Java_Security_Cheat_Sheet.html"},{"name":"LDAP Injection Prevention","url":"https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html"},{"name":"OS Command Injection Defense","url":"https://cheatsheetseries.owasp.org/cheatsheets/OS_Command_Injection_Defense_Cheat_Sheet.html"},{"name":"Query Parameterization Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html"},{"name":"SQL Injection Prevention","url":"https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html"},{"name":"XML External Entity Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html"},{"name":"XML Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_Security_Cheat_Sheet.html"},{"name":"XSS Filter Evasion Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XSS_Filter_Evasion_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-1.2.1","level":1,"requirement":"Verify that output encoding for an HTTP response, HTML document, or XML document is relevant for the context required, such as encoding the relevant characters for HTML elements, HTML attributes, HTML comments, CSS, or HTTP header fields, to avoid changing the message or document structure.","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.2.2","level":1,"requirement":"Verify that when dynamically building URLs, untrusted data is encoded according to its context (e.g., URL encoding or base64url encoding for query or path parameters). Ensure that only safe URL protocols are permitted (e.g., disallow javascript: or data:).","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.2.3","level":1,"requirement":"Verify that output encoding or escaping is used when dynamically building JavaScript content (including JSON), to avoid changing the message or document structure (to avoid JavaScript and JSON injection).","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.2.4","level":1,"requirement":"Verify that data selection or database queries (e.g., SQL, HQL, NoSQL, Cypher) use parameterized queries, ORMs, entity frameworks, or are otherwise protected from SQL Injection and other database injection attacks. This is also relevant when writing stored procedures.","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.2.5","level":1,"requirement":"Verify that the application protects against OS command injection and that operating system calls use parameterized OS queries or use contextual command line output encoding.","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is used to build SQL, shell commands, URLs or HTML.","note":"Treat model output as untrusted input: it can be steered by prompt injection in user text or retrieved documents."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"}]},{"id":"V1.3","name":"Sanitization","cheat_sheets":[{"name":"Cross Site Scripting Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html"},{"name":"Cross-Site Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"DOM based XSS Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/DOM_based_XSS_Prevention_Cheat_Sheet.html"},{"name":"Injection Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html"},{"name":"Injection Prevention Cheat Sheet in Java","url":"https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_in_Java_Cheat_Sheet.html"},{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"},{"name":"LDAP Injection Prevention","url":"https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html"},{"name":"Server Side Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"XML External Entity Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-1.3.1","level":1,"requirement":"Verify that all untrusted HTML input from WYSIWYG editors or similar is sanitized using a well-known and secure HTML sanitization library or framework feature.","category":"build-stack","relevance":"situational","applies_when":"Model output is rendered as Markdown or HTML, evaluated as code, or used to choose URLs to fetch.","note":"Rendered Markdown images and links can leak data to attacker URLs; sanitise output and restrict which hosts it may reference.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is rendered as Markdown or HTML, evaluated as code, or used to choose URLs to fetch.","note":"Rendered Markdown images and links can leak data to attacker URLs; sanitise output and restrict which hosts it may reference."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"},{"id":"v5.0.0-1.3.2","level":1,"requirement":"Verify that the application avoids the use of eval() or other dynamic code execution features such as Spring Expression Language (SpEL). Where there is no alternative, any user input being included must be sanitized before being executed.","category":"build-stack","relevance":"situational","applies_when":"Model output is rendered as Markdown or HTML, evaluated as code, or used to choose URLs to fetch.","note":"Rendered Markdown images and links can leak data to attacker URLs; sanitise output and restrict which hosts it may reference.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is rendered as Markdown or HTML, evaluated as code, or used to choose URLs to fetch.","note":"Rendered Markdown images and links can leak data to attacker URLs; sanitise output and restrict which hosts it may reference."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x10-V1-Encoding-and-Sanitization.md"}]}]},{"id":"V2","name":"Validation and Business Logic","sections":[{"id":"V2.2","name":"Input Validation","cheat_sheets":[{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"},{"name":"Microservices Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Microservices_Security_Cheat_Sheet.html"},{"name":"Web Service Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Web_Service_Security_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-2.2.1","level":1,"requirement":"Verify that input is validated to enforce business or functional expectations for that input. This should either use positive validation against an allow list of values, patterns, and ranges, or be based on comparing the input to an expected structure and logical limits according to predefined rules. For L1, this can focus on input which is used to make specific business or security decisions. For L2 and up, this should apply to all input.","category":"build-stack","relevance":"situational","applies_when":"Structured model output, such as tool-call arguments, is passed into application code.","note":"Validate tool-call arguments against a strict schema before acting on them, as you would any request body.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Structured model output, such as tool-call arguments, is passed into application code.","note":"Validate tool-call arguments against a strict schema before acting on them, as you would any request body."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x11-V2-Validation-and-Business-Logic.md"},{"id":"v5.0.0-2.2.2","level":1,"requirement":"Verify that the application is designed to enforce input validation at a trusted service layer. While client-side validation improves usability and should be encouraged, it must not be relied upon as a security control.","category":"build-stack","relevance":"situational","applies_when":"Structured model output, such as tool-call arguments, is passed into application code.","note":"Validate tool-call arguments against a strict schema before acting on them, as you would any request body.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Structured model output, such as tool-call arguments, is passed into application code.","note":"Validate tool-call arguments against a strict schema before acting on them, as you would any request body."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x11-V2-Validation-and-Business-Logic.md"}]}]},{"id":"V3","name":"Web Frontend Security","sections":[{"id":"V3.2","name":"Unintended Content Interpretation","cheat_sheets":[{"name":"Cross-Site Request Forgery Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html"},{"name":"DOM Clobbering Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/DOM_Clobbering_Prevention_Cheat_Sheet.html"},{"name":"HTML5 Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html"},{"name":"Third Party Javascript Management Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Third_Party_Javascript_Management_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-3.2.1","level":1,"requirement":"Verify that security controls are in place to prevent browsers from rendering content or functionality in HTTP responses in an incorrect context (e.g., when an API, a user-uploaded file or other resource is requested directly). Possible controls could include: not serving the content unless HTTP request header fields (such as Sec-Fetch-\\*) indicate it is the correct context, using the sandbox directive of the Content-Security-Policy header field or using the attachment disposition type in the Content-Disposition header field.","category":"build-stack","relevance":"situational","applies_when":"Model output is shown in a browser.","note":null,"stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is shown in a browser.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x12-V3-Web-Frontend-Security.md"},{"id":"v5.0.0-3.2.2","level":1,"requirement":"Verify that content intended to be displayed as text, rather than rendered as HTML, is handled using safe rendering functions (such as createTextNode or textContent) to prevent unintended execution of content such as HTML or JavaScript.","category":"build-stack","relevance":"situational","applies_when":"Model output is shown in a browser.","note":null,"stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Model output is shown in a browser.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x12-V3-Web-Frontend-Security.md"}]}]},{"id":"V5","name":"File Handling","sections":[{"id":"V5.2","name":"File Upload and Content","cheat_sheets":[{"name":"File Upload Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html"},{"name":"Input Validation Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Input_Validation_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-5.2.1","level":1,"requirement":"Verify that the application will only accept files of a size which it can process without causing a loss of performance or a denial of service attack.","category":"build-stack","relevance":"situational","applies_when":"Users upload documents for the model to read or for retrieval.","note":null,"stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Users upload documents for the model to read or for retrieval.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x14-V5-File-Handling.md"},{"id":"v5.0.0-5.2.2","level":1,"requirement":"Verify that when the application accepts a file, either on its own or within an archive such as a zip file, it checks if the file extension matches an expected file extension and validates that the contents correspond to the type represented by the extension. This includes, but is not limited to, checking the initial 'magic bytes', performing image re-writing, and using specialized libraries for file content validation. For L1, this can focus just on files which are used to make specific business or security decisions. For L2 and up, this must apply to all files being accepted.","category":"build-stack","relevance":"situational","applies_when":"Users upload documents for the model to read or for retrieval.","note":null,"stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Users upload documents for the model to read or for retrieval.","note":null}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x14-V5-File-Handling.md"}]}]},{"id":"V8","name":"Authorization","sections":[{"id":"V8.2","name":"General Authorization Design","cheat_sheets":[{"name":"Authorization Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html"},{"name":"Insecure Direct Object Reference Prevention Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Insecure_Direct_Object_Reference_Prevention_Cheat_Sheet.html"},{"name":"Session Management Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-8.2.1","level":1,"requirement":"Verify that the application ensures that function-level access is restricted to consumers with explicit permissions.","category":"auth","relevance":"situational","applies_when":"The model can retrieve data or call tools on a user's behalf.","note":"Retrieval and tools should only reach data the requesting user may see; filter by user before the model sees it.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"auth","relevance":"situational","applies_when":"The model can retrieve data or call tools on a user's behalf.","note":"Retrieval and tools should only reach data the requesting user may see; filter by user before the model sees it."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x17-V8-Authorization.md"},{"id":"v5.0.0-8.2.2","level":1,"requirement":"Verify that the application ensures that data-specific access is restricted to consumers with explicit permissions to specific data items to mitigate insecure direct object reference (IDOR) and broken object level authorization (BOLA).","category":"auth","relevance":"situational","applies_when":"The model can retrieve data or call tools on a user's behalf.","note":"Retrieval and tools should only reach data the requesting user may see; filter by user before the model sees it.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"auth","relevance":"situational","applies_when":"The model can retrieve data or call tools on a user's behalf.","note":"Retrieval and tools should only reach data the requesting user may see; filter by user before the model sees it."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x17-V8-Authorization.md"}]},{"id":"V8.3","name":"Operation Level Authorization","cheat_sheets":[{"name":"Transaction Authorization Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/Transaction_Authorization_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-8.3.1","level":1,"requirement":"Verify that the application enforces authorization rules at a trusted service layer and doesn't rely on controls that an untrusted consumer could manipulate, such as client-side JavaScript.","category":"auth","relevance":"situational","applies_when":"The model can call tools or take actions on a user's behalf.","note":"Authorise each tool call with the end user's permissions, not the service account the agent runs as.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"auth","relevance":"situational","applies_when":"The model can call tools or take actions on a user's behalf.","note":"Authorise each tool call with the end user's permissions, not the service account the agent runs as."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x17-V8-Authorization.md"}]}]},{"id":"V14","name":"Data Protection","sections":[{"id":"V14.2","name":"General Data Protection","cheat_sheets":[{"name":"HTML5 Security Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/HTML5_Security_Cheat_Sheet.html"},{"name":"User Privacy Protection Cheat Sheet","url":"https://cheatsheetseries.owasp.org/cheatsheets/User_Privacy_Protection_Cheat_Sheet.html"}],"items":[{"id":"v5.0.0-14.2.1","level":1,"requirement":"Verify that sensitive data is only sent to the server in the HTTP message body or header fields, and that the URL and query string do not contain sensitive information, such as an API key or session token.","category":"build-stack","relevance":"situational","applies_when":"Prompts or retrieved context contain personal, customer or other sensitive data.","note":"Decide what data may go to the model provider, and how long prompts, outputs and embeddings are kept.","stacks":["ai-llm-app"],"by_stack":[{"stack":"ai-llm-app","category":"build-stack","relevance":"situational","applies_when":"Prompts or retrieved context contain personal, customer or other sensitive data.","note":"Decide what data may go to the model provider, and how long prompts, outputs and embeddings are kept."}],"source_url":"https://github.com/OWASP/ASVS/blob/v5.0.0_release/5.0/en/0x23-V14-Data-Protection.md"}]}]}],"grouping_notice":"The grouping by stack is Helm's own curation and is not endorsed by OWASP. The requirements are OWASP's, from ASVS 5.0.0.","attribution":"Requirements: OWASP Application Security Verification Standard 5.0.0, (c) OWASP Foundation, licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0), https://creativecommons.org/licenses/by-sa/4.0/. Source: https://github.com/OWASP/ASVS/tree/v5.0.0_release. The grouping by stack (AI / LLM app), the relevance labels and the notes are Helm's own editorial curation, not an OWASP product, and are not endorsed by OWASP. Cheat sheet links point to the OWASP Cheat Sheet Series (CC BY-SA 4.0). Completing a checklist means the listed controls were considered; it does not mean a system is secure.","mapping_date":"2026-11-24","sources":[{"source_name":"OWASP ASVS","source_record_id":"5.0.0","source_database":null,"source_url":"https://github.com/OWASP/ASVS/tree/v5.0.0_release","source_license":"CC-BY-SA-4.0","schema_version":"5.0.0","upstream_modified_at":"2025-05-30T09:34:29Z","fetched_at":"2026-11-24T22:53:07.225539Z"},{"source_name":"OWASP Cheat Sheet Series","source_record_id":"18e6c89f960e10a5b64f7c882c2b9dc17c423d10","source_database":null,"source_url":"https://cheatsheetseries.owasp.org/","source_license":"CC-BY-SA-4.0","schema_version":null,"upstream_modified_at":null,"fetched_at":"2026-11-24T22:53:07.225539Z"},{"source_name":"helm-curation","source_record_id":"2026-11-24","source_database":null,"source_url":null,"source_license":"CC-BY-SA-4.0","schema_version":null,"upstream_modified_at":null,"fetched_at":"2026-11-24T22:53:07.225539Z"}]}