Create or Modify System Process: Systemd Service
- ID
- T1543.002
- Tactics
- TA0003 Persistence, TA0004 Privilege Escalation
- Sub-technique of
- T1543 Create or Modify System Process
- Platforms
- Linux
- Data sources
- File Creation, File Modification, Command Execution, Process Creation, Service Creation
- Source
- attack.mitre.org
- MITRE last modified
- 12 May 2026
Adversaries may create or modify systemd services to repeatedly execute malicious payloads as part of persistence. Systemd is a system and service manager commonly used for managing background daemon processes (also known as services) and other system resources.[1] Systemd is the default initialization (init) system on many Linux distributions replacing legacy init systems, including SysVinit and Upstart, while remaining backwards compatible.
Systemd utilizes unit configuration files with the .service file extension to encode information about a service's process. By default, system level unit files are stored in the /systemd/system directory of the root owned directories (/). User level unit files are stored in the /systemd/user directories of the user owned directories ($HOME).[2]
Inside the .service unit files, the following directives are used to execute commands:[3]
ExecStart,ExecStartPre, andExecStartPostdirectives execute when a service is started manually bysystemctlor on system start if the service is set to automatically start.ExecReloaddirective executes when a service restarts.ExecStop,ExecStopPre, andExecStopPostdirectives execute when a service is stopped.
Adversaries have created new service files, altered the commands a .service file’s directive executes, and modified the user directive a .service file executes as, which could result in privilege escalation. Adversaries may also place symbolic links in these directories, enabling systemd to find these payloads regardless of where they reside on the filesystem.[4][5][6]
The .service file’s User directive can be used to run service as a specific user, which could result in privilege escalation based on specific user/group permissions.
Systemd services can be created via systemd generators, which support the dynamic generation of unit files. Systemd generators are small executables that run during boot or configuration reloads to dynamically create or modify systemd unit files by converting non-native configurations into services, symlinks, or drop-ins (i.e., Boot or Logon Initialization Scripts).[7][8]
Detection
- DET0253 Detection of Systemd Service Creation or Modification on Linux
Data components: File Creation, File Modification, Command Execution, Process Creation, Service Creation
Mitigations (4)
- M1018 User Account Management
Limit user access to system utilities such as
systemctlto only users who have a legitimate need.- M1022 Restrict File and Directory Permissions
Restrict read/write access to systemd unit files to only select privileged users who have a legitimate need to manage system services.
- M1026 Privileged Account Management
The creation and modification of systemd service unit files is generally reserved for administrators such as the Linux root user and other users with superuser privileges.
- M1033 Limit Software Installation
Restrict software installation to trusted repositories only and be cautious of orphaned software packages.
Groups (4)
Software (11)
- S0192 Pupy
- S0401 Exaramel for Linux
- S0410 Fysbis
- S0601 Hildegard
- S0663 SysUpdate
- S1078 RotaJakiro
- S1198 Gomir
- S1222 RIFLESPINE
- S9008 Shai-Hulud
- S9041 TeamPCP Cloud Stealer
- S9043 Mini Shai-Hulud
