MMC

T1218.014

Sub-technique of T1218 System Binary Proxy Execution.View on attack.mitre.org

About this technique

Adversaries may abuse mmc.exe to proxy execution of malicious .msc files. Microsoft Management Console (MMC) is a binary that may be signed by Microsoft and is used in several ways in either its GUI or in a command prompt. MMC can be used to create, open, and save custom consoles that contain administrative tools created by Microsoft, called snap-ins. These snap-ins may be used to manage Windows systems locally or remotely. MMC can also be used to open Microsoft created .msc files to manage system configuration.

For example, mmc C:\Users\foo\admintools.msc /a will open a custom, saved console msc file in author mode. Another common example is mmc gpedit.msc, which will open the Group Policy Editor application window.

Adversaries may use MMC commands to perform malicious tasks. For example, mmc wbadmin.msc delete catalog -quiet deletes the backup catalog on the system (i.e. Inhibit System Recovery) without prompts to the user (Note: wbadmin.msc may only be present by default on Windows Server operating systems).

Adversaries may also abuse MMC to execute malicious .msc files. For example, adversaries may first create a malicious registry Class Identifier (CLSID) subkey, which uniquely identifies a Component Object Model class object. Then, adversaries may create custom consoles with the “Link to Web Address” snap-in that is linked to the malicious CLSID subkey. Once the .msc file is saved, adversaries may invoke the malicious CLSID payload with the following command: mmc.exe -Embedding C:\path\to\test.msc.

Detection rules8

Rules on DetectionCode tagged with T1218.014.

Sigma2

RuleLevelLog source
MMC Executing Files with Reversed Extensions Using RTLO Abusehighwindows / process_creation
MMC Loading Script Engines DLLsmediumwindows / image_load

Splunk6

RuleTypeRiskData source
Mmc LOLBAS Execution Process SpawnTTPNULLSysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2
Possible Lateral Movement PowerShell SpawnAnomalyNULLSysmon EventID 1, CrowdStrike ProcessRollup2
UAC Bypass MMC Load Unsigned DllTTPNULLSysmon EventID 7
Windows Execution of Microsoft MSC File In Suspicious PathAnomalyNULLSysmon EventID 1, Windows Event Log Security 4688, CrowdStrike ProcessRollup2
Windows GrimResource - MMC Process Accessing APDS DLLTTPNULLWindows Event Log Security 4663
Windows Mock Trusted Directory MSC File CreationTTPNULLSysmon EventID 11

Groups1

Software0

None recorded.

Campaigns1

Procedure examples2

Groups1

Used byProcedure example
GroupMedusa Group

Medusa Group has leveraged Microsoft Management Console (MMC) to facilitate lateral movement and to interact locally or remotely with victim devices using the command `mmc.exe compmgmt.msc /computer:{hostname/ip}`.

Campaigns1

Used byProcedure example
CampaignRedDelta Modified PlugX Infection Chain Operations

Mustang Panda used Microsoft Management Console Snap-In Control files, or MSC files, executed via MMC to run follow-on PowerShell commands during RedDelta Modified PlugX Infection Chain Operations.

References8

  1. abusing_com_reg Open source
    bohops. (2018, August 18). ABUSING THE COM REGISTRY STRUCTURE (PART 2): HIJACKING & LOADING TECHNIQUES. Retrieved September 20, 2021.
  2. mmc_vulns Open source
    Boxiner, A., Vaknin, E. (2019, June 11). Microsoft Management Console (MMC) Vulnerabilities. Retrieved September 24, 2021.
  3. phobos_virustotal Open source
    Phobos Ransomware. (2020, December 30). Phobos Ransomware, Fast.exe. Retrieved September 20, 2021.
  4. what_is_mmc Open source
    Microsoft. (2020, September 27). What is Microsoft Management Console?. Retrieved October 5, 2021.
  5. win_clsid_key Open source
    Microsoft. (2018, May 31). CLSID Key. Retrieved September 24, 2021.
  6. win_mmc Open source
    Microsoft. (2017, October 16). mmc. Retrieved September 20, 2021.
  7. win_msc_files_overview Open source
    Brinkmann, M.. (2017, June 10). Windows .msc files overview. Retrieved September 20, 2021.
  8. win_wbadmin_delete_catalog Open source
    Microsoft. (2017, October 16). wbadmin delete catalog. Retrieved September 20, 2021.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.