Created
June 1, 2022 13:26
-
-
Save inodee/a56dd711d05df77f21d334c11935cb54 to your computer and use it in GitHub Desktop.
Hunting dashboard for Follina - CVE-2022-30190
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
| index=YOUR_ENDPOINT_TELEMETRY_INDEX msdt ChildPath=*msdt.exe ``` make sure you use msdt as a bloomfilter to speedup the query and filter on msdt.exe as child (primarily)``` | |
| ``` Highlight interesting traces ``` | |
| | eval office_parent=if(match(ParentPath, "(?i)(winword|excel|powerpnt|outlook)\.exe"), 1, 0) | |
| | eval cmdshell_parent=if(match(ParentPath, "(?i)\S+\\\(cmd|pwsh|sqlps|sqltoolsps|powershell|powershell_ise)\.exe"), 1, 0) | |
| | eval uri_scheme=if(match(command, "(?i)ms-msdt:/"), 1, 0) | |
| | eval traversal=if(match(command, "(?i)\.\.\S\.\."), 1, 0) | |
| | eval exe_param=if(match(replace(command, "(?i)msdt\.exe", ""), "(?i)\S+\.exe"), 1, 0) | |
| ``` Normalize the parent path``` | |
| | eval ParentPath=lower(ParentPath) | |
| | stats sparkline, count, dc(HostName) AS host_count, values(HostName) AS hosts, last(command) AS last_command by ParentPath, exe_param, office_parent, cmdshell_parent, traversal, uri_scheme | |
| | eval hosts=if(mvcount(hosts)>5, "More than 5", hosts) ``` Only lists hosts when prevalence is low ``` | |
| | sort 0 +num(host_count) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sysmon version: