Detections · What MacVigil reads to decide

Terminal emulation: pseudo-terminals and reverse shells on a Mac

Terminal apps and code editors give you a shell inside a window by using a pseudo-terminal. A backdoor can use the same mechanism to give a distant attacker a live, interactive shell on your Mac, with full-screen tools and tab completion, as if they sat at your keyboard.

Updated November 25, 2026 · 11 detections in this category

In short

A terminal of its own: pseudo-terminals, a program's input and output rewired, a named shell. Terminal apps and code editors have one.

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

What it is

A pseudo-terminal is a pair of connected ends. A shell runs attached to one end, and a program reads and writes the other end to show the output and pass on the keystrokes. That is how Terminal, third-party terminal apps and the terminal panel of a code editor work.

A reverse shell takes the same setup and connects the other end to the network instead of a window. Whoever is at the other end of the connection types commands and sees the results, with the rights of the user who ran the program. It is one of the most direct forms of remote control: no fixed list of commands, just a shell.

How Mac malware does it

What MacVigil looks for

MacVigil reads the file and never runs it. In compiled programs it looks at how the pieces fit together in the code: whether the same function opens a pseudo-terminal, starts a shell and relays its output, or whether direct calls carry that output to a network connection. In scripts it notes words for descriptor redirection, input forwarding and shell paths.

Opening a pseudo-terminal alone is rated as a capability, not a verdict, and script words are recorded for information only, since they establish no execution on their own. The ratings rise when the code itself joins the shell to a connection. Even then, the report says what is not established: a relay in the code shows the shape of a remote shell, not that a remote party drives it.

When it is normal

Terminal apps, code editors with a built-in terminal, SSH clients, remote administration tools you installed on purpose, container and virtual machine managers, and test frameworks all open pseudo-terminals and start shells. Command-line tools redirect input and output all the time. What separates a remote shell from these is where the other end of the terminal goes: a window on your screen, or a connection to someone else.

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