Details about security of communication between Eddie UI and the Elevated process
Eddie main application (UI or CLI, called Main here) runs as a normal user. Privileged work — VPN tunnel, Network Lock, routing, DNS, and similar — is done by a separate helper called Elevated, started with administrator or root rights. How that helper is started (UAC, pkexec, sudo, service, and so on) is described in Elevation.
Elevated does not expose a general shell. It accepts only a fixed set of commands with restricted parameters. This page summarizes how Main and Elevated talk, and which checks limit abuse of the helper.
Spot and service modes
- Spot: Main starts Elevated for the current run (OS elevation prompt). Elevated serves that session and then exits.
- Service: Elevated runs as a persistent OS service (Windows service, Linux systemd unit, or MacOS Launchd daemon). Main connects without a new elevation prompt each time. Service mode is optional and can be toggled in Preferences. Since 2.27.3 the service accepts only authorized accounts (see Connection checks).
If a service is installed but Main cannot authenticate to it, Eddie falls back to spot mode.
Local communication only
Main and Elevated communicate over a local IPC channel — a Unix domain socket on Linux and MacOS, and a named pipe on Windows. The helper is not meant to be reachable from the network.
There is one endpoint per mode, named after the mode itself. On Linux and MacOS it is a socket file in a root-owned runtime directory: /run/eddie-vpn/eddie-elevated-spot.sock or -service.sock (/var/run/eddie-vpn on MacOS). On Windows it is the named pipe eddie-elevated-spot or eddie-elevated-service. The names are fixed and there is nothing to configure; no TCP port is involved, and the helper does not listen on the network at all.
Connection checks
After the local channel is accepted, Elevated identifies the peer using kernel-attested process information (credentials on the Unix socket, or the named-pipe client process id on Windows), then resolves that process to an executable path.
Additional rules:
- One client at a time. Spot mode is single-connection: after the authorized client connects, further connections are not accepted, and Elevated exits when that session ends.
- Spot binding. The client PID is passed at launch (
spot_client_pid). Elevated accepts only a peer whose kernel-reported PID matches that value, so a different local process cannot attach to someone else’s spot elevation. - Authorized accounts (service). Since 2.27.3 the service accepts only accounts that have passed an elevation prompt with Eddie at least once, plus root / SYSTEM. A spot Elevated records the account of its client after the other checks. Any other account is refused, and its Main falls back to spot mode, that is to the elevation prompt.
- Integrity / location (release builds). The connecting executable must be in Eddie’s own folder: the folder of Elevated or, for a service installed from a folder a user can write, the folder it was installed from. When that folder and every folder above it belong to the system and can be changed only by the system and its administrators, location plus permissions are the guarantee, and the privileged tools run from there. In any other folder (portable and AppImage editions, for example) Elevated compares a stored hash snapshot of the executables and libraries of that folder, taken at spot start or at service install, with their current state: a mismatch rejects the connection (and triggers the spot fallback when a service was expected). In such a folder the privileged tools are not run in place: a spot Elevated runs copies made at its start in a system-only folder, and the service runs a copy of itself and of the tools made when it was installed.
- Session handshake. After the gates above, Main and Elevated exchange a session key and version information for the rest of the command stream. That handshake is not a substitute for the process and integrity checks.
Official signed packages from eddie.website / airvpn.org are built so these checks apply in normal installs. Self-built unsigned trees behave according to the same rules, but without vendor code-signing of the binaries themselves.
Command surface
Only known Elevated commands are implemented. Arguments are validated on the helper side (paths, interface names, addresses, and similar). External tools (OpenVPN, WireGuard helpers, firewall utilities, and so on) are invoked with discrete arguments — not through a shell — and, where required, from a controlled staging or install location.
Compromising the unprivileged Main process can still drive legitimate Elevated operations (connect, change routes, toggle Network Lock). The design goal is to prevent turning that into arbitrary root or SYSTEM code execution through the helper.