Detectionmediumtest
Scheduled Cron Task/Job - MacOs
Detects abuse of the cron utility to perform task scheduling for initial or recurring execution of malicious code. Detection will focus on crontab jobs uploaded from the tmp folder.
Alejandro Ortuno, oscd.communityCreated 2020-10-06Updated 2022-11-277c3b43d8-d794-47d2-800a-d277715aa460macos
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 Logic1 selector
detection:
selection:
Image|endswith: '/crontab'
CommandLine|contains: '/tmp/'
condition: selectionFalse Positives
Legitimate administration activities
References
MITRE ATT&CK
Sub-techniques
Rule Metadata
Rule ID
7c3b43d8-d794-47d2-800a-d277715aa460
Status
test
Level
medium
Type
Detection
Created
2020-10-06
Modified
2022-11-27
Author
Path
rules/macos/process_creation/proc_creation_macos_schedule_task_job_cron.yml
Raw Tags
attack.executionattack.persistenceattack.privilege-escalationattack.t1053.003