FORENSIA

ATT&CK · T1543.002 · sub-technique

Systemd Service

Tactics: persistence, privilege-escalation

About

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. 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`). Inside the `.service` unit files, the following directives are used to execute commands: * `ExecStart`, `ExecStartPre`, and `ExecStartPost` directives execute when a service is started manually by `systemctl` or on system start if the service is set to automatically start. * `ExecReload` directive executes when a service restarts. * `ExecStop`, `ExecStopPre`, and `ExecStopPost` directives 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. 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).

Used by actors

3 known groups

Software

9 malware/tools implement this

PupyExaramel for LinuxFysbisHildegardSysUpdateRotaJakiroGomirRIFLESPINEShai-Hulud

Corpus indicators tagged with this technique

70 indicators in the corpus carry T1543.002.

IndicatorTypeFamilySevSrc
cve-2025-34117cve851
cve-2014-2321cve851
cve-2021-4045cve851
cve-2013-7471cve851
cve-2017-18377cve851
cve-2025-34037cve851
cve-2026-5815cve851
cve-2007-5693cve851
cve-2021-25646cve851
cve-2020-17456cve851
34014776d3d3ff11bc4439b02fd7ac0f02a887eb3a052eeafff236e2f6db8ad1sha256supply_chain803
cdec8b20338beb708b5be8d3d7a3041a35a8b0fb92f9186262f312d55ff82066hashsupply_chain801
c38954e85bf5433e61e7c8f4230336695624ae88b6953afabf7bf817aa91b638hashsupply_chain801
f79d05065a2ba7937b8781e69b5859d78d5f65f01fb291ae27d28277a5e37f9bhash801
b1b2f1e36dcaa36bc587fda1ddc3cbb8e04c3df5f1e3f1341c9d2ec0b0b0ffafhash801
9570f77a5e1511869f4e554e7166df9fde081f2583e293c2569621792ed7d9c9hashsupply_chain801
d425e4583cc6185d41e95c45eda00550045a5d1919b9a012236a4520d009dbd7sha256supply_chain803
ab6677fcbbb1ff4a22cc3e7355e1c36768ba30bbf5cce36f4ec7ae99f850e6c5hash801
83b7a106a5e810a1781e62b278909396hash801
1fc0a876a121882ffaad6677f444cf5bhash801
ea690c3acfa6592c601e4b5dd6122805063bac53hash801
bfaeb987faa6de2b5a5eb63b1233d055215b09b0349a9394f2175fd7cdf385e4sha256supply_chain803
6e78713b75bd34828d49896176627f7face7aa9036cd874f2e02d9f23a9a9c71sha256supply_chain802
b9993a8ad0518849416798cf29668256ccb96598fc4423501ccab5312812653asha256supply_chain802
550af477c12192a22f5c9edb9c8081c0a789b3a1a2992a7ecb157cca1c975e10sha256supply_chain801
9e214f38537e69bf51c7fa1ddd35ae495e9cb897231ec010baf9e4f29407ee9asha256supply_chain801
9f1a709310824f9110c6203d861a721ebefba8b204a8657057fe57efb961c850sha256supply_chain801
d3beab2e2252a13d5689e9911c2b2b2fc3a41086hash801
deb4b5841eea43cb8c5777ee33ee09bf294a670dhash801
e1ec76a0e1f48901566d53828c34b5dchash801

Showing the top 30 by severity of 70.