The registration of a new service or daemon on an operating system.
Data Collection Measures:
New-Service and Set-Service PowerShell cmdlets in Event ID 4104 (Script Block Logging)./var/log/syslog, /var/log/messages, /var/log/daemon.log)auditctl -w /etc/systemd/system -p wa -k service_creationsystemd service configurations.journalctl -u <service_name>)/Library/LaunchDaemons/ and /Library/LaunchAgents/ for new plist files.| Name | Channel |
|---|---|
| auditd:CONFIG_CHANGE | creation or modification of systemd services |
| containerLogs:systemd_unit_files | unit file referencing container binary with persistent flags |
| kubernetes:audit | create |
| linux:osquery | newly registered unit file with ExecStart pointing to unknown binary |
| linux:syslog | systemctl start/enable with uncommon binary paths |
| macos:osquery | Process Events and Launch Daemons |
| macos:osquery | launch_daemons |
| macos:osquery | detection of new launch agents with suspicious paths or unsigned binaries |
| macos:unifiedlog | creation or loading of new launchd services |
| macos:unifiedlog | launchd loading new LaunchDaemon or changes to existing daemon configuration |
| Service | None |
| WinEventLog:Security | EventCode=7045 |
| WinEventLog:Security | EventCode=4697 |
| WinEventLog:System | EventCode=7036 |
| WinEventLog:System | EventCode=7045 |
| WinEventLog:System | EventCode=7031, 7034 |