Has obtained persistence on Linux devices by writing the gh-token-monitor daemon within ~/.config/systemd/user/gh-token-monitor.service that polls GitHub every 60 seconds.1 Mini Shai-Hulud has also leveraged a daemon called “kitty-monitor.service” to maintain persistence within Linux hosts.2
- Tactics
- Execution, Persistence, Privilege Escalation
- Platform
- Linux
- Version
- 1.3
- Created
- 12 October 2020
- Last modified
- 24 October 2025
- Contributor
- SarathKumar Rajendran, Trimble Inc
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]
Systemd Timers MITRE reference T1053.006
2 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Has registered itself as a systemd service for persistence on targeted Kubernetes nodes.12
All 2 software entries for this technique
Offense vs defense T1053.006
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Systemd Timers detection strategy DET0231
MITRE names one behaviour worth catching for this technique and breaks it into 1 analytic, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Behavioral Detection of Systemd Timer Abuse for Scheduled Execution
AN0645 · Linux
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.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Scheduled Job CreationDC0001 | linux:osquery | file_events |
| Process CreationDC0032 | auditd:SYSCALL | execve logging for /usr/bin/systemctl and systemd-run |
| File CreationDC0039 | auditd:SYSCALL | creat, open, write on /etc/systemd/system and /usr/lib/systemd/system |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| TimerIntervalThreshold | The interval threshold used to determine if a newly created timer is unusually frequent or immediate (e.g., < 5 minutes). |
| ParentProcessID | Whether the child process has a parent PID of 1, indicating systemd as the invoker. Can be tuned to include known benign cases. |
| UserContext | User under which the timer/service is created or executed (e.g., root vs. non-root). |
| TimerCreationPath | The path where the timer or service file is created; system-wide vs. user space can be scoped. |
Limit access to the root account and prevent users from creating and/or modifying systemd timer unit files.
Restrict read/write access to systemd .timer unit files to only select privileged users who have a legitimate need to manage system services.
Limit user access to system utilities such as 'systemctl' or 'systemd-run' to users who have a legitimate need.
Tests from Atomic Red Team (MIT licence) · technique definition