While macOS benefits from robust sandboxing, System Integrity Protection (SIP), and Apple Gatekeeper notarization, modern Mac adware relies on social engineering rather than kernel exploits. Once a user enters their administrator password to install an untrusted utility, the payload installs persistent launch daemons that survive reboots.
Where Persistent Scripts Hide in macOS
The standard locations for automated startup routines are:
~/Library/LaunchAgents(User-specific background agents)/Library/LaunchAgents(System-wide user agents)/Library/LaunchDaemons(Root-level system background processes)
Auditing ~/Library/LaunchAgents
Open Finder and press Cmd + Shift + G to inspect each directory. Legitimate apps like Adobe, Google Chrome, and Docker place files here. However, look out for randomized strings such as com.app.service.plist or daemons pointing to shell scripts in /tmp.