Advent Cybersecurity Research · Paper

Research Paper: A Layered Risk and Controls Framework for Prompt Injection

A ten-layer model for examining prompt-injection exposure across enterprise AI tooling, with a controls matrix grounded in published benchmarks.

Created and published by Advent CybersecurityOriginal publication
About this edition

This Advent Cybersecurity edition is a substantive account of the research, not the complete deposited paper. The PDF on Zenodo contains the full analysis, tables, examples, and complete citations.

The risk spans the execution path

Prompt injection is often discussed as if a classifier at the model boundary could solve it. This paper argues that enterprise risk emerges across the entire path from user instruction and retrieved content to model decisions and tool execution. The language model can be influenced by lower-trust material; no single layer can remove that property or guarantee that a tool-using assistant will ignore every hostile instruction.

The framework treats prompt injection as a risk to contain, monitor, and respond to. It examines ten layers of the enterprise AI tool execution path, using coding assistants such as Claude Code, Gemini Code Assist, Windsurf, and Cursor as examples. Each layer has a distinct threat surface, control surface, and telemetry opportunity.

  • Inputs and local state. Prompt origination and workspace state determine what the assistant can see and which instructions or files an attacker may influence.
  • Application and context. The client application, context assembly, and external content ingestion decide how trusted requests and untrusted material meet.
  • Service path. Network transport, vendor authentication, the foundation-model gateway, and model inference introduce distinct trust and observation boundaries.
  • Actions. Tool execution turns model output into file, shell, browser, network, or other consequential operations.

Injection patterns

The paper separates direct instruction override from indirect injection carried by retrieved content. It also examines injection through tool results and tool catalogs, imperceptible Unicode characters, multimodal inputs, adversarial suffixes, and confused-deputy behavior when a tool has more authority than the source content that steers it. The deposited paper includes worked code-block examples for each subclass, drawn from the published attack literature.

This taxonomy matters because defenses that identify one entry point may leave other paths open. A design review should trace the source of each instruction-like string, the authority the assistant assigns to it, and the tool permissions available when it is processed.

Controls and benchmark limits

A 33-row controls matrix maps defenses to the layers they protect. The paper draws on AgentDojo, InjecAgent, Spotlighting, and BIPIA results rather than treating any one benchmark as a universal measure of protection. For example, the cited AgentDojo evaluation reports targeted attack success falling from 47.7% to 6.8% with its strongest evaluated defense. Other cited results concern different models, tasks, attackers, and success definitions.

The cross-benchmark analysis highlights tool restriction, origin restriction, and spotlighting as promising controls within the cited evaluations, while data delimiting and repeat-prompt approaches appear weaker there. These figures must not be compared as if they came from one controlled experiment; the paper explicitly flags cross-benchmark comparability limits. No percentage should be read as a guarantee for a particular deployment.

Applying the model in an enterprise

The paper maps its layers to NIST AI RMF, ISO/IEC 42001, the OWASP Top 10 for LLM Applications, and MITRE ATLAS. The practical emphasis is on reducing the authority and blast radius of an influenced assistant: protect workspace configuration, restrict origins for retrieved content, require authorization for write actions, and collect telemetry across the context-to-tool boundary.

Future work identified in the paper includes reproducible tests of layered defenses, a standard telemetry schema for AI-tool decisions, formal trust-boundary analysis, user studies of confirmation bypass, and methods for normalizing results across injection benchmarks.

Editorial and provenance note. This Advent edition adapts the original summary. It preserves the paper's benchmark caveat and links to the deposited work for tables, examples, and the complete bibliography. No new efficacy claim is made here.