Cross-source coverage

T1053.006 / ATT&CK

Scheduled Task/Job: Systemd Timers

11 rules across 3 sources.

From MITRE ATT&CK 19.2

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. Systemd timers may be activated remotely via the systemctl command line utility, which operates over SSH.

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. 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. 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.

Platforms
Linux
Telemetry
auditd:SYSCALLlinux:osquery

How MITRE says to detect it DET0231

Behavioral Detection of Systemd Timer Abuse for Scheduled Execution

Linux Analytic 0645

Detects adversarial abuse of systemd timers by correlating file creation/modification of.timer and.service units in system directories with the execution of abnormal child processes launched by 'systemd' (PID 1), especially as root.

  • auditd:SYSCALL creat, open, write on /etc/systemd/system and /usr/lib/systemd/system
  • auditd:SYSCALL execve logging for /usr/bin/systemctl and systemd-run
  • linux:osquery file_events

socfortress/Wazuh-Rules

5 rules
Detection Severity Format
Creation or modification of persistent systemd timer or service file (T1053.006) High Wazuh XML
Suspicious payload executed from systemd timer (T1053.006) High Wazuh XML
Systemd timer activation via systemctl start/enable (T1053.006) Medium Wazuh XML
System-level transient timer execution using systemd-run (T1053.006) Medium Wazuh XML
User-level transient timer execution using systemd-run (T1053.006) Medium Wazuh XML

splunk/security_content

4 rules
Detection Severity Format
Linux Auditd Service Restarted Undefined SPL
Linux Service File Created In Systemd Directory Undefined SPL
Linux Service Restarted Undefined SPL
Linux Service Started Or Enabled Undefined SPL

elastic/detection-rules

2 rules
Detection Severity Format
Modification of Persistence Relevant Files Detected via Defend for Containers Low Elastic TOML
Systemd Timer Created Low Elastic TOML

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.