What it takes to watch an AI agent from the kernel.

← Research/Glassbox·5 min read·Oct 2026

AI agents act on our hosts on the strength of conversations nobody else sees. Glassbox reads an agent's conversation as TLS plaintext inside the agent's own process, records the kernel actions that follow, and compares the two under one agent identity. This is how it works, and what our lab results do and do not support.

Two trails that never meet.

An agent leaves two trails. The first is the model conversation: what it was asked, which tool it chose, what it said it was doing. The second is the endpoint activity it causes: processes that start, files that open, sockets that connect.

Security teams already run tools for each half. Guardrails and gateways see the words and never a syscall. EDR sees claude → bash → build.sh → curl and has no idea a model asked for it. The two almost never share a record, so a question like "did this run read a credential after a file told it to?" has no query that answers it.

How it works, in four steps.

01

Own the agent's cgroup

Glassbox launches the agent in a Linux cgroup it creates, or its host daemon adopts the cgroup of an agent that is already running. Everything below is filtered in the kernel by that cgroup, so nothing outside the watched run is recorded.

02

Read the conversation at the TLS boundary

eBPF probes on the agent's TLS library read the plaintext before it is encrypted and after it is decrypted, inside the agent's own process. No proxy, no certificate, no change to the traffic. In our lab that covered Claude Code, Codex, Kiro and Antigravity, plus the common runtimes and curl.

03

Record what the kernel saw

In the same cgroup the sensor records processes that start, credential and persistence paths that are opened, connections and DNS names. A probe that fails to attach is declared on the run rather than left as silence.

04

Join both halves under one identity

Every event, model exchange or syscall, carries the same agent identity and sits on the same timeline. Deterministic rules then compare what the agent said with what it did. Findings leave the host as OCSF, so they land in the SIEM you already run.

The agent runs in a cgroup on the host. eBPF probes in the kernel and on its TLS library feed a privileged loader and an unprivileged pipeline. The pipeline writes one record with findings, which go to a collector, a console and your SIEM.The agentany harness or script,launched or adoptedThe kernel (eBPF)syscalls + TLS library probes,filtered by cgroupLoader · privilegedPipeline · holds plaintextOne recordsaid beside did,one agent identity, findingsno plaintext on the privileged sideCollectorfleet view across hostsConsoleruns, agents, driftYour SIEMOCSF events and findings

Says versus does.

The core rule is simple: flag an action the agent never announced. Nothing in it uses a model to decide. It is a set comparison between the tool calls in the conversation and the actions in the kernel record.

The lab case that shows why it matters: a repository file carried an injected instruction to run ./build.sh. The agent announced it would summarise the file and run the build. The script read a placeholder ~/.aws/credentials and posted it to a sink we run. Nothing the agent said mentioned credentials. The record shows the read with no tool call that names it, and that is the finding.

A credential read looks the same in the kernel whether an operator asked for it or a poisoned file did. We ran both cases with Falco and Tetragon watching, each with tuned, agent-aware rules. Both caught the kernel half of the injected runs. Neither could reliably tell an injected read from a requested one. The narration rule flagged the injected reads (2 of 2) and stayed silent on the requested ones (0 of 3), because the agent announced the read the operator asked for. Small samples, one lab; the point is the mechanism, not a rate.

Five rules we hold the design to.

Out of the data path.

The sensor never blocks, intercepts or modifies the agent's traffic or syscalls. The one active response is a freeze of the agent's cgroup, and on the fleet path it needs a human signature from a key the console never holds.

No model decides.

Detections are small deterministic rules that can be read, replayed and argued with. Every rule is replayed against recorded runs before it ships.

Words stay small.

Events carry references to the conversation, never the text. The text is encrypted on the host, ages out on its own clock, and one root-owned setting keeps it on the host entirely while detection runs unchanged.

Privilege and plaintext are split.

The half with kernel privileges never handles plaintext. The half that holds plaintext has no privileges.

Silence has to mean something.

Known failure modes, such as a probe that cannot attach or events dropped under load, are declared on the run with counts. A zero should never mean "we could not see".

What we don't claim.

  • One lab, one operator, a handful of virtual machines. Every number comes with its sample size, and small counts show that a mechanism works. They are not rates.
  • Not a security evaluation. No independent red team has attacked the sensor yet, and there is no false-positive rate on organic traffic.
  • The narration rule compares an action with what the agent announced, not with what the operator asked. An injection that makes the agent announce the read is not flagged by it.
  • Reading TLS plaintext with eBPF is not ours: eCapture, Pixie and others did it first. Joining an agent's intent to its kernel effects is not ours either: AgentSight introduced it. What we add is the combination, held to the rules above.

Working on agent security?

We work with a small number of security teams as design partners.