.. /Mofcomp.exe
Star

Execute (MOF)

Compiler that parses a file containing MOF statements and adds the classes and class instances defined in the file to the WMI repository. Threat actors can leverage this binary to install malicious MOF scripts

Paths:

Resources:

Acknowledgements:

Detections:

Execute

  1. Abuse of mofcomp.exe to parse a file which contains MOF statements in order create new classes as part of the WMI repository

    mofcomp.exe {PATH_ABSOLUTE:.mof}
    Use case

    Threat actors can use mofcomp.exe to register a malicious MOF file as a new class in the WMI repository

    Privileges required
    User
    Operating systems
    Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008+
    ATT&CK® technique
    T1047
    Tags
    Execute: MOF