Service StartupType Change Via PowerShell Set-Service
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects the use of the PowerShell "Set-Service" cmdlet to change the startup type of a service to "disabled" or "manual"
Severity
Trouble
Rule Requirement
Criteria
Action1:
actionname = "Process started" AND (PROCESSNAME endswith "\powershell.exe" OR ORIGINALFILENAME = "PowerShell.EXE") AND ((COMMANDLINE contains "Set-Service" AND COMMANDLINE contains "-StartupType") AND COMMANDLINE contains "Disabled,Manual")
select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID
Detection
Execution Mode
realtime
Log Sources
Windows
Author
Nasreddine Bencherchali (Nextron Systems)


