Detections · Harmful behavior

Mac malware persistence: how a program starts again on its own

Persistence is how a program arranges to run again after you quit it, log out or restart your Mac. A stealer that runs once takes what it finds; one that persists keeps watching, keeps collecting and comes back after every reboot. It is also one of the easiest traces to find.

Updated November 25, 2026 · 172 detections in this category

In short

How a program arranges to start again on its own: launch agents and daemons, login items, scheduled jobs.

MacVigil has 172 detections in this category. It reads the file to find them and never runs it.

What persistence means on a Mac

macOS starts many programs by itself: background services when the Mac boots, helpers when you log in, tasks on a schedule, code that loads when Terminal opens. The attacker gains a foothold that survives a restart, without you ever opening the app again.

Persistence steals nothing on its own. It turns a single infection into a lasting one, so it usually comes with something else: a hidden program, a download, a collector.

How Mac malware does it

What MacVigil looks for

MacVigil reads the file and never runs it. It looks for the pieces of a startup mechanism and, above all, for what ties them together: the same function that opens a launch folder and writes a service declaration into it, the same script that copies a file to a path and registers that same path as a login item, the program a startup entry is set to launch and where that program lives.

A single ingredient is usually not enough. A mention of RunAtLoad or of a launch folder on its own is recorded as a clue, not a verdict, and when the pieces are only separate mentions, MacVigil says so and does not claim they ran. A login item registered by a script is only treated as most serious when the copied program’s own analysis finds it harmful; otherwise it is kept for review, because installers do the same.

In installer packages, it checks what lands in launch folders and whether a service name imitates Apple’s.

When it is normal

Plenty of honest software starts on its own. Menu bar utilities, backup tools, cloud sync clients, VPNs and updaters install launch agents or login item helpers in Contents/Library/LoginItems, and use the modern SMAppService interface to register them. Developer setup scripts edit shell profiles. What matters is who signed the program, where the program being launched lives, and whether the startup entry is tied to something harmful.

How to check your Mac

On the blog

Know what a file does before you open it

MacVigil reads any app, disk image, installer or script without running it, and shows the evidence behind every finding. Nothing leaves your Mac.

Download free for Mac

More: all detection categories · what MacVigil detects · the blog