Invoke-Obfuscation Via Stdin - System

Detects Obfuscated Powershell via Stdin in Scripts

Sigma rule (View on GitHub)

 1title: Invoke-Obfuscation Via Stdin - System
 2id: 487c7524-f892-4054-b263-8a0ace63fc25
 3status: test
 4description: Detects Obfuscated Powershell via Stdin in Scripts
 5references:
 6    - https://github.com/SigmaHQ/sigma/issues/1009 # (Task28)
 7author: Nikita Nazarov, oscd.community
 8date: 2020-10-12
 9modified: 2022-11-29
10tags:
11    - attack.defense-evasion
12    - attack.t1027
13    - attack.execution
14    - attack.t1059.001
15logsource:
16    product: windows
17    service: system
18detection:
19    selection:
20        Provider_Name: 'Service Control Manager'
21        EventID: 7045
22        # ImagePath|re: '(?i)(set).*&&\s?set.*(environment|invoke|\${?input).*&&.*"'
23        ImagePath|contains|all:
24            - 'set'
25            - '&&'
26        ImagePath|contains:
27            - 'environment'
28            - 'invoke'
29            - 'input'
30    condition: selection
31falsepositives:
32    - Unknown
33level: high

References

Related rules

to-top