← Blog

Disconnected operations

How to verify that software makes no network calls

To verify software makes no network calls, run it offline, capture packets on every interface, isolate it in a namespace, and review its dependencies.

Oct 12, 2026 · Updated Nov 9, 20264 min read6 sources

Why it matters

Software for a disconnected network can still call out for updates or telemetry, and each way of testing that claim covers only part of the question.

The short version

  1. 1No single test proves zero egress. Combine a disconnected run, a packet capture on all interfaces, an isolated network namespace, and a dependency review.
  2. 2An empty packet capture covers only the interfaces captured and the run observed. Check the tcpdump count of packets dropped by kernel.
  3. 3For browser-based software, a Content Security Policy connect-src of 'none' blocks script connections. Report-Only mode does not block anything.

To verify that software makes no network calls, run its full workflow four ways: with the network removed, under a packet capture on every interface, inside an isolated network namespace, and against a review of everything it ships with. No single test proves zero egress. Each one covers only what it observed.

The four checks at a glance

CheckWhat it showsWhat it misses
Disconnected runWhich features need a connectionWhat the program tried to send
Packet capturePackets that crossed the captured interfaces during the runOther interfaces, features not run, dropped packets
Network namespaceBehavior with its own isolated network stackCode paths you did not exercise
Dependency reviewEvery component in the buildNetwork behavior; you still have to check each one
Content Security Policy (web apps)Script connections the browser will blockNon-browser code, other resource types

1. Run it with the network removed

Unplug the Ethernet cable, turn off wireless, or use a machine with no network hardware. Then run the software through every feature.

Watch for anything that stalls, shows an error, or never finishes. That points to a dependency on the connection. This test leaves no record of what the program tried to send, so pair it with a capture.

2. Capture the packets

tcpdump prints or saves packets on a network interface that match a filter. Steps:

  1. Start a capture on all interfaces and save it to a file: tcpdump -i any -w run.pcap. Live capture may need special privileges.
  2. Run the software through its full workflow.
  3. Stop the capture. Note the "packets dropped by kernel" count; anything above 0 means packets lost for lack of buffer space.
  4. Read the file back with tcpdump -r run.pcap, or open it in Wireshark.

What the manual says about interfaces (tcpdump manual):

  • -i any captures from all regular network interfaces on Linux and recent macOS, but not in promiscuous mode.
  • Without -i, tcpdump picks the lowest-numbered active interface, excluding loopback. A default run can miss traffic.
  • Some capture devices, such as Bluetooth and USB, are not regular network interfaces.

Wireshark opens tcpdump captures. It only observes; it sends no packets except domain name lookups, which you can turn off. Turn them off so your own analysis does not add traffic. Wireshark is not an intrusion detection system and will not flag anything for you.

An empty capture means no packets crossed those interfaces during that run. It does not cover a feature you did not run or a call scheduled for later.

3. Isolate it in a network namespace (Linux)

unshare runs a program in new namespaces. With --net, the program gets its own Internet Protocol version 4 and 6 (IPv4 and IPv6) stacks, routing tables, firewall rules, and sockets.

  1. Start the program in a new network namespace: unshare --net --map-root-user <program>. The --map-root-user option lets an unprivileged user set up the namespaces.
  2. Run the full workflow.
  3. Note any feature that fails or hangs.

The man page lists what the namespace separates. Whether the program still works is what you observe.

4. Review the dependencies

An update check or telemetry call can sit in a library, not the main code. Get the full list first.

For Node.js projects, npm ls prints installed packages as the logical dependency tree:

  • npm ls alone shows only immediate dependencies.
  • npm ls --all shows everything beneath them.
  • --package-lock-only reads package-lock.json instead of node_modules.
  • It flags extraneous, missing, and invalid packages.

The list tells you what to examine, not what the packages do. Check each one's documentation or source for update checks, telemetry, or other outbound calls.

For web apps: lock down connect-src

If the software runs in a browser, a Content Security Policy (CSP) tells the browser what the page's code may do (MDN, CSP).

Set Content-Security-Policy: connect-src 'none'. The connect-src directive controls script connections through:

  • fetch() and fetchLater()
  • XMLHttpRequest
  • WebSocket
  • EventSource
  • navigator.sendBeacon()
  • the ping attribute on links

Limits to check:

  • Report-Only does not block. Content-Security-Policy-Report-Only sends reports but enforces nothing (MDN, CSP).
  • Fallback. If connect-src is missing, the browser uses default-src.
  • Other resources. Images and other resource types fall under other directives.
  • Meta tags. A policy in a <meta> element does not support all CSP features.
  • Browser only. CSP binds code the browser runs, nothing else on the machine.

What to do next

  • Ask the vendor which of these checks their zero-egress claim rests on, and what it covered.
  • Run the full workflow disconnected and list any feature that stalls or errors.
  • Capture on -i any for the whole run, save to a file, and confirm 0 packets dropped by kernel.
  • Repeat the run inside unshare --net on Linux.
  • Pull the full dependency list and check each package for outbound calls.
  • For web apps, confirm connect-src 'none' is enforced, not Report-Only.

Azcuna's BABEL reads, translates, and searches foreign-language documents entirely on-device, with no cloud and no connection, and keeps every claim tied to the passage it came from. The long read on air-gapped RAG goes further.

Questions people ask

How do I check if a program makes network calls?

Run the program through its full workflow while capturing packets on every interface, for example with tcpdump on the any interface on Linux, and save the capture to a file. Then read the capture for any traffic the program sent. Repeat the run with the network removed or inside a new network namespace, and note any feature that stalls or errors. Each test covers only what it observed.

Does an empty packet capture prove software makes no network calls?

No. A capture records only the packets that crossed the interfaces you captured, during the time you captured. A feature you did not run, an interface you did not capture, or a call scheduled for later would not appear. The tcpdump manual also reports a count of packets dropped by the kernel for lack of buffer space, so check that the count is zero.

How do I block network access for one program on Linux?

Use unshare with the net option to start the program in a new network namespace. The unshare manual says the process gets its own IPv4 and IPv6 stacks, routing tables, firewall rules, and sockets. Adding the map-root-user option lets an unprivileged user create the namespaces. Then run the full workflow and watch for anything that breaks.

What does connect-src 'none' do?

In a Content Security Policy, connect-src limits the URLs that scripts can reach through fetch, XMLHttpRequest, WebSocket, EventSource, sendBeacon, and the ping attribute on links. The value 'none' blocks all of them. If connect-src is missing, the browser falls back to default-src. A policy sent as Content-Security-Policy-Report-Only only reports violations and does not block them.

Why review dependencies to verify zero egress?

Because an update check or telemetry call can come from a library, not the main code. For Node.js projects, npm ls with the all option prints every installed package in the dependency tree. The list shows what to examine. It does not show network behavior, so check each package's documentation or source for outbound calls.

Sources

  1. 1tcpdump(1) manual page · The Tcpdump Group
  2. 2Wireshark User's Guide, Chapter 1: Introduction · The Wireshark Foundation
  3. 3unshare(1) - Linux manual page · Linux man-pages project (man7.org)
  4. 4Content-Security-Policy: connect-src directive · MDN Web Docs, Mozilla
  5. 5Content Security Policy (CSP) · MDN Web Docs, Mozilla
  6. 6npm-ls · npm, Inc.

Where this shows up in our work

More on disconnected operations