Repository navigation
[New] Terminate GenAI Process Activity - #159
Open
Mikaayenson wants to merge 7 commits into
Open
Mikaayenson wants to merge 7 commits into
Mikaayenson wants to merge 7 commits into
Conversation
…urce isolation, outcome truthiness, isolate log
h88
approved these changes
Nov 30, 2026
h88
left a comment
Contributor
There was a problem hiding this comment.
3 minor generated comments, unblocking...
Remove unused action_poll_limit after the literal poll limit change, note the history privilege needed for verification, and include kill_process errors in the summarize message.
h88
approved these changes
Dec 1, 2026
h88
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use this when an AI coding agent or one of its child processes is doing something you need stopped on an endpoint (for example a runaway tool call, unexpected shell activity, or a descendant process tied to Cursor, Claude Code, Copilot, Ollama, and similar). The workflow terminates that process with Elastic Defend kill_process, but only when process.ai_agent.name is set or process.ai_agent.is_descendant is true, so ordinary host processes are skipped. Those fields need Elastic Endpoint Linux 9.5+ (macOS and Windows 9.6+) with AI event enrichment enabled (Linux on by default in 9.5; Defend AI data collection / advanced genai_observability elsewhere). Start from a security alert or run it manually (manual runs can pass ai_agent_name / ai_agent_is_descendant). It prefers process.entity_id; PID-only enforce is refused because of PID reuse risk. Audit by default; enforce submits the kill, polls until Defend finishes, and records whether it succeeded. Optional host isolate is a separate install toggle and runs only after a verified kill.