Sigma rule: Powershell Inline Execution From A File
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-630dd57d7f73, updated 2022-12-25T00:00:00.000Z.
Rule
- Title
- Powershell Inline Execution From A File
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2022-12-25
- File
- rules/windows/process_creation/proc_creation_win_powershell_exec_data_file.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects inline execution of PowerShell code from a file
Log source
- product
- windows
- category
- process_creation
Detection
selection_exec:
CommandLine|contains:
- 'iex '
- 'Invoke-Expression '
- 'Invoke-Command '
- 'icm '
selection_read:
CommandLine|contains:
- 'cat '
- 'get-content '
- 'type '
selection_raw:
CommandLine|contains: ' -raw'
condition: all of selection_*False positives (as the rule lists them)
- Unknown
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/process_creation/proc_creation_win_powershell_exec_data_file.yml
Sources and licences
SigmaHQ
"Powershell Inline Execution From A File" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_exec_data_file.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 Inline Execution From A File",
entity page, dataset version ref-630dd57d7f73, updated 2022-12-25T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ee218c12-627a-4d27-9e30-d6fb2fe22ed2 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ee218c12-627a-4d27-9e30-d6fb2fe22ed2, 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.