Glassboxby Hnull Labs

Know what your AI agents actually did.

A kernel-level sensor for AI agents in production. It records what an agent was told, what it said and what it did, and flags the first run that doesn't match how that agent normally behaves.

agent nightly-triage · 5 hostsnight 14 / 14
ci-runner-01
ci-runner-02
batch-eu-1
batch-us-1
ci-container-01
Night 6 · ci-runner-02 · detectionRewrote its own instruction file.
Night 10 · every host · explainedNew model, new behaviour. Expected.
Night 13 · batch-eu-1 · unexplainedNever done this before. Canary touched.

Guardrails see words. EDR sees syscalls. Neither sees the agent.

A gateway reads one model call at a time and misses the process the agent started. EDR sees python → bash → curl and has no idea a model asked for it, or whether this job does that every night. You need both halves, and you need history.

Says versus does.

A file told the agent to run a build. The script also read the cloud credentials and posted them to a listener. The agent wasn't lying. It didn't know. The kernel did.

recorded run · one turn
Said
The notes say to build first. I'll run ./build.sh.
Done. Here's your summary.
Did
+0.4sexec ./build.sh announced
+0.5scat ~/.aws/credentials never mentioned
+0.6scurl POST → a listener never mentioned
Finding
The agent did something it never said it was doing.

How it works, in four lines.

No proxy, no certificate, no keys. Nothing changes in the agent or the pipeline on disk.

WorkloadAny agent, unmodified. Pipeline step, job, service or coding agent.
Kernel · eBPFProbes at the TLS boundary. Anything outside the agent is dropped in-kernel.
Split by privilegeLoader holds rights, never content. Pipeline holds content, never rights.
FleetOne view. Every host, container and environment. OCSF to your SIEM.

What it won't do.

✕Block
No interception, ever. A sensor that misses something is safer in production than a guardrail that breaks the job.
✕Defend against root
A compromised kernel or hypervisor is outside the threat model, and the threat model is written down.
✕Hold keys or break encryption
It reads plaintext where the agent's own TLS library has it, inside the agent's process.
✕Pretend it saw everything
io_uring data isn't read yet, and a run that used it says so on the record.

That was the summary. The rest is for people who want to see how it works.

§01

Capture without a proxy

Glassbox doesn't wrap or proxy anything the agent uses. It attaches eBPF probes to the kernel and to the TLS libraries the agent already loads, and reads plaintext at the library boundary. No man-in-the-middle, no CA to trust, nothing to break.

Kernel
Process starts, files, connections, DNS, privilege changes. Anything outside the agent is dropped in-kernel, before it reaches user space.
TLS libraries
OpenSSL, BoringSSL, GnuTLS, Go, rustls, Java.
Stripped binaries
For agents shipped as stripped single binaries with their own crypto, TLS functions are found by instruction-level signatures.
New releases
Support ships to hosts as signed data, not a new sensor. Hosts opt in; a bad update is refused. A new cipher routine or calling convention needs a new sensor build.
§02

Process architecture

The process with kernel rights never touches content. The process holding the content has no rights. One ring buffer crosses between them, one way. Detections, canaries and response orders arrive signed by a key the console never holds.

Workload
Any agent, unmodified: a pipeline step, scheduled job, service or coding agent. Whatever it spawns is tracked inside a process group the sensor owns, on the host or in a container.
Loader (privileged)
Holds the kernel capabilities. Never sees a decrypted byte.
Pipeline (unprivileged)
Holds every prompt and reply, has no capabilities, classifies on the host. Nothing is sent to a cloud model for scoring.
Fleet
Runs, agents, behaviour, findings and response across hosts, containers and environments, over signed mTLS.
§03

What one record holds

Model I/O
System prompt, context, replies, reasoning, tool definitions, tool calls and results, model, provider. Captured at the TLS boundary.
Processes
The command line from the executed image, the file the kernel actually ran, user, parent.
Files
Credentials, instruction files, persistence locations, via an in-kernel allowlist.
Network
Destination, the name it resolved, which credential was presented. Connect, DNS, SNI.
Identity
Host, run and agent on every event, plus container and pod where there is one.
Its own health
Dropped events counted, failed probes declared, on every run.

Every event and finding goes out as OCSF to your SIEM, with a readable report per run.

§04

The sensor checks itself

Tracepoint self-test
Before the first event, a known syscall is issued on every CPU and the sensor checks each one fires. A core that doesn't respond is named on the run's record.
Entry-keyed matching
Each goroutine's TLS read is matched to its entry by goroutine ID. A read that can't be paired is dropped and counted, not attributed to the wrong conversation.
Negative control
Every signature update ships a pattern that must never match any binary. If it matches, the signature mechanism is broken and the host refuses the update.
§05

Detections

A credential read looks identical in the kernel whether an operator asked for it or a poisoned file did. The conversation separates them. The narration rule: an injected read raises "the agent did something it never said it was doing". A requested read does not.

Agent harm rules
  • An action the agent never mentioned
  • Untrusted input followed by a privileged action
  • A credential sent to a model or read by a tool server
  • Writes to persistence or the agent's own instructions
  • Encoded staging, then egress
  • Cloud metadata service access
  • A sub-agent acting outside what it was asked
  • Tampering with its own record
Host harm rules
  • A cryptominer command line
  • Code loaded into the kernel
  • The host's audit trail destroyed
  • A container-escape primitive
  • A link made to a credential file
  • Execution with no file on disk
  • A shell opening its own network connection
  • A process tracing the one that started it

Harm rules fire from the first run. Rules match structure and simple patterns recorded once at capture, with no model deciding. Every rule is replayed against stored runs before it ships. The trade-off: a rule only sees what its lists name.

§06

Behaviour and drift

An automation gets one identity wherever it runs: declared by the owning team, or derived from the program, script, repository and pipeline job. Two runs on two hosts are the same agent with one history. Then three questions are asked of every run.

Like itself?
A destination, program, credential path, tool, tool server or model this agent has never used. Activity far outside its own range.
Explained?
Each deviation is checked against what changed: harness version, model, instruction files, script, commit. A planned upgrade is recorded quietly.
Really that agent?
A run that borrows a trusted agent's name without matching it is flagged and kept out of the baseline.

Novelty waits until an agent has a baseline, because everything is new on a first run. Talking about an attack isn't doing one: an agent that only discusses credentials raises nothing.

§07

Canaries

Plant a fake secret in production. If it ever shows up in a prompt, a reply, a command line or a packet, you know. Matched on the host. The finding names the canary and never contains the secret.

§08

Response

Freeze
The agent's process group, with memory, files and connections intact.
Continue
Resume it with one more order.
Kill, archive
Never automatic, never the first step.
Authority
Fleet orders are signed by a person and the host checks the signature. The host-local respond command is root-only and unsigned by design.
Defaults
The ceiling is observe: a host does nothing unless its owner raised it. Every automatic freeze carries a dead-man timer that releases it.
§09

Coverage

Claude Code
Bun single binary, BoringSSL built in, no symbols. Found by instruction-level signatures; 2.1.257 and later, both architectures.
Codex
Rust, rustls over aws-lc, stripped, WebSocket with compression. Byte-exact capture at the cipher, then the stream decoded.
Kiro
Rust, rustls, AWS event-stream framing. Captured and decoded, including on older CPUs that take a different crypto path.
Antigravity
Go, its own TLS stack, stripped. Functions recovered from Go's own metadata and probed at every return.
Platforms
Hosts, VMs and containers. arm64 and x86-64. Linux 5.15, 6.8 and 7.0, and RHEL 8.
Claude CodeCodexKiroAntigravityPythonNodeGoRustJavaRubyPHPBunDenocurlwget
Claude CodeCodexKiroAntigravityPythonNodeGoRustJavaRubyPHPBunDenocurlwget
Claude CodeCodexKiroAntigravityPythonNodeGoRustJavaRubyPHPBunDenocurlwget
Claude CodeCodexKiroAntigravityPythonNodeGoRustJavaRubyPHPBunDenocurlwget
AnthropicOpenAIGeminiGroqDeepSeekOpenRouterCerebraslocal modelsarm64x86-64Linux 5.15 · 6.8 · 7.0RHEL 8containers
AnthropicOpenAIGeminiGroqDeepSeekOpenRouterCerebraslocal modelsarm64x86-64Linux 5.15 · 6.8 · 7.0RHEL 8containers
AnthropicOpenAIGeminiGroqDeepSeekOpenRouterCerebraslocal modelsarm64x86-64Linux 5.15 · 6.8 · 7.0RHEL 8containers
AnthropicOpenAIGeminiGroqDeepSeekOpenRouterCerebraslocal modelsarm64x86-64Linux 5.15 · 6.8 · 7.0RHEL 8containers
§10

Privacy

It reads prompts, so privacy is a setting. Events carry references, never content. The conversation is stored encrypted on the host, under root.

On the host
A root-owned file keeps the conversation off the central server. Detection runs unchanged, because rules match structure, not words. Content-off mode keeps the record without the text.
In the console
Conversations visible only to users granted access. Redaction masks secrets before storage. Every access is logged.
By policy
Retention per host. Deletion is an operator action. Export goes to your own SIEM. Nothing leaves your infrastructure unless you send it.
§11

Limits and scope

  • No blocking. No interception, ever.
  • Not root-proof. A compromised kernel or hypervisor is out of scope.
  • No keys. A model running inside the agent's process, with no network call, isn't a call it can see.
  • Known gaps are declared. io_uring data isn't read, and a run that used it says so.

Agents are getting keys to production.

Someone has to keep the record.