Skip to content

Commit b805dbe

Browse files
authored
[Rule Tuning] GenAI or MCP Server Child Process Execution (#5951)
1 parent 496d2e2 commit b805dbe

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

rules_building_block/execution_mcp_server_child_process.toml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2025/12/04"
33
integration = ["endpoint", "windows", "sentinel_one_cloud_funnel", "m365_defender"]
44
maturity = "production"
5-
updated_date = "2026/04/07"
5+
updated_date = "2026/04/21"
66

77
[rule]
88
author = ["Elastic"]
@@ -113,7 +113,35 @@ process where event.type == "start"
113113
(process.parent.name == "LM Studio" and process.name like~ "LM Studio Helper*") or
114114
(process.parent.name == "Ollama" and process.name like~ "Ollama Helper*") or
115115
116-
// Version and help checks
116+
// docker
117+
(process.name in ("docker", "docker.exe") and process.args == "context" and process.args == "ls") or
118+
// neighbor / arp / ps / which (args tokens or full /bin/sh -c)
119+
(
120+
process.args in (
121+
"ip neigh show",
122+
"arp -a -n -l",
123+
"ip neighbor show dev wlan0",
124+
"ip neighbor show dev eth0",
125+
"arp -a | findstr /C:---"
126+
) or
127+
process.command_line in (
128+
"/bin/sh -c ip neigh show",
129+
"/bin/sh -c arp -a -n -l",
130+
"/bin/sh -c /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=",
131+
"/bin/sh -c which ps"
132+
)
133+
) or
134+
// git
135+
(process.name in ("git", "git.exe") and (
136+
(process.args == "remote" and process.args == "get-url" and process.args == "origin") or
137+
(process.args == "symbolic-ref" and process.args == "refs/remotes/origin/HEAD" and process.args == "--short") or
138+
(process.args == "rev-parse" and process.args == "--abbrev-ref" and process.args == "HEAD") or
139+
(process.args == "status" and process.args == "-z" and process.args == "-uall") or
140+
(process.args == "config" and process.args == "--get" and process.args == "commit.template") or
141+
(process.args == "config" and process.args == "user.email") or
142+
(process.args == "rev-parse" and process.args == "--show-toplevel")
143+
)) or
144+
// version / help
117145
process.args in ("--version", "--help", "-v", "-h", "-V", "version", "help")
118146
)
119147
'''

0 commit comments

Comments
 (0)