Detectionhightest

PowerShell Scripts Installed as Services - Security

Detects powershell script installed as a Service

Open in Detection LabConvert ruleBuild Package
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: selection
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

MITRE ATT&CK
Rule Metadata
Rule ID
2a926e6a-4b81-4011-8a96-e36cc8c04302
Status
test
Level
high
Type
Detection
Created
2020-10-06
Modified
2022-11-29
Path
rules/windows/builtin/security/win_security_powershell_script_installed_as_service.yml
Raw Tags
attack.executionattack.t1569.002
View on GitHub