kevmap

TechniquesT1685.006 › AN1439

AN1439 Analytic 1439

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

<p>Detects adversary clearing log files on macOS by correlating calls to shell utilities (e.g., echo >, rm, truncate) targeting files in /var/log/ with unusual context (non-administrative users or abnormal process lineage).</p>
Detects
T1685.006 Clear Linux or Mac System Logs
Part of
DET0520 Behavioral Detection of Log File Clearing on Linux and 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:unifiedlogprocessDC0032 Process Creation
fs:fsusagetruncate, unlink, writeDC0061 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
TimeWindowDuration in which process activity and file I/O should be temporally linked.
LogFilePathPatternTunable path filter for macOS logs such as /var/log/system.log or /var/log/asl.log.
UserContextDetects higher risk when log deletion is performed by unusual users (e.g., interactive vs. system users).