Sigma rule: Potential POWERTRASH Script Execution
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1736b17608f9, updated 2023-05-04T00:00:00.000Z.
Rule
- Title
- Potential POWERTRASH Script Execution
- Status
- test
- Level
- high
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2023-05-04
- File
- rules-emerging-threats/2023/TA/FIN7/posh_ps_apt_fin7_powertrash_execution.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects potential execution of the PowerShell script POWERTRASH
Log source
- product
- windows
- category
- ps_script
- definition
- bade5735-5ab0-4aa7-a642-a11be0e40872
Detection
selection:
ScriptBlockText|contains|all:
- 'IO.Compression.DeflateStream'
- 'IO.MemoryStream'
- '::FromBase64String'
- 'GetDelegateForFunctionPointer'
- '.Invoke()'
- 'GlobalAssemblyCache'
condition: selectionFalse positives (as the rule lists them)
- Unknown
Tags
- attack.execution
- attack.t1059.001
- attack.g0046
- detection.emerging-threats
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-emerging-threats/2023/TA/FIN7/posh_ps_apt_fin7_powertrash_execution.yml
Sources and licences
SigmaHQ
"Potential POWERTRASH Script Execution" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2023/TA/FIN7/posh_ps_apt_fin7_powertrash_execution.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: Potential POWERTRASH Script Execution",
entity page, dataset version ref-1736b17608f9, updated 2023-05-04T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/4e19528a-f081-40dd-be09-90c39352bd64 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 4e19528a-f081-40dd-be09-90c39352bd64, 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.