T1070.002
Indicator Removal on Host Clear FreeBSD, Linux or Mac System Logs
Description from ATT&CK
Adversaries may clear system logs to hide evidence of an intrusion. macOS and Linux both keep track of system or user-initiated actions via system logs. The majority of native system logging is stored under the /var/log/ directory. Subfolders in this directory categorize logs by their related functions, such as:(Citation: Linux Logs)
/var/log/messages:: General and system-related messages/var/log/secureor/var/log/auth.log: Authentication logs/var/log/utmpor/var/log/wtmp: Login records/var/log/kern.log: Kernel logs/var/log/cron.log: Crond logs/var/log/maillog: Mail server logs/var/log/httpd/: Web server access and error logs
Tests
Test #1 - Delete system log files
This test deletes the system log file using Finder application.
⚠️ TCC RequiredInput Arguments:
| Argument | Type | Default Value |
|---|---|---|
| logPath | str | /var/log/system.log |
tell application "Finder" to delete POSIX file "/var/log/system.log"Download Files
Download .scpt Download .swift Download Binary Download Application Bundle