Detectionmediumtest
Indicator Removal on Host - Clear Mac System Logs
Detects deletion of local audit logs
remotephone, oscd.communityCreated 2020-10-11Updated 2022-09-16acf61bd8-d814-4272-81f0-a7a269aa69aamacos
Log Source
macOSProcess Creation
ProductmacOS← raw: macos
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic3 selectors
detection:
selection1:
Image|endswith:
- '/rm'
- '/unlink'
- '/shred'
selection_cli_1:
CommandLine|contains: '/var/log'
selection_cli_2:
CommandLine|contains|all:
- '/Users/'
- '/Library/Logs/'
condition: selection1 and 1 of selection_cli*False Positives
Legitimate administration activities
References
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
acf61bd8-d814-4272-81f0-a7a269aa69aa
Status
test
Level
medium
Type
Detection
Created
2020-10-11
Modified
2022-09-16
Author
Path
rules/macos/process_creation/proc_creation_macos_clear_system_logs.yml
Raw Tags
attack.defense-impairmentattack.t1685.006