Detections · What MacVigil reads to decide

Listening for connections: open ports and local servers on a Mac

Most programs connect out. A few wait for others to connect in: a local server, a helper that talks to its own app, a development tool. A backdoor can do the same, opening a door on your Mac that someone else can knock on.

Updated November 25, 2026 · 6 detections in this category

In short

What lets other programs connect to this one: a listening socket, a local server, a WebSocket or local address. Development tools and apps that talk to their own helpers have some.

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

What it is

A listening program creates a socket, binds it to a port or a local address, and accepts the connections that arrive. Code editors, databases, file sharing, media servers and apps that talk to their own helpers all do this.

For an attacker, a listener is a way in. A bind shell waits on a port for its operator to connect and hands them a command line. A local server that asks for no password, or that answers requests from any website, can be driven by another program on the Mac or by a malicious web page open in the browser. Unlike a program that calls out, a listener does not need to know where its operator is: it waits.

How Mac malware does it

What MacVigil looks for

MacVigil reads the file and never runs it. In compiled programs it looks for one function that listens for or accepts connections on a socket it creates or binds itself, which is what a server shows in its own code, and it records the imports that make listening possible. In scripts and configuration text it notes words for listeners, settings that turn authentication off and origins open to every website.

All of these are recorded for information. A listener is ordinary, and a word in a configuration file establishes no execution or use on its own, so none of these findings makes a file dangerous by itself. They give context to other findings in the same file, such as a remote control channel.

When it is normal

Many legitimate apps listen: development servers, databases, sync and file-sharing tools, media servers, remote desktop apps you installed on purpose, and apps whose window talks to a background helper through a local port. Web frameworks also often allow every origin while you build and test. A listener becomes a concern when you did not expect the program to accept connections at all, or when it accepts them from anywhere without asking who is connecting.

How to check your Mac

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