Sigma rule: Powershell XML Execute Command
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-64ff8d5e88ac, updated 2023-01-19T00:00:00.000Z.
Rule
- Title
- Powershell XML Execute Command
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2022-01-19
- Modified
- 2023-01-19
- File
- rules/windows/powershell/powershell_script/posh_ps_xml_iex.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Adversaries may abuse PowerShell commands and scripts for execution.
PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system. (Citation: TechNet PowerShell)
Adversaries can use PowerShell to perform a number of actions, including discovery of information and execution of code
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection_xml:
ScriptBlockText|contains|all:
- 'New-Object'
- 'System.Xml.XmlDocument'
- '.Load'
selection_exec:
ScriptBlockText|contains:
- 'IEX '
- 'Invoke-Expression '
- 'Invoke-Command '
- 'ICM -'
condition: all of selection_*False positives (as the rule lists them)
- Legitimate administrative script
Tags
- attack.execution
- attack.t1059.001
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_xml_iex.yml
Sources and licences
SigmaHQ
"Powershell XML Execute Command" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_xml_iex.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Powershell XML Execute Command",
entity page, dataset version ref-64ff8d5e88ac, updated 2023-01-19T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/6c6c6282-7671-4fe9-a0ce-a2dcebdc342b (accessed 2026-11-03).
Underlying source: SigmaHQ rule 6c6c6282-7671-4fe9-a0ce-a2dcebdc342b, 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.