Hijack Execution Flow: Services File Permissions Weakness T1574.010

Tactics: Stealth, Execution

Adversaries may execute their own malicious payloads by hijacking the binaries used by services. Adversaries may use flaws in the permissions of Windows services to replace the binary that is executed upon service start. These service processes may automatically execute specific binaries as part of their functionality or to perform other actions. If the permissions on the file system directory containing a target binary, or permissions on the binary itself are improperly set, then the target binary may be overwritten with another binary using user-level permissions and executed by the original process. If the original process and thread are running under a higher permissions level, then the replaced binary will also execute under higher-level permissions, which could include SYSTEM.

Events covered

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

Authoring guide

Patterns shared across the 7 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 (8 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
CommandLine3contains 3, regex_match 1reg add, \\SYSTEM\\CurrentControlSet\\Services\\.*\\Security, \system\currentcontrolset\services\, actn, grant=
Image3ends_with 3\reg.exe, \sc.exe
EventData2contains 2, regex_match 1-itemproperty, \\SYSTEM\\CurrentControlSet\\Services\\.*\\Security, security, securitydescriptorsddl, set-service
Payload2contains 2, regex_match 1-itemproperty, \\SYSTEM\\CurrentControlSet\\Services\\.*\\Security, security, securitydescriptorsddl, set-service
ScriptBlockText2contains 2, regex_match 1-itemproperty, \\system\\currentcontrolset\\services\\.*\\security, security, securitydescriptorsddl, set-service
TargetFilename2wildcard 2?:\*\windows\system32\driverstore\filerepository\*\mpdw-c..., ?:\*\windows\winsxs\amd64_microsoft-windows-printing-prin..., ?:\program files (x86)\adobe\acrobat reader..., ?:\program files\adobe\acrobat reader..., \device\harddiskvolume*\*\windows\system32\driverstore\fi...
event.type2eq 1, ne 1creation, deletion
file.name1eq 1MPDW-constraints.js

Top indicator values (38 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
CommandLinecontains
reg add
214
CommandLinecontains
\system\currentcontrolset\services\
14
CommandLinecontains
actn
1
CommandLinecontains
grant=
1
CommandLinecontains
imagepath
13
CommandLinecontains
on
1
CommandLinecontains
sdset
15
CommandLinecontains
service
15
CommandLinecontains
srv
1
Imageends_with
\reg.exe
258
Imageends_with
\sc.exe
130
CommandLineregex_match
\\SYSTEM\\CurrentControlSet\\Services\\.*\\Security
1
EventDatacontains
-itemproperty
15
EventDatacontains
security
1
EventDatacontains
securitydescriptorsddl
1
EventDatacontains
set-service
12
EventDataregex_match
\\SYSTEM\\CurrentControlSet\\Services\\.*\\Security
1
Payloadcontains
-itemproperty
15
Payloadcontains
security
1
Payloadcontains
securitydescriptorsddl
1
Payloadcontains
set-service
12
Payloadregex_match
\\SYSTEM\\CurrentControlSet\\Services\\.*\\Security
1
ScriptBlockTextcontains
-itemproperty
15
ScriptBlockTextcontains
security
1
ScriptBlockTextcontains
securitydescriptorsddl
1
ScriptBlockTextcontains
set-service
12
ScriptBlockTextregex_match
\\system\\currentcontrolset\\services\\.*\\security
1
TargetFilenamewildcard
?:\*\windows\system32\driverstore\filerepository\*\mpdw-constraints.js
1
TargetFilenamewildcard
?:\*\windows\winsxs\amd64_microsoft-windows-printing-printtopdf_*\mpdw-constraints.js
1
TargetFilenamewildcard
?:\program files (x86)\adobe\acrobat reader dc\reader\acrocef\rdrcef.exe
1

Exclusions (6 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
Imageeq
?:\$windows.~bt\sources\setuphost.exe
1
Imageeq
?:\windows\system32\taskhostw.exe
1
TargetFilenamewildcard
?:\$windows.~bt\newos\windows\winsxs\*\mpdw-constraints.js
1
TargetFilenamewildcard
\device\harddiskvolume*\$windows.~bt\newos\windows\winsxs\*\mpdw-constraints.js
1
process_nameeq
adobearm.exe
1
process_nameeq
msiexec.exe
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 5 rules

Elastic 2 rules