CyberSutra

Detection Rules Library

Curated and custom detection rules to identify threats across your environment.

Detection Rules Library

12 of 428 rules
…

Suspicious PowerShell Execution

HighT1059Windows

Detects potentially malicious PowerShell execution with encoded commands or obfuscation

Enabled
Rule (YAML)
1title: Suspicious PowerShell Execution
2id: CSR-DET-001
3status: experimental
4description: |
5 Detects potentially malicious PowerShell execution including
6 encoded commands, obfuscated scripts, or common attack patterns.
7author: CyberSutra Threat Research
8date: 2024-09-01
9modified: 2024-09-08
10tags:
11 - attack.execution
12 - attack.t1059
13 - powershell
14 - windows
15 - suspicious
16logsource:
17 product: windows
18 service: sysmon
19detection:
20 selection_encoded:
21 EventID: 1
22 Image|endswith: '\\powershell.exe'
23 CommandLine|contains:
24 - '-enc'
25 - '-encodedcommand'
26 selection_obfuscation:
27 EventID: 1
28 Image|endswith: '\\powershell.exe'
29 CommandLine|contains|all:
30 - '-nop'
31 - '-w hidden'
32 condition: 1 of selection_*
33falsepositives:
34 - Legitimate administrative scripts
35level: high
Rule is valid

Rule Information

Rule ID
CSR-DET-001
Status
Production
Severity
High
Author
CyberSutra Threat Research
Created
1 Sep 2024, 10:24 IST
Last Modified
8 Sep 2024, 16:12 IST
Deployments
3 environments
Rule Type
Sigma
License
Custom (Internal)

Environments

Recent History

v1.2.08 Sep 2024, 16:12

Improved detection logic, reduced false positives

AS
v1.1.05 Sep 2024, 11:03

Added additional obfuscation patterns

RK
v1.0.01 Sep 2024, 10:24

Initial version

AS

Test Rule