MITRE ATT&CK / Techniques / T1053.003

Scheduled Task/Job: Cron

ID
T1053.003
Tactics
TA0002 Execution, TA0003 Persistence, TA0004 Privilege Escalation
Sub-technique of
T1053 Scheduled Task/Job
Platforms
Linux, macOS, ESXi
Data sources
File Modification, Process Creation, Scheduled Job Creation
Source
attack.mitre.org
MITRE last modified
25 Oct 2025

Adversaries may abuse the cron utility to perform task scheduling for initial or recurring execution of malicious code.[1] The cron utility is a time-based job scheduler for Unix-like operating systems. The crontab file contains the schedule of cron entries to be run and the specified times for execution. Any crontab files are stored in operating system-specific file paths.

An adversary may use cron in Linux or Unix environments to execute programs at system startup or on a scheduled basis for Persistence. In ESXi environments, cron jobs must be created directly via the crontab file (e.g., /var/spool/cron/crontabs/root).[2]

Detection

Mitigations (2)

M1018 User Account Management

cron permissions are controlled by /etc/cron.allow and /etc/cron.deny. If there is a cron.allow file, then the user or users that need to use cron will need to be listed in the file. cron.deny is used to explicitly disallow users from using cron. If neither files exist, then only the super user is allowed to run cron.

M1047 Audit

Review changes to the cron schedule. cron execution can be reviewed within the /var/log directory. To validate the location of the cron log file, check the syslog config at /etc/rsyslog.conf or /etc/syslog.conf.

Groups (3)

Software (14)

References

  1. 20 macOS Common Tools and Techniques
  2. CloudSEK ESXiArgs 2023