kevmap

TechniquesT1547.007 › AN0349

AN0349 Analytic 0349

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

<p>Unusual modification or creation of loginwindow-related plist files in '~/Library/Preferences/ByHost' correlated with unauthorized application paths and execution upon login.</p>
Detects
T1547.007 Re-opened Applications
Part of
DET0125 Detect persistence via reopened application plist modification (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:unifiedlogExecution of process launched via loginwindow session restoreDC0032 Process Creation
fs:filesystemModification or creation of files matching 'com.apple.loginwindow.*.plist' in ~/Library/Preferences/ByHostDC0061 File Modification
macos:unifiedlogLoginWindow context with associated PID linked to reopened plist pathsDC0088 Logon Session Metadata
macos:endpointsecurityes_event_file_rename_t or es_event_file_write_tDC0059 File Metadata

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
UserContextRestrict to targeted users or unexpected users writing to plist
FilePathPatternAllow tuning for alternative persistence paths or directory redirection
TimeWindowCorrelate plist write and process execution within logon window
BinaryAnomalyScoreOptional scoring of launched binary based on code signing, entropy, and known safe apps