Back to Blog
ET
Editorial team
10 min read

Prompt Injection Is a Solved Problem. Here's What Should Actually Worry You.

82% of AI security incidents involve data leakage, not injection. We break down the four real threats and the defences that actually work.

SecurityComplianceData Protection

If you have been following AI security discourse, you would think prompt injection is the only threat worth worrying about. It is not. Prompt injection is a well-understood, largely mitigated attack vector with established defences. The real threats — the ones that are actually burning companies right now — are quieter, harder to detect, and much more damaging.

82%

Of AI security incidents in 2025 involved data leakage, not prompt injection

Source: Enprompta Security Report, analysis of 200+ disclosed AI incidents

We analysed over 200 publicly disclosed AI security incidents from the past year. The pattern is clear: the industry is over-indexed on injection and under-indexed on the threats that actually cause damage.

Threat 1: Data leakage through context windows

This is not a theoretical risk. We have seen production prompts that routinely include customer email addresses, internal revenue numbers, and even API keys as "context" for the model. The prompt works fine — the security posture is catastrophic.

Threat 2: Supply chain risks

Your LLM application probably depends on a stack of libraries: API clients, prompt templating engines, output parsers, vector databases, embedding models. Each one is a supply chain dependency with its own security posture.

Treat your AI stack with the same security rigour as the rest of your application. Pin dependency versions. Audit new dependencies before adoption. Run vulnerability scans. Do not install a package just because a tutorial recommended it.

  • Pin all AI library versions explicitly — no floating ranges
  • Audit the permissions each library requires (network, filesystem, env vars)
  • Use a lockfile and verify its integrity in CI
  • Monitor for CVEs in AI-specific packages (many are too new for traditional scanners)

Threat 3: Compliance gaps

GDPR, SOC 2, HIPAA, and industry-specific regulations were not written with LLMs in mind. But they still apply. When you send personal data to an LLM API, you are processing that data with a third-party processor. When the model generates output based on that data, you are creating derived personal data. Most compliance frameworks have requirements for both.

67%

Of companies using LLMs in production have no DPA with their AI provider

Source: Enprompta compliance survey, Q1 2026

Threat 4: Access control and prompt manipulation

Now we get to injection — but the real version, not the blog-post version. The actual risk is not that someone tricks your chatbot into saying something funny. It is that an attacker manipulates a prompt to exfiltrate data, bypass business logic, or escalate their access within your application.

Notice that "add a disclaimer to the system prompt" is not on the list. Disclaimers do not stop injection. Architectural controls do.

Building a secure AI stack

Security in AI applications is not fundamentally different from security in any other application. The principles are the same: minimise the attack surface, validate inputs and outputs, control access, log everything, and assume breach.

What is different is the maturity of the tooling. Traditional application security has decades of established patterns and tools. AI security is still early. This means you need to be more deliberate, more manual, and more vigilant than you would be with a mature stack.

At Enprompta, security is built into the platform layer. Our routing engine strips PII before it reaches the model. Our audit logs capture every prompt and response. Our access controls enforce per-user and per-team permissions on prompt libraries. But even without a dedicated platform, the principles in this article will get you to a defensible security posture.

About the Author

ET

Editorial team

The Enprompta editorial team covers AI prompt engineering, cost optimisation, and production best practices.

Related Articles

Editorial team

The Hidden Power of System Prompts: Why Every AI Team Should Care

System prompts define how your model behaves before a user types anything — yet most teams treat them as throwaway config. Here is the 10-point framework for designing, testing, and securing them.

System PromptsAI Architecture
Read article
Editorial team

Why AI Agents Need Versioning, Evals, and Observability

Learn why versioning, evaluations, and observability are essential for reliable AI agents, and how Enprompta helps teams ship with confidence.

AI agentsVersioning
Read article
Editorial team

LLM Evaluations as Engineering Infrastructure

Prompt engineering is systems engineering under uncertainty. Without a measurement layer, your LLM system runs on anecdote. LLM evaluations convert qualitative prompt performance into quantitative system signals — and that distinction changes everything.

LLM EvaluationsPrompt Engineering
Read article

Want more insights like this?

Subscribe to our newsletter for the latest AI and prompt engineering tips.