Skip to content

Create Mofcomp.yml - #513

Open
josehelps wants to merge 3 commits into
masterfrom
clean-mofcomp
Open

Create Mofcomp.yml#513
josehelps wants to merge 3 commits into
masterfrom
clean-mofcomp

Conversation

@josehelps

Copy link
Copy Markdown
Contributor

Create lolbas yml entry for the Windows binary mofcomp.exe. Supersedes #236 (closed in favor of this PR with review feedback applied).

Changes applied during review:

  • Capitalize Name field to match repo convention
  • Add missing Code_Sample field
  • Fix OperatingSystem casing and format
  • Differentiate the two command Usecases

Relates to issue #137. Credit to @danielgottt for the original entry.

- Capitalize Name field to match repo convention
- Add missing Code_Sample field
- Fix OperatingSystem casing and format
- Differentiate the two command Usecases
@josehelps
josehelps requested a review from a team as a code owner June 29, 2026 23:42

@wietze wietze left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of suggestions from me

Comment thread yml/OSBinaries/Mofcomp.yml Outdated
Author: Daniel Gott
Created: 2022-07-19
Commands:
- Command: mofcomp.exe C:\Windows\SERVIC~1\MSSQL$~1\AppData\Local\Temp\xitmf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this path? Since it is not explained, I'm guessing this should be generalised to {PATH_ABSOLUTE:.mof}

Comment thread yml/OSBinaries/Mofcomp.yml Outdated
Comment on lines +24 to +25
Code_Sample:
- Code: N/A

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be deleted

Comment thread yml/OSBinaries/Mofcomp.yml Outdated
Comment on lines +14 to +20
- Command: mofcomp.exe C:\Programdata\x.mof
Description: Abuse of mofcomp.exe to parse a file which contains MOF statements in order create new classes as part of the WMI repository
Usecase: Threat actors can use mofcomp.exe to register a malicious MOF file as a new class in the WMI repository
Category: Execute
Privileges: User
MitreID: T1047
OperatingSystem: Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008+

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant if we generalise the first example, and can be removed.

Comment thread yml/OSBinaries/Mofcomp.yml Outdated
Description: Abuse of mofcomp.exe to parse a file which contains MOF statements in order create new classes as part of the WMI repository
Usecase: Threat actors can use mofcomp.exe to decompile a BMOF binary and then register a malicious class in the WMI repository
Category: Execute
Privileges: User

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should include

    Tags:
      - Execute: MOF

Comment thread yml/OSBinaries/Mofcomp.yml Outdated
- Code: N/A
Detection:
- IOC: strange parent processes spawning mofcomp.exe like cmd.exe or powershell.exe
- Sigma: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_susp_mofcomp_execution.yml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No longer exists - should be using commit hashes like the example below anyway

@wietze wietze linked an issue Jul 28, 2026 that may be closed by this pull request
- Generalise command path to {PATH_ABSOLUTE:.mof}
- Remove redundant second command example
- Add Execute: MOF tag
- Remove empty Code_Sample section
- Remove dead SigmaHQ sigma link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mofcomp.exe

2 participants