Article

How the OWASP LLM Top 10 Applies to Code Generation

The rapid growth of generative AI and large language models introduces new security risks that are challenging to address due to the novelty of the field compared to established domains like web application security.

OWASP LLM Code Generation FAQs

What is the OWASP Top 10 for LLM applications, and has it changed?

How does prompt injection work, and why is it hard to prevent?

How do you prevent prompt injection?

How do you test an LLM application for prompt injection?

Can attackers use prompt injection against AI coding assistants?

What are the security risks of relying on AI-generated code in production?

How do you govern AI-generated code in an organization?

How do you secure AI agents and LLM-powered applications?

How do you share credentials with an LLM securely?

What is an AI bill of materials (AI-BOM)?