--- title: 'Systems Security Foundations for Agentic Computing' authors: ['Mihai Christodorescu'] date: 2025-12-01 categories: [] tags: ['multi_agent', 'system_design'] source_id: '2512.01295v2' source_url: 'https://arxiv.org/abs/2512.01295v2' description: 'In recent years, agentic artificial intelligence (AI) systems are becoming increasingly widespread. These systems allow agents to use various tools, such as web browsers, compilers, and more...' keywords: ['Systems', 'Security', 'Foundations'] canonical: 'https://dailyreading.cc/records/arxiv_2512.01295v2' --- # Systems Security Foundations for Agentic Computing Mihai Christodorescu1 Earlence Fernandes2 Ashish Hooda1 Somesh Jha1,3 Johann Rehberger4 Kamalika Chaudhuri5 Xiaohan Fu2,6 Khawaja Shams1 Guy Amir7 Jihye Choi3 Sarthak Choudhary3 Nils Palumbo3 Andrey Labunets2 Nishit V. Pandya2 1Google 2University of California San Diego 3University of Wisconsin–Madison 4EmbraceTheRed 5FAIR at Meta 6Gray Swan AI 7Cornell University #### Abstract In recent years, agentic artificial intelligence (AI) systems are becoming increasingly widespread. These systems allow agents to use various tools, such as web browsers, compilers, and more. However, despite their popularity, agentic AI systems also introduce a myriad of security concerns, due to their constant interaction with third-party servers. For example, a malicious adversary can cause data exfiltration by executing prompt injection attacks, as well as other unwarranted behavior. These security concerns have recently motivated researchers to improve the safety and reliability of agentic systems. However, most of the literature on this topic is from the AI standpoint and lacks the system-security perspective and guarantees. In this work, we begin bridging this gap and present an analysis through the lens of classic cybersecurity research. Specifically, motivated by decades of progress in this domain, we identify short- and long-term research problems in agentic AI safety by examining end-to-end security properties of entire systems, rather than standalone AI models running in isolation. Our key goal is to examine where research challenges arise when applying traditional security principles in the context of AI agents and, as a secondary goal, distill these ideas for AI practitioners. Furthermore, we extensively cover 11 case studies of real-world attacks on agentic systems, as well as define a series of new research problems that are specific to this important domain. ## 1 Introduction Agentic AI systems have become widespread: by being given access to tools such as web browsers, compilers, and more, AI agents, and especially those based on large language models (LLM), are becoming increasingly powerful. However, this comes at a cost: access to third party tools and external servers introduces a wide range of security challenges that must be addressed in order to safely and reliably deploy such systems in a trustworthy manner. Previous literature has raised the important topic of agentic AI security, however, most of the this literature is written from an AI perspective, and does not leverage the extensive research accumulating through dozens of years of classic security studies. In this Systematization of Knowledge (SoK) paper, we begin bridging this gap, and explore how to build upon well-studied concepts and practices in computer-security research to advance the security of agentic computing. We focus on key similarities and differences between both domains, and distill lessons, open research problems and recommendations on how the two fields can co-operate to build a foundation for secure agentic computing. Agentic computing refers to AI models that interact with computer systems and services on behalf of human users by repeatedly calling tools in a loop [100](#page-22-0). The user specifies a task in natural language, and the AI model (typically a large language or vision model) completes it by iteratively invoking tools, such as desktop UIs, web browsers, or mobile operating systems. For instance, a user might ask an agent to find mentions of a particular event in recent emails, summarize what happened, and save the summary to a text file. Such a request can trigger tools calls including email search, retrieval, and writes to local storage. Recently, there is also a trend in promoting uniform standards and protocols for defining various agentic tool calls, e.g., REST or Model Context Protocol (MCP) [58](#page-19-0). Current efforts to secure agentic systems span multiple layers of defense [8](#page-16-0), including model-level, systemlevel, and user-level approaches. At the model level, various methods aim to make the agent more resilient to attacks by hardening approaches, often described as alignment techniques [18,](#page-17-0) [96,](#page-22-1) [62](#page-20-0). At the system level, an increasingly prominent line of work treats the model as an untrusted (or at best, probabilistic) component and instead enforces invariants through isolation and mediation: restricting the agent's action space, sandboxing tool execution, structuring tool interfaces, and separating untrusted data from control flow via explicit trust boundaries and guardrails [8,](#page-16-0) [110](#page-23-0). Finally, at the user level, practical deployments commonly incorporate governance mechanisms such as explicit approvals/confirmations for sensitive actions, permission scoping, and audit/monitoring to reduce the blast radius of failures and support incident response [8](#page-16-0). From a computer-security perspective, this emerging taxonomy mirrors a classic defense-in-depth lesson: hardening a component is valuable, but is rarely sufficient on its own. Robust systems rely on deterministic enforcement points (e.g., access control, isolation, and provenance boundaries) placed at multiple layers of abstraction (hardware, hypervisors, operating systems, user-space frameworks, applications, and networks), to increase the attacker's burden while preserving performance and functionality [82,](#page-21-0) [4](#page-16-1). In agentic settings, however, deciding where to place such enforcement points is less straightforward, because the model simultaneously (i) processes untrusted content and (ii) synthesizes actions and tool calls on the fly. This tension is aggravated further due to modern agents being vulnerable to inference-time attacks that can steer behavior in arbitrary ways [115,](#page-23-1) [31,](#page-18-0) [91,](#page-22-2) [39](#page-18-1). As with earlier waves of adversarial ML, purely behavioral defenses that rely on the model to reliably identify and ignore malicious instructions can remain brittle under adaptive attackers [60,](#page-20-1) [7,](#page-16-2) [65](#page-20-2). Moreover, in the LLM era, attackers often need not have deep system expertise: simple prompting can be enough to induce harmful tool use or policy violations in real-world deployments [39,](#page-18-1) [70,](#page-20-3) [79,](#page-21-1) [74,](#page-21-2) [80](#page-21-3). Therefore, to make foundational and practical progress, the fields of computer security and AI agent security need to co-operate: combining model-level robustness with principled system-level and user-level guardrails grounded in decades of security research. Summary of Findings. Computer security makes progress by articulating clear security invariants and then enforcing them via layered, largely deterministic mechanisms and design principles (e.g., least privilege, complete mediation, separation of privilege) [82,](#page-21-0) [4](#page-16-1). When we attempt to apply these ideas to agentic systems, we encounter several challenges that arise. We use these frictions to organize the report and to surface concrete research questions. Furthermore, each of these challenges also poses interesting research avenues for long-term future work. - (1) Probabilistic and Opaque TCB. A classic systems-security move is to minimize a trusted computing base (TCB) that deterministically enforces an invariant (e.g., preventing execution from non-executable memory regions to reduce the impact of memory-corruption bugs). In many AI-based systems, including agentic ones, the model itself becomes a central part of the TCB, yet its behavior is fundamentally probabilistic and often not fully interpretable. If we "train the model to never do X", that guarantee is inherently conditional and statistical: it holds with some probability that depends on the input distribution and the surrounding context rather than as an absolute property of the system. The resulting challenge is to build defenses with meaningful assurance guarantees despite relying on a probabilistic/opaque component in the TCB. - (2) Dynamic Security Policies. A security policy specifies what an untrusted program is allowed to do and is typically authored by a developer or inferred from code analysis. However, in agentic settings, both these assumptions break down: (i) there may be no developer intent beyond the end-user's natural-language request, and (ii) there is no fixed program to analyze, since the agent effectively synthesizes many programs on the fly. Inferring or synthesizing a policy from a task description is difficult because tasks are often underspecified, and using the agent's full context window for precise policy inference is nontrivial due to untrusted external content. - (3) Fuzzy Security Boundary. Deterministic guardrails are most effective when enforced at an interface that exposes the right semantic information (e.g., Android permissions at the boundary between apps and protected services). In many agentic stacks, however, the boundary between "decision" and "action" is blurry: the model may directly emit tool calls (sometimes via low-level UI actions) without stable abstraction layers that cleanly separate intent from mechanism. As a result, policies written at too low a level (clicks/keystrokes) become brittle, while policies written at too high a level may lack enforceable grounding. This can also be viewed as a manifestation of the classic semantic gap problem [44,](#page-18-2) [29,](#page-17-1) [89](#page-21-4). (4) Dynamic Instruction Following. Prompt injections are a key security problem to solve in agentic systems, but the underlying mechanism of dynamically updating agentic instructions is oftentimes necessary for functionality and thus not necessarily malicious. For example, tool documentation does affect an agent's behavior (by definition because the agent has to learn how to use the tool!). The challenge here is defining when prompt injections are harmful [26](#page-17-2) and when they are useful and then distinguishing the two. The analog in computer security is dynamic code loading–a very challenging problem that remains difficult to address today. Scope and organization of this report. There has been a range of recent and contemporaneous writings on the general theme of applying computer security ideas to agentic computing [8,](#page-16-0) [110](#page-23-0). The key distinction of this report is that we take a deep-dive on the technical challenges that arise when applying concrete security principles and articulate open research problems based on those technical challenges. The paper starts out with a discussion of security principles applied to agentic settings and the challenges that arise forthwith [Section 2](#page-2-0). [Section 3](#page-4-0) presents 11 case studies of real attacks on agentic systems with three goals in mind: (1) to showcase how real attacks are carried out by adversaries without the need for sophisticated technical tools to execute them; (2) to highlight the corresponding security principle(s) that were violated; and (3) to outline concrete security mechanisms needed to stop each such attack. We discuss the current practices for mitigating these threats in [Section 4](#page-11-0) and summarize the open research problems in [Section 5.](#page-12-0) ## 2 Challenges in Applying Security Engineering to Agentic Computing ### 2.1 The TCB is Probabilistic The Trusted Computing Base (TCB) is a component or assumption that cannot be influenced by the attacker. TCB is an invariant which is basis of security, such as the no-execute or NX bit in hardware (e.g. data put in region with NX bit set can never be executed or interpreted as instruction). In traditional systems, the TCB consists of deterministic components such as hardware, OS kernels, reference monitors that behave predictably. This determinism enables security guarantees: W⊕X memory protection consistently prevents execution of writable memory, and Content Security Policy deterministically blocks unauthorized scripts. In contrast, the TCB in agentic systems is built on LLMs that do not guarantee predictable, or even deterministic behavior—the same prompt can yield different outputs due to sampling randomness. Thus a fundamental challenge in realizing this traditional security principle in agentic systems is the TCB being probabilistic or non-deterministic (e.g. imagine whether we could build a memory safety defense on top of a probabilistic NX bit). This probabilistic nature undermines traditional security principles in three ways. First, a probabilistic reference monitor might correctly deny unauthorized access 99% of the time, but the remaining 1% can be exploited. Second, unlike traditional systems where security properties can be formally verified, we cannot prove an LLM will always enforce policies correctly. Third, LLMs operate in continuous representation spaces, making them vulnerable to adversarial examples. Unlike traditional systems that have discrete instruction sets with clear boundaries, attackers can use various search and optimization techniques to efficiently find inputs that appear benign but cause policy violations. To build secure systems on probabilistic LLMs, we must leverage external deterministic information to disambiguate LLM decisions. An example of a system takes this approach is SkillFence [41](#page-18-3). It uses deterministic signals from the user's browsing history and installed apps to correct any mistakes made by a voice assistant's language understanding. However, we believe that building provable defenses on probabilistic and non-deterministic TCB is a challenging—perhaps impossible—task. #### 2.2 The Security Policy Is Dynamic and Task-Specific In traditional computer security, a security policy governs the privilege of a piece of code. For example, in Android, the OS developers provide a set of permissions that an app developer can select from. The key aspect is that the app is generally single-purpose, built to perform a fixed set of tasks, and thus, the app developer can create a security policy and present it to the user at the time of installation. Furthermore, one can analyze the app's code to determine why certain permissions are needed and whether they are necessary for the app's stated functionality (thus allowing for analyzing compliance with the principle of Least Privilege). In agentic systems, there is no app developer and there is no app. Rather, there is only a natural language task specification that can change over time. Thus, the privilege of the agent is dynamic and needs to be predicted from the task description in a secure manner. For example, consider a simple developer task assigned to a browser agent: ``` comment on GitLab issue 745 that we're done ``` From this task description, the security policy would need to incorporate the following components: - 1. The agent can navigate to GitLab issue 745; - 2. The agent should have write access to the comment box; - 3. The agent should not have access to anything else in GitLab or the user's session in the browser. This least-privilege security policy is task-specific and only known once the task is specified. Continuing this example, let's say that the user specifies a follow-up task for the agent: ``` summarize issue 745 for me ``` Now, how should the privilege of the agent change to solve the new task description? One option is to reset the agent's context and redo the policy prediction. This approach is secure but can result in lost utility because the agent's context is erased. Thus, how can we evolve the security policy in a secure manner while there is untrusted data in the context? An additional problem for AI agents is that privacy consent is fundamentally at odds with agency [93](#page-22-3), as finding and enforcing the right policy for an AI agent each time requires resolving the trade-off between providing more access for better task performance and restricting access as per least-privilege principle. We believe that the key lies in creating policy languages that are amenable to formalized reasoning so that when new policies are predicted and added to the existing set, we can reason about how the new policies change the overall privilege level of the agent. Extrapolating from this example, we posit the following research challenges: (1) domain-specific policy languages for different types of agents that are amenable to formal analysis and reasoning; (2) dynamic policy prediction in these DSLs given natural language tasks, from trusted and untrusted context. ### 2.3 The Security Boundary Is Fuzzy Identifying the right abstraction at which security policies are enforced is crucial to upholding the complete mediation design principle. In traditional computer systems, we have layered architectures (Hardware— Operating System (OS) Kernel—Process—Network) that offer different levels of abstraction for enforcing security policies. For example, the process-kernel interface allows for SELinux-style MAC policies and the App-Runtime interface allows for higher-level permissions that we see in systems like Android. Agentic systems lack these layers. Rather, they directly use tools given a natural language prompt. There are no layers in between. Thus, enforcing a security policy at the final layer of tool-calls can lead to incomplete or ineffective mediation (i.e., there can be gaps). The key research challenge in applying the complete mediation principle is identifying or creating the right abstraction at which a security policy can be enforced. We discuss two recent efforts that have started investigating these challenges along two dimensions: (1) creating an abstraction over which security can be enforced; (2) finding the right level of abstraction in an existing agent design. CaMeL [25](#page-17-3) and FIDES [23](#page-17-4) introduce an agent design that exemplifies the "solution as code" approach. To solve a task, the agent first generates code that, when executed, would solve the task specified in natural language. Notice that this introduces a new layer of abstraction: the code needed to solve the task. At that point, one can analyze the code using standard security analysis methods (control and data flows) to determine whether the agent's plan is aligned with the user's goal. A key assumption in this design is that the agent has access to a set of semantically-meaningful tools. One of the key future research questions here is creating an appropriate intermediate representation for agent plans that is amenable to static and dynamic analysis. ceLLMate [54](#page-19-1) introduces a sandboxing framework for browser agents. The key challenge is identifying the right abstraction to enforce security policies within existing infrastructure. Browser agents, as currently built, have access to low-level UI manipulation tools (e.g., clicks and keystrokes), and thus, it is non-sensical to write policies at that level. The key insight to address this semantic gap is realizing that no matter what UI manipulations the agents perform, HTTP-level messages capture those actions in semantically meaningful ways. Therefore, ceLLMate policies are specified and enforced at the HTTP level, in co-operation with information supplied by webserver developers. One of the key future research challenges here is automatically predicting policies at the level of HTTP messages using natural language task descriptions as input. ### 2.4 Dynamic Instruction Following Prompt injection, more specifically indirect prompt injection, is often seen as a vulnerability of current AI-based systems. But more generally, prompt injection can be seen as a manifestation of a new class of functionality in AI, where the agent can adjust its task based on new instructions in its context. For example, using the GitLab task in [Section 2.2,](#page-2-1) the agent may start with the aforementioned summarization request prompt, subsequently visit the GitLab page for that issue, identify that it depends on another issue, and decide to summarize both to give the user a comprehensive answer. The distinction between (undesirable) prompt injection and (desirable) contextual task adjustment rests on the provenance of the input that triggered the change and the scope of the change. From the security perspective, dynamic instruction following, which can be realized as prompt injection (benign or malicious), has a parallel in non-AI systems in the form of dynamic code loading. This is common among applications that support plugins or extensions (e.g., OS kernels, IDEs, web browsers) and has long posed significant challenges in terms of security. The typical solution is to introduce another security boundary between the main TCB and the dynamically loaded code and to use permissions or sandboxing to limit the access afforded to the new code. For example, web pages (probably the most popular platform for dynamic code loading, as each page load and subsequent interaction can potentially load additional Javascript code as web-page scripts) are secured through a number of sandboxes and associated security policies: Content Security Policy determines which third-party scripts can be loaded, Same-Origin Policy restricts the web page data accessible to a third-party script, `