sequence by host.id with maxspan=30s
[file where host.os.type == "macos" and event.action == "launch_daemon"] by process.entity_id
[process where host.os.type == "macos" and event.type in ("start", "process_started") and process.name == "launchctl" and process.args == "load"] by process.parent.entity_id
Install detection rules in Elastic Security
Detect Launch Service Creation and Immediate Loading in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).