Built off the open source project Osquery
Description: macOS LaunchDaemon's
What The Data Shows: Find every macOS LaunchDaemon that launches an executable and keeps it running
SQL:
SELECT name, program || program_arguments AS executable FROM launchd WHERE (run_at_load = 1 AND keep_alive = 1) AND (program != '' OR program_arguments != '');
Copyright © 2005-2023 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.