Detectionhightest

PowerShell Scripts Installed as Services - Security

Detects powershell script installed as a Service

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
oscd.community, Natalia ShornikovaCreated Tue Oct 06Updated Tue Nov 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
Tue Oct 06
Modified
Tue Nov 29
Path
rules/windows/builtin/security/win_security_powershell_script_installed_as_service.yml
Raw Tags
attack.executionattack.t1569.002
View on GitHub