Created
October 29, 2019 18:16
-
-
Save insanitybit/19c8b93ed5a424e874b11d985eae2896 to your computer and use it in GitHub Desktop.
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
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 | |
} | |
} | |
res(func: uid(RootBindingres0, RootBindingres1) , first: 1) | |
@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