Sigma rule: PowerShell Script Dropped Via PowerShell.EXE
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-d3a51852e4f2, updated 2023-05-09T00:00:00.000Z.
Rule
- Title
- PowerShell Script Dropped Via PowerShell.EXE
- Status
- test
- Level
- low
- Author
- frack113
- Date
- 2023-05-09
- File
- rules/windows/file/file_event/file_event_win_powershell_drop_powershell.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects PowerShell creating a PowerShell file (.ps1). While often times this behavior is benign, sometimes it can be a sign of a dropper script trying to achieve persistence.
Log source
- product
- windows
- category
- file_event
Detection
selection:
Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
TargetFilename|endswith: '.ps1'
filter_main_psscriptpolicytest:
TargetFilename|contains: '__PSScriptPolicyTest_'
filter_main_appdata:
TargetFilename|startswith: 'C:\Users\'
TargetFilename|contains: '\AppData\Local\Temp\'
filter_main_windows_temp:
TargetFilename|startswith: 'C:\Windows\Temp\'
condition: selection and not 1 of filter_main_*False positives (as the rule lists them)
- False positives will differ depending on the environment and scripts used. Apply additional filters accordingly.
Tags
- attack.persistence
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/file/file_event/file_event_win_powershell_drop_powershell.yml
Sources and licences
SigmaHQ
"PowerShell Script Dropped Via PowerShell.EXE" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_powershell_drop_powershell.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 Script Dropped Via PowerShell.EXE",
entity page, dataset version ref-d3a51852e4f2, updated 2023-05-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/576426ad-0131-4001-ae01-be175da0c108 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 576426ad-0131-4001-ae01-be175da0c108, 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.