Research
AgentKernel: The Trust-Native Agentic Operating System
Overview Research area: Systems security and computer-systems architecture for LLM-based AI agents — specifically, whether agents need an operating-system-style mediation layer rather than application

- arXiv
- 2609.29647
- Published
- 2026-08-29
- Authors
- Zhenhua Zou, Sheng Guo, Qiuyang Zhan, Lepeng Zhao, Shuo Li, Zhuotao Liu
AI summary
Overview
Research area: Systems security and computer-systems architecture for LLM-based AI agents — specifically, whether agents need an operating-system-style mediation layer rather than application-level guardrails.
Technical level: Advanced. The paper assumes familiarity with operating-system security concepts (reference monitors, mandatory access control, information-flow control, syscalls, eBPF, trusted execution environments) as well as the current LLM agent tooling ecosystem.
Scope: This is a position and architecture paper that argues for and specifies AgentKernel, a "trust-native" agent operating system organized around four security pillars, rather than reporting an implementation with experimental evaluation.
What This Paper Is About
Modern AI agents cross trust boundaries constantly: they read untrusted web pages and repository content, mix that content with privileged system instructions, store intermediate beliefs in long-term memory, and then invoke high-privilege tools. Today's safeguards for this pipeline are application-level middleware that lives inside the same process as the agent, so a successful attack on the agent can also subvert the security check. The paper argues that the missing ingredient is not another policy or plugin but an operating-system substrate that provides mandatory, non-bypassable services for identity, input mediation, memory governance, and execution control, and it specifies AgentKernel as that substrate.
Key Contributions
-
A unified lifecycle diagnosis. The paper reframes agent stacks around four trust-critical phases — Identity, Perception, Cognition, and Execution — and analyzes why traditional low-level OS primitives (discretionary and mandatory access control, process isolation, sandboxing, network filtering) fall short at the semantic level, since they mediate files, sockets, and devices but cannot see prompt injection, poisoned memory, or misattributed delegation.
-
The AgentKernel architecture and design principles. A mandatory security kernel built on the four pillars, guided by five principles distilled from classical OS security: an external reference monitor, deny-by-default policy intersection, lifecycle-wide defense-in-depth, semantic mediation with a syscall backstop, and a narrow agent–kernel integration boundary. The paper presents two trusted services (a remote Global Agent Registry and a local Agent Kernel) and three integration adapters (LLM, tool, and storage).
-
A structured security analysis. Explicit per-pillar security properties, an account of how cryptographic, information-flow, and kernel-backed guarantees compose, and a residual threat model covering mis-set policies and how the semantic-to-syscall bridge is intended to behave under stress.
-
A scientific positioning of AgentKernel in the harness landscape. A tiered map of orchestration frameworks, agent runtimes, governance platforms, and execution sandboxes, followed by a systematic comparison against representative systems such as Microsoft's Agent Governance Toolkit, AIOS-class runtimes, and sandbox offerings. The stated goal is not feature parity but to show where mandatory lifecycle mediation is absent today.
Main Findings
-
The failure is structural, not a patchwork of bugs. The paper argues that agent compromises are four missing transitions in one end-to-end trust story: impersonation without grounded identity, injection without kernel-mediated perception, poisoning without taint-aware cognition, and over-privileged side effects without semantic-to-syscall execution. Point solutions "reshuffle symptoms" without changing the trust calculus of a session.
-
Existing harnesses show three recurring weaknesses. Fragmentation — identity signals, perception filters, memory stores, tool executors, and policy engines ship as loosely coupled packages with incompatible provenance labels and no uniform IPC substrate. Blurry trust boundaries — even flagship governance stacks remain co-located with agent business logic; the paper states that Microsoft's Agent Governance Toolkit deliberately offers "application-level governance, not OS kernel-level isolation," with agents and the policy engine sharing a single process trust boundary. Non-mandatory enforcement — defenses appear as optional hooks that may inspect tool parameters yet cannot bind the actual syscall layout, while sandboxes confine execution without governing how untrusted perception poisons long-lived memory.
-
The classical OS analogy is prompt injection is to semantic mediation as SQL injection is to packet filtering. The paper uses this comparison as intuition, explicitly not as a formal equivalence claim: syscall mediation cannot detect prompt injection for the same reason TCP/IP packet filtering cannot detect SQL injection.
-
Security is framed as a capability multiplier rather than a constraint. Kernel-managed identity enables trustworthy cross-organization collaboration; graduated perception replaces brittle single-point filters; information-flow-controlled memory improves retrieval fidelity while blocking poisoning; and semantic-to-kernel execution enforcement lets operators grant broader tool privileges because the boundary is architecturally non-bypassable.
-
Policy convergence is strictly narrowing. The system mandates that effective permission is the intersection, never the union, of applicable policy sets, expressed as the effective set being the intersection of developer, operator, and context sets. This "converge-on-strictest" rule applies to capability chains, skill permission composition, and cross-agent session tokens.
-
Identity is a kernel-managed resource. Agent identity is elevated from self-declared strings and API keys to cryptographic enrollment. The Agent Kernel generates a fresh Ed25519 keypair, constructs an Agent Identity Card binding four dimensions — developer, code artifact, operator, and deployment context — and submits it to the Global Agent Registry for signing. The private key never leaves the kernel boundary; agent code interacts only with opaque signing handles. Key storage follows a tiered custody path up to an optional TEE tier (Intel SGX, ARM TrustZone, or Nitro-class enclaves).
-
Four pillars, each with independent layered defenses. Identity (cryptographic AIC, four-dimensional binding, delegation chains), Perception (P1 source tags, P2 rule filter, P3 semantic firewall, P4 jailbreak detection), Cognition (lattice taint, item-level labels, provenance chains, memory gateway), and Execution (E1 policy rules, E2 LLM validation, E3 eBPF hooks, E4 plan–trace alignment). Each pillar is intended to intercept a distinct threat class so that compromise of one does not cascade.
-
The system draws a three-domain trust model. Input World (untrusted by default), Agent Core (protected reasoning engine, context and memory stores, session and trajectory state), and Output World (auditable, least-privilege tool execution, data sinks, delegation, audit logs). Every transition between domains is a trust boundary crossing requiring mediation.
-
No empirical evaluation is reported. The paper presents no benchmark results, no dataset sizes, no latency measurements, and no implementation performance numbers. The claims are architectural and analytical, supported by a motivating multi-agent DevOps scenario rather than an experimental study.
Methodology in Plain English
The authors take a position-paper approach rather than an experimental one. They begin by cataloguing the current agent ecosystem and sorting it into four tiers that track lifecycle dimensions: orchestration frameworks (LangChain/LangGraph, AutoGen, CrewAI, Microsoft's Agent Framework, Semantic Kernel), agent runtimes (AIOS, OpenFang, SmythOS SRE, Letta), governance platforms (Microsoft's Agent Governance Toolkit, plus tracing stacks such as LangSmith and AgentOps), and execution sandboxes (nono, E2B, Anthropic's sandbox-runtime).
From that survey, they identify recurring structural weaknesses and derive an analogy to classical operating-system security: applications were born into an environment already rich with process isolation, virtual memory, file systems, IPC, and mandatory access control, whereas agents operate in what the paper calls an infrastructural vacuum. They then adapt classical security principles — the reference monitor, fail-safe defaults, defense-in-depth, economy of mechanism, complete mediation — to what they call the semantic plane, and specify the resulting architecture pillar by pillar, including the cryptographic provisioning flow, the adapter boundary, and the bridge from declared tool intent to eBPF-enforced syscalls.
To stress-test the story, they walk through a concrete motivating scenario: a multi-agent DevOps pipeline where an orchestrator delegates pull request review and conditional deploy to specialist agents, and a crafted PR comment carries an indirect prompt-injection payload. Each hop in that chain — unauthenticated delegation, unmediated perception, taint-blind memory, unenforced execution — is presented as independently realistic.
Why This Matters
Impact on research. The paper reframes agent security from a filtering problem into a systems-architecture problem. If its thesis holds, research effort should shift from ever-more-clever prompt-injection detectors toward designing non-bypassable mediation boundaries, provenance-aware memory semantics, and bridges between natural-language intent and syscall-level enforcement. The three-domain model and the five principles also give the field a vocabulary for comparing proposed safeguards.
Real-world applications:
- Enterprise coding agents and IDE assistants. Products such as Cursor, Claude Code, and GitHub Copilot/OpenAI Codex-class systems already sit inside everyday engineering workflows and ingest untrusted repository content; kernel-mediated perception and taint-aware memory target exactly that exposure.
- Cross-organization and multi-agent DevOps pipelines. Cryptographic delegation chains would let a reviewer agent authenticate who authorized a task, addressing the impersonation step in the paper's motivating scenario.
- Agent marketplaces and third-party skill ecosystems. Verifiable provenance for skills and plugins would counter supply-chain capability injection, which the paper notes currently forces version freezes and strict whitelists.
- Regulated and embodied deployments. Plan–trace alignment, signed execution records, and replayable evidence address settings — the paper mentions financial and physical actions — where irreversibility and auditability are decisive.
- Mobile, desktop, and GUI "computer use" copilots, where presentation-layer spoofing (package names, icons, screenshots) blurs which principal the agent is acting for.
Industry relevance. The tiered map names production stacks from Microsoft, CrewAI, Semantic Kernel, LangChain, Anthropic, E2B, and others, and the paper positions AgentKernel as the missing OS layer beneath that growing harness ecosystem rather than a competitor to it. It explicitly argues that AgentKernel complements rather than replaces Unix-like kernels — the traditional kernel remains authoritative for address spaces, devices, and low-level isolation, while AgentKernel becomes authoritative for agent semantics. Together the two layers form what the authors call an AI-Native OS.
Future Directions
-
Building and measuring the system. The paper specifies an architecture but reports no implementation results, so the open question is whether the semantic-to-syscall bridge (eBPF hooks, process-tree monitoring, kernel-level allowlists) holds up under real workloads and what latency the graduated four-layer perception pipeline actually costs.
-
Residual risk under misconfiguration and stress. The paper itself flags the need to clarify "what remains when policies are mis-set and how the semantic–syscall bridge is intended to behave under stress," which invites adversarial evaluation of the policy-intersection rule and the TEE-backed key-custody tiers.
-
Ecosystem adoption and the non-bypass requirement. Soundness depends on agents and their orchestration fabric retaining no parallel access to model endpoints, tool runtimes, or stores — no ambient credentials, direct tool transports, or filesystem and database paths that skip the storage adapter. How to retrofit that property onto existing production stacks, across embedded library, gateway, sidecar, or tool-facade deployment shapes, is unresolved.
-
Evolving the integration boundary. The paper proposes an explicit evolution rule: a new externally visible capability class beyond model, tool, and storage effects warrants a new integration abstraction rather than ad hoc bypasses. Testing that rule against future agent capabilities — and against the argument in §6 that the OS layer belongs in the trusted computing base — is left as future work.
Target Audience
This paper is written for systems security researchers, OS and kernel engineers, and the architects of agent platforms and governance products. It is most valuable to readers who already understand both classical OS security mechanisms and the current LLM agent tooling landscape, since it argues by analogy and comparison rather than by experiment. Practitioners deciding where to place security boundaries in a production agent deployment — and researchers looking for a systems-level framing of prompt injection, memory poisoning, and tool misuse — are the primary beneficiaries. Readers seeking benchmark numbers or an evaluation of a working prototype will not find them here; the paper states its contributions as a diagnosis, an architecture, a security analysis, and a positioning, not an empirical result.
Authors’ abstract
Modern AI agents routinely cross trust boundaries: they ingest untrusted content, combine it with privileged instructions, persist intermediate beliefs in long-term memory, and invoke privileged tools. This creates an attack surface in which malicious payloads can enter through model inputs and cause harmful tool actions. Yet current governance stacks remain application-level middleware that share a process trust boundary with the agents they monitor. We argue that agents need an operating-system substrate providing mandatory, non-bypassable services for identity, input mediation, memory governance, and execution control. We introduce AgentKernel, a trust-native agent operating system built around the premise that security must be a first-class design constraint. AgentKernel wraps the agent lifecycle in a mandatory enforcement boundary organized into four pillars: Identity, Perception, Cognition, and Execution. Each pillar adapts classical OS security principles to failures at the semantic plane, including delegation abuse, prompt injection, memory poisoning, and tool misuse. AgentKernel treats structural security as a capability multiplier. Kernel-managed identity supports trustworthy cross-organization collaboration; graduated perception replaces brittle single-point filters; information-flow-controlled memory improves retrieval fidelity while limiting poisoning; and semantic-to-kernel enforcement permits broader tool privileges behind a non-bypassable boundary. We position AgentKernel as the missing OS layer beneath orchestration frameworks, agent runtimes, governance platforms, and execution sandboxes, and use systematic comparison and security analysis to show how a single integrated architecture can enforce security across the full agent lifecycle.