Execution · Persistence · Privilege Escalation · ATT&CK v20
T1053.003 Scheduled Task/Job: Cron
A Persistence technique. Keeping access across reboots, password changes and clean-ups.
- T1053.003Technique ID
- Execution, Persistence, Privilege EscalationTactics
- 3Places taught
What the attacker does
The attacker adds a cron job on a Linux or Unix host so a command runs on a schedule: a reverse shell, a miner, a script that re-downloads their tool.
How it shows up in the logs
- Changes to /etc/crontab, /etc/cron.d/ or /var/spool/cron/ (auditd file watch, file integrity monitoring).
- crontab -e or crontab - in auditd execve records; CRON lines in syslog running an unfamiliar command.
- The job reaching out to the internet on its schedule (curl or wget every few minutes).
Questions to ask in triage
- Which user owns the job, and who added it when?
- What does it run, and where does that come from?
- Remove it, and look for the other persistence that usually comes with it.
Read T1053.003 on attack.mitre.org
A sub-technique of T1053.
Where you meet it in CyberSim
In the L3 war room
- The script added a cron job for www-data that re-downloads and runs it every five minutes.
In the theory
In the hands-on labs
A simulated machine in your browser.
More Persistence techniques
- T1053.005 Scheduled Task/Job: Scheduled Task
- T1098 Account Manipulation
- T1098.003 Account Manipulation: Additional Cloud Roles
- T1098.004 Account Manipulation: SSH Authorized Keys
- T1098.005 Account Manipulation: Device Registration
- T1136.001 Create Account: Local Account
- T1136.002 Create Account: Domain Account
- T1505.003 Server Software Component: Web Shell
- T1543.002 Create or Modify System Process: Systemd Service
- T1543.003 Create or Modify System Process: Windows Service
- T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
- T1556.006 Modify Authentication Process: Multi-Factor Authentication
Source: MITRE ATT&CK T1053.003, tactic TA0003.