VeriKQL by Kaushik Saha

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 sourceIn Microsoft Sentinel
auditd:SYSCALLwrite, open, or rename to /etc/systemd/system/*.serviceNot mapped to Sentinel yet.
auditd:SYSCALLmodification of existing .service fileNot mapped to Sentinel yet.
auditd:SYSCALLexecution of systemctl or service with enable/start parametersNot 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 binaryNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

4 SigmaHQ community rules name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

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.