Skip to content

tracer: in-kernel agent request graph; drop /proc fallback - #16

Merged
Talgarr merged 1 commit into
mainfrom
tracer-agent-graph
Jun 25, 2026
Merged

tracer: in-kernel agent request graph; drop /proc fallback#16
Talgarr merged 1 commit into
mainfrom
tracer-agent-graph

Conversation

@Talgarr

@Talgarr Talgarr commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Attribute gpg-agent/ssh-agent-mediated touches to the real client from inside the kernel: mark client sockets at unix_accept, then on unix_stream_recvmsg record the requesting peer per agent kind (exact, since the key serializes touches). main.go resolves via tracer.AgentClientPID, so the agentpeer /proc UNIX_DIAG scan and its cap_sys_ptrace/cap_dac_read_search are removed. Also pin CGO_ENABLED=0 so the capped (non-dumpable) binary keeps a readable auxv for cilium's kernel-version detection. Classifier/proctree gain shell-arg normalization so resolved trees name the tool, not the interpreter.

Attribute gpg-agent/ssh-agent-mediated touches to the real client from inside
the kernel: mark client sockets at unix_accept, then on unix_stream_recvmsg
record the requesting peer per agent kind (exact, since the key serializes
touches). main.go resolves via tracer.AgentClientPID, so the agentpeer /proc
UNIX_DIAG scan and its cap_sys_ptrace/cap_dac_read_search are removed. Also pin
CGO_ENABLED=0 so the capped (non-dumpable) binary keeps a readable auxv for
cilium's kernel-version detection. Classifier/proctree gain shell-arg
normalization so resolved trees name the tool, not the interpreter.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Talgarr
Talgarr merged commit 70b5144 into main Jun 25, 2026
1 check passed
@Talgarr
Talgarr deleted the tracer-agent-graph branch June 25, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant