AI & LLM Application Security

AI & LLM Application Security

As applications embed large language models, they inherit a new class of vulnerabilities that traditional tools do not model. The OWASP Top 10 for LLM Applications captures them. The recurring theme is trust: trusting attacker-influenced prompts, trusting model output as if it were safe code or data, and granting the model more power to act than it needs.

Prompt Injection

OWASP LLM01
What it is
Untrusted content, direct or embedded in retrieved data, overrides the application's instructions to the model.
Why it matters
The model is steered to leak data, call tools, or produce attacker-chosen output.
How to check
Separate trusted instructions from untrusted content and constrain what the model is allowed to do.

Insecure Output Handling

OWASP LLM02
What it is
Model output is passed to a downstream system (a shell, a browser, a query) without validation.
Why it matters
Classic injection, but triggered through the model instead of direct input.
How to check
Treat model output as untrusted and validate or encode it before use.

Sensitive Information Disclosure

OWASP LLM06
What it is
The model can reveal secrets, personal data, or other context it was given but should not expose.
Why it matters
Leakage of data the user should never have been able to retrieve through the model.
How to check
Minimize the sensitive context the model receives and filter its responses.

Excessive Agency

OWASP LLM08
What it is
The model is given tools or permissions far broader than its task requires.
Why it matters
A manipulated model takes damaging actions it should never have been able to take.
How to check
Grant the narrowest set of tools and permissions, and require confirmation for consequential actions.

Related coverage

Check your code for ai & llm application security

Tethlyn Audit checks your codebase for ai & llm application security and more, then ranks each finding by real exploitability and data sensitivity.

See Tethlyn Audit