Blog

Prompt injection cannot be solved with a single prompt line, Microsoft and Google show

Microsoft, Google, OWASP and CrowdStrike point to layered defence against prompt injection: isolate untrusted content, validate output with code and limit rights.

· By

Loose documents and envelopes pass through a row of separated sorting trays toward a closed metal gate with an ink stamp beside it.
Prompt injection requires layered defence: isolate untrusted content, validate output in code and require approval before irreversible actions.Image: IamVera.ai — original editorial illustration

Prompt injection cannot be solved with a single detector or prompt line. Recent guidance from Microsoft, Google, OWASP and CrowdStrike points to layered defence: isolate untrusted content, let deterministic code validate output and tool actions, limit the agent's rights and require human confirmation for irreversible actions.

In early November 2026 Microsoft published new guidance against indirect prompt injection in which it argues for defence in layers rather than a single protective layer. Google described a comparable layered approach for Gemini, and the OWASP taxonomy LLM01:2026 explains why the problem is structural. The core of the news: the model prompt is not a security boundary, and anyone who assumes it is builds a vulnerable application.

What is indirect prompt injection and how does a malicious instruction get in?

Indirect prompt injection means malicious instructions hidden in external content that the model processes: an email, a document, a web page, a plug-in or the output of a tool. Microsoft describes precisely this route. The model cannot distinguish that hidden instruction from a legitimate request from the user and carries it out as if the user had given it.

CrowdStrike describes newer prompt-injection techniques beyond the classic "ignore previous instructions", including delayed or trigger-activated behavior, fragmented payloads that only work together, special-token boundary manipulation and malicious instructions introduced through trusted context data. This means the attack can also sit in sources that an organisation itself regards as trustworthy.

Why does a single detector or prompt line not work against prompt injection?

Because current language models make no architectural distinction between instruction and data, as OWASP states. Everything in the context window is potentially a command for the model. A detector or a prompt line is probabilistic: it catches some of the attacks, but never all, and the techniques described by CrowdStrike are precisely designed to bypass static keyword detection.

In our assessment, this is the most important point for decision-makers: a vendor claiming that its detector "prevents" prompt injection promises more than the technology can deliver. Our reading of the guidance from Microsoft and OWASP is that prompt injection requires architectural containment and defence in depth, and cannot be solved by a single filter. Defence therefore means: assuming that some injections get through, and ensuring that they can then do little damage. See also our earlier analysis of prompt injection detection and where it fails.

Which layered controls do Microsoft, Google and OWASP recommend?

The sources describe controls that complement each other because they act at different places in the application. Detection and sanitisation reduce suspicious content; deterministic code outside the model enforces the boundaries; limited rights bound the damage; and human confirmation sits between the model and irreversible actions.

  • Isolation and labelling: separate untrusted content from executable instructions with information-flow control and provenance labels (OWASP).
  • Detection and sanitisation: prompt shields, classifiers, spotlighting (marking external content), Markdown sanitisation and rendering suspicious URLs unreadable (Microsoft, Google).
  • Deterministic validation: strict output schemas checked by trusted code, plus validation of every tool argument before it is executed (OWASP).
  • Minimal and short-lived rights: least privilege, short-lived credentials and a capability budget that bounds what the agent may achieve per task (Microsoft, OWASP).
  • Human confirmation: explicit, contextual approval before irreversible, privileged or externally visible actions (Microsoft, Google, OWASP).
  • Runtime monitoring: visibility into prompts, responses, models, agents and tool calls, plus detection of plan drift (an agent that deviates from its original plan) and compound attacks (Microsoft, CrowdStrike).

The sources leave one practical question open: how to combine these layers with existing enterprise systems without agents losing their usefulness. Our assessment: the tension lies mainly in the confirmation step, which can slow down convenient use. The solution is not less confirmation, but a sharp separation between actions the agent may complete itself and actions that always require a human.

What does this mean for directors, lawyers and CISOs deploying AI agents?

Our analysis: because the model does not distinguish instruction from data, any context source can manipulate an agent, and this affects every organisation that gives AI agents access to mail, documents or systems; our analysis: the person responsible must therefore now demand an inventory of every context source and every tool the agent can reach, before the application goes into production. Because some injections will pass the detection, the liability question shifts to what the model was allowed to authorise on its own; our analysis: the board therefore does well to record in writing which actions the agent may never carry out alone, and to anchor that boundary in the application code, not in a system prompt. Because CrowdStrike describes techniques using delayed triggers, fragmented payloads and trusted context sources, a one-off test with "ignore previous instructions" is worthless as evidence; our analysis: the CISO should therefore run adaptive red-team tests in the actually deployed configuration, with recording of model and policy versions. Our analysis: the lawyer must therefore require that blocked, approved and escalated actions are retained as evidence, so that an incident can be reconstructed. This approach aligns with the idea that the workflow around the model as the attack surface is central, and with the broader topic hub on AI security and the attack surface.

Summarised as a decision list:

  1. Inventory every context source and tool the agent can reach.
  2. Record which actions the agent may never authorise on its own.
  3. Enforce that boundary in deterministic code, not in a prompt.
  4. Test adaptive attacks in the deployed configuration, with version recording.
  5. Retain evidence of blocked, approved and escalated actions.

Anyone who includes attacking AI frameworks in the threat analysis will find additional guidance in our pieces on asset inventory and tested isolation against attacking AI. The common thread remains the same: start from what the agent can reach and what it may do on its own, not from the promise of a single detector.

Sources and references

  1. Defend against indirect prompt injection attacksMicrosoft Learn · 2026-11-04
  2. Indirect prompt injections & Google's layered defense strategy for GeminiGoogle Workspace Help · 2026-11-10
  3. LLM01:2026 Prompt InjectionOWASP Gen AI Security Project · 2026-11-30
  4. CrowdStrike Uncovers New Prompt Injection TechniquesCrowdStrike · 2026-07-07

Sources: The article relies on guidance from Microsoft Learn and Google Workspace Help, the OWASP taxonomy LLM01:2026 and research by CrowdStrike.

← All articles in this topic ← All articles

Review the answer before you rely on it.

Start with a sample question. See what Vera checks, what it changes and what still needs your judgement.