Cross-source coverage

T1037.005 / ATT&CK

Boot or Logon Initialization Scripts: Startup Items

3 rules across 3 sources.

From MITRE ATT&CK 19.2

Adversaries may use startup items automatically executed at boot initialization to establish persistence. Startup items execute during the final phase of the boot process and contain shell scripts or other executable files along with configuration information used by the system to determine the execution order for all startup items.

This is technically a deprecated technology (superseded by Launch Daemon), and thus the appropriate folder, /Library/StartupItems isn’t guaranteed to exist on the system by default, but does appear to exist by default on macOS Sierra. A startup item is a directory whose executable and configuration property list (plist), StartupParameters.plist, reside in the top-level directory.

An adversary can create the appropriate folders/files in the StartupItems directory to register their own persistence mechanism. Additionally, since StartupItems run during the bootup phase of macOS, they will run as the elevated root user.

Platforms
macOS
Telemetry
macos:unifiedlogmacos:fsevents

How MITRE says to detect it DET0429

Detect Modification of macOS Startup Items

macOS Analytic 1197

Detects the modification or addition of Launch Agents or Startup Items to establish persistence. Adversaries may write plist or executable files to ~/Library/LaunchAgents/, /Library/StartupItems/, or similar directories and configure them to run at user or system boot. Detection requires correlating file creation or modification events with subsequent user logon or boot-time process execution.

  • macos:unifiedlog launchservices or loginwindow events
  • macos:fsevents /Library/StartupItems/, ~/Library/LaunchAgents/

SigmaHQ/sigma

1 rule
Detection Severity Format
Startup Item File Created - MacOS Low Sigma

elastic/detection-rules

1 rule
Detection Severity Format
Suspicious StartupItem Plist Creation High Elastic TOML

splunk/security_content

1 rule
Detection Severity Format
Linux File Creation In System Generator Directory Undefined SPL

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.