MITRE ATT&CK / Techniques / T1053.006

Scheduled Task/Job: Systemd Timers

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

Adversaries may abuse systemd timers to perform task scheduling for initial or recurring execution of malicious code. Systemd timers are unit files with file extension .timer that control services. Timers can be set to run on a calendar event or after a time span relative to a starting point. They can be used as an alternative to Cron in Linux environments.[1] Systemd timers may be activated remotely via the systemctl command line utility, which operates over SSH.[2]

Each .timer file must have a corresponding .service file with the same name, e.g., example.timer and example.service. .service files are Systemd Service unit files that are managed by the systemd system and service manager.[3] Privileged timers are written to /etc/systemd/system/ and /usr/lib/systemd/system while user level are written to ~/.config/systemd/user/.

An adversary may use systemd timers to execute malicious code at system startup or on a scheduled basis for persistence.[4][5][6] Timers installed using privileged paths may be used to maintain root level persistence. Adversaries may also install user level timers to achieve user level persistence.[7]

Detection

Mitigations (3)

M1018 User Account Management

Limit user access to system utilities such as 'systemctl' or 'systemd-run' to users who have a legitimate need.

M1022 Restrict File and Directory Permissions

Restrict read/write access to systemd .timer unit files to only select privileged users who have a legitimate need to manage system services.

M1026 Privileged Account Management

Limit access to the root account and prevent users from creating and/or modifying systemd timer unit files.

Groups (1)

Software (2)

References

  1. archlinux Systemd Timers Aug 2020
  2. Systemd Remote Control
  3. Linux man-pages: systemd January 2014
  4. Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018
  5. gist Arch package compromise 10JUL2018
  6. acroread package compromised Arch Linux Mail 8JUL2018
  7. Falcon Sandbox smp: 28553b3a9d