Lateral movement
DCOM execution
MMC20.ApplicationShellWindows / ShellBrowserWindowOffice DCOM objects
Lateral execution by invoking methods on remote DCOM objects. The payload runs under the object's server process.
Artifacts by host
Every place this technique leaves a trace. Collect all three sides; each one fills gaps the others leave.
Source
Where the operator ran the tool
- Sysmon1
powershell.exe creating a COM object with [activator]::CreateInstance and a remote host.
- Sysmon3
Outbound connection to the destination on port 135, then a dynamic RPC port.
- Security4648
Explicit-credential logon when alternate credentials are used for the DCOM activation.
Destination
The machine being accessed
- Security4624
Network logon, LogonType 3, for the account activating the DCOM object.
- Sysmon1
The command running as a child of mmc.exe (MMC20.Application) or explorer.exe (ShellWindows).
- Security4688
The same execution in the Security log, ParentProcessName mmc.exe or explorer.exe.
- Sysmon1
The DCOM server process itself (mmc.exe or explorer.exe) starting to service the activation.
- Prefetch: C:\Windows\Prefetch\MMC.EXE-*.pf
Execution of mmc.exe when MMC20.Application is abused, with run times.
- Registry: HKLM\SOFTWARE\Classes\AppID and CLSID for the abused DCOM object
Launch and access permissions for the object; unusual remote-activation grants are worth reviewing.
Domain controller
Authentication records
- Security4769
Kerberos service ticket for the destination: ServiceName is the destination computer account (DEST$) for the RPCSS/<dest> or HOST/<dest> SPN, and IpAddress is the source host. The DC-side record that ties source, account and destination together.
- Security4768
TGT request for the account from the source IP, when it had no valid TGT yet (for example right after runas or an explicit-credential logon on the source).
- Security4776
NTLM credential validation with Workstation set to the source name, when NTLM was used instead of Kerberos (destination addressed by IP, or pass-the-hash). Domain accounts only; local accounts are validated on the destination.
Fingerprints
Strings and values specific enough to search for directly.
- 01Parent process mmc.exe spawning cmd.exe or powershell.exe (MMC20.Application)
- 02Parent process explorer.exe spawning a command (ShellWindows / ShellBrowserWindow)
- 03ExecuteShellCommand as the invoked method on MMC20.Application
- 04DCOM activation traffic on port 135 followed by a dynamic RPC port
- 054624 LogonType 3 paired with an mmc.exe or explorer.exe process tree with no interactive session
How it works
Distributed COM lets a client instantiate a COM object on a remote host and call its methods over RPC (port 135 plus a dynamic port). Several COM objects expose methods that ultimately run a command, so an operator can activate one remotely and abuse it for execution. Common choices are MMC20.Application (its ExecuteShellCommand method), and the ShellWindows and ShellBrowserWindow objects (which expose shell navigation and execution). The remote command runs under the process that hosts the COM server: MMC20.Application runs under mmc.exe, while ShellWindows and ShellBrowserWindow run under explorer.exe. The destination fingerprint is therefore a command process whose parent is mmc.exe or explorer.exe following an inbound network logon, with DCOM traffic on port 135.
Hunt queries
Get-WinEvent -FilterHashtable @{LogName='Microsoft-Windows-Sysmon/Operational'; Id=1} |
Where-Object { $_.Message -match 'ParentImage:.*(mmc|explorer).exe' -and $_.Message -match 'Image:.*(cmd|powershell).exe' }Benign look-alikes
- mmc.exe and explorer.exe legitimately spawn child processes during normal interactive use.
- Administrative consoles (MMC snap-ins) launching tools on a console session.
- The discriminator is a network logon (LogonType 3) with no interactive desktop behind the process tree.