Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Detection Strategies DET0004 — Detection Strategy for Hijack Execution Flow using Path Interception by PATH Environment Variable.
DET0004

Detection Strategy for Hijack Execution Flow using Path Interception by PATH Environment Variable.

3 analytic(s) · 1 technique(s) detected

Analytics

3
AN0009 Analytic 0009
Windows

Abnormal modification of the PATH environment variable or registry keys controlling system paths, combined with execution of binaries named after legitimate system tools from user-writable directories. Defender correlates registry modifications, file creation of suspicious binaries, and process execution paths inconsistent with baseline system directories.

WinEventLog:Security EventCode=4657 WinEventLog:Sysmon EventCode=11 WinEventLog:Sysmon EventCode=1
[MonitoredRegistryKeys] PATH environment keys under HKCU and HKLM to monitor for changes.
[SuspiciousBinaryList] List of high-value system binaries commonly hijacked (e.g., net.exe, python.exe, powershell.exe).
[TimeWindow] Correlation window between PATH modification and execution of a hijacked binary.
AN0010 Analytic 0010
Linux

User modification of the $PATH environment variable in shell configuration files or direct runtime PATH changes, followed by execution of binaries from user-controlled directories. Defender observes file edits to ~/.bashrc, ~/.profile, or /etc/paths.d and process execution resolving to unexpected binary locations.

auditd:SYSCALL open/write calls modifying ~/.bashrc, ~/.profile, or /etc/paths.d linux:osquery Execution of binary resolved from $PATH not located in /usr/bin or /bin
[MonitoredShellConfigs] Set of shell startup files where PATH changes should be flagged.
[AllowedUserBins] Directories (e.g., /usr/local/bin) considered safe to avoid FP.
AN0011 Analytic 0011
macOS

Modification of PATH or HOME environment variables through shell config files, launchctl, or /etc/paths.d entries, combined with process execution from attacker-controlled directories. Defender correlates file changes in /etc/paths.d with process execution resolving to malicious binaries.

macos:unifiedlog File modification in /etc/paths.d or user shell rc files macos:unifiedlog Process execution path inconsistent with baseline PATH directories
[WatchedPathsDirs] Monitor /etc/paths.d and $HOME for unauthorized entries.
[TrustedExecutables] Baseline applications expected in user PATH directories.

Details

MITRE ID
DET0004
STIX ID
x-mitre-detection-strategy--4b2bc278-fc80-4ff8-87a3-a6843a9e683a
Analytics
3
Techniques Detected
1
By Tactic
Stealth
1
Leaving Threaticon

This link opens an external site that isn't part of the platform.