System components
Two parts of a NinjaSurfer launch need the computer's administrator: the Chromium sandbox helper on Linux hosts that restrict user namespaces, and the network module that gives a persona the TCP/IP fingerprint of its OS. Nothing installs them silently: Desktop offers the install and the operating system asks for an administrator's approval (polkit on Linux, the macOS password prompt, Windows UAC). No password passes through NinjaSurfer.
When you need them
- Sandbox helper (Linux). Hosts such as Ubuntu 23.10+ and 24.04 restrict unprivileged user namespaces
(
kernel.apparmor_restrict_unprivileged_userns=1). There the browser cannot start its sandbox without the helper, and a start fails withSandboxUnavailableError(reasonuserns-restricted) naming the command below. The sandbox is never turned off: NinjaSurfer never adds--no-sandboxby itself. With an iPhone browser installed, the same step installs its sandbox helper too. - Network module. A Windows, macOS or Android profile whose OS is not the computer's, and an iPhone profile on
Linux, need it when they connect directly (no proxy, no VPN). Without it such a start is refused with
NETSTACK_NEEDEDbefore anything launches: it never goes out with this computer's own TCP/IP fingerprint. Through a proxy the profile starts without it (sites see the proxy server's stack); through a VPN it starts too (NinjaSurfer's VPN client carries the persona's stack itself).
Commands
Check, install and remove (the installs ask for the administrator's approval):
ninjasurfer system status ninjasurfer system install sandbox [--cache-dir DIR] ninjasurfer system install netstack [--user NAME] [--browser-version X] ninjasurfer system uninstall sandbox|netstack [--user NAME]
- Exit code 0: installed; 2: the approval was refused; 1: any other failure.
--cache-dir: the cache the browser is in (default:NINJASURFER_CACHE_DIR, else this account's). Undersudoit is the account that ran sudo, never root's.--user: the account that runs the browsers (default: you; undersudo, the user who ran sudo). As root it is required.--browser-version: install the network module for a browser build that is not installed yet (an image build); no API key is needed.uninstallremoves exactly whatinstallwrote; run it the same way you ran install (sudo, or pkexec).- macOS:
ninjasurfer netd install|uninstall|statusmanages the network daemon. Windows:ninjasurfer system uninstall netstackstops the network service gracefully and removes it.
From code: runtimeStatus() reports both items and installSystemComponent("sandbox" | "netstack") installs one
(see the SDK guide).
Containers
In a Dockerfile, create the runtime user first, then:
RUN ninjasurfer system install netstack --user <runtime user>
A hardened container (--cap-drop ALL, no-new-privileges, a non-root user) cannot run the network module:
no-new-privileges voids its file capability and sudo. There a Windows, macOS or Android persona starts only through
a proxy or a VPN; a direct start is refused with NETSTACK_NEEDED. A VPN needs outbound UDP and the CDN downloads,
which Docker's default network allows (--network none does not). For direct connections use a VM, or a container
that keeps CAP_SYS_ADMIN and CAP_NET_ADMIN and allows new privileges.
Offline starts and VPN helpers
The VPN helpers and the network module come from the signed components catalog. A component already downloaded is used with no network request for 24 hours after the catalog was last accepted, after its signature, expiry, revocations, size and hash are checked again. After that, or when any check fails, the catalog is read again first. A component revoked within that window is refused from the first launch after it.