Hijack Execution Flow: Services Registry Permissions Weakness T1574.011

Tactics: Stealth, Execution

Adversaries may execute their own malicious payloads by hijacking the Registry entries used by services. Flaws in the permissions for Registry keys related to services can allow adversaries to redirect the originally specified executable to one they control, launching their own code when a service starts. Windows stores local service configuration information in the Registry under HKLM\SYSTEM\CurrentControlSet\Services. The information stored under a service's Registry keys can be manipulated to modify a service's execution parameters through tools such as the service controller, sc.exe, PowerShell, or Reg. Access to Registry keys is controlled through access control lists and user permissions.

Events covered

8 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 17 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (20 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
CommandLine8contains 8, match 1dclcwpdtsd, sdset, -d , imagepath , -sd
Image7ends_with 5, eq 1, is_not_null 1\sc.exe, ?:\windows\system32\svchost.exe, ?:\windows\syswow64\svchost.exe, \pwsh.exe, \reg.exe
Details3is_not_null 3, ends_with 1\Microsoft.Workflow.Compiler.exe, \RegAsm.exe, \RegSvcs.exe
OriginalFileName3eq 3sc.exe, pwsh.dll
ScriptBlockText3contains 3-sd , -securitydescriptorsddl , ;;;ba, dclcwpdtsd, get-acl
event.type3eq 3change, start
registry_value_name3eq 3ImagePath, ServiceDLL
IntegrityLevel2eq 2Medium
AccessList1contains 1%%1538
Hashes1is_not_null 1
ImageLoaded1starts_with 1?:\$recycle.bin\, ?:\amd\temp\, ?:\intel\
ObjectName1contains 1\system\, controlset\services\
ParentImage1eq 1c:\windows\system32\svchost.exe
TargetObject1wildcard 1\registry\machine\system\controlset*\services\*\imagepath, \registry\machine\system\controlset*\services\*\servicedll, hklm\system\controlset*\services\*\imagepath
dll.Ext.relative_file_creation_time1le 1300

Top indicator values (246 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
Imageends_with
\sc.exe
330
registry_value_nameeq
ImagePath
35
CommandLinecontains
add
212
CommandLinecontains
dclcwpdtsd
22
CommandLinecontains
failure
23
CommandLinecontains
sdset
25
CommandLinecontains
services
23
CommandLinecontains
-d
18
CommandLinecontains
imagepath
1
CommandLinecontains
-sd
12
CommandLinecontains
-securitydescriptorsddl
12
CommandLinecontains
.bat
111
CommandLinecontains
.cmd
16
CommandLinecontains
.dll
116
CommandLinecontains
.exe
15
CommandLinecontains
.jar
12
CommandLinecontains
.js
19
CommandLinecontains
.pl
12
CommandLinecontains
.ps
13
CommandLinecontains
.scr
15
CommandLinecontains
.sh
12
CommandLinecontains
.vb
13
CommandLinecontains
\failurecommand
1
IntegrityLeveleq
Medium
23
OriginalFileNameeq
sc.exe
226
ScriptBlockTextcontains
-sd
22
ScriptBlockTextcontains
-securitydescriptorsddl
22
ScriptBlockTextcontains
set-service
22
event.typeeq
change
277
AccessListcontains
%%1538
1

Exclusions (49 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
Detailswildcard
"C:\Program Files\Common Files\McAfee\*
1
Detailswildcard
"C:\ProgramData\McAfee\Agent\Current\*
1
Detailswildcard
%SystemRoot%\system32\svchost.exe -k *
1
Detailswildcard
%systemroot%\system32\*.exe
1
Detailswildcard
%windir%\system32\*.exe
1
Detailswildcard
%windir%\system32\svchost.exe -k *
1
Detailswildcard
?:\*\procexp*.sys
1
Detailswildcard
?:\Windows\system32\*.exe
1
Detailswildcard
?:\windows\system32\Drivers\*.sys
1
Detailswildcard
C:\Program Files (x86)\VERITAS\VxPBX\bin\pbx_exchange.exe
1
Detailswildcard
C:\WindowsAzure\GuestAgent*.exe
1
Detailswildcard
\??\?:\Windows\system32\Drivers\*.SYS
1
Detailswildcard
\??\?:\Windows\syswow64\*.sys
1
Detailswildcard
\SystemRoot\System32\drivers\*.sys
1
Detailswildcard
system32\DRIVERS\USBSTOR
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 11 rules

Elastic 4 rules

Splunk 2 rules