Sigma rule: Execute Invoke-command on Remote Host

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-0541a66dcca8, updated 2022-01-07T00:00:00.000Z.

Rule

Title
Execute Invoke-command on Remote Host
Status
test
Level
medium
Author
frack113
Date
2022-01-07
File
rules/windows/powershell/powershell_script/posh_ps_invoke_command_remote.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Adversaries may use Valid Accounts to interact with remote systems using Windows Remote Management (WinRM). The adversary may then perform actions as the logged-on user.

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection_cmdlet:
    ScriptBlockText|contains|all:
        - 'invoke-command '
        - ' -ComputerName '
condition: selection_cmdlet

False positives (as the rule lists them)

  • Legitimate script

Tags

  • attack.lateral-movement
  • attack.t1021.006

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_invoke_command_remote.yml

Sources and licences

  • SigmaHQ

    "Execute Invoke-command on Remote Host" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_invoke_command_remote.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Execute Invoke-command on Remote Host",
entity page, dataset version ref-0541a66dcca8, updated 2022-01-07T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/7b836d7f-179c-4ba4-90a7-a7e60afb48e6 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 7b836d7f-179c-4ba4-90a7-a7e60afb48e6, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.