Run PowerShell Script from ADS
Detects PowerShell script execution from Alternate Data Stream (ADS)
Sigma rule (View on GitHub)
1title: Run PowerShell Script from ADS
2id: 45a594aa-1fbd-4972-a809-ff5a99dd81b8
3status: test
4description: Detects PowerShell script execution from Alternate Data Stream (ADS)
5references:
6 - https://github.com/p0shkatz/Get-ADS/blob/1c3a3562e713c254edce1995a7d9879c687c7473/Get-ADS.ps1
7author: Sergey Soldatov, Kaspersky Lab, oscd.community
8date: 2019-10-30
9modified: 2022-07-14
10tags:
11 - attack.defense-evasion
12 - attack.t1564.004
13logsource:
14 category: process_creation
15 product: windows
16detection:
17 selection:
18 ParentImage|endswith:
19 - '\powershell.exe'
20 - '\pwsh.exe'
21 Image|endswith:
22 - '\powershell.exe'
23 - '\pwsh.exe'
24 CommandLine|contains|all:
25 - 'Get-Content'
26 - '-Stream'
27 condition: selection
28falsepositives:
29 - Unknown
30level: high
References
Related rules
- Execute From Alternate Data Streams
- Exports Registry Key To an Alternate Data Stream
- Hidden Executable In NTFS Alternate Data Stream
- Insensitive Subfolder Search Via Findstr.EXE
- NTFS Alternate Data Stream