Skip to content
All recipes

Find unexpected launch agents and daemons on Macs

Pull launch agent and daemon data for every Mac from Prism, group it by label, and surface the ones that run on only a few Macs for a persistence check.

Open in Claude Open in ChatGPT
Product
Endpoint Management
Platforms
macOS
Effect
Read-only
Agent access
Iru MCP or the Iru API

Before you start

  • An Iru API token with MCP turned on and permissions that cover the calls below (recipe 1).
  • Macs enrolled in Iru. Prism collects launch agent and daemon data through the Iru Agent.

Prompt for your agent

Pull launch agent and daemon data for every Mac in Iru from Prism with GET /api/v1/prism/launch_agents_and_daemons. The call returns at most 300 records per request, so page through the results with limit and offset until you have them all. Group the rows by label, and show each label with its path and the number of distinct Macs that have it. Flag the labels that appear on only a few Macs, and list those Macs by name and serial number. Tell me what cutoff you used for "few". This is a lead list for a persistence check, not a verdict. Do not tell me any item is malware.

Steps

  1. Pull the Prism launch agents and daemons category

    Prism collects launch agents and daemons from every Mac every 15 minutes. Each row carries the label, the path of the plist file and program_arguments, plus load and disabled state in is_loaded and disabled.

    A hard limit of 300 device records applies to each request, so the agent pages with limit and offset.

    GET/api/v1/prism/launch_agents_and_daemons

    Source: Prism

  2. Group by label and flag the rare ones

    Have the agent count how many distinct Macs share each label and put the labels found on few Macs at the top.

    Ask the agent to name the cutoff it picked for "few" so you can adjust it.

    Source: Iru API: Prism Launch Agents and Daemons

  3. Check each flagged item

    For every flagged label, review the path, program_arguments and whether it is loaded and enabled.

    In the web app, open Devices, select the Prism tab, then open the Launch Agents & Daemons category and use + Filter to narrow the table.

    Source: Prism

Common pitfalls

  • A label found on few Macs is a lead, not proof of a problem.
  • Prism data can be up to 15 minutes old.
  • The category covers Macs only. It doesn't report launch items on iPhone, iPad or Apple TV.
  • An attribute marked Empty applies to the Mac but has no value, for example a launch daemon with no program arguments. Null means the attribute doesn't apply.

FAQ

Which API call lists launch agents and daemons?

GET /api/v1/prism/launch_agents_and_daemons returns launch agents and daemons installed on macOS from Prism.

Does this find malware?

No. It lists what is installed and how many Macs share each label, so you can review the rare ones yourself.

How current is the data?

The Iru Agent collects launch agents and daemons every 15 minutes, so a result can be up to 15 minutes old.

Does it cover Windows or iPhone?

No. The Launch Agents & Daemons category covers macOS devices.

Next steps

Sources

Stay up to date

Iru's bi-weekly collection of articles, videos, and research to keep IT & Security teams ahead of the curve.