PowerShell as a Service in Registry

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects that a powershell code is written to the registry as a service.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Registry value modified" AND (OBJECTNAME contains "\Services" OR (OBJECTNAME endswith "\Services" AND isExist(OBJECTVALUENAME))) AND OBJECTNAME endswith "\ImagePath" AND INFORMATION contains "powershell,pwsh" select Action1.HOSTNAME,Action1.MESSAGE,Action1.OBJECTNAME,Action1.PROCESSNAME,Action1.PREVVAL,Action1.CHANGES

Detection

Execution Mode

realtime

Log Sources

Windows

Author

oscd.community, Natalia Shornikova