Detections · Harmful behavior

Mac backdoors and reverse shells: remote control by malware

Remote control is what turns malware into a tool someone can steer: a channel that receives orders and the means to carry them out on your Mac. Once it is in place, the attacker can run commands, steal files or install more software whenever they choose, long after the first infection.

Updated November 25, 2026 · 137 detections in this category

In short

What lets someone drive this Mac from a distance: a channel that receives commands, and the means to run them.

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

What remote control means

Every backdoor has two halves. One half listens: it connects out to a server, waits on a port, polls a web page or reads messages from a public service. The other half acts: it passes what it receives to a shell, an interpreter or a program launcher. When the two are joined, whoever sits at the other end of the connection can do what you can do on your account.

How Mac malware does it

What MacVigil looks for

MacVigil reads the file without running it, and follows data rather than words. The strongest findings come from tracing bytes received from the network to the place where they become a command: the same function that receives and launches, a socket duplicated onto a shell’s input and output, a response stored in a variable and then passed to sh -c, a value carried from one function to another or through a global variable until it reaches a launch.

Separate ingredients count for much less. A mention of /dev/tcp, a network call and a way to run programs sitting in the same file are clues, and when they are only separate mentions MacVigil says so and does not claim they are linked or that any of them ran. Several of the strongest combinations also require that no accountable publisher stands behind the program.

When it is normal

Remote administration and support tools, screen sharing apps, SSH clients and servers, and automated test systems legitimately receive instructions and run commands. Some even install a background service that does exactly this. The difference lies in who signed the program, whether it says what it is, and whether the channel is hidden or tied to something like credential collection.

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