Files
blue-team-tools/rules/windows/process_creation/proc_creation_win_mofcomp_execution.yml
T

44 lines
1.5 KiB
YAML
Raw Normal View History

2022-07-12 01:27:51 +01:00
title: Suspicious Mofcomp Execution
id: 1dd05363-104e-4b4a-b963-196a534b03a1
status: experimental
description: |
Detects execution of the "mofcomp" utility as a child of a suspicious shell or script running utility or by having a supsicious 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://docs.microsoft.com/en-us/windows/win32/wmisdk/mofcomp
2023-02-01 11:14:59 +01:00
author: Nasreddine Bencherchali (Nextron Systems)
2022-07-12 01:27:51 +01:00
date: 2022/07/12
2023-02-21 22:15:30 +01:00
modified: 2023/02/21
2022-10-28 15:06:36 +02:00
tags:
- attack.execution
- attack.t1218
2022-07-12 01:27:51 +01:00
logsource:
category: process_creation
product: windows
detection:
selection_img:
2023-02-21 22:15:30 +01:00
- Image|endswith: '\mofcomp.exe'
- OriginalFileName: 'mofcomp.exe'
2022-07-12 01:27:51 +01:00
selection_case:
- ParentImage|endswith:
- '\cmd.exe'
- '\powershell.exe'
2022-07-14 17:35:50 +01:00
- '\pwsh.exe'
2022-07-12 01:27:51 +01:00
- '\wsl.exe'
- '\wscript.exe'
- '\cscript.exe'
- CommandLine|contains:
- '\AppData\Local\Temp'
- '\Users\Public\'
- '\WINDOWS\Temp\'
- '%temp%'
2022-09-13 10:49:14 +02:00
- '%tmp%'
2022-07-12 01:27:51 +01:00
- '%appdata%'
condition: all of selection_*
falsepositives:
- Unknown
level: medium