Detectionhightest
PowerShell Scripts Installed as Services - Security
Detects powershell script installed as a Service
oscd.community, Natalia ShornikovaCreated 2020-10-06Updated 2022-11-292a926e6a-4b81-4011-8a96-e36cc8c04302windows
Log Source
Windowssecurity
ProductWindows← raw: windows
Servicesecurity← raw: security
Definition
The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
Detection Logic
Detection Logic1 selector
detection:
selection:
EventID: 4697
ServiceFileName|contains:
- 'powershell'
- 'pwsh'
condition: selectionFalse Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
2a926e6a-4b81-4011-8a96-e36cc8c04302
Status
test
Level
high
Type
Detection
Created
2020-10-06
Modified
2022-11-29
Author
Path
rules/windows/builtin/security/win_security_powershell_script_installed_as_service.yml
Raw Tags
attack.executionattack.t1569.002