Actively exploited Attackers exploit Acronis Backup plugin for cPanel; users of version 1.9.4 are told to downgrade CVSS 7.5 · Published Dec 4, 05:40 UTC What to do now ›

Topic · AI

Prompt injection: news, attacks and defenses

Prompt injection is an attack in which instructions hidden in content, such as a web page, an email, a document or a code repository, make an AI model do something its user or developer did not intend. OWASP lists it first in its Top 10 for LLM applications (LLM01:2026), and NIST describes agent hijacking as a form of it.

2 articles · updated Follow (Atom feed)

Direct and indirect prompt injection

NIST’s taxonomy of attacks on AI systems, NIST AI 100-2 E2025 (March 2025), separates two kinds. In a direct prompt injection, the attacker is the system’s user and adds instructions meant to override higher-trust ones, such as the application’s system prompt. In an indirect prompt injection, the attacker plants instructions in a resource the system will read, and so can inject them “without directly interacting with the application”. OWASP gives websites and files as examples of such external sources.

Why it is hard to fix

The UK National Cyber Security Centre argues that prompt injection is not like SQL injection: “As there is no inherent distinction between ‘data’ and ‘instruction’, it’s very possible that prompt injection attacks may never be totally mitigated in the way that SQL injection attacks can be.” Its advice: “Rather than hoping we can apply a mitigation that fixes prompt injection, we instead need to approach it by seeking to reduce the risk and the impact.” OWASP’s 2025 entry likewise says “it is unclear if there are fool-proof methods of prevention for prompt injection”.

Reducing the risk

OWASP’s 2025 entry lists layered defenses:

  • constrain the model’s behavior;
  • define and validate expected output formats;
  • filter inputs and outputs;
  • enforce least privilege for what the model can reach;
  • require human approval for high-risk actions;
  • separate and identify external content;
  • test with adversarial attacks and attack simulations.

Because no defense is complete, limit what a successful injection can do. An AI system that can only read public data and cannot act on its own does far less damage when it is fooled.

See also AI agent security and MCP security.

Sources

All coverage

Newest first

Related topics