Detectionlowtest
New Service Creation Using PowerShell
Detects the creation of a new service using powershell.
Timur Zinniatullin, Daniil Yugoslavskiy, oscd.communityCreated 2023-02-20c02e96b7-c63a-4c47-bd83-4a9f74afcfb2windows
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 Logic1 selector
detection:
selection:
CommandLine|contains|all:
- 'New-Service'
- '-BinaryPathName'
condition: selectionFalse Positives
Legitimate administrator or user creates a service for legitimate reasons.
Software installation
References
MITRE ATT&CK
Sub-techniques
Rule Metadata
Rule ID
c02e96b7-c63a-4c47-bd83-4a9f74afcfb2
Status
test
Level
low
Type
Detection
Created
2023-02-20
Path
rules/windows/process_creation/proc_creation_win_powershell_create_service.yml
Raw Tags
attack.persistenceattack.privilege-escalationattack.t1543.003