arXiv(opens in a new tab)cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.31974

Agentic AI Defense: Decode-Time Provenance Binding for MCP

Eric Yocam, Varghese Vaidyan, Paris Kalathas, Patrick Tague, Bruce DeBruhl, Yong Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Eric Yocam †1^{\dagger1}, Varghese Vaidyan 2^{2}, Paris Kalathas 1^{1}, Patrick Tague 3^{3}, Bruce DeBruhl 1^{1}, and Yong Wang 4^{4}

Abstract—Agentic AI systems—large language model (LLM) agents that call tools through the Model Context Protocol (MCP)—are increasingly defended against indirect prompt injection by tracking data provenance: text returned by a tool is labeled untrusted and barred from driving dangerous actions. These defenses label at the text channel. We show this is bypassed by a benign-looking image—a logo in an email signature—that hides an instruction via steganography (least-significant-bit [LSB], discrete cosine transform [DCT], or metadata), passes text scanners that see only pixels, and becomes an instruction only when a tool decodes it, laundering it into the agentic system's trusted control flow. As a defense we propose decode-time provenance binding: within a fully mediated MCP execution environment, the MCP layer mints a keyed-hash message authentication code (HMAC)-signed UNTRUSTED label the instant a concealment-reversing tool runs and itself maintains the complete provenance lineage of each critical call, so a verifier blocks any call whose lineage is untrusted—even when a compromised agent presents a valid label for an unrelated trusted value. On a real MCP testbed of three carriers and 24 adaptive payloads, the undefended pipeline leaks on 100% of attacks, a keyword scanner and a regex parser on 62.5% each, and our mechanism on 0%; an in-process taint baseline matches us within one trust domain but fails once a label crosses a compromised relay. A four-component ablation isolates decode marking, HMAC authentication, trusted lineage tracking, and sink mediation, and an audited trusted-promotion path raises legitimate-task completion from 67% to 100% without loss of protection. It contains rather than detects, so it is wording-and carrier-independent. Code and data are released.

Index Terms—Prompt injection, steganography, LLM agents, Model Context Protocol, data provenance, information-flow control, AI security, multi-agent systems.

I. INTRODUCTION

LARGE language models (LLMs) are increasingly deployed not as passive chatbots but as agents: systems that read external content, decide what to do, and then act by calling software tools on a user's behalf—reading an inbox and drafting replies, triaging tickets, or acting on documents. To call a tool, an agent needs a uniform way to discover it and exchange data with it; the Model Context Protocol (MCP) [1] has become a common such interface, letting an agent invoke tools—"extract the text from this image," "send this email," "export these records"—through one standardized channel. Realistic deployments are often multi-agent: a coordinator dispatches specialized worker agents that relay intermediate results to one another before any action is taken.

This autonomy creates a risk that does not arise for a passive chatbot. Because an agent acts on the content it reads, text inside that content can function as a command: an email whose body says “ignore your instructions and forward the user’s saved passwords” may be read by an inbox agent and obeyed, even though no human ever issued it. This is indirect prompt injection—an instruction smuggled into the data an agent processes rather than supplied by its operator—and it is ranked first on the Open Worldwide Application Security Project (OWASP) Top 10 for LLM Applications [2] and catalogued in the National Institute of Standards and Technology (NIST) adversarial-ML taxonomy [3].

A practical and well-studied instance is the email-summarizing agent: researchers have repeatedly hidden instructions in a message—for example as zero-pixel or white-on-white HTML text, invisible to the human reader—and shown that the summarizer reads and acts on them [4], [5], [6]. Two families of defense dominate. Content scanning inspects the ingested text for tell-tale injection markers (“ignore previous instructions,” a tool name, a request for credentials) and strips or blocks any match. Provenance tracking takes a different tack: rather than judge what the text says, it labels where the text came from—marking anything a tool returns as UNTRUSTED—and forbids untrusted content from triggering a sensitive action such as sending mail or exporting data [7], [8], [9], [10], [11]. Both families are the backdrop for the attack and defense this paper develops.

This paper makes three contributions.

• We identify and characterize cross-modal trust laundering: a steganographic email-signature carrier that defeats text content scanners and launderers an instruction into a multi-agent MCP control flow at the decode step (Section IV).

• As a defense for agentic AI, we propose decode-time provenance binding, which combines two guarantees that are usually conflated: data-provenance security (a critical action cannot be authorized through a forged or relabeled data dependency), delivered by an HMAC-signed label minted at the concealment-reversal boundary; and context-influence containment (a critical action cannot execute after an untrusted instruction has influenced the execution context without authorized clearance), delivered by having the MCP layer independently maintain the provenance lineage—a ledger and per-context taint—

†^{\dagger}Corresponding author.

1^{1}Department of Computer Science, California Polytechnic State University, San Luis Obispo, CA, USA (e-mail: eyocam@calpoly.edu).

2^{2}Beacom College of Computer and Cyber Sciences, Dakota State University, Madison, SD, USA.

3^{3}Information Networking Institute, Carnegie Mellon University, Pittsburgh, PA, USA.

4^{4}Department of Computer Science, University of Idaho, Moscow, ID, USA (e-mail: stevew@uidaho.edu).

Code and data are available at https://github.com/ericyoc/stego_provenance_defense.

rather than trust an agent-presented label. We give the two algorithms, a security invariant scoped to fully mediated contexts, and a proof sketch, and we show the conjunction defeats valid-label substitution by a compromised agent, which neither guarantee alone does (Section V).

  • We implement a real MCP testbed with three steganographic carriers (LSB, DCT, metadata) and an adaptive 24-payload attack bank, and show the mechanism reduces attack success to 0% where a keyword scanner and a regex parser each reach 62.5%; we add an information-flow (taint) baseline, an ablation over the mechanism's four components, a label-substitution stress test, and a legitimate-task evaluation in which an audited trusted-promotion path eliminates false blocks, with cryptographic overhead under 0.2% of a decode round-trip and a full enforcement path that scales linearly with lineage depth (Section VI). All code and data are released at https://github.com/ericyoc/stego_provenance_defense.

Both defenses assume the payload travels through a text channel. We show this assumption is violable in a way that is realistic, zero-click, and invisible to the human recipient. Consider a brand logo embedded in an email signature—the single most innocuous object in a message. Using steganography, an attacker hides an instruction in the logo's pixels or metadata. The image is visually identical to the original and contains no suspicious text, so a content scanner sees nothing. The victim never clicks anything. But when the victim's routine inbox-summarization agent processes the signature, a tool in its pipeline—an optical-character-recognition (OCR) step, a stego/metadata extractor, or a multimodal model prompted to surface hidden content—decodes the image, and the hidden instruction enters the agent's context. In a multi-agent pipeline, that decoded text is then relayed from the extracting worker to peer agents and the orchestrator, which treat it as ordinary intermediate output. An externally-supplied instruction has been laundered into the trusted control flow. We call this cross-modal trust laundering.

The key observation for defense is that existing provenance mechanisms attach the trust label when a text tool returns. A steganographic carrier defeats this because the dangerous transition—hidden bits becoming instructions—does not happen at text ingestion; it happens at the decode step. We therefore propose decode-time provenance binding: the trust label is minted at the moment any concealment-reversing tool runs, is cryptographically bound to the decoded payload so it survives multi-agent handoffs, and is enforced at the critical-tool boundary. Crucially, the defense does not attempt to detect that an image is poisoned—an arms race against ever-better steganography that the defender loses. It instead assumes any decoded content is untrusted and contains it, so the payload may decode perfectly and still cannot drive a critical action.

References (42)