Forensics & Defense·3 min read·docs/autonomous-protection.md

Autonomous Protection

Delegated directory watching, positive-evidence proposals, and immediate human revocation.

Interactive Guide LabNon-enforcing proposals & revocation
Visual Isometric WalkthroughDevelopers & SOC Automation Teams

Interactive Isometric Architecture Simulators

AI SOC Agent Investigation via 23 MCP Tools (Eyes Only, Zero Auto-Kill)

See how Claude, Cursor, or Codex investigate live clusters safely without ever holding the trigger.

Explore all 23 MCP tools →
RING 3 · AI / PROCUntrusted user spaceRING 0 · eBPFTetragon v1.8.0PQ ZERO-TRUSTML-DSA-65 + HPKEHUB · CEL & MCPGraphs & 23 toolsHUMAN SEALSHA-256 audit chainMCP STDIO / LOOPBACK →
Step 1 of 5 · Opt-In MCPinternal/adapter/mcp/server.go

External AI agent connects over stdio or loopback /mcp

MCP is disabled by default. When enabled (-mcp), clients connect via ometsuke mcp-stdio or loopback HTTP with strict Origin checks — and never receive the console mutation token.

Developer invariant · Even a completely compromised AI client has zero HTTP/API credential capable of calling a mutating console endpoint.
MCP client bridge (zero mutation token)
ometsuke mcp-stdio -server http://127.0.0.1:7070/mcp
tools/list -> 23 tools registered:
  21 strictly ReadOnlyHint=true  (ledger, fleet, kernel, memory, DFIR)
   2 non-enforcing proposals     (policy_propose, case_recommend)

Use this mode for a temporary directory whose executables must not initiate socket connections. A build scratch directory or a staging directory that already has this operational restriction can be a suitable scope. A package installer that legitimately downloads an update can produce exactly the same signals as an unapproved program. The delegation is a statement about allowed behavior in that directory. Incident-like and maintenance controls

#Enable the delegation

Open Protection → Autonomous investigation with the operator link. Review the directory and monitoring scope, enter the requested confirmation and record a reason. The controller can prepare proposals while the operator is away. The separate automatic monitoring profile opens proposals for human review.

#How the controller reaches a decision

Evidence or decisionWhat happens
The operator delegates a directory beneath /tmp, /var/tmp or /dev/shmThe controller starts a monitor-only TCP observer scoped to that directory.
An executable starts under the directory and the same execution attempts a TCP connectionThe controller prepares an exact-executable socket response, validates it and verifies its hooks in monitor mode.
A later operation increments the withheld intervention count on that exact loadThe configured model receives four numbered facts about the delegation and observations. The machine question includes no executable path, raw arguments or credential.
The model returns the allowed response with all required references, and the delegation still matchesThe console opens the exact executable for operator review. A model refusal, ambiguous answer, missing source or unavailable provider cannot authorize a block.
The operator confirms the exact executable and reason on the current revisionThe controller rechecks the monitor and the session, attaches the exact socket-denial policy and verifies its state.
A subsequent socket connect matches the active responseThe kernel can return EPERM. Status and counters distinguish an attached rule from an observed denial.

One delegation can track four distinct executable paths. A monitor that receives no fresh intervention within ten minutes expires and releases its slot after removal is verified. When all slots are occupied, the dashboard shows the limit.

The rule matches an executable pathname. Another program at the same path can therefore match it later, while a program at another path falls outside it. The underlying security_socket_connect hook covers socket connects beyond TCP, including local sockets. The observations and model review take time. Earlier attempts and already established connections can still succeed. No research-grade detection rate has been established for this mode.

#Operate and investigate

A positive assessment can be reviewed for ten minutes. Approval checks the original session, verified monitor and observed counter again. Use the investigation view to inspect the directory, affected executables and observed effects. When a proposal is ready, verify that the process was expected to obey the directory rule. To approve, enter its exact pathname and a reason, then select Approve connection blocking. Audit log records operator changes and controller outcomes. Model usage records the model operation and its token provenance. If the guest loses contact with Tetragon, inspect the actual hook state after reconnection. A previously installed kernel rule can remain effective while the console is offline.

An explicit negative assessment or invalid citations leave the executable under observation. Temporary provider failures allow up to three attempts. Each retry requires a fresh withheld operation after the backoff of five or twenty seconds.

To end the delegation, use its disarm control and verify the result in the live view. If the view reports Cleanup awaiting verification, use sudo tetra tracingpolicy list -o json on the original host and inspect each listed policy name, namespace, domain and ID. After a lost session the controller cannot prove ownership solely from a matching name. Have the socket administrator resolve the listed policies, then repeat disarm to confirm their absence. Consult the operations guide for socket permissions and the lab report for tested behavior.