Skip to content
Sprint projectJun 21, 2026Ho Chi Ming City

AI Permission: From Session Layer to Kernel Layer

Jack · Team AI for good(solo)

Submitted to Global South AI Safety Hackathon. Sprint projects are early-stage work by participants, not Apart Research publications.

When an AI agent runs in a production environment with authorized credentials — database passwords, API tokens, cloud keys — every sub-agent it spawns and every script it executes inherits those credentials. The authorized token becomes the attack surface: a hallucinated command or prompt-injection can drop a production database, purge cloud storage, or mass-delete email before any human can intervene. Real incidents of this kind are documented in this paper. Current AI permission systems operate at the session layer and are blind to operations that bypass the session: direct library calls, fresh sub-agents, and background processes all carry live credentials without passing through any permission interceptor. We introduce the Kernel-Level AI Isolation Layer (KAIL), enforcing AI permission policy at the syscall and network level below any session boundary. We present AI Guardian, a Linux eBPF implementation of KAIL that intercepts destructive operations defeating session-layer controls, providing reliable protection for production data in AI agent deployments.

Reviews

Judging this Sprint?

Review this project

Your public critique appears on this page without your name. Your private critique is not published; only the Apart team reads it. If you agree below, we share your review with grantmaking.ai (opens in new tab) and the Transformative AI Fund so strong projects can be funded.

Not shown on this page.

Shown on this page, without your name.

Only the Apart team reads this, and funders if you agree below.

Share my name publicly on grantmaking.ai *
Share my private critique with funders *

How much would this matter for AI safety if it worked? How innovative is it? For scores of 4-5: is this actually new to the field, or replicating recent work?

Scoring guide
  1. 1Negligible. No clear problem addressed, or no meaningful novelty.
  2. 2Limited. Addresses a real problem but with a generic or well-trodden approach. Incremental at best.
  3. 3Moderate. Clear problem with a reasonable approach; some novelty in framing or method beyond routine application of existing tools.
  4. 4Significant. Important problem with an original approach, or identifies a neglected problem area. A valuable contribution others could build on.
  5. 5Exceptional. Tackles a critical AI safety problem with a genuinely novel approach, or opens a new research direction. Clear theory of change. You'd be excited to share this with researchers in the area.

How sound are methodology, implementation, and findings?

Scoring guide
  1. 1Seriously flawed. Methodology broken, results uninterpretable, or implementation doesn't work.
  2. 2Weak. Approach has significant gaps: missing validation, flawed experimental design, or incomplete implementation.
  3. 3Competent. Technically solid given the short duration. Methodology makes sense, results are interpretable, limitations acknowledged, work builds toward clear conclusions.
  4. 4Strong. Thorough methodology with convincing validation. Results clearly support conclusions. Immediately useful for future work.
  5. 5Exceptional. Ambitious scope executed rigorously. Surprising findings, novel methods, or unusually robust validation.

How clearly are work, findings, and impact potential communicated?

Scoring guide
  1. 1Incomprehensible. Cannot determine what the project is actually claiming or doing.
  2. 2Hard to follow. Key information buried, missing, or diluted by excessive length. Significant effort to extract main points.
  3. 3Clear enough. Can understand the problem, approach, and results without undue effort. Core content clearly present: problem, method, findings, limitations.
  4. 4Well presented. Easy to follow, well-structured, appropriate level of detail. Target audience would get it quickly.
  5. 5Exceptionally clear. A pleasure to read. Complex ideas made accessible. Could serve as a model for how to present this type of work.

  1. AI Guardian / KAIL tackles an important and timely problem: autonomous AI agents with live credentials can cause irreversible damage faster than humans can react, and session-layer controls are fundamentally bypassable because they operate in the same context as the agent. The three exploits against Claude Code's auto mode (using `psycopg2`, `urllib` with a sub-agent, and `rm` via a fresh sub-agent) convincingly demonstrate that the weakness is architectural rather than a missing rule. The Layer 1–5 model, hardware-wallet analogy, and eBPF-based implementation provide a practical and well-executed defense.

    A few improvements would strengthen the paper. First, broaden the evaluation beyond the three exploits by testing additional database drivers, HTTP clients, and deeper sub-agent chains to show the bypasses generalize. Second, include performance metrics such as latency, false positives, and the impact of freezing processes during active operations. Finally, demonstrating protection against a realistic end-to-end attack, such as the PocketOS-style database wipe scenario, would provide even stronger validation.

    Overall, this is a well-written and compelling paper that makes a meaningful contribution to AI agent security.

    Read full reviewShow less
  2. A genuinely strong project — real working system, sound threat model, and an approach that addresses a real gap. Unlike many submissions this one actually does what it claims. Main issues:

    Document/landing-page contradictions undercut trust. The README says Email Guardian is live and tested; the landing page marks it "PLANNED." The landing page reports "0 Total Intercepts (24h)" yet "100% eBPF Catch Rate" and a live intercept feed — those don't cohere. Pick one source of truth and make the claims consistent.

    "100% catch rate" with 0 intercepts and 3 hand-built bypass cases isn't a measured result. It's three anecdotes you constructed, not an evaluation. Run a real suite — N destructive operations across varied vectors (drivers, sub-agents, compiled binaries, shells) — and report catch rate with the denominator. That converts the claim from marketing to evidence.

    The threat model has an unaddressed hole. You note a compromised agent can't bypass by killing the guardian (needs root). But the agent runs as uid=1000 and the guardian's own allow rules exempt /tmp/ and ~/.claude/ for claude-code — a rogue agent operating within those paths, or using a syscall you don't hook (e.g. rename/renameat2 to clobber a file rather than unlink, or truncate), evades silently. Enumerate the syscall coverage gaps explicitly.

    Live, publicly-reachable infrastructure is a real risk. A root-running eBPF service with a dashboard bound to 0.0.0.0:8080 and a public EC2 hostname in the submission is an exposure liability, not a feature. Note auth/binding posture.

    Telegram-in-the-loop has a latency/availability failure mode — 1800s auto-deny is a long freeze, and a network/bot outage stalls every destructive op. Discuss degradation behavior.

    Read full reviewShow less
  3. This is a compelling and practically important project. The paper identifies a real operational safety gap for AI agents: application/session-layer permission systems can be bypassed by direct library calls, fresh sub-agents, or background processes, while the destructive operation still ultimately reaches the kernel or network stack. The “Kernel-Level AI Isolation Layer” framing is clear, and the AI Guardian prototype makes the argument concrete.

    The strongest contribution is the end-to-end demonstration: three bypasses against session-layer controls, followed by a kernel/eBPF implementation that intercepts the same classes of destructive operations. The layer-by-layer permission-stack analysis is also useful because it explains why adding more deny rules is unlikely to be sufficient. The human-in-the-loop approval workflow and audit trail are practical design choices for production agent deployments.

    The main improvement would be to strengthen the empirical and reproducibility details. The paper would benefit from clearer experimental logs, exact environment setup, code availability, and quantitative measurements: interception latency, false-positive/false-negative rates, overhead under normal workloads, approval timeout behavior, and how often legitimate operations are blocked. The incident examples are motivating, but some citations appear informal or difficult to verify; stronger sourcing or clearer caveats would improve credibility.

    The security model should also be sharpened. Kernel-level enforcement is powerful, but it introduces its own trusted computing base, operational risks, and bypass possibilities: non-OpenSSL TLS stacks, encrypted payloads before the hook point, root-level tampering, process-freeze denial of service, and broad pattern-matching false positives. The paper acknowledges several of these, but the claims that KAIL “catches all” or reduces the surface to a few hook points should be softened unless broader coverage is demonstrated.

    Overall, this is a high-impact systems safety prototype with a strong practical thesis. It would be especially valuable with more rigorous benchmarking, broader API coverage, and a clearer comparison to existing endpoint detection/response, policy engines, and sandboxing approaches.

    Read full reviewShow less

Cite this project

@misc{jack2026ai,
  title = {{AI Permission: From Session Layer to Kernel Layer}},
  author = {Jack},
  year = {2026},
  month = jun,
  note = {Submitted to Global South AI Safety Hackathon, an Apart Research Sprint},
  howpublished = {\url{https://apartresearch.com/sprints/projects/ai-permission-from-session-layer-to-kernel-layer-llwg}},
  url = {https://apartresearch.com/sprints/projects/ai-permission-from-session-layer-to-kernel-layer-llwg}
}

Build something like this at the next Sprint

AI Collusion Research Sprint · Oct 23 - 25, 2026