Detections · Harmful behavior

Download and execute on a Mac: when a server decides what runs

Many Mac threats are only a small loader. The file you received does little by itself: it fetches the real program from a server and runs it. That means what finally executes on your Mac is chosen by whoever controls the server, and can change from one day to the next without the file changing at all.

Updated November 25, 2026 · 79 detections in this category

In short

Code fetched from the network and run here: what executes is decided by a server, not by the file that was checked.

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

What download and execute is

A download-and-execute step joins two harmless actions, fetching data and running a program, so that the data becomes the program. The attacker gains flexibility: the first file can stay small and look innocent, while the payload behind it is swapped, updated or tailored to each victim. Fake installers and pasted Terminal commands from fake “fix” or “verify” pages very often work this way.

How Mac malware does it

What MacVigil looks for

MacVigil reads the file and never runs it, so it cannot see the payload a server would send. What it can prove is the path: that the bytes received from the network are the same bytes written to a file, and that this same file, unmodified, is the one made executable and launched, or that a response is handed straight to an interpreter with no file in between.

A single ingredient is not treated as proof. Mentions of a download tool, of Base64 decoding or of quarantine removal are recorded as clues, and when the pieces are only separate mentions, MacVigil says so and does not claim they ran. Some of the strongest combinations also require that no accountable publisher stands behind the program.

When it is normal

Installation bootstrap scripts, maintenance and deployment tools, updaters and plug-in systems all fetch code and run it. Developers paste curl … | sh lines to install well-known tools every day. The questions are where the code comes from, whether the connection is checked, who signed the program, and whether the step hides itself.

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