Created
October 29, 2019 18:17
-
-
Save insanitybit/c2b66a1b54f4215c837d7ffab6fae324 to your computer and use it in GitHub Desktop.
This file contains 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
query | |
{ | |
RootBindingres0 as var(func: has(process_id)) @cascade { | |
uid, | |
node_key, | |
process_name | |
process_id | |
children { | |
uid, | |
node_key, | |
process_name | |
process_id | |
} | |
} | |
var(func: eq(process_name, "svchost.exe")) @cascade { | |
uid, | |
node_key, | |
process_name | |
process_id | |
RootBindingres1 as ~children { | |
uid, | |
node_key, | |
process_name | |
process_id | |
} | |
} | |
resCoalesce as var(func: uid(RootBindingres0, RootBindingres1)) | |
@cascade | |
@filter(( | |
(has(node_key)) | |
)AND( | |
(NOT eq(process_name, "services.exe") AND NOT eq(process_name, "smss.exe") AND NOT eq(process_name, "ngentask.exe") AND NOT eq(process_name, "userinit.exe") AND NOT eq(process_name, "GoogleUpdate.exe") AND NOT eq(process_name, "conhost.exe") AND NOT eq(process_name, "MpCmdRun.exe")) | |
)) | |
{ | |
uid, | |
process_name, | |
node_key, | |
process_id, | |
children @filter(( | |
(has(node_key)) | |
)AND( | |
(eq(process_name, "svchost.exe")) | |
)) { | |
uid, | |
node_key, | |
process_name | |
process_id | |
} | |
} | |
res(func: uid(resCoalesce) , first: 1000) | |
@cascade | |
@filter(( | |
(has(node_key)) | |
)AND( | |
(NOT eq(process_name, "services.exe") AND NOT eq(process_name, "smss.exe") AND NOT eq(process_name, "ngentask.exe") AND NOT eq(process_name, "userinit.exe") AND NOT eq(process_name, "GoogleUpdate.exe") AND NOT eq(process_name, "conhost.exe") AND NOT eq(process_name, "MpCmdRun.exe")) | |
)) | |
{ | |
uid, | |
, | |
process_name, | |
node_key, | |
process_id, | |
children @filter(( | |
(has(node_key)) | |
)AND( | |
(eq(process_name, "svchost.exe")) | |
)) { | |
uid, | |
node_key, | |
process_name | |
process_id | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment