systemd service

systemd units in /etc/systemd/system, /lib/systemd/system and per-user ~/.config/systemd/user define services and timers. A malicious unit with an ExecStart pointing at an implant is a common persistence method (ATT&CK T1543.002).

LinuxPersistenceParser: linux_systemd_unitsCollected by priority triage

What Linux systemd Units is

Persistence artifacts are the places programs start from automatically: services, tasks, autostart keys, WMI subscriptions, cron and systemd. Attackers use them to survive reboots.

Forensic value

What Linux systemd Units can tell an investigator:

  • Every service and timer with the command it runs.
  • Units named to look like real system services.
  • File times that date when a unit was added or enabled.

What it does not prove

  • A unit only runs at boot if it is enabled, through a symlink in a *.wants directory.

Where it is stored

Arcsentry looks for Linux systemd Units at these locations inside a collection, disk image or mounted volume:

**/etc/systemd/system/**
**/home/*/.config/systemd/user/**
**/root/.config/systemd/user/**
**/usr/lib/systemd/system/**

Time

Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting Linux systemd Units with Arcsentry Collector

Arcsentry Collector gathers Linux systemd Units in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full, linux::profile::triage::server. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: linux::execution::systemd_timers, linux::security::anomalous_locations.

sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
  -o /mnt/ir -f host.arcx --password-file /mnt/ir/pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so Linux systemd Units can come from the tools you already use.

Analysing Linux systemd Units in Arcsentry

Ask in plain English, for example "show Linux systemd Units records from the incident window, newest first", and Arcsentry shows the query before it runs.

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads Linux systemd Units records with the same tools and cites them by event ID.

Corroborate with

No single artifact settles a question on its own. Check Linux systemd Units against:

  • systemd journal: Parses systemd journal binary log files.
  • Syslog: Parses Linux syslog and auth.log files.
  • Cron: Parses Linux crontab files for scheduled task persistence.
  • auditd: Parses /var/log/audit/audit.log* and correlates the SYSCALL, EXECVE, CWD, PATH and USER_* records of one audit event by its stamp (time and serial).

Frequently asked

How do attackers persist with systemd?

By adding a service or timer unit whose ExecStart runs their payload, and enabling it to start at boot.

Does Arcsentry parse Linux systemd Units?

Yes. Arcsentry's Linux systemd Units parser (linux_systemd_units) reads it from Linux evidence, with provenance back to the source file.

How do I collect Linux systemd Units?

Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse Linux systemd Units on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial