What attackers do. Attackers create or change system-level processes, such as Windows services, Linux systemd units or macOS launch daemons, so their code starts automatically with high privileges. This serves Persistence and Privilege Escalation.
How to defend. Restrict who can create or modify services, and protect service configuration and binary paths with proper permissions. Collect service creation and modification events and monitor configuration directories for system daemons. Baseline normal services so new ones stand out.
Signs to look for. Look for new services with unusual names or binary paths in user-writable folders, services pointing to scripts or command interpreters, and changes to existing service binaries. A common gap is software installations creating so many services that malicious ones are ignored.