IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Mofcomp Activity
editMofcomp Activity
editManaged Object Format (MOF) files can be compiled locally or remotely through mofcomp.exe. Attackers may leverage MOF files to build their own namespaces and classes into the Windows Management Instrumentation (WMI) repository, or establish persistence using WMI Event Subscription.
Rule type: eql
Rule indices:
- logs-endpoint.events.process-*
- logs-m365_defender.event-*
- endgame-*
- logs-system.security-*
- logs-crowdstrike.fdr*
Severity: low
Risk score: 21
Runs every: 5m
Searches indices from: now-9m (Date Math format, see also Additional look-back time
)
Maximum alerts per execution: 100
References: None
Tags:
- Domain: Endpoint
- OS: Windows
- Use Case: Threat Detection
- Tactic: Execution
- Data Source: Elastic Defend
- Data Source: Microsoft Defender for Endpoint
- Data Source: Elastic Endgame
- Data Source: System
- Data Source: Crowdstrike
Version: 4
Rule authors:
- Elastic
Rule license: Elastic License v2
Rule query
editprocess where host.os.type == "windows" and event.type == "start" and process.name : "mofcomp.exe" and process.args : "*.mof" and not user.id : "S-1-5-18" and not ( process.parent.name : "ScenarioEngine.exe" and process.args : ( "*\\MSSQL\\Binn\\*.mof", "*\\Microsoft SQL Server\\???\\Shared\\*.mof", "*\\OLAP\\bin\\*.mof" ) )
Framework: MITRE ATT&CKTM
-
Tactic:
- Name: Execution
- ID: TA0002
- Reference URL: https://attack.mitre.org/tactics/TA0002/
-
Technique:
- Name: Windows Management Instrumentation
- ID: T1047
- Reference URL: https://attack.mitre.org/techniques/T1047/
-
Tactic:
- Name: Persistence
- ID: TA0003
- Reference URL: https://attack.mitre.org/tactics/TA0003/
-
Technique:
- Name: Event Triggered Execution
- ID: T1546
- Reference URL: https://attack.mitre.org/techniques/T1546/
-
Sub-technique:
- Name: Windows Management Instrumentation Event Subscription
- ID: T1546.003
- Reference URL: https://attack.mitre.org/techniques/T1546/003/