Detections · Harmful behavior

Mac malware that spreads: to iPhones, USB drives, projects and other machines

Most Mac malware stays on the Mac it infects. Some tries to go further: onto an iPhone plugged in by cable, a USB drive, a shared folder, a developer’s projects or other machines it can log into. That turns one infected Mac into a starting point for many more.

Updated November 25, 2026 · 50 detections in this category

In short

Copying a program to other devices or media: USB volumes, connected iPhones, network shares.

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

What propagation is

Propagation means copying a program, or a change that launches it, to another device or medium. The attacker gains new victims without having to trick each one: the infected Mac does the delivery.

On macOS the routes are specific. A Mac that is already paired with an iPhone or iPad can talk to it when it is connected, removable volumes appear under /Volumes/, developers share code through Git repositories and package registries, and administrators reach other machines over SSH.

How Mac malware does it

What MacVigil looks for

MacVigil reads the file and never runs it. Its strongest finding pairs the means to detect a connected iPhone, iPad or disk with the means to install an app on it or write to it. It traces a path under /Volumes/ to the call that writes there, and in scripts it follows a file copied to another machine with scp and then run there with ssh, or a file added, committed and pushed with git push.

Imports of the private functions that install or transfer apps to a connected device are reported on their own as high findings, while those that only open a connection or session are lower.

Broader combinations, such as project files, a build phase script and file writing, or SSH keys, a host list and remote copying, are reported as suggestions when the pieces are only separate mentions in the text. A disk or USB notification alone is informational: many programs need it.

When it is normal

Apple Configurator, device management services, backup tools and developer tools install apps on connected devices, copy files to external disks, push code to repositories and deploy over SSH. Build tools legitimately add scripts to projects. The question is whether the file does this for you, in the open, or for someone else in the background.

How to check your Mac and devices

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