Skip to content
subcloakdocs

Guides

Capture an app that ignores the proxy

Capture apps with their own network stack or pinned SDKs by answering their DNS lookups, using the Not using the proxy list and the capture sheet.

Some apps never show up in the traffic list even with the macOS proxy on. Apps with their own network stack (gRPC, Network.framework), Flutter apps, and apps with payment and security SDKs ignore the system proxy setting and connect straight to the internet. This guide finds those apps, captures them by answering the DNS lookups for their domains, and cleans up the resolver files afterwards.

The macOS proxy on (macOS traffic on in the bottom bar) Cloak Proxy detects direct connections only while the system proxy points at it
Your Mac password Capturing adds a file per domain in /etc/resolver, which needs admin rights
An app you own or are authorized to test You’re redirecting its domains to your Mac

When the macOS proxy is on, Cloak Proxy watches for apps making direct connections and lists them under Not using the proxy in the sidebar.

The Not using the proxy group lists apps connecting straight to the internet.

  1. Not using the proxy
  2. App with direct connections: click to capture it
The sidebar with Apps, a Not using the proxy group showing ShopApp with 21 direct connections, and Domains
  1. Use the app so it opens its connections. Once Cloak Proxy has seen it connect directly in two of its checks (every 8 seconds, within 5 minutes of each other), it appears under Not using the proxy with a count of direct connections. Apps that call their servers only now and then can take a little longer.

  2. Click the app to open the capture sheet.

The capture sheet suggests the app’s own domains and lets you add more.

The capture sheet: tick the domains to answer, then Capture.

  1. Suggested domains — tick the ones to capture
  2. Add a domain by hand
  3. Cautions: /etc/resolver, password, pinned certs
  4. Capture (asks for your password)
The capture sheet for an app, with a Use App Capture box, suggested domains to capture, an add field, and cautions about /etc/resolver and pinned certificates
  1. Wait while the sheet shows Finding the servers app connects to…. Cloak Proxy reads the app’s code for server names and matches them against the servers the app is connected to.

  2. Review the Domains to capture:

    • Domains labelled connected directly now come first and are ticked. The app is talking to them right now, around the proxy. Since 0.2.1
    • Domains that share a word with the app’s name or bundle identifier come next, also ticked.
    • Other domains found in the app’s code are listed unticked. These are often analytics or payment services.
  3. Tick the domains the app actually uses. Add any it’s missing in the Add a domain field (for example api.example.com).

  4. Click Capture. macOS asks for your password to add a resolver file per domain, so lookups for those names (and their subdomains) go to Cloak Proxy.

  5. Quit and reopen the app so it looks up its servers again. Its requests then appear in the traffic list.

Since 0.2.1

An app can use more servers than you captured, for example a separate payments or uploads domain. When a captured app still connects directly to other servers, its sidebar row changes to Captured, but N direct connections still skip Cloak Proxy.

  1. Click the row. The capture sheet opens and finds the servers the app is still connected to directly.

  2. The domains for those connections are at the top, ticked and labelled connected directly now. Untick any you don’t want.

  3. Click Update, enter your password, then quit and reopen the app.

Some apps (and most payment SDKs) pin certificates and reject Cloak Proxy’s. When that happens, Cloak Proxy passes the connection through untouched so the app keeps working, and still lists the connection. The capture sheet shows pinned hosts in orange, and a failed, pinned connection is noted in the traffic list.

Captured domains keep resolving even when the app isn’t running: a small background helper (started at login) answers those lookups normally, so the captured app keeps working. It steps aside the moment Cloak Proxy is open again.

The resolver files stay on disk until you remove them, so clean up when you’re done.

  1. Click the app under Not using the proxy (now shown as Captured) to reopen the sheet.

  2. Click Stop Capturing. macOS asks for your password to remove the resolver files for those domains.

  3. Repeat for any other captured app. When no captures remain, the background helper is removed too.