Security
How unbraid handles your traffic: what protects it, what doesn’t, and what happens when something fails. Most of this page describes the Android app; the Mac app’s differences are in On a Mac. For what data goes where, read the privacy policy.
How it works on Android
unbraid uses Android’s VPN service, the same one every VPN app uses. Inside it, the open-source sing-box engine keeps several tunnels: WireGuard, OpenVPN, Shadowsocks and Tailscale. Android tells unbraid which app opened each connection, and unbraid sends it through that app’s exit. On Android you can also put an app or a website on Block, give a website its own route, and send apps through a SOCKS5 proxy that another app on the phone runs.
With a proxy server, unbraid checks before each connection and each UDP packet that the proxy’s port belongs to the app you chose, so another app on the phone can’t simply pose as the proxy to receive your traffic or its password. For UDP that can’t be ruled out completely, which is why calls and video are off until you allow them. The proxy app is set to Direct, so its own connections go straight out. What the proxy does with the traffic after that is up to that app and its server. While unbraid runs and the proxy is down, apps whose route is the proxy are offline; website, home network and local network rules still come first. Android’s Block connections without VPN can’t be used with a proxy server.
Your traffic goes to your providers’ servers, your own servers or your tailnet. unbraid runs no servers, and nothing passes through us.
What it protects, and what it doesn’t
It protects traffic sent through a VPN exit. It’s encrypted between your phone and that exit by the tunnel’s protocol, and websites see the exit’s address instead of yours. While Local network bypasses the VPN is on, connections to your local network use your normal connection, unless you send that range home through Tailscale or a home WireGuard tunnel. While Tailscale waits for you to sign in, apps on a Tailscale exit node reach Tailscale (tailscale.com and tailscale.io) or your Headscale server over your normal connection too, because the exit node can’t carry them yet.
The tunnels carry connections your phone opens, and their replies. unbraid refuses new connections that a VPN server, a home tunnel or a tailnet device opens toward your phone through them.
It doesn’t:
- make you anonymous. Your VPN provider can see your traffic leave its servers, and websites can still recognise you by your logins and cookies;
- protect apps set to Direct. They use your normal connection, as you asked;
- encrypt anything after the exit. A site without HTTPS is still unencrypted from the exit onwards;
- protect against malware on your phone or a compromised provider.
DNS
Routed apps normally look up addresses inside their own tunnel: through the DNS you set, otherwise your provider’s DNS, the DNS in your config or the DNS an OpenVPN server sends, and Quad9 when there is none. A DNS server you set replaces your providers’ blocking DNS. Websites usually see the exit’s country, not yours. On Android, an Own DNS server behind your home WireGuard tunnel is asked through that tunnel, and one in your tailnet through Tailscale while Reach your tailnet is on. Direct apps use a filter only where you apply it to them.
With Reach your tailnet on, names in your tailnet use Tailscale’s DNS. With Headscale, that needs Device names under your server’s domain in Settings, Tailscale, Advanced settings.
Direct apps use your normal network’s DNS. So do names on your local network, while Local network bypasses the VPN is on. Apps with their own encrypted DNS do their lookups themselves, normally through their own exit. If you set Android’s Private DNS to a provider, Android may use it instead of unbraid’s DNS. To open a tunnel, unbraid may look up your VPN server’s address on your normal network. Its connection checks look up their test servers through the tunnel they check. If every checked tunnel fails, unbraid also sends one request to www.google.com over your normal connection, to tell whether your network is down.
IPv6 on Android
unbraid for Android tunnels IPv4 only. IPv6 is blocked for apps that go through unbraid, so it can’t go around the tunnel. Apps you set to Direct are normally left out of unbraid and keep IPv6. With Android’s blocking on, they go through unbraid and are IPv4-only too. When Direct is your default route, the apps that follow it also go through unbraid and are IPv4-only.
When something fails on Android
- One exit stops working. unbraid checks provider exits about once a minute, and a failing exit again about 10 and 20 seconds later. If it still fails after at least a minute, unbraid tries another server in the same location. When servers keep failing, it waits longer between moves (2, 5, 15, then 30 minutes), and after that the route shows Doesn’t work on this network until your network changes or you connect again. Checks pause for 30 seconds after a network change, a reconnect or the phone waking from sleep. When your own network fails at the same time, the checks don’t count and run less often until it works again. Pinned servers, imported configs, Dedicated IPs and Tailscale exit nodes are not moved. Your own WireGuard, OpenVPN and Shadowsocks routes are checked when Check internet access is on. Repeated failures show Not answering, but unbraid never switches these routes to another server. Turn the checks off for servers that only reach a private network. Tailscale exits aren’t checked. While unbraid stays connected, apps on a failed exit don’t switch to Direct. Moving an exit can briefly reconnect the other routes too.
- Your network changes, for example from Wi-Fi to mobile data. unbraid moves its tunnels to the new network. If the network disappears, it waits three seconds before treating it as gone. Open connections may drop.
- A route can’t get a tunnel. For example, you signed out of its provider, the provider refused your login or removed this phone, or unbraid can’t reach the provider and has no recent tunnel to reuse. That route is blocked: its apps can’t reach the internet and don’t fall back to your normal connection. Local network and home access still work if they’re on. The other routes keep running. When the problem may pass, unbraid tries again after 5 seconds, then less often, up to every 5 minutes, and at once when your network changes. A signed-out, refused or removed login waits until you sign in again.
- A route or the settings are missing. An app whose chosen route no longer exists is blocked instead of using your normal connection; local network and home access still work if they’re on. If the default route no longer exists, unbraid doesn’t connect and asks you to choose one. If unbraid can’t open its saved settings when the VPN starts, it keeps every app offline until the settings open again or you choose Start fresh.
- A connection has no app Android can name. With Direct as your default route and at least one app on a VPN route, unbraid refuses such internet connections instead of sending them out directly. Some system traffic that belongs to no app may be refused too. While any app is on Block, unbraid also refuses pings and connections passing through it that Android cannot tie to an app.
- unbraid stops, crashes or is paused. Android then sends traffic over your normal connection, unless you turn on Block connections without VPN. With blocking on, apps stay offline until unbraid is back.
Always-on VPN and blocking
Android’s Always-on VPN starts unbraid again after a restart or an update. Without it, from the update after 2.9.1 on, unbraid tries to reconnect by itself after an update of unbraid if the VPN was on, or shows a notice to tap. Block connections without VPN keeps other apps offline while unbraid is disconnected. unbraid’s own sign-ins, server lists and update check still use your normal connection. Turn on both if traffic must never leave without unbraid. In Android’s Settings, open VPN (usually under Network & internet), then the gear next to unbraid.
While unbraid is connected, Direct apps still reach the internet without a VPN, even with blocking on. That’s what Direct means. While it’s paused or off, blocking keeps them offline too.
On your Android phone
- Encrypted with a key kept in the Android Keystore (AES-256-GCM): your provider logins, keys and imported configs, your Tailscale auth key until you are signed in, and Tailscale’s device state, and your recent tunnels.
- Not encrypted by the app, but private to it: statistics if you turn them on, and a table of domain names that apps looked up. The domain table exists only while the VPN is connected, even with Stats off. The app deletes it when you disconnect or pause, before each connection and when it starts.
- Not in Android backups. These files are excluded from Android backups and device transfers.
- Backup files. A backup you make in Settings holds your routes, profiles, settings and own servers. Their keys and passwords, including configs from a VPN provider with the login inside them, go in only if you turn on Include server keys and passwords, which starts off; without them, those servers’ apps stay offline after restoring on another phone until you add each config again. It never holds accounts you signed in to through unbraid’s provider sign-in screens, Tailscale state or statistics. It is encrypted with AES-256-GCM under keys made from your passphrase with scrypt, which in the app uses more than 64 MB of memory and makes guessing passphrases costly. A changed or damaged file is refused. A short or common passphrase can still be guessed by anyone who has the file, so every passphrase needs at least 8 characters, and when keys are included unbraid accepts only one its meter gives the best rating. A backup never sets the address or key of a provider’s server: a restored pinned server takes them from the provider’s own list or from a matching route already on the phone.
- No Taildrop files. unbraid doesn’t accept files sent with Taildrop. When the app starts, it deletes files that older versions received; if that fails, it tries again at the next start.
On a Mac
unbraid for Mac runs the same sing-box engine in a packet tunnel network extension. It matches connections to programs by their path, including helpers inside an app’s bundle and connections macOS opens for an app, such as Safari’s pages through WebKit. Some connections have no program it can identify: while apps are blocked, with Direct as the default and apps on VPN routes, or with a VPN as the default and some apps on other routes, unbraid refuses those internet connections.
- One trusted channel. The network extension takes commands only from unbraid’s own signed app, over a channel that checks the caller’s code signature, and the app talks only to its own signed extension.
- The extension runs only what unbraid writes. Every configuration is checked before the engine runs it: no listener beyond one password-protected proxy on 127.0.0.1, no remote-control API, no files beyond its own cache and Tailscale state. The engine keeps no log lines and clears its DNS cache on every stop.
- IPv6. The tunnel captures IPv6 as well as IPv4. An app’s IPv6 traffic follows that app’s route or is refused.
- DNS. An app on a VPN route looks names up through its tunnel: through the DNS you set, otherwise your provider’s DNS, the DNS in your config or the DNS an OpenVPN server sends, and Quad9 when there is none. Direct apps use your network’s DNS or your chosen filter. A DNS server of your own in your tailnet, in a home network behind Tailscale or behind your home WireGuard tunnel is asked through that tunnel. Local names use your network’s DNS while local network access is on, and so do reverse lookups of private addresses. Some lookups macOS makes for apps itself, such as mail, service and text records, follow the default route.
- Stand-in addresses. To tell which name a connection is for, the engine answers lookups with temporary stand-in addresses. Within one block of these addresses, each address stays tied to one name, so a program that keeps an old answer can’t reach another site, or take another route, through it. If the engine’s lookup cache reports an error, it stops giving out addresses rather than risk that. When a block runs low, unbraid moves to a fresh one by itself, at most once every 10 minutes while connected, and closes open connections, as after any change. Until then, lookups of new names can fail; traffic is never moved to another route. Addresses from earlier blocks are refused, until the eight blocks have all been used and one comes round again.
- Websites. A website with a route of its own takes that route only for connections to a stand-in address the engine answered for that name. A program that finds the real address another way, such as a browser with its own secure DNS, an address written into the program or a service-discovery answer, keeps its own app’s route. For a name with a rule, unbraid answers HTTPS and SVCB lookups empty, so those records give no address hints or Encrypted Client Hello keys. The most specific website wins, a blocked app stays blocked whatever it opens, and while a website’s route waits for its server, the website is refused instead of going out with its app. A blocked website’s connections are refused while unbraid is connected or paused, from every program but unbraid itself: its own sign-ins, server lists and update check still work, while a page opened in your browser stays blocked. During a pause, website blocks stay and websites on VPN routes use your normal connection. Names on your own network or in a Tailscale network can’t take a new website rule; a restored block of a
.localorlocalhostname only covers traffic that passes through unbraid. - Blocked apps can’t reach the internet. While connected, they can open local connections only when local network access is on and the kill switch is set to Internet. Pings to local addresses still work at either level when local network access is on.
- Kill switch. In Settings, Protection, the kill switch (Block traffic outside the VPN) blocks traffic outside the tunnel, for the internet or for the internet and your home network. Apps set to Direct still use your normal connection. During a pause, other apps use your normal connection and blocked apps stay blocked. Nothing is blocked while unbraid is disconnected. Connect on demand lets macOS bring the tunnel back after sleep, network changes and restarts.
- Starts without the app. When macOS starts the VPN by itself, the extension checks its saved copy against the last setup change it received. A copy older than that change is not run. In its place the stand-in for that change, with no sign-ins or servers, keeps your explicit app and website blocks and sends other traffic over your normal connection. DNS filtering resumes when unbraid reapplies the setup. If there is no usable stand-in, the start is refused. A start without the app never runs proxy routes: apps and websites assigned to one wait until unbraid opens. With a proxy as the default route, apps that follow the default wait too, unless the saved copy is out of date and the stand-in runs: then they use your normal connection until unbraid reapplies the setup. Separately, if macOS won’t turn Connect on demand off and no usable saved configuration is left, unbraid can save a configuration that sends everything over your normal connection, with no app or website blocks, so the Mac isn’t kept offline.
- Via. A route with Via goes through another of your routes first, and both must use WireGuard. The entry’s server sees your Mac’s address, the exit’s server sees the entry’s. Once the change is applied, the exit waits when its entry is unavailable and never goes straight to its server. If unbraid reports that the change failed, the previous route without Via may still carry traffic until the change applies. With IVPN’s own multi-hop, marked one tunnel, IVPN’s entry server forwards to the exit, and your network can tell which exit you use.
- Networks that block VPNs. Junk packets adds random packets before the WireGuard handshakes this Mac starts. IVPN’s Disguise carries the whole WireGuard connection over V2Ray, and Mullvad’s carries it inside Shadowsocks. Neither changes who can see your traffic, and they may not get past every block. If either route uses Disguise, unbraid blocks the Via route when it applies the setup. If a change fails or unbraid restores an earlier tunnel, the previous connection can still carry traffic without the newly requested protection. With an API-key sign-in, AirVPN’s Automatic can move a route from WireGuard to OpenVPN TCP, not to your normal connection. An exit using Via stays on WireGuard.
- IVPN’s quantum-safe key. Signing in to IVPN adds a preshared key from a quantum-safe key exchange to WireGuard. A sign-in made with an older version has none, and its routes wait until you sign in again.
- unbraid’s own requests. Signing in to your provider, downloading server lists and the update check use your normal connection, not the VPN, also with Block traffic outside the VPN on. Your network can see which provider you use, not what you do through the VPN.
- The update check is on by default and only learns a version number from unbraid.app. Its request names the app’s version and nothing about you or your setup. Cloudflare, which hosts unbraid.app, sees your IP address and the time of the check. No automatic check runs before you accept the terms, and once you turn it off it stays off. The answer is capped at 4 KB, redirects are refused, and Download… always opens unbraid’s own download page. It doesn’t download or install anything.
- A route that can’t get a tunnel is blocked on its own and says why, while the other routes keep running. Temporary failures are tried again by themselves. A signed-out, refused or removed account needs you to sign in again, and a pinned server that is gone needs another choice.
- A change that can’t be applied. When a stricter change can’t be applied, unbraid tries to block the apps that use a VPN and keeps trying the change. If blocking fails too, it puts the previous rules back, so the changed app may keep its old rule, and only if that fails does the VPN turn off. When unbraid can’t confirm which setup a newly started tunnel runs, it may block those apps the same way while it retries. If those apps were already blocked and recovery fails again while the tunnel is up, the tunnel stays on and holds traffic, apps on Direct included, until unbraid can apply your setup or you choose Disconnect. Devices on your local network may stay reachable.
- Proxy servers. A SOCKS5 proxy route doesn’t encrypt anything between your Mac and the proxy, and unbraid can’t verify the proxy, so a proxy on another machine needs your confirmation. unbraid doesn’t check which program listens on the proxy’s port. When the proxy stops answering, connections through it fail and are never sent around it. Connections to the proxy’s own address and port use your normal connection, and so do the program you chose to run a proxy on this Mac and the helpers in its app, so the proxy doesn’t loop through itself. The password is kept in the Keychain, and a backup holds it only with Include server keys and passwords.
- Your own servers are checked about once a minute while Check internet access is on. After repeated failed checks the route shows Not answering; unbraid never moves it to another server or to your normal connection.
- Stored on the Mac. Provider logins, keys, your setup, the networks you remembered and Tailscale’s device state are sealed with a key kept in the Keychain. Statistics, if you turn them on, stay on the Mac.
- Backups. A backup file is locked with your passphrase: scrypt makes the key, using more than 64 MB of memory so that guessing passphrases is costly, and AES-256-GCM encrypts the file; a changed or damaged file is refused. Provider sign-ins, your Tailscale sign-in and statistics are never in it. Your own servers’ keys and passwords go in only if you turn on Include server keys and passwords, and then only with a passphrase the meter rates hard. The meter checks for common patterns and a short list of common passwords, with no dictionary, so its top rating means only that it found no obvious pattern. Anyone with the file and its passphrase has what it holds. A file you restore is checked whole before anything changes: a pinned provider server comes back by name, so its address and key come from the provider, and a backup never chooses a provider’s blocking DNS servers. Before you confirm, the restore sheet says how many apps and websites in the setup in use would lose a block, go Direct or lose the DNS filter or a provider’s blocking, warns when part of the home network would go Direct, and names each server of your own that would connect somewhere else and any server with weak security. If it can’t work out the changes, it says so. It doesn’t judge your other saved profiles, and removing a block of a local device name may not be warned about.
- Switching profiles by network recognises a network by its routers’ addresses, scrambled with a secret of this install’s own, so the fingerprint means nothing on another Mac. It doesn’t authenticate the network: another network can pass for one you remembered and get its profile. It can’t switch a disconnected unbraid, choose a profile you didn’t save, or switch over a connection limit unbraid knows. A network it can’t recognise gets the profile for Any other network. Don’t give a remembered network, or Any other network, a profile that protects less than you’d accept anywhere.
- Settings saved by a newer unbraid are left as they are when an older version finds them, and it doesn’t connect with them. Start Fresh… replaces them only after keeping a whole copy. unbraid 1.1.0 lacks this check and drops website rules when it saves.
- Signed releases. Each DMG is signed with a Developer ID, notarized by Apple and published with its SHA256SUMS and complete source. Each release’s engine modules are scanned for known vulnerabilities before it is signed.
How it’s checked
- The project includes automated tests and configuration checks.
- Code is reviewed with AI assistants, as the terms describe.
- There has been no independent security audit. We’ll say so here if that changes.
Report a problem
Found a way to leak traffic, keys or data? Email info@unbraid.app and start the subject with “Security”. Please tell us privately first and give us time to fix it before you publish. unbraid is made by one person, so an answer can take a few days. Our security.txt has the same details.