Blog · Guide · Already on your Mac

How to check if your Mac has malware

Symptoms tell you very little. What malware can’t avoid is starting again: after a restart, a program only runs if something asks macOS to start it, and those requests live in a small number of places. Check those places and you are looking at evidence instead of guessing.

Updated November 15, 2026 · 9 min read

The short answer

  1. Look at Login Items & Extensions in System Settings › General for anything you don’t recognize.
  2. List the launch agent and daemon folders and read any unfamiliar file with plutil -p to see which program it starts.
  3. Check for configuration profiles, browser extensions, your shell startup files and the apps you allowed under Privacy & Security.
  4. Don’t delete anything yet. Note what you found and where, then decide.

Every check below only reads. None of them changes your Mac, and none needs administrator rights.

Signs that matter, and signs that mean nothing

Most of what people notice first proves nothing either way. These are poor evidence:

These deserve a closer look:

The places to check

On macOS, a program that should run without you opening it is registered in one of a few places. Here they are, with what a normal entry looks like.

PlaceWhereWhat normal looks like
Login items and background appsSystem Settings › General › Login Items & ExtensionsApps you installed and still use, named after their developer
Launch agents and daemons~/Library/LaunchAgents, /Library/LaunchAgents, /Library/LaunchDaemonsFiles named after a vendor (com.vendor.app.plist) that start a program inside that vendor’s app or support folder
Loaded serviceslaunchctl listMostly com.apple. labels, plus a few from apps you know
Configuration profilesDevice Management in System Settings, or profiles listNone on a personal Mac; on a work Mac, profiles from your employer
Browser extensionsEach browser’s extensions listExtensions you chose to install
Shell startup files~/.zshenv, ~/.zshrc, ~/.zprofileMissing, empty, or lines you or a developer tool added
Privacy permissionsSystem Settings › Privacy & SecurityApps whose job needs that access

For the commands, open Terminal (in Applications › Utilities) and type or paste each one. They list and read files; they don’t run, load or change anything.

1. Login Items & Extensions

Open System Settings › General › Login Items & Extensions. The Open at Login list shows apps that open when you log in. Below it, macOS lists the apps allowed to run in the background, which includes the helpers and agents apps install. Recent versions of macOS also track launch agents and daemons here, so a new background item usually appears in this pane, often with the name of the app or developer that added it.

Look for a name you don’t recognize, a developer you never installed anything from, or an item with no clear app behind it. A malicious entry can also borrow a familiar name, which is why the next check reads the files themselves.

2. The launch agent and daemon folders

Launch agents start when you log in; launch daemons start with the Mac, before anyone logs in. Each one is a small property list (.plist) file that tells launchd, the program that starts everything else on macOS, which program to run and when. List the three folders that apps and installers can write to, newest first:

ls -lt ~/Library/LaunchAgents /Library/LaunchAgents /Library/LaunchDaemons
/Users/example/Library/LaunchAgents:
total 16
-rw-r--r--  1 example  staff  612 Nov 12 09:41 com.example.updater.plist
-rw-r--r--  1 example  staff  540 Oct  3 18:02 com.examplesync.helper.plist

/Library/LaunchAgents:
...

The dates help: if something went wrong on a given day, look first at files changed around then. To see what a file starts, read it with plutil -p. A normal one looks like this:

plutil -p ~/Library/LaunchAgents/com.example.updater.plist
{
  "Label" => "com.example.updater"
  "ProgramArguments" => [
    0 => "/Applications/Example.app/Contents/MacOS/ExampleUpdater"
  ]
  "StartInterval" => 3600
}

The label is named after the vendor, and the program sits inside the vendor’s app, where you can see it and where it gets updated with the app. Now compare a file made to look like part of macOS:

plutil -p ~/Library/LaunchAgents/com.apple.cupsd.plist
{
  "KeepAlive" => true
  "Label" => "com.apple.cupsd"
  "ProgramArguments" => [
    0 => "/Users/gtest/.cups/cupsd"
    1 => "-z"
    2 => "qwzzlfnrb-vvxqp.invalid"
    3 => "-P"
    4 => "8443"
  ]
  "RunAtLoad" => true
}

Three details give it away. The label claims Apple (com.apple.), yet the file sits in a user’s own LaunchAgents folder; Apple’s own agents ship in /System/Library/LaunchAgents, which macOS protects. The program it starts lives in a folder whose name begins with a dot, which Finder hides. And RunAtLoad with KeepAlive asks macOS to start it at login and restart it whenever it stops. Any one of these can have an innocent explanation. A com.apple. label in your own folder that points into a hidden folder under your home is a red flag.

MacVigil Findings for com.apple.cupsd.plist, 988 bytes, dangerous: 1 Critical, 1 Medium, 2 Low. Critical: A service named as Apple’s starts a hidden program. Evidence: com.apple.cupsd → /Users/gtest/.cups/cupsd.
com.apple.cupsd.plist: dangerous. MacVigil’s Critical finding: “A service named as Apple’s starts a hidden program.” It explains that the startup list shows the service as part of Apple’s software while the program it starts, /Users/gtest/.cups/cupsd, is kept where Finder doesn’t show it: “hiding twice.” It also reports that the service starts or restarts by itself. This is a test file from MacVigil’s own test suite, made to be harmless: the program it names is not included and the address it passes leads nowhere.

3. What launchd has loaded

launchctl list shows the services launchd has loaded for your account, in three columns: the process number if the service is running right now (a dash if not), the last exit status, and the label. Most labels start with com.apple., so filter those out:

launchctl list | grep -v com.apple
PID	Status	Label
-	0	com.example.updater
612	0	com.examplesync.helper

Each remaining label should match a file in one of the folders above or an app you know. Two limits: this shows your account’s services, not the system-wide daemons, and the filter also hides any service that borrows a com.apple. label, as the example above does. That is why the folders matter more than this list.

4. Configuration profiles

A configuration profile can set your browser’s proxy, install certificates your Mac trusts, or change other settings, so adware and scams sometimes ask you to install one. Type Device Management into the search field in System Settings to find the pane that lists them, or run:

profiles list
There are no configuration profiles installed for user 'example'

Without administrator rights this lists your own profiles; the full list for the device needs them. On a personal Mac you normally have none. On a Mac your employer or school manages, their profiles are expected; anything else is worth asking about.

5. Browser extensions

Extensions can read and change the pages you visit, which makes them a favorite of adware and of stealers looking for passwords and cookies. Every browser lists its extensions in its own settings: in Safari, in its Settings; in Chrome, Edge, Brave and other Chromium browsers, at the browser’s extensions page. Look for any you don’t remember installing, especially ones that can read “all websites.”

6. Shell startup files

zsh, the shell Terminal opens, reads ~/.zshenv every time it starts, even when it only runs a script, ~/.zshrc every time it starts interactively, and ~/.zprofile when it starts as a login shell, which is what a new Terminal window is by default. A line added to any of them runs again with every new window. Read them:

cat ~/.zshenv ~/.zshrc ~/.zprofile 2>/dev/null

Lines from you or from developer tools (Homebrew, a version manager, an editor) are normal. Be suspicious of a line that downloads something with curl, decodes text with base64, runs osascript, or starts a program from a hidden folder in the background.

7. Privacy permissions

Malware that wants to watch you needs permissions, and macOS asks you before granting them. In System Settings › Privacy & Security, open Accessibility, Full Disk Access, Input Monitoring and Screen & System Audio Recording. Each lists the apps you allowed. An app you don’t know in any of them, or an app whose job has nothing to do with that access, is worth a closer look.

What these checks can’t tell you: what a program does. A startup entry tells you that something runs and where it lives. Whether that something steals passwords or checks for updates is in its code.

What MacVigil’s Scan My Mac does

The seven checks above take a while and cover the most common places. MacVigil’s Scan My Mac reads the places malware uses to stay or to hide, in one pass: launch agents and daemons, login items, shell startup files, browser extensions, privacy permissions, trusted certificates, even the MCP servers your AI agents start. For a startup entry, it also analyzes the program the entry launches, without running it, so you see what that program would do instead of a bare file name.

It needs Full Disk Access, because macOS keeps several of these places closed to other apps. It only reads: it never removes, disables or quarantines anything, and the decision stays yours. Nothing leaves your Mac.

If you find something

macOS also has its own protection: XProtect, Apple’s built-in malware detection, includes a remover that runs in the background and can remove known malware by itself. It only knows what Apple has already identified.

See everything that starts on your Mac, and what it does

MacVigil reads any app, disk image, installer or script without running it, and Scan My Mac reads the places where malware stays, with the evidence for each finding. Nothing leaves your Mac.

Download free for Mac

More: pasted a command into Terminal? · fake password prompts · what MacVigil detects · all posts and guides

Keep reading

What MacVigil detects here: Persistence · Remote control · Settings hijacking

How it compares: 12 Mac malware files most antivirus engines missed