Suspicious Service DACL Modification Via Set-Service Cmdlet - PS

Last updated on:

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 = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "-SecurityDescriptorSddl ,-sd " AND ((SCRIPTEXECUTED contains "Set-Service " AND SCRIPTEXECUTED contains "D;;") AND SCRIPTEXECUTED contains ";;;IU,;;;SU,;;;BA,;;;SY,;;;WD") select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)