Cross-source coverage

T1574.009 / ATT&CK

Hijack Execution Flow: Path Interception by Unquoted Path

3 rules across 3 sources.

From MITRE ATT&CK 19.2

Adversaries may execute their own malicious payloads by hijacking vulnerable file path references. Adversaries can take advantage of paths that lack surrounding quotations by placing an executable in a higher level directory within the path, so that Windows will choose the adversary's executable to launch.

Service paths and shortcut paths may also be vulnerable to path interception if the path has one or more spaces and is not surrounded by quotation marks (e.g., C:\unsafe path with space\program.exe vs. "C:\safe path with space\program.exe"). (stored in Windows Registry keys) An adversary can place an executable in a higher level directory of the path, and Windows will resolve that executable instead of the intended executable. For example, if the path in a shortcut is C:\program files\myapp.exe, an adversary may create a program at C:\program.exe that will be run instead of the intended program.

This technique can be used for persistence if executables are called on a regular basis, as well as privilege escalation if intercepted executables are started by a higher privileged process.

Tactics
Stealth · Execution
Platforms
Windows
Telemetry
WinEventLog:SecurityWinEventLog:Sysmon

How MITRE says to detect it DET0064

Detection Strategy for Hijack Execution Flow through Path Interception by Unquoted Path

Windows Analytic 0176

Unquoted service or shortcut paths that contain spaces and allow path interception by higher-level executables. Defender observes registry service configurations with unquoted paths, file creation of executables in parent directories of unquoted paths, and subsequent process execution from unexpected locations.

  • WinEventLog:Security EventCode=4657
  • WinEventLog:Sysmon EventCode=11
  • WinEventLog:Sysmon EventCode=1
  • WinEventLog:Sysmon EventCode=15

elastic/detection-rules

1 rule
Detection Severity Format
Potential Exploitation of an Unquoted Service Path Vulnerability Low Elastic TOML

socfortress/Wazuh-Rules

1 rule
Detection Severity Format
T1574.009 - Path Interception by Unquoted Service Path in Registry (ImagePath points to Program Files without quotes) High Wazuh XML

splunk/security_content

1 rule
Detection Severity Format
Detect Path Interception By Creation Of program exe Undefined SPL

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.