Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / ACTIVE DIRECTORY / LATERAL MOVEMENT / EXEC

DCOMExec

This note documents detection patterns related to DCOMExec within Active Directory environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4624Successful logonHighNetwork authentication to remote host.
Security4672Special privileges assignedHighAdministrative privileges used.
Security4688Process createdCriticalProcess executed remotely via DCOM.
Sysmon1Process creationCriticalcmd.exe or powershell.exe spawned by DCOM host process.
Sysmon3Network connectionMediumDCOM RPC communication between systems.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Shell spawned by DCOM hostdllhost.exe → cmd.exe / powershell.exeCriticalTypical DCOMExec chain.
RPC traffic between hostsDCOM communication over TCP 135 / high portsMediumSupports execution activity.
Remote execution without service creationNo 7045 service event presentHighDifferentiates from PsExec.

Common Tools

ToolUsage
Impacket dcomexec.pyRemote command execution via DCOM.
CrackMapExecAutomates DCOM execution.
PowerShell Invoke-CommandCan leverage DCOM internally.

Relevant Artifacts

  • Security logs (4624, 4672, 4688)
  • Sysmon process logs
  • RPC/DCOM network telemetry
  • EDR telemetry
  • Prefetch artifacts

MITRE ATT&CK References

  • T1021 Remote Services
  • T1021.003 Distributed Component Object Model

Decision Tree

  1. Detect process spawned by dllhost.exe.
  2. Identify initiating host.
  3. Validate authentication context.
  4. Inspect executed command.
  5. Determine lateral movement scope.

Example Detection Templates

KQL

DeviceProcessEvents
| where InitiatingProcessFileName == "dllhost.exe"

EQL

process where parent.name == "dllhost.exe"

Sigma

title: Suspicious DCOM Execution
logsource:
  product: windows
  category: process_creation
detection:
  selection:
    ParentImage|endswith: dllhost.exe
  condition: selection
level: high

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
DCOM permissionsRestrict remote DCOM activationHighLimits remote execution.
MonitoringAlert on dllhost spawning shellsHighStrong detection indicator.
Credential hygieneLimit admin credential reuseCriticalPrevents lateral movement.