Detectionhightest

PowerShell Scripts Installed as Services

Detects powershell script installed as a Service

Open in Detection LabConvert ruleBuild Package
oscd.community, Natalia ShornikovaCreated 2020-10-06Updated 2022-12-25a2e5019d-a658-4c6a-92bf-7197b54e2caewindows
Log Source
Windowssystem
ProductWindows← raw: windows
Servicesystem← raw: system
Detection Logic
Detection Logic1 selector
detection:
    selection:
        Provider_Name: 'Service Control Manager'
        EventID: 7045
        ImagePath|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
a2e5019d-a658-4c6a-92bf-7197b54e2cae
Status
test
Level
high
Type
Detection
Created
2020-10-06
Modified
2022-12-25
Path
rules/windows/builtin/system/service_control_manager/win_system_powershell_script_installed_as_service.yml
Raw Tags
attack.executionattack.t1569.002
View on GitHub