Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / EXECUTION

Remote Execution

This note documents detection patterns related to Remote Execution within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalDetects remote execution binaries and resulting commands.
Sysmon1Process creationCriticalBest lineage source for remotely spawned processes.
Security4624Successful logonCriticalLogon type often reveals remote execution context.
Security4648Explicit credentials usedCriticalStrong remote execution precursor.
Sysmon3Network connectionHighRPC / SMB / WinRM / WMI communication.
Security4697Service installedHighPsExec-style service creation.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Remote admin tool launches shellcmd / powershell from service/WMICriticalCore remote execution signal.
New service appears brieflyTemporary service for payloadCriticalPsExec pattern.
Explicit creds before execution4648 before remote actionCriticalStrong operator chain.
wmiprvse child shellWMI remote executionCriticalVery high-value clue.
WinRM parent chainwsmprovhost spawning shellCriticalCommon enterprise abuse.
Admin share touch before executionADMIN$ activityHighDeployment clue.

Common Tools

ToolUsage
PsExecService-based remote shell
wmiexecWMI command execution
WinRMRemote PowerShell
schtasksRemote scheduled execution
sc.exeRemote service launch

Relevant Artifacts

  • Security Event IDs 4688, 4624, 4648, 4697
  • Sysmon Event IDs 1, 3
  • Prefetch:
    • PSEXESVC.EXE
    • SC.EXE
    • SCHTASKS.EXE
  • WMI activity logs
  • WinRM logs
  • ADMIN$ artifacts
  • EDR process tree

MITRE ATT&CK References

  • T1021 Remote Services
  • T1047 Windows Management Instrumentation
  • T1569 Service Execution

Decision Tree

  1. Which remote method?

    • Service
    • WMI
    • WinRM
    • Scheduled task
  2. Authentication observed?

    • 4624
    • 4648
  3. Parent process suspicious?

    • services.exe
    • wmiprvse.exe
    • wsmprovhost.exe
  4. Follow-up activity?

    • Enumeration
    • Dumping
    • Persistence
  5. Expand:

    • Source host
    • Shares
    • Credentials used
  6. Scope:

    • Single remote action
    • Multi-host spread
    • Automation chain

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4688
| where ParentProcessName has_any ("wmiprvse.exe","services.exe","wsmprovhost.exe")
| project TimeGenerated, Computer, ParentProcessName, NewProcessName, CommandLine
SecurityEvent
| where EventID in (4648,4697)
| project TimeGenerated, Computer, Account, EventID

EQL

process where process.parent.name in ("wmiprvse.exe","services.exe","wsmprovhost.exe")
sequence by host.name with maxspan=10m
  [ authentication where event.code == "4648" ]
  [ process where process.parent.name in ("wmiprvse.exe","services.exe") ]

Sigma

title: Remote Execution Detection
id: 6c4e2a11-remote-exec
status: experimental
description: Detects suspicious remote command execution patterns
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: security
detection:
  selection:
    ParentProcessName|endswith:
      - '\wmiprvse.exe'
      - '\services.exe'
      - '\wsmprovhost.exe'
  condition: selection
fields:
  - ParentProcessName
  - NewProcessName
  - CommandLine
falsepositives:
  - Legitimate administration
level: high
tags:
  - attack.execution
  - attack.lateral_movement

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Alert on remote parentsWatch wmiprvse/services/wsmprovhostCriticalStrong signal
Correlate 4648 + executionHigh-confidence chainCriticalExcellent triage anchor
Monitor temporary servicesDetect PsExec patternHighValuable indicator
Restrict remote admin pathsReduce abuse surfaceHighPrevent misuse
Preserve source host contextEssential for reconstructionCriticalScope attacker reach