T1685.006 Clear Linux or Mac System Logs
Defense Impairmenton attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0520 Behavioral Detection of Log File Clearing on Linux and macOS
AN1438 Linux
Detects log-clearing behavior by correlating suspicious command execution targeting log files under /var/log/, anomalous deletions or truncations of system logs, and unusual child processes (e.g., shell pipelines or redirections).
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLexecve | Not mapped to Sentinel yet. |
auditd:SYSCALLPATH | Not mapped to Sentinel yet. |
AN1439 macOS
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).
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedlogprocess | Not mapped to Sentinel yet. |
fs:fsusagetruncate, unlink, write | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
4 SigmaHQ community rules name it in their tags.
- Linux Logs Clearing Attempts
- Syslog Clearing or Removal Via System Utilities
- Indicator Removal on Host - Clear Mac System Logs
- Clear or Disable Kernel Ring Buffer Logs via Syslog Syscall
Mitigations
M1022Restrict File and Directory PermissionsM1029Remote Data StorageM1041Encrypt Sensitive Information
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.