Detectionmediumtest

Service StartupType Change Via PowerShell Set-Service

Detects the use of the PowerShell "Set-Service" cmdlet to change the startup type of a service to "disabled" or "manual"

Convert In Phoenix Studio

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

Launch
Nasreddine Bencherchali (Nextron Systems)Created Sat Mar 0462b20d44-1546-4e61-afce-8e175eb9473cwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - Image|endswith: '\powershell.exe'
        - OriginalFileName: 'PowerShell.EXE'
    selection_cli:
        CommandLine|contains|all:
            - 'Set-Service'
            - '-StartupType'
        CommandLine|contains:
            - 'Disabled'
            - 'Manual'
    condition: all of selection_*
False Positives

False positives may occur with troubleshooting scripts

Rule Metadata
Rule ID
62b20d44-1546-4e61-afce-8e175eb9473c
Status
test
Level
medium
Type
Detection
Created
Sat Mar 04
Path
rules/windows/process_creation/proc_creation_win_powershell_set_service_disabled.yml
Raw Tags
attack.executionattack.defense-evasionattack.t1562.001
View on GitHub