Skip to content

Taming AI agents with seL4Taming AI Agents with seL4

Maysara Alhindi
arXiv: Jailbreaks, Prompt Injection, Poisoning & DefensesarXiv:2611.38113Originally published Indexed by this site · 2 days agoSelected DefensesSelectedAttention40

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors use the seL4 microkernel to isolate a multi-agent team; on AgentDojo, the attack success rate for gpt-4o-mini dropped from 48% to 7%.

Threat modelTwo types of attackers: one controls the text read by the agent and succeeds only if the model complies; the other fully controls the agent PD and can run arbitrary code. Goals include calling unauthorized functions, acting under a false identity, delegating beyond authority, and reading or writing memory. The seL4 kernel, generator, system description, supervisor, tool PDs, drivers, and relay are trusted; the model and code within the agent PD are not trusted.

Questions
Agent restrictions depend on code such as kernels, containers, and proxies; bypasses or permission combinations can turn prompt injection into actual harm; per-agent checks also miss permission combinations formed by text propagation within the team.
Methods
The authors place each agent and tool in a separate seL4 Microkit protection domain, use capabilities to control tool invocation, delegation, caller identity and time budget, and build a whole-team Rule of Two check from the capDL specification and system description actually executed by the kernel.
Experiments and results
On the AgentDojo banking and slack suites, designed wiring reduced the attack success rate from 48% under seL4 unlimited to 7%; when a script fully controls the agent PD, it blocks 73% of attacks. The AP team experiments also reproduced the privilege-escalation paths found by the pre-launch analysis.
Limitations and future work
The authors note that the prototype is outside the coverage of the seL4 proofs, that the relay and network remain under the control of the host and QEMU, and that the pre-startup analysis requires the team structure to be fixed. The experiments use only gpt-4o-mini and two of AgentDojo's four suites, the designed wiring is taken from the reference solution, and hardware performance was not measured.
Experimental setupgpt-4o-mini · AgentDojo 0.1.35 first task set (v1): banking and slack suites、accounts-payable (AP) team · attacks succeed、tasks done et al.
Evaluated models
gpt-4o-mini
Metrics
attacks succeedtasks doneattacks blockedRule of Two
AI summaryand selection rationaleThe paper proposes running a multi-agent system on the formally verified microkernel seL4, where each agent and each tool runs in its own separate protection domain, and tool calls and task handoffs are authorized through kernel-enforced capabilities. Tested with gpt-4o-mini on the banking and slack suites of AgentDojo, after assigning least privilege per task, the prompt injection attack success rate dropped from 48% (when permissions were unrestricted) to 7%, with no significant drop in task completion rate; even if the attacker fully controls the agent code, the kernel blocked 73% of attacks. The authors also perform a Rule of Two analysis of the entire agent team before startup based on the kernel-enforced capDL specification, and in an accounts payable example team found attack paths that a single-agent check could not find: out of 40 runs, the original team had its bank receiving account changed by malicious email 7 times, and after the fix, 0 times. The authors state that the prototype is a debug build on QEMU, is not a verified deployment, and that the capability mechanism cannot judge whether a single call is legitimate.

The paper proposes running a multi-agent system on the formally verified microkernel seL4, where each agent and each tool runs in its own separate protection domain, and tool calls and task handoffs are authorized through kernel-enforced capabilities. Tested with gpt-4o-mini on the banking and slack suites of AgentDojo, after assigning least privilege per task, the prompt injection attack success rate dropped from 48% (when permissions were unrestricted) to 7%, with no significant drop in task completion rate; even if the attacker fully controls the agent code, the kernel blocked 73% of attacks. The authors also perform a Rule of Two analysis of the entire agent team before startup based on the kernel-enforced capDL specification, and in an accounts payable example team found attack paths that a single-agent check could not find: out of 40 runs, the original team had its bank receiving account changed by malicious email 7 times, and after the fix, 0 times. The authors state that the prototype is a debug build on QEMU, is not a verified deployment, and that the capability mechanism cannot judge whether a single call is legitimate.

Why it was selectedThe paper presents a complete design and measured data for implementing least privilege for agents using the seL4 kernel capability mechanism; teams building agent sandboxes and permission isolation can refer to its approach of assigning tool permissions per task.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Use the seL4 kernel to enforce agent permissions and check the whole team's permission combinations before runtime.

    The core question is: how can an agent's permission boundary be made independent of whether the model obeys injected text, and how can the combined permissions of an entire team be checked.

    • Problem setting: the authors point out that agents hold real permissions such as payments, code merges, and account operations, and that indirect prompt injection in emails, web pages, or tool results can manipulate their behavior; passing text between multiple agents further amplifies the impact.
    • Shortcomings of existing limits: the authors consider that the software stacks relied on by tool filters, policy engines, containers, and virtual machines are too large and have records of escape; even if point restrictions do not fail, enforcing least privilege agent by agent misses cross-agent information flows.
    • Core observation: a capability is an unforgeable reference to an object and the permission to use it; seL4 programs have no ambient authority and can access only objects granted to them, and Microkit can fix all PDs, channels, and memory mappings before startup.
    • Proposed approach: the authors build a team architecture with one PD per agent and one per tool, perform a whole-team Rule of Two check from the capDL specification and system description, and evaluate on the AP team and AgentDojo.
    • Threat model:
      • Text attacker: controls emails, documents, web pages, tool results, and other agents' replies, and succeeds only if the model obeys.
      • Code attacker: fully controls one agent PD, can run arbitrary code and determine model output, covering malicious frameworks or plugins.
      • Attack goals: call unauthorized functions, impersonate other agents, delegate beyond authority, or read or write other PDs' memory.
      • Trust boundary: trusts the seL4 kernel, the generator, the system description, the supervisor, tool PDs, drivers, and the relay; does not trust the model or code inside agent PDs.
  2. What related research exists?

    Related work covers agent isolation, call and data-flow policies, team graph defenses, and capability systems.

    Agent isolation and provable control

    • Tegmark and Omohundro (2023)—argue that controllable AI systems should rely on provable rather than merely tested guarantees; on this basis the authors use a formally verified kernel as the foundation for restrictions that do not depend on model capability.
    • IsolateGPT (2025), ACE (2026)—the former isolates processes by application and routes messages through a trusted hub, and the latter studies attacks against that design and separates planning from execution. The paper notes that both rely on a general-purpose kernel and on a hub or planner through which all requests pass, whereas in this design the kernel directly checks each interface.
    • gVisor (2025), Firecracker (2020)—used to constrain agent code; the authors state that they draw a single boundary around the whole agent, with tools sharing that boundary's permissions, whereas capabilities are granted per component.

    Tool calls, data flow, and in-model defenses

    • CaMeL (2025), Progent (2025), FIDES (2025)—respectively use a trusted model to generate plans and track data provenance, check tool calls against per-parameter policies, and track confidentiality and integrity labels. The authors consider that they can judge whether a call is correct, filling the gap that capabilities cannot restrict the recipient of send_money.
    • Instruction hierarchies (2024), StruQ (2025)—reduce the probability of successful injection through instruction priority or structured queries; the authors cite Nasr et al. (2025) as saying adaptive attacks can still get through, and such methods do not restrict the permissions of a deceived model.
    • Greshake et al. (2023), Lee and Tiwari (2024)—study indirect prompt injection and prompt infection between multiple agents respectively, constituting the attack paths of concern in this paper.

    Team-level risk analysis and graph defenses

    • Lethal trifecta (2025), Rule of Two (2025), toxic flow analysis (2025)—name dangerous permission combinations; the authors state that they are applied agent by agent and may miss tokens or tools when faced with configurations that lack enforcement.
    • G-Safeguard (2025), MESA (2026), ControlValve (2025)—respectively learn to identify hijacked agents and cut links, rank communication links by compromise impact, and generate and allow system paths. The authors point out that their graphs are learned or generated and enforced by software, so unmodeled paths may escape; this paper uses a complete specification enforced by the kernel.

    Capabilities and the seL4 foundation

    • Dennis and Van Horn (1966), Capsicum (2010), CHERI (2015), object-capability languages (2006)—respectively proposed capability semantics or added them to UNIX, processors, and languages; seL4 (2009) places them in a formally verified microkernel.
    • Baseline and benchmarks: the AgentDojo experiments compare three configurations—stock, seL4 unlimited, and seL4 designed—using the v1 task set of AgentDojo 0.1.35; the AP experiments compare the original team with a fixed team in which an extractor replaces the email agent.

    The authors state that, to their knowledge, this is the first study to run on seL4 and protect a multi-agent system, and that the distinction is that the permission graph is identical to the specification actually enforced by the kernel.

  3. How does the paper address this problem?

    Built on PD isolation and least-privilege capability grants, with the same specification then used for a whole-team graph check before startup.

    The overall idea is to let seL4 Microkit protection domains (PDs) and capabilities determine what an agent can do, while the model only determines what it attempts to do; team permissions are read from the static specification executed by the kernel.

    Static team construction and trust boundaries

    • The generator reads a JSON policy file, turns each agent and each tool into a PD, maps tools to channels and peers to delegation links, and then generates the Microkit XML system description and a bootable image.
    • Microkit generates a capDL specification listing all kernel objects and the capabilities held by each PD; permissions cannot change after boot. The AP team has 22 PDs, 43 channels and 74 memory regions in total, and the capDL report is 60,207 lines.
    • Agent PDs access gpt-4o-mini through a host relay, which adds the API key; tool invocations and delegation stay within seL4. The prototype uses Microkit 2.3.1, LionsOS and a 64-bit Arm platform emulated by QEMU.

    Tool invocation, delegation and identity

    • Tool invocation uses a kernel-checked protected procedure call; without a channel, it is denied. Overly coarse tools are split into separate function channels, for example the approval agent holds only approve and the payment agent holds only pay, so that payment requires both parties.
    • Agents use asynchronous delegation links: two memory blocks are mapped only to a pair of PDs, the task area is writable by the delegator and read-only to the executor, and the reply area has the opposite permissions; an out-of-bounds write faults and is stopped by the kernel.
    • Each tool channel carries a badge fixed at build time, which the kernel passes to the callee and the caller cannot modify. Tools identify and record the real caller according to the badge table generated at build time, rather than reading the self-reported identity in the request.

    Time isolation and stopping

    • Each agent PD has an independent scheduling context with a budget of 20 ms; tool PDs are passive and use the caller's budget only when invoked, avoiding shared tools consuming other agents' time.
    • The supervisor PD is the parent of all agent PDs, receives fault reports and can stop an individual agent; the coordinator can also request a stop through a control channel, while the remaining agents continue running.

    Whole-team Rule of Two check before boot

    • Tool functions are labeled U (returns untrusted input), P (returns private data) or C (changes state or sends outward). F(a) is determined by the endpoint capabilities in capDL and the tool channel table.
    • If x can write the delegation area while y is read-only, or x writes to a tool that y will read, a textual edge x→y is established; R(U) and R(P) denote the sets of agents reachable through the two types of text respectively.
    • The team violation condition is ∃ a∈ R(U)∩ R(P) such that F(a) carries C, i.e., the same state-changing agent can reach both untrusted text and private data; Algorithm 1 runs before boot.
    • The AP fix replaces the email agent with a model-free extractor tool PD that returns only parsed fixed invoice fields. The authors state that teams requiring untrusted original text must instead revoke permissions or cut links.

    AgentDojo integration and judging

    • The agent loop is placed in a PD, while the AgentDojo world, tools and scoring remain on the host; each function has a separate channel to a passive proxy PD, and unauthorized calls are denied by the kernel.
    • For authorized calls, the proxy issues a ticket containing the function and caller according to the badge, and the host executes each valid ticket's function once.
    • stock runs on the host and can call all functions; seL4 unlimited holds all functions in the PD; seL4 designed holds only the functions used by the task reference solution. All three show the model the same functions and system prompt, and scoring follows AgentDojo's task completion and attack success criteria.
  4. What experiments did the paper conduct?

    On AgentDojo, designed wiring reduced the attack success rate to 7%, and the AP runs reproduced the pre-launch check.

    Experimental Setup

    • Models tested: All agents use gpt-4o-mini; in some experiments, scripts within the PD replace model decisions to isolate model randomness and simulate full control.
    • AgentDojo scope: AgentDojo 0.1.35, first task set (v1), running the banking and slack suites, with 249 attack cases and 37 no-attack tasks in total; each configuration was run three times per suite.
    • Three configurations: stock, seL4 unlimited, seL4 designed; designed wiring takes the functions used by each task's reference solution, and the model always sees all functions.
    • Metrics and criteria: AgentDojo's scoring for task completion and attack success is used; Figure 7 reports proportions and 95% intervals, and the main text gives the paired sign test.
    • AP experiments: The original team and the extractor-fixed team each ran 40 times, with a fresh boot each time, using the same malicious email; notes reaching the coordinator, vendor account changes, and payments to the attacker were recorded.
    • Platform: QEMU 6.2.0 emulating Cortex-A53 with 2 GiB memory, running seL4 with Microkit 2.3.1; the paper does not report model sampling parameters.

    Main Results

    According to the main text of §4.3 and Table 6; the bar heights in Figure 7 cannot be checked item by item from the text, so the number of no-attack tasks for stock is not supplied.

    SettingConditionResult
    seL4 unlimitedDeceived model, 249 cases×3Attack success 48% (358/747)
    seL4 designedDeceived model, 249 cases×3Attack success 7% (52/747)
    stockDeceived modelAttack success 52%; attacked task completion 46%
    seL4 unlimitedDeceived modelAttacked task completion 46%; no-attack task completion 68%
    seL4 designedDeceived modelAttacked task completion 43%; no-attack task completion 58%
    seL4 unlimitedScript fully controls agent PD248 of 249 cases succeeded
    seL4 designedScript fully controls agent PDBlocked 181/248 cases (73%), 67 passed
    • Statistical results: The decrease in attack success rate for designed relative to unlimited occurred in every run, ranging from 6–7% versus 46–49%; the paired sign test was p<0.001.
    • Task cost: The differences in no-attack and attacked task completion rates were p=0.267 and p=0.266, respectively; the authors state that tasks may be rejected by the kernel because the model attempts functions not needed for the task.
    • Kernel interception: The deceived model attempted 2095 calls to functions it did not hold, and the kernel rejected all of them; the authors attribute the decrease to capabilities rather than prompt differences.

    Whole-Team Check and AP Runs

    • Pre-launch check: In Table 3, the five agents each individually satisfy the Rule of Two, but invoice, coordinator, approval, and payment violate it at the team level; email text can reach them via delegation links and the ledger.
    • Original team results: Table 4 shows that notes reached the coordinator in 23/40 runs, the vendor account was changed in 7/40 runs, and payment to the attacker occurred in 0/40 runs; in one of these, the accounts of two other vendors were also replaced.
    • Fixed team results: Notes reaching the coordinator and account changes were both 0/40; the authors state that neither team exceeded the analysis predictions, and the only difference was that the email agent was replaced by the extractor tool PD.

    Full Control of the agent PD and Residual Attacks

    • Per-suite results: In Table 6, banking had 143 attackable cases, blocked 97 (68%), and passed 46; slack had 105 attackable cases, blocked 84 (80%), and passed 21.
    • Interception method: All 181 cases blocked by designed wiring were due to the kernel rejecting the script's calls to unauthorized functions; all passing attacks used only functions held by the task itself.
    • Residual paths for the deceived model: Of the 358 successful attacks in unlimited, designed prevented 233 (65%) by denying the required functions; 35 passed using only task functions, 90 had no kernel rejection and did not succeed, and another 17 succeeded under designed but failed under unlimited, which the authors attribute to differences in model behavior between runs.

    Other Ablations and Analysis

    • stock versus unlimited: Attack success rates were 52% versus 48%, and attacked task completion was 46% for both; the authors believe the gap may come from differences between model runs and does not indicate that moving to seL4 is itself safer.
    • Residual attacks under designed: About half used the task-held send_money to set the attacker as the payee; the authors note that capabilities do not constrain the payee.
    • AP payment results: There was no payment loss because the invoice had already been approved to the original account before the account change; however, subsequent payments would use the changed payee list.
    • Figure 7: The legend distinguishes no-attack task completion, attacked task completion, and attack success, with error bars as 95% intervals; the converted text does not provide exact values for each bar.
  5. What are some points that can be further explored?

    The authors list follow-up work including verification coverage, the host relay, dynamic teams, and performance; the experimental scope is also fairly narrow.

    Limitations and Future Directions Noted by the Authors

    • Verification conditions: §5 notes that the prototype is a debug build on QEMU AArch64 and uses the MCS scheduler, which is not covered by the seL4 proofs; the Microkit system setup is also not yet verified.
    • Host relay and network: §5 notes that the relay, API key, and conversation reside on the host, and network reachability is determined by QEMU rather than the kernel; future work could place the relay in a Linux VM on seL4 with a separate network driver.
    • Fixed-team assumption: §5 notes that the pre-launch analysis relies on a structure fixed at build time and does not apply to teams that create new agents at runtime; dynamic analysis would need to update as the system changes.
    • Capability semantic boundary: §5 notes that it only restricts callable functions and cannot judge whether a call is correct; future work could layer argument or data-flow policies as an unbypassable trusted PD.
    • Performance not measured: §5 explicitly states that performance was not measured, and QEMU timing does not represent real hardware; the cost of kernel checks on hardware is left for future work.
    • Development and usability: §5 notes that seL4 has no POSIX, hand-written system descriptions are cumbersome, and most frameworks cannot run directly in a PD; future work could study Linux VM compatibility options and developer usability of seL4, Microkit, and CAmkES.

    Scope of Experimental Coverage

    • Models and suites: All agents use gpt-4o-mini; AgentDojo runs only banking and slack of the four suites, three times per case (§5).
    • Source of authorization: designed wiring comes from the task reference solutions, which the authors call the best case; pre-authorizing without knowing the task may grant more functions (§5).
    • AP evidence: Only one team designed by the authors and one attack email were tested, 40 times per team; the authors explicitly state that the reported proportions apply only to this setting (§5).
    • Attacker coverage: AgentDojo evaluates both a model deceived by injected text and a script that fully controls the agent PD, the latter using designed wiring (§4.3).
    • Unreported items: The paper does not report model sampling parameters, hardware performance measurements, or human review; task and attack scoring was done by AgentDojo (§4.1, §4.3, §5).
  6. Summarize the main content of the paper

    seL4 turns agent permissions into capability boundaries that are kernel-enforceable and analyzable before startup.

    This is a study of multi-agent system isolation and prompt injection defense: the authors use the formally verified seL4 microkernel to host a fixed-structure agent team, so that even when the model is deceived or the agent PD is fully controlled, it still cannot exceed the granted capabilities.

    • Problem to solve: Traditional filters, policy engines, and containers rely on a larger software stack; per-agent least-privilege checks also fail to see dangerous permission combinations formed after text propagates across agents.
    • Method highlights: Each agent and tool runs independently in a Microkit PD; tool function channels, asynchronous delegation links, unforgeable badges, and independent time budgets are enforced by the kernel. The whole-team check directly reads the capDL specification and system description and performs graph reachability analysis using U, P, and C labels.
    • Main experimental results: On the AgentDojo banking and slack suites with gpt-4o-mini, the attack success rate was 7% (52/747) for seL4 designed and 48% (358/747) for seL4 unlimited, with a paired sign test of p<0.001.
    • Tasks and interception: For designed, the no-attack task completion rate was 58%, and for unlimited it was 68%; under attack they were 43% and 46%, respectively, with the two differences at p=0.267 and p=0.266. The kernel rejected all 2095 unauthorized function calls.
    • Stronger attacker and AP validation: When a script fully controls the agent PD, designed wiring blocked 181/248 cases (73%). In the original AP team, notes reached the coordinator in 23/40 runs and the account was changed in 7/40; for the extractor-fixed team, both were 0/40.
    • Authors' conclusion: The authors state that seL4 can make team permissions explicit, enforced by the kernel, and checked as a whole before runtime; however, residual attacks can use functions legitimately held by the task, and prototype verification coverage, dynamic teams, relay networking, hardware performance, and developer usability still require future work.

Research lineage

7 foundations · 0 follow-ups in library
Explore in knowledge graph →

Hover or focus a connected paper to inspect the citation context.

Read originalarxiv.org