Last active
September 13, 2022 04:33
-
-
Save embee-research/14ab9d309f25a05fc9305a8e7f351089 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
title: Suspicious msdt.exe execution - Office Exploit | |
id: 97a80ed7-1f3f-4d05-9ef4-65760e634f6b | |
status: experimental | |
description: This rule will monitor suspicious arguments passed to the msdt.exe process. These arguments are an indicator of recent Office/Msdt exploitation. | |
references: | |
- https://doublepulsar.com/follina-a-microsoft-office-code-execution-vulnerability-1a47fce5629e | |
- https://twitter.com/MalwareJake/status/1531019243411623939 | |
author: 'Matthew Brennan' | |
tags: | |
- attack.execution | |
logsource: | |
category: process_creation | |
product: windows | |
detection: | |
selection1: | |
Image|endswith: | |
- 'msdt.exe' | |
selection2: | |
CommandLine|contains: | |
- 'PCWDiagnostic' | |
selection3: | |
CommandLine|contains: | |
- 'ms-msdt:-id' | |
- 'ms-msdt:/id' | |
selection4: | |
CommandLine|contains: | |
- 'invoke' | |
condition: selection1 and (selection4 or (selection2 and selection3)) | |
falsepositives: | |
- Unknown | |
level: high |
I ran the yaml file through sigma and since my siem is splunk it gave the below.
((Image="*msdt.exe") ((CommandLine="invoke") OR ((CommandLine="PCWDiagnostic") (CommandLine="ms-msdt:-id" OR CommandLine="ms-msdt:/id"))))
in splunk i have no fields called Image or CommandLine. What am I to do with the above?
Just FYI, Splunk should know these fields from Windows ETW logs too, you just have to ingest the logs in the XML format (how it should be). Splunk messed up with it initially but corrected it from Splunk 6.2 onwards. More info here: https://www.splunk.com/en_us/blog/platform/splunk-6-2-feature-overview-xml-event-logs.html
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @mbabinski! Thanks for clarifying this!
It was more an accident than intention that sigmac tolerates different cases of conditional operators. They should be lower-cased.
@RyanMBess You have to define a mapping between the Sigma field naming (for endpoints we use the Sysmon taxonomy as convention) and your target system. Depending on the used conversion tool this is done with:
sigma list pipelines
and use then with the-p
parameter of thesigma convert
command. Currenty, these pipelines are defined:sigmac -l
.