H3XAOperational intelligence
Live analytical pictureEvidence before assessment
TypeTechnique
External ID—
First seen2026-08-14
Last seen2026-08-14

Confidence

—

Systemd services can be used to establish persistence on a Linux system. The systemd service manager is commonly used for managing background daemon processes (also known as services) and other system resources.(Citation: Linux man-pages: systemd January 2014)(Citation: Freedesktop.org Linux systemd 29SEP2018) Systemd is the default initialization (init) system on many Linux distributions starting with Debian 8, Ubuntu 15.04, CentOS 7, RHEL 7, Fedora 15, and replaces legacy init systems including SysVinit and Upstart while remaining backwards compatible with the aforementioned init systems. Systemd utilizes configuration files known as service units to control how services boot and under what conditions. By default, these unit files are stored in the /etc/systemd/system and /usr/lib/systemd/system directories and have the file extension .service . Each service unit file may contain numerous directives that can execute system commands. * ExecStart, ExecStartPre, and ExecStartPost directives cover execution of commands when a services is started manually by 'systemctl' or on system start if the service is set to automatically start. * ExecReload directive covers when a service restarts. * ExecStop and ExecStopPost directives cover when a service is stopped or manually by 'systemctl'. Adversaries have used systemd functionality to establish persistent access to victim systems by creating and/or modifying service unit files that cause systemd to execute malicious commands at recurring intervals, such as at system boot.(Citation: Anomali Rocke March 2019)(Citation: gist Arch package compromise 10JUL2018)(Citation: Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018)(Citation: acroread package compromised Arch Linux Mail 8JUL2018) While adversaries typically require root privileges to create/modify service unit files in the /etc/systemd/system and /usr/lib/systemd/system directories, low privilege users can create/modify service unit files in directories such as ~/.config/systemd/user/ to achieve user-level persistence.(Citation: Rapid7 Service Persistence 22JUNE2016)

1 recorded

Relationships

revoked-byTechnique
8 external

References

mitre-attack
T1501
open
Linux man-pages: systemd January 2014
http://man7.org/linux/man-pages/man1/systemd.1.html
open
Freedesktop.org Linux systemd 29SEP2018
https://www.freedesktop.org/wiki/Software/systemd/
open
Anomali Rocke March 2019
https://www.anomali.com/blog/rocke-evolves-its-arsenal-with-a-new-malware-family-written-in-golang
open
gist Arch package compromise 10JUL2018
https://gist.github.com/campuscodi/74d0d2e35d8fd9499c76333ce027345a
open
Arch Linux Package Systemd Compromise BleepingComputer 10JUL2018
https://www.bleepingcomputer.com/news/security/malware-found-in-arch-linux-aur-package-repository/
open
acroread package compromised Arch Linux Mail 8JUL2018
https://lists.archlinux.org/pipermail/aur-general/2018-July/034153.html
open
Rapid7 Service Persistence 22JUNE2016
https://www.rapid7.com/db/modules/exploit/linux/local/service_persistence
open