AI & data

Security risks in AI features, and defences

Prompt injection, data leakage and over-powerful AI agents are new risks for software teams. The OWASP Top 10 for LLMs and practical defences.

GloryTekSystems team11 Aug 2026 2 min read

A software engineer writing code on two monitors

Adding a language model to a product creates new kinds of risk. OWASP’s Top 10 for Large Language Model Applications, updated for 2025, lists the most important ones. Prompt injection is first, followed by sensitive information disclosure.

The main risks

  • Prompt injection: instructions hidden in user input or retrieved documents that make the model ignore its rules
  • Sensitive information disclosure: the model reveals data from its context or connected systems
  • Excessive agency: the model can take actions, such as sending emails or changing records, beyond what is safe
  • Improper output handling: model output is used in pages, queries or commands without validation
  • System prompt leakage, and weaknesses in the vector stores used for retrieval

Defences that work

Treat model output as untrusted input: validate it, escape it and never execute it directly. Give AI features only the permissions and data the current user already has. Require a person to confirm consequential actions, such as payments, deletions or external messages. Keep secrets out of prompts entirely.

Test like an attacker

Include injection attempts, requests for other users’ data and attempts to trigger unwanted actions in your evaluation set, and rerun them whenever prompts, tools or models change.

Written by the GloryTekSystems team

Our engineers and consultants write about what they see in real projects. Have a question about your own systems?

Ask us
GloryTek assistantQuick answers · automated

Hi, I’m the GloryTek assistant. Ask me about our services, pricing, timelines or industries.

Popular pages

↑↓ to move to open Esc to close