Query: detection rule: Detects execution of the "mofcomp" utility as a child of a suspicious shell or script running utility or by having a sus
Matching passage: Sigma rule: Detects execution of the "mofcomp" utility as a child of a suspicious shell or script running utility or by having a sus. Logsource: windows / process_creation. Rule: title: Potential Suspicious Mofcomp Execution id: 1dd05363-104e-4b4a-b963-196a534b03a1 status: test description: 'Detects execution of the "mofcomp" utility as a child of a suspicious shell or script running utility or by having a suspicious path in the commandline. The "mofcomp" utility parses a file containing MOF statements and adds the classes and class instances defined in the file to the WMI repository. Attackers abuse this utility to install malicious MOF scripts ' references: - https://thedfirreport.com/2022/07/11/select-xmrig-from-sqlserver/ - https://github.com/The-DFIR-Report/Sigma-Rules/blob/75260568a7ffe61b2458ca05f6f25914efb44337/win_mofcomp_execution.yml - https://learn.microsoft.com/en-us/windows/win32/wmisdk/mofcomp author: Nasreddine Bencherchali (Nextron Systems) date: 2022-07-12 modified: 2023-04-11 tags: - attack.stealth - attack.t1218 logsource: category: process_creation product: windows detection: selection_img: - Image|endswith: \mofcomp.exe - OriginalFileName: mofcomp.exe selection_case: - ParentImage|endswith: - \cmd.exe - \powershell.exe - \pwsh.exe - \wsl.exe - \wscript.exe - \cscript.exe - CommandLine|contains: - \AppData\Local\Temp - \Users\Public\ - \WINDOWS\Temp\ - '%temp%' - '%tmp%' - '%appdata%' filter_main_wmiprvse: ParentImage: C:\Windows\System32\wbem\WmiPrvSE.exe CommandLine|contains: C:\Windows\TEMP\ CommandLine|endswith: .mof filter_optional_null_parent: CommandLine|contains: C:\Windows\TEMP\ CommandLine|endswith: .mof condition: all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_* falsepositives: - Unknown level: high
Near-miss passage: Sigma rule: Detects modification of autostart extensibility point (ASEP) in registry. Adversaries may modify these keys to execute m. Logsource: windows / registry_set. Rule: title: Office Autorun Keys Modification id: baecf8fb-edbf-429f-9ade-31fc3f22b970 related: - id: 17f878b8-9968-4578-b814-c4217fc5768c type: obsolete status: test description: 'Detects modification of autostart extensibility point (ASEP) in registry. Adversaries may modify these keys to execute malicious code when Office files are opened. There are various legitimate add-ins that also use these keys and this filter list might not be exhaustive. Thus, it is recommended to review and tune filters for your environment to reduce false positives before deploying to production. ' references: - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1547.001/T1547.001.md - https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns - https://gist.github.com/GlebSukhodolskiy/0fc5fa5f482903064b448890db1eaf9d author: Victor Sergeev, Daniil Yugoslavskiy, Gleb Sukhodolskiy, Timur Zinniatullin, oscd.community, Tim Shelton, frack113 (split) date: 2019-10-25 modified: 2026-01-09 tags: - attack.privilege-escalation - attack.persistence - attack.t1547.001 logsource: category: registry_set product: windows detection: selection_office_root: TargetObject|contains: - \Software\Wow6432Node\Microsoft\Office - \Software\Microsoft\Office selection_office_details: TargetObject|contains: - \Word\Addins - \PowerPoint\Addins - \Outlook\Addins - \Onenote\Addins - \Excel\Addins - \Access\Addins - test\Special\Perf filter_main_empty: Details: (Empty) filter_main_null: Details: null filter_main_known_addins: Image|startswith: - C:\Program Files\Microsoft Office\ - C:\Program Files (x86)\Microsoft Office\ - C:\PROGRA~2\MICROS~2\Office - C:\Windows\System32\msiexec.exe - C:\Windows\SysWOW64\msiexec.exe - C:\Windows\System32\regsvr32.exe - 'C:\Windows\SysWOW64\regsvr32.exe ' TargetObject|contains: - \Excel\Addins\AdHocReportingExcelClientLib.AdHocReportingExcelClientAddIn.1\ - \Excel\Addins\ExcelPlugInShell.PowerMapConnect\ - \Excel\Addins\NativeShim\ - \Excel\Addins\NativeShim.InquireConnector.1\ - \Excel\Addins\PowerPivotExcelClientAddIn.NativeEntry.1\ - \Outlook\AddIns\AccessAddin.DC\ - \Outlook\AddIns\ColleagueImport.ColleagueImportAddin\ - \Outlook\AddIns\EvernoteCC.EvernoteContactConnector\ - \Outlook\AddIns\EvernoteOLRD.Connect\ - \Outlook\Addins\\OneNote.OutlookAddin - \Outlook\Addins\DriveFSExtensionLib.Connect\ - \Outlook\Addins\GoogleAppsSync.Connect\ - \Outlook\Addins\Microsoft.VbaAddinForOutlook.1\ - \Outlook\Addins\OcOffice.OcFo