T1543.002 Systemd Service
PersistencePrivilege Escalationon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0253 Detection of Systemd Service Creation or Modification on Linux
AN0701 Linux
Detects the creation or modification of `.service` unit files in system/user-level directories, combined with execution of `systemctl`, `service`, or dynamically created drop-ins via systemd generators. Detects persistence by analyzing the `ExecStart` path, file entropy, and symlink usage, especially when paired with execution from `/tmp`, `/dev/shm`, or unmounted volumes.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLwrite, open, or rename to /etc/systemd/system/*.service | Not mapped to Sentinel yet. |
auditd:SYSCALLmodification of existing .service file | Not mapped to Sentinel yet. |
auditd:SYSCALLexecution of systemctl or service with enable/start parameters | Not mapped to Sentinel yet. |
auditd:SYSCALLfork/exec of service via PID 1 (systemd) | Not mapped to Sentinel yet. |
linux:osquerynewly registered unit file with ExecStart pointing to unknown binary | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (0)
No Content Hub rule is tagged with this technique.
In Sigma rules
4 SigmaHQ community rules name it in their tags.
- Systemd Service Creation
- Service Reload or Start - Linux
- LiteLLM / TeamPCP Supply Chain Attack Indicators
- TeamPCP LiteLLM Supply Chain Attack Persistence Indicators
Mitigations
M1018User Account ManagementM1022Restrict File and Directory PermissionsM1026Privileged Account ManagementM1033Limit Software Installation
MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.