Abuse of Service Permissions to Hide Services Via Set-Service
Last updated on:
In this page
About the rule
Rule Type
Standard
Rule Description
Detects usage of the "Set-Service" powershell cmdlet to configure a new SecurityDescriptor that allows a service to be hidden from other utilities such as "sc.exe", "Get-Service"...etc. (Works only in powershell 7)
Severity
Trouble
Rule Requirement
Criteria
Action1: actionname = "Process started" AND (PROCESSNAME endswith "\pwsh.exe" OR ORIGINALFILENAME = "pwsh.dll") AND (COMMANDLINE contains "Set-Service " AND COMMANDLINE contains "DCLCWPDTSD") AND COMMANDLINE contains "-SecurityDescriptorSddl ,-sd " select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME
Detection
Execution Mode
realtime
Log Sources
Windows
Author
Nasreddine Bencherchali (Nextron Systems)


