arXiv

What If Prompt Injection Never Left? Exploring Cross-Session Stored Prompt Injection in Agentic Systems

Title: What If Prompt Injection Never Left? Exploring Cross-Session Stored Prompt Injection in Agentic Systems

Abstract:

Contemporary agentic systems have evolved Large Language Models (LLMs) from assistants confined to individual sessions into stateful entities. These systems maintain and adapt a shared representation of the world across multiple interactions by leveraging memories, file systems, tools, and other enduring contextual elements. This architectural shift significantly broadens the attack surface for prompt injection. Yet, previous research has predominantly examined model-level vulnerabilities occurring within isolated sessions, largely ignoring how persistent system state across sessions alters the systemic risks inherent to agentic frameworks. Drawing inspiration from stored cross-site scripting (XSS) in web applications, we propose the concept of "cross-session stored prompt injection." In this scenario, a successful injection embeds itself within the agentic system’s state, allowing it to covertly manipulate subsequent executions long after the initial malicious interaction has concluded.

To investigate this threat systematically, we formalize the mechanics of stored prompt injection and construct a taxonomy detailing how adversarial content endures and impacts agentic systems over time. Additionally, we have created a benchmark and a sandbox toolkit designed to assess the dangers posed by stored prompt injection. These resources facilitate the quantitative measurement of attack success rates across various models, objective goals, and persistence mechanisms. Our results demonstrate that persistence elevates prompt injection from a transient, model-level issue to a durable, system-level vulnerability deeply integrated into the agent’s execution state. We aim for this research to raise wider awareness of this nascent threat and encourage the community to rigorously examine and address the systemic risks generated by persistence in agentic systems.


Source: arXiv Generated at: 2026-06-04 00:00:00 UTC

Related Articles

AI Concentration Risk Is the Problem: 3-Minutes MLIV
Bloomberg

AI Concentration Risk Is the Problem: 3-Minutes MLIV

The article argues that AI concentration risk, rather than the technology itself, is the primary concern. It highlights ...

Reuters

Foxconn announces strategic collaboration with Intel on next-gen AI infrastructure

Foxconn and Intel announced a strategic partnership to develop next-generation AI infrastructure. This collaboration aim...

SpaceX Seeks to Raise $75 Billion in Record IPO (Video)
Bloomberg

SpaceX Seeks to Raise $75 Billion in Record IPO (Video)

SpaceX aims for a record $75 billion valuation through an initial public offering. This historic IPO marks a significant...

Broadcom AI Chip Outlook Disappoints Investors
Bloomberg

Broadcom AI Chip Outlook Disappoints Investors

Broadcom’s AI chip projections disappointed investors, dampening market sentiment. The outlook fell short of expectation...

Reuters

Europe's tech 'liberation day'? Computer says not yet

Europe’s expected tech breakthrough remains unrealized, as current systems indicate that a true "liberation day" has not...

Hiranandani Group CEO on Powering India's Digital Future
Bloomberg

Hiranandani Group CEO on Powering India's Digital Future

Hiranandani Group CEO discusses driving India's digital transformation.