Windows: msdeploy.exe Execution with sync and RunCommand Parameters
Flags msdeploy.exe executions that include sync verb plus RunCommand source and destination parameters.
- Product
- windows
- Category
- process_creation
- Author
- Beyu Denis, oscd.community (SigmaHQ), DRL 1.1
- Published
- 2020-10-18
- Updated
- 2026-07-31
ATT&CK techniques
Defense EvasionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies execution of msdeploy.exe when its command line includes the verb:sync along with -source:RunCommand and -dest:runCommand. Attackers may abuse this Microsoft signed binary to run or orchestrate actions via its built-in parameters, blending into legitimate administrative activity. The detection relies on Windows process creation telemetry, specifically the executed image path and the full command line contents.
Reporting behind it
- lolbas-project.github.iohttps://lolbas-project.github.io/lolbas/OtherMSBinaries/Msdeploy/
- twitter.comhttps://twitter.com/pabraeken/status/995837734379032576
- twitter.comhttps://twitter.com/pabraeken/status/999090532839313408
- github.comhttps://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_lolbin_msdeploy.yml
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: "Windows: msdeploy.exe Execution with sync and RunCommand Parameters"
id: 0f3dafbb-fe9d-4883-b7fe-7b9a674f4c4c
status: test
description: This rule identifies execution of msdeploy.exe when its command line includes the verb:sync along with -source:RunCommand and -dest:runCommand. Attackers may abuse this Microsoft signed binary to run or orchestrate actions via its built-in parameters, blending into legitimate administrative activity. The detection relies on Windows process creation telemetry, specifically the executed image path and the full command line contents.
references:
- https://lolbas-project.github.io/lolbas/OtherMSBinaries/Msdeploy/
- https://twitter.com/pabraeken/status/995837734379032576
- https://twitter.com/pabraeken/status/999090532839313408
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_lolbin_msdeploy.yml
author: Beyu Denis, oscd.community, Huntrule Team
date: 2020-10-18
modified: 2021-11-27
tags:
- attack.stealth
- attack.t1218
logsource:
category: process_creation
product: windows
detection:
selection:
CommandLine|contains|all:
- verb:sync
- -source:RunCommand
- -dest:runCommand
Image|endswith: \msdeploy.exe
condition: selection
falsepositives:
- System administrator Usage
level: medium
license: DRL-1.1
related:
- id: 646bc99f-6682-4b47-a73a-17b1b64c9d34
type: derived