LaunchAgents and LaunchDaemons
Also called launchd jobs, plist, /Library/LaunchDaemons, ~/Library/LaunchAgents.
launchd jobs that start programs at boot or login, and macOS's top persistence path.
What it is
On macOS the launchd init system runs jobs defined by property-list (plist) files in well-known directories: LaunchDaemons (in /Library and /System/Library) run system-wide at boot, while LaunchAgents (in /Library and a user's ~/Library) run in a user context at login. Each plist names the program to launch and conditions like RunAtLoad or KeepAlive.
Where it lives
/Library/LaunchDaemons/, /Library/LaunchAgents/, ~/Library/LaunchAgents/, plus /System/Library/LaunchDaemons|LaunchAgents/ for Apple's built-ins (macOS)
Why it matters
These are the most common macOS persistence locations, so enumerating every LaunchAgent and LaunchDaemon plist (and checking the binaries they point to) is essential triage. A job with a deceptive label pointing at an unsigned binary in a user-writable path is a hallmark of macOS malware.
In practice
A LaunchDaemon labeled com.apple.softwareupdate but pointing to a binary in /Users/Shared revealed boot-time persistence masquerading as an Apple service.
What to look for
- New plist files in LaunchAgents and LaunchDaemons folders.
- Program paths in user or temp folders.
- RunAtLoad or KeepAlive set on unfamiliar jobs.
Common mistake
Checking only /Library. The user's own LaunchAgents folder is the most common spot.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- Linux Persistence Reader
Read a crontab line, a systemd unit or an auditd record, and see what runs, when, and as whom.
- Linux Case
A server making outbound connections nobody can explain: read its audit log, journal and scheduled jobs, and say who did what.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Mobile Verification Toolkit Open source
Checks iOS and Android backups and file systems for signs of known spyware.
-
iLEAPP Open source
Parses iOS extractions into readable reports of apps, messages and system logs.
Read next
- TCC Database: macOS privacy database recording which apps were granted sensitive access.
- Gatekeeper Quarantine: macOS provenance flag on downloaded files that records source and triggers checks.
- cron and systemd Timers: Time-based job schedulers on Unix and a classic persistence and execution vector.