kevmap

TechniquesT1037.002 › AN0682

AN0682 Analytic 0682

macOS · attack.mitre.org · ATT&CK Enterprise v19.2

<p>Detection of persistent login hooks configured via defaults or plist modifications that result in execution of scripts or binaries at user login, breaking expected parent-child process lineage.</p>
Detects
T1037.002 Login Hook
Part of
DET0244 Detection Strategy for Login Hook Persistence on macOS

Log sources and channels

Exactly as MITRE states them in x_mitre_log_source_references. Where a channel is vague, it is vague in the source; kevmap does not tidy it.

Log sourceChannelData component
macos:unifiedlogloginwindow or tccd-related entriesDC0032 Process Creation
fs:plist/var/root/Library/Preferences/com.apple.loginwindow.plistDC0061 File Modification

Mutable elements

Parameters MITRE marks as environment-specific. These are the knobs you are expected to tune; they are why an analytic is not a rule.

FieldDescription
login_hook_pathPath of script or binary assigned to login hook; may vary by environment
user_contextLogin hook may be applied to specific user accounts; tune by privilege level
time_windowCorrelate plist file modification to execution within a short timeframe
parent_process_nameExpected parent process (e.g., loginwindow); anomalies can indicate masquerading