§1
RoamSwitch for Linux is a resident network-security and system-diagnostics application that brings the zero-trust network defense model of macOS RoamSwitch to Linux (systemd + nftables environments).
This edition is for client machines (workstations, laptops, single-board computers) and assumes it follows network movement and switches profiles autonomously. A hardened edition for servers / headless infrastructure is provided separately as RoamSwitch Server Edition. The hardened edition is deny-by-default, minimises inbound by explicitly allowing only the service ports you expose, and restricts outbound traffic as well. It does not follow network movement autonomously; it runs on a static signed policy with remote management and auditing.
It identifies the network by the gateway's MAC and switches nftables profiles automatically. Against man-in-the-middle attacks it prepares three layers: VPN tunnel + kill switch, preventive ARP/NDP lock, and ARP spoofing detection. It also provides ransomware detection, link guard, kernel privilege escalation (LPE) countermeasures (mitigation for CVE-2026-53362; off by default), freezing (SIGSTOP) and Air-Gap isolation via eBPF sensor integration, 31 diagnostic items, an MCP server, and more.
This document explains the design and how the principle “fully local processing. By default, the only thing leaving the machine is a request for signed detection data, and it contains no user information whatsoever” is guaranteed. Opt-in features (such as event forwarding) are exceptions, listed in the table below and in §9.4. It is proprietary freeware; the source is not public (§11).
| Principle | Detail |
|---|---|
| Zero telemetry | By default, the product sends nothing about you or your machine to anyone. There is no telemetry, analytics, crash reporting, usage metrics, remote config, or license-activation server. The only things that can communicate are the opt-in features an operator explicitly enables, listed in the next row (“Exceptions to the default”) and in 9.4. |
| Exceptions to the default (all opt-in) | Only when the operator explicitly enables them, the following features communicate with destinations the operator has configured (there are no built-in destinations). (1) Event forwarding (forward_enabled, default OFF): to syslog, a JSON Lines file, or a signed webhook. (2) Fleet (Business tier, endpoint-side code only): an unenrolled endpoint sends nothing and does not even resolve names. The management service is undeployed and not shipped. All are listed in 9.4. |
| Receive-only updates | The default outbound communication is only a daily GET of the signed manifest at lafine.net/updates/v1 and its signature (ClamAV's freshclam traffic is in §9.4). From the manifest it fetches the scam-site list, the latest version, CVE maps for the kernel, OS and language packages, and so on. The kernel and package CVE maps are fetched about every 7 days (not waited for when something new is added to KEV); other lists only when their version is newer. There is no query string and no cookie, the only header is the fixed User-Agent: RoamSwitch-Updater, and no user or machine information is included. updates.enabled = false stops it completely, and it runs on the bundled data. |
| Fully local processing | Every assessment, detection, and audit runs to completion on the local machine. URL safety analysis and secret scanning evaluate their input heuristically without transmitting it anywhere. |
| Least privilege | Only the root daemon performs privileged operations; the UI, CLI and MCP make requests over a Unix domain socket. By default the daemon opens no TCP/UDP sockets (except opt-in features; §9.4). Only root or a locally logged-in UID can send requests that change state. Creating /etc/roamswitch/admin-only (effective only when owned by root and not writable by others; off by default) limits machine-wide changes to root or the sudo, wheel and roamswitch groups. |
| Fail closed | Air-Gap (emergency isolation) survives a daemon restart and is re-asserted within seconds if its rules are externally deleted. |
| Offline licensing | Pro / Business licenses are verified purely by Ed25519 signature check. No call to an activation server occurs. |
§2
RoamSwitch for Linux primarily targets the laptop / mobile workstation that roams between untrusted networks.
Attackers in scope
- Attackers on the same LAN: port scans on shared Wi-Fi, man-in-the-middle attacks via ARP/NDP spoofing (including rogue RA), rogue DHCP, passive sniffing after MAC flooding, and unauthorized access to development servers or local LLM APIs mistakenly bound to
0.0.0.0. - Malicious USB devices (BadUSB): physical attacks that pose as a keyboard and inject keystrokes before the screen locks. Data exfiltration and malware delivery through unapproved USB mass storage.
- Ransomware / fileless malware: enters through downloaded files and encrypts documents in bulk.
- C2 communication and phishing over DNS: malware reaches C2 servers or phishing sites through name resolution.
Out of scope
- An attacker who already holds root; kernel- or firmware-level rootkits.
- Attacks that physically remove the disk (the domain of full-disk encryption; RoamSwitch diagnoses whether encryption is present but does not encrypt).
- AirDrop-style proximity wireless sharing control (no OS-native mechanism on Linux; not supported).
§3
Implemented in Rust; the package contains 9 executables (roamswitch-daemon, roamswitch-app, roamswitch-mcp, and others). All communication with the daemon goes through /run/roamswitch/roamswitch.sock (a Unix domain socket). None of the daemon, the app, or MCP has a TCP/UDP listening socket. The only thing the app binds is a single Unix socket that prevents double launch.
# User space (unprivileged)
roamswitch-app / roamswitch (CLI) / roamswitch-mcp
│ AF_UNIX /run/roamswitch/roamswitch.sock (local IPC only)
▼
roamswitch-daemon root / systemd Type=notify + WatchdogSec=30
·nftables control / VPN + kill switch / ARP/NDP lock
·link guard / fanotify guard / canary / quarantine Vault
·eBPF integration → SIGSTOP freeze & Air-Gap
·USB monitoring (BadUSB) / Ed25519 license verification
roamswitch-updater the only crate with HTTP/TLS (daily signed-manifest GET)
roamswitch-honeytokens / roamswitch-incident-capture helper processes of the daemon
roamswitch-core / roamswitchkit logic library / MCP client SDK
| Component | Privilege | Role |
|---|---|---|
| roamswitch-daemon | root (systemd, Type=notify + WatchdogSec=30) | All privileged operations. As the single writer, controls nftables, DNS, and systemd units. |
| roamswitch-app | login user | GTK3 GUI + AppIndicator tray. Configuration editing and visualization only; every privileged action goes through IPC. |
| roamswitch (CLI) | login user | Thin shell front-end using the same IPC socket. |
| roamswitch-mcp | process spawned by the AI client | stdio JSON-RPC. Provides diagnostic information and changes no settings. |
Communication goes through /run/roamswitch/roamswitch.sock (directory 0755, socket 0666), and system accounts (UID 1 to 999 and nobody) are rejected by the SO_PEERCRED UID. The daemon reads only those of each user's ~/.config/roamswitch/config.json that are owned by that user, are not links, and are not writable by others. Settings never leave the machine; there is no account registration and no cloud sync.
§4
The sentinel loop (every 3 seconds) obtains the default gateway's MAC address from /proc/net/arp and ip neigh and compares it with the MAC addresses registered in config.json. Because an SSID is easy to spoof, it uses the MAC, not the SSID. The desktop notification on a profile switch includes the reason for the switch (“because the network is unregistered” / “settings of registered network ‘…’” / “because no network is connected”).
| Profile | Situation | nftables behavior |
|---|---|---|
| open (trusted) | A registered home or corporate network | policy accept. Local traffic allowed. |
| balanced | Unregistered but configured as relatively safe | Default-deny inbound. Only established connections, lo and ICMP / ICMPv6 allowed; exposed-port exposure monitored. |
| lockdown (away protection) | Public Wi-Fi / unregistered network | All inbound packets stealth-dropped. Sharing services are stopped automatically and restored on return to a trusted network (on by default; can be turned off any time). |
All rules are isolated in a dedicated nftables table named inet roamswitch, so they do not conflict with other firewall settings (ufw / firewalld, etc.). The daemon enforces the manual override durations (1 hour / 2 hours / 4 hours / until the end of today / until released / until the next disconnect) as the single writer. The GUI never writes expirations; it only reloads the config.json that the daemon rewrote on the next tick and reflects it in the UI (to avoid races).
Air-Gap (emergency network isolation)
A total-isolation mode that sets policy drop (priority -100) on both the input and output hooks of the inet roamswitch table, permitting only lo.
- Fail-closed: if the marker file (
/run/roamswitch/airgap.active) is found when the daemon restarts, the block is applied again. - Self-healing: even if an external process wipes the rules with
nft delete table, the sentinel loop reapplies them within a few seconds. - Low-confidence triggers are released by a short timer. A manual Air-Gap without a warning (such as
roamswitch airgap) is fully restored afterairgap_low_confidence_secs(default 600 seconds). For low-confidence detections such as ARP anomalies, the client does not trigger Air-Gap; it stops at a notification or a port block. - High-confidence triggers never recover silently. They are: canary tampering, eBPF Emergency/Alert (Critical when containment failed), ARP spoofing of the gateway during lockdown, an Air-Gap pressed from an ARP warning, a ransomware entropy burst, and, when opted in, high-severity rules of the execution recorder (§5). They are not released by time; after a short timer the cause is rechecked every time, and release with a notification happens only when the cause is confirmed gone. An undeterminable result also counts as “unresolved.”
- DEGRADED mode: if a high-confidence isolation reaches its cap (
airgap_hard_cap_secs, default 3600 seconds,0= no cap) with neither a release nor a confirmation that the cause is gone, it moves to DEGRADED. Blocking is the same as in FULL, and it never opens automatically just because time has passed. Release happens only by a user action (such asroamswitch emergency-restore) or by a recheck confirming the cause is gone. Wi-Fi rfkill stays on unlessairgap_degraded_lift_rfkillis true. - Transition records and notifications: the move from FULL to DEGRADED, every kind of automatic release, and user releases are all recorded in the incident timeline and produce a desktop notification. The isolation state is saved in
/run/roamswitch/airgap_isolation.jsonand continues across a daemon restart (after a restart the consecutive count of ARP rechecks starts over, which falls on the side unfavorable to release, that is, fail-closed). - Guidance on the release confirmation screen: the isolation release screen shows a link and a QR code to the page on what to do in the first hour after an incident, so it can be read on a smartphone on a separate connection. The QR contains only a public fixed address, with no hostname and no query string, and rendering makes no network connection. The link opens only when the user clicks it, and RoamSwitch never connects on its own.
table inet roamswitch {
chain input {
type filter hook input priority -100; policy <accept|drop>;
iif "lo" accept
ct state established,related accept
# open is policy accept with no rules; balanced / lockdown are policy drop (ICMP / ICMPv6 are allowed in balanced only)
}
chain output {
type filter hook output priority -100; policy <accept|drop>;
# During Air-Gap the same table is rebuilt: policy drop on input and output, only lo is allowed (established connections are not let through either)
}
}
Passive link guard (phishing-connection detection)
The daemon monitors the destinations of outbound connections and warns about connections to dangerous hosts (it blocks them when they fall under the narrow definition of “obvious phishing”). It replaces the earlier “paste a URL to diagnose it” feature, which required user action.
- Interception: the
outputhook ofinet roamswitch_linkguardpasses DNS queries and new web connections to the worker through NFQUEUE (AF_NETLINK). It neither binds a socket nor sends a packet. Because ofbypass, traffic still flows even if the worker stops. - Where hostnames come from: the DNS query name, the SNI of the TLS ClientHello (the hostname is visible even for browsers that use DoH), and the
Hostheader of plain HTTP. If ECH (Encrypted ClientHello) becomes widespread, those hosts become a blind spot (known limitation). - Verdict (pure logic in
roamswitch-core): checks the host against local phishing/threat feeds and offline heuristics (IDN/confusable homoglyphs of protected brands, brand names contained in unofficial domains, direct IP addresses, high-risk TLDs).
Mode (linkGuard.mode) | Feed hit or brand homograph | Other suspicious signals |
|---|---|---|
off | not inspected | not inspected |
warn | connection held up to 8 s + an allow/block approval prompt | notification only (nothing is stopped) |
block (default) | connection dropped + an allow dialog (once per host) | notification only (nothing is stopped) |
Only feed hits and brand homoglyphs are hard-blocked. A hit from heuristics alone only produces a notification (the same name once per 6 hours, and at most 6 per hour overall). warn holds the connection for up to 8 seconds, and if there is no response it is fail-closed (drop, the verdict is not cached). Even for block, the notification is sent once per host. Choosing “Allow” adds the host permanently to linkGuard.allowlist.
DNS is inspected but never forged: DNS queries on the blocklist only produce a notification, and the block happens on the later TCP connection. The feed (a list of scam domains) is bundled, and the daily updater (§11) verifies the Ed25519 signature and SHA-256 before updating it. Even without the feed it runs on “heuristics only”, and it never becomes “allow everything”.
Connections to external diagnostic servers (OAST) are only reported by notification. The targets are interact.sh, oast.pro, burpcollaborator.net and similar, together with their subdomains (matched on label boundaries, so toast.pro is not a target). SSRF, XXE and RCE testing tools make the victim side connect to these to confirm success. Both DNS queries and connections are covered, and neither warn nor block blocks or holds them. The notification for the same host is sent once, and the process that connected is not shown. webhook.site and ngrok are not covered.
VPN tunnel + kill-switch (the primary MITM defense)
This is a man-in-the-middle countermeasure that does not depend on L2 integrity. On an untrusted network, it keeps an encrypted tunnel to a trusted endpoint up at all times. This makes local ARP/NDP spoofing, rogue DHCP and passive sniffing all pointless, and the attacker sees only ciphertext. The ARP/NDP pinning and detection below are positioned as support for this feature.
You can choose from two backends: “WireGuard (config file)” or “Tailscale (Exit Node)”. RoamSwitch does not implement any cryptography itself and does not become a VPN provider. Both are optional dependencies, and if one is not installed, the GUI guides you through installing it.
(A) WireGuard backend
- No VPN server is provided: it uses the WireGuard configuration you prepare. The expected sources are a
.conffrom a WireGuard-capable provider such as Mullvad, IVPN or Proton VPN, or your own WireGuard server (a VPS or a home server). There is no bundled default configuration. - Configuration: it validates the
.confand saves it to/etc/wireguard/roamswitch.conf(0600, interface nameroamswitch). This is because the AppArmor profile ofwg-quickon Ubuntu 24.04+ / Debian 13 denies anything outside/etc/wireguard/. It warns ifAllowedIPsis not0.0.0.0/0(::/0). - Kill switch:
inet roamswitch_vpn(policy drop) blocks everything except loopback, the tunnel interface (roamswitch), UDP to the pinned endpoint IP, DHCP and ICMP. Because it is installed before the tunnel, there is no gap for leaks, and it stays in place even ifwg-quick upfails.
(B) Tailscale backend
- For users who already use Tailscale. RoamSwitch does not run
tailscale up, log in, or installtailscaled. It only readstailscale status --jsonand runstailscale set --exit-node=<node>(and its removal). - Exit Node required: man-in-the-middle protection works only when an “Exit Node that carries all traffic” is specified. If none is specified, protection is not enabled and a “not protected” warning is shown. If the selected node goes offline, protection is released automatically and a notification is sent (to avoid a black hole that sends all traffic to a dead node).
- The kill switch (
inet roamswitch_ts,policy drop) is looser than for WireGuard, because peer addresses move with DERP and NAT traversal. It allows loopback,tailscale0,100.64.0.0/10andfd7a:115c:a1e0::/48, STUN (udp/3478), DERP (tcp/443),udp/41641, DHCP, ICMP, MagicDNS (100.100.100.100:53) and established connections. Everything else is blocked. - Known limitations: (1) The allowed range is wider than for WireGuard (
udp/3478,tcp/443, CGNAT /10). (2) On the path, the fact and timing of use are visible and can also be blocked, but the content cannot be read. (3) When direct UDP is blocked, it relies on DERP's TLS. (4) With MagicDNS off and a local resolver, DNS cannot be resolved. (5) Log in to a captive portal first.
Common. It works only when vpn_on_untrusted_enabled is set and the mode is lockdown (default OFF). Tailscale removes the Exit Node outside lockdown (it does not run tailscale down). The destination is the user's own VPN/tailnet and has nothing to do with lafine (§9).
Preventive ARP/NDP lock
As soon as it connects to an untrusted network, it pins the MAC addresses of the infrastructure devices on the same link that an attacker would try to impersonate, as PERMANENT (static) entries in the kernel's neigh table. After pinning, the kernel ignores forged ARP replies and neighbor advertisements, so the attacker cannot make the poisoning succeed.
- Pinned targets: (1) the IPv4 default gateway, (2) the IPv6 default router (often a
fe80::link-local address), (3) a DNS resolver on the same link (public resolvers are excluded because they are reached through the gateway). For IPv6, NDP entries are pinned withip -6 neigh replace ... nud permanent. - It does not pin on trusted networks, to prevent a home router reboot from cutting off communication. It pins again every time the network changes (TOFU). A legitimate failover is followed at the next reconnect. Pinned entries are recorded in
/var/lib/roamswitch/arp_lock.jsonand are reliably released. - On by default (Community Edition policy; same breakdown as the macOS Pro build). Toggle:
gateway_arp_lock_enabled.
ARP spoof detection (notify-first)
It detects duplicate MACs and sudden changes of the gateway MAC through /proc/net/arp. During lockdown, a gateway involvement triggers a full block (Air-Gap). On balanced / trusted networks it is notification only, to prevent a DoS in which a single forged ARP takes you offline and false triggers on router reboots. Setting: arp_spoof_guard_enabled.
Verifying the cause before releasing an Air-Gap (ARP re-check)
An Air-Gap caused by ARP spoofing is released only when the gateway's MAC keeps matching the trusted MAC at the time of activation. It reads the neighbor table (ip -j neigh show), and it counts as resolved if, with no other host claiming the same MAC, this continues for arp_recheck_consecutive consecutive checks (default 3) and at least arp_recheck_min_secs seconds (default 60).
When there is no entry and the link is up, it sends one ARP who-has (at intervals of at least 20 seconds) (arp_recheck_active_probe, default true). Any mismatch, absence or read failure counts as “unresolved” (fail-closed) and resets the count. An attack that clones the real gateway's MAC cannot be detected by comparing MACs.
Only two cases trigger an automatic Air-Gap on ARP spoofing: the gateway's MAC changes, or the gateway's IP shares a MAC with another IP. A change in other hosts, or one machine answering for several IPs with the same MAC (virtual machines, NAS, etc.), is notification only, and the release decision follows the same rules. In a real-LAN test at the time of the 1.10.7 fix (2026-09-26), a forged ARP triggered it in about 1 second, and after the attack stopped it released automatically after about 11 minutes (the default 10 minutes plus 60 seconds of confirmation).
Port Anomaly Guard
Isolates newly exposed listening ports on the external LAN (backdoors, dev servers on 0.0.0.0, etc.). Detection is baseline-relative: it handles only exposed executables that appear newly after enabling (snaps as snap:<name>) and excludes system daemons. inet roamswitch_dev_guard drops connections from anything other than lo, so you can still use the service yourself. You can allow a port permanently from the confirmation dialog. ON by default (port_anomaly_guard_enabled).
Bluetooth guard (turns "discoverable" off on untrusted networks)
When the protection level is anything other than open, it turns off Bluetooth “discoverable” (bluetooth_guard_enabled, default true). It does not power the adapter off and does not disconnect connected devices. roamswitch bluetooth-audit checks, read-only, whether the BlueZ configuration allows keyboard connections from unpaired devices. The MCP tool get_bluetooth_guard_status returns the state of the guard and the controller.
DNS Tunneling / Exfiltration Detection
Always runs on the DNS path of the passive link guard. It counts queries whose label is longer than 40 bytes with entropy above 3.8, or whose qtype is TXT/NULL, and notifies when 10 are reached within the last 60 seconds. Repeat notifications for the same apex domain are spaced 300 seconds apart, then extend to 600, 1200, and at most 1800 seconds if it continues. It watches only DNS (port 53) and is notification-only. TXT queries for clamav.net are not counted. The NFQUEUE rule has bypass, so name resolution does not stop even if detection stops.
Known limitations. Long hyphen-separated hostnames (e.g. prod-us-east-1-web-server-node-0042) and TXT/NULL counting that did not distinguish destinations caused false positives. Both were fixed on 2026-09-23. They are resolved by an entropy allowlist and a per-apex-domain counter. The apex domain is approximated by the last 2 labels; it is not a strict Public Suffix List implementation.
The allowlist contains 16 CDN, cloud, and PaaS suffixes by default (cloudfront.net, amazonaws.com, vercel.app, etc.). Operators can add internal domains to LinkGuardCfg.dns_tunnel_entropy_allowlist. It exempts only the label-length and entropy checks, not the TXT/NULL check (TXT for clamav.net is excluded separately).
Docker Risk Detection & Firewall Bypass Protection
Docker published ports (-p) bypass the firewall, so unauthorized external traffic is always blocked in DOCKER-USER. Use of --privileged and mounting /var/run/docker.sock are detected via docker events; only a notification is sent.
Coverage — this DOCKER-USER chain inspection covers the iptables (IPv4) backend, IPv6 and Docker’s native nftables backend, and re-checks and repairs itself every 60 seconds (on the desktop edition too, from 1.10.4; earlier versions covered only the iptables (IPv4) backend).
Secret & API Key Leak Scanner
Detects API keys (OpenAI, AWS, GitHub, etc.) and SSH private keys by entropy and patterns. roamswitch audit-secrets <text|file|directory> also scans directories recursively (excluding .git and the like, files over 2MB, and binaries). It can also be called from the MCP audit_secrets and the SDK roamswitch-linux-kit. The content is not sent externally.
SSH brute-force detection and blocking (only while sshd is running)
The client edition's daemon runs the same engine as the server edition (ssh_guard_enabled, default true). It works only while sshd is running: it checks for a listener every minute and stops after three consecutive misses. On a machine without sshd, it reads no logs and does not touch nftables.
Settings use the same keys and defaults as the server edition. A source whose failures reach the threshold (default: 6 within 600 seconds) is cut off, both new connections and existing SSH connections (authenticated sessions excepted). Notifications are desktop notifications, and Air-Gap is not started. When fail2ban or CrowdSec is protecting the machine, it only detects and notifies. To unban, run sudo roamswitch unban <IP>.
First-run setup wizard and confirmation UI
The package ships /etc/xdg/autostart/roamswitch.desktop, and the setup wizard starts automatically at the next login after installation (after it finishes, only the tray icon stays resident). Enabling or disabling a security guard shows a confirmation dialog for the same targets as the macOS version (port anomaly, ARP auto-block, USB storage, BadUSB keyboard, Bluetooth). Decisions when an event occurs (unknown USB keyboard, unregistered USB drive, auto-block of an unknown port, emergency block) are shown in a modal dialog.
§5
Shannon-entropy burst detection · YARA scanning
It tracks writes per PID. When one process creates 20 or more distinct files with entropy of 7.92 or higher within 5 seconds, it freezes the process with SIGSTOP and also performs Air-Gap and evidence capture. The latest 50 are kept in /var/lib/roamswitch/entropy_incidents.json (only the daemon writes it; command lines are not saved) and can be read with the MCP get_ransomware_entropy_guard_status.
On 2026-09-26, on a real machine (Ubuntu 24.04, kernel 7.0), we tried a reproduction program that rewrites 40 files. It detected full encryption beyond 20 files and froze the process at the 31st file. It detected it even when named python3 or git, and it did not false-positive on cp -r, rsync -a, or tar -x.
Partial encryption of 16 out of 32 bytes (LockBit-style) was detected in 94% of the simulated files, and among 19,997 ordinary files there were 2 false positives (0.01%). Writing at full speed finishes all 40 files before the freeze (at 0.2 seconds each, it stops at the 20th). Encryption of only the head, or Base64 encryption, is recorded but not frozen, and anything written by python3 and the like cannot be told apart by name.
- YARA scanning and entropy detection are separate. YARA inspects the first 256 KB of each written file, without excluding by extension. What it skips is
scan_exclusions, the quarantine Vault, locations such as/proc, and files written by system processes. The entropy check skips compressed formats, files whose head is a legitimate compressed or media format (1.10.25 and later), and package manager cache work, to prevent SIGSTOP freezes from false positives.
RoamSwitch's own data files (/var/lib/roamswitch,/run/roamswitch) are excluded from YARA because they are written quoting detection content. Executables and scripts located there are still inspected. - Repeated overwrites of the same file (e.g.
shred’s three passes) count as one event. - Critical process protection. A process whose name matches a protected target such as
systemdorsshdand whose executable is in a system area such as/usris never frozen, to prevent the whole machine from hanging. Programs in/tmpor/homethat imitate the name are not protected.
Web application rules (web shells and injected code)
It detects PHP, JavaScript, JSP and ASP web shells, injected obfuscated code, PHP disguised as an image, and execution hijacking through .htaccess, using dedicated rules separate from those for ELF and shell. The rule language consists only of literals, sequences of words separated by a bounded gap, and two statistics (an extremely long single line, a huge Base64 block). Because no regular expressions are used, even a malicious rule file can at worst cause false positives. There are 20 rules, and they describe only publicly known techniques (such as injection via unescape); they contain no signatures from real samples and no signatures with malware names. PHP session files (sess_) are also covered, and running roamswitch web-scan without a folder reads directly under their storage location.
Rules come in 3 layers: the bundled ones, those the daily updater (11.3) places after verifying the signature, and your own rules in /etc/roamswitch/rules.d/*.json (only files owned by root and not writable by group or others). The severities are critical, high, medium and low; approval and quarantine apply to critical and high, and medium and below are report-only. Automatic quarantine applies by default to critical only (quarantine in /etc/roamswitch/web_rules.conf), and the client edition still lets the user decide in an approval dialog as before. Anything under tests/, fixtures/ and .git/ is excluded by default. Mistakes in your own rules are reported when they are loaded, and can be checked beforehand with roamswitch web-rules validate <file>.
After a detection, the detection details (JSON) are passed on standard input to the executable /etc/roamswitch/hooks/post-detection (only safe ones owned by root are run, without a shell, with a minimal set of environment variables, and stopped after 30 seconds). Account action (off by default) disables the login shell of the owner of the quarantined file. It does nothing to root, to UIDs below account_min_uid (default 1000), to logged-in users or to the daemon itself, and can be undone with roamswitch web-rules unlock-account. False positives were 0 on 2,409 files of WordPress core, 3,356 of phpMyAdmin and 14,743 of npm dependencies. As limits, it reads only the first 256 KB (on write and execute) and 4 MB (in scans), cannot follow splits such as 'ev'.'al', and does not bundle individual signatures of known malware.
Canaries (decoy files)
Decoy files are placed in the user’s Documents, Desktop, Downloads, and Pictures folders and a dedicated directory, and compared against a SHA-256 baseline on a 3-second cycle. Any rename, deletion, truncation, or content change triggers Air-Gap immediately. Because the daemon runs as root, it enumerates /home/* and deploys canaries into every real user’s directories.
Forensic Evidence Capture Bundles
Only when entropy-burst detection or an eBPF Critical event leads to per-process isolation (SIGSTOP + network cut-off), roamswitch-incident-capture saves evidence to <state directory>/incident-evidence/<timestamp>-<short ID>/.
The contents are 30 seconds of packets captured with tshark and, if there is a PID, a snapshot of /proc/<pid> (values in environ that look sensitive become [REDACTED]; file contents are not taken). If the writing process ended before the decision, only packets are captured. Nothing is captured when the whole host switches to Air-Gap, or for Emergency/Alert events.
The captured results are collected in manifest.json, which records the SHA-256 hash of every file in the bundle (to detect later tampering). Bundles are not deleted automatically. Old bundles are deleted only when you explicitly run roamswitch-incident-capture prune (default retention 30 days).
Detections that saved an evidence bundle are linked in the timeline. roamswitch timeline shows the saved line under the detection with └─, adding the bundle name and the manifest's SHA-256. --json and MCP's get_incident_timeline include evidence_refs (up to 8 entries; only names and SHA-256, never the contents) and more. It links only when the triggering ID is known and never joins by closeness in time. For a manual snapshot, pass it with --trigger-event-id ID.
Captured evidence is not verified at capture time. To check for tampering afterward, run roamswitch-incident-capture verify <bundle directory> [--json]. It re-hashes every file currently in the bundle and compares the result against the values recorded in manifest.json, reporting each discrepancy individually as modified, missing, or untracked (a file present that the manifest never recorded).
Known limitation. The SHA-256 of manifest.json is checked against an append-only chain of records (evidence_anchor.log) and the system log (tag roamswitch-evidence), so rewriting manifest.json or the records makes verify fail. A root attacker who rewrites both cannot be stopped, so forwarding the logs is recommended. There is no signature, and old bundles show "no record".
File recovery from ransomware (snapshots)
It takes snapshots of btrfs subvolumes and LVM logical volumes and extracts only the files you need to a separate location, without overwriting the current files (roamswitch-ransomware-rollback; the resident service roamswitch-ransomware-rollback-watch.service is enabled by the first installation). On file systems that cannot be snapshotted, such as ext4, it only reports that snapshots are not possible and does nothing else.
By default it takes a preemptive snapshot every 6 hours (4 generations on btrfs, 2 on LVM). It also takes one when it detects a mass rewrite or canary tampering, and a small bundled model advises how encryption-like it looks on a 0 to 1 scale (this does not change behavior). After a detection, to protect the intact generations, it pauses the periodic snapshots for 7 days, and restore refuses the snapshot taken at detection without --accept-tampered.
In the “Ransomware recovery” tab, you pick a snapshot from the list (recommended ones are marked ★, ones taken at detection carry a warning) and extract files or folders to RoamSwitch-Recovered/<ID>/. restore, which rolls back the whole, is command-only, and creating snapshots or changing the interval is also not possible from the screen. You can extract only paths the user owns.
Honeytokens (Credential Decoys)
At startup, it places fake credentials containing ROAMSWITCH_HONEYTOKEN at paths that stealer tools scan (~/.aws/credentials, ~/.ssh/id_rsa, ~/.docker/config.json, ~/.pypirc, ~/.env.backup). Real files are never overwritten. When one is read, it places additional decoys. RoamSwitch's own docker runs with an empty DOCKER_CONFIG, so it does not trigger the decoys.
The monitor process watches for reads of the decoys using notification-only fanotify (FAN_OPEN/FAN_ACCESS), falling back to inotify when it is unavailable. An access is recorded in the timeline as reconnaissance (MITRE ATT&CK T1552) with severity Critical (no popup is shown). Access by RoamSwitch itself, and by OpenSSH clients (ssh, scp, etc.) to the SSH decoy, is not recorded. It only records; it does not freeze or block. With the MCP get_honeytoken_status you can read the status and the latest 50 accesses (read-only).
Known limitation: the ~/.ssh/id_rsa decoy is in a format that is not valid as a private key. Many scanners judge only by the -----BEGIN ... PRIVATE KEY----- header, so we consider the impact small. fuser is used only when falling back to inotify, so a short-lived process may not be identified, but the detection still takes place.
fanotify monitoring · Quarantine Vault · ClamAV
- The daemon monitors
/home,/tmp,/var/tmp, and/dev/shmper filesystem (1.10.18 and later), and receives write completions across all of/. Since 1.10.4, permission events are for execution only, andopenis notification-only (it can be reverted withfanotify_open_perm). Clean executables are cached for 60 seconds, and the daemon's child processes are excluded. - Notify-first, no quarantine before confirmation (fanotify guard). On a YARA/ClamAV hit alone, the fanotify guard does not quarantine without confirmation and does not issue
FAN_DENY. When it detects something it asks for confirmation, and nothing goes into the Vault until confirmed.FAN_DENYapplies only to actual execution whilepre_exec_blocking_enabledis enabled, and if the approval times out, the execution is allowed.
Download monitoring (default~/Downloadsand~/Desktop) is a separate path: it moves detected files (except EICAR) to the Vault without confirmation and notifies you. - Test signatures such as EICAR are only recorded in the notification history. The industry-standard test string is treated as "harmless": no notification is shown, it is only recorded in the notification history, and nothing is quarantined or blocked (in both the fanotify guard and the download guard).
- The user setting
scan_exclusions(absolute paths, including everything beneath them; it merges the formerclamav_exclusions) is honored by both YARA and ClamAV. Both "Allow" in the approval dialog and "Restore" in the quarantine tab are appended to this list, so the same file will not be picked up again. - Real malware that is detected (for the fanotify guard, only items the user confirmed) is moved to the root-only
/var/lib/roamswitch/quarantine/. The Vault is root-owned0700, and samples are0400(read-only, not executable). Through IPC, users can list, restore, and delete only the items they quarantined themselves. Restore writes the file with the user's privileges as0644and does not overwrite an existing file. - The permission event loop does not read the config file. A dedicated background thread reads the config into a
Mutex<GuardConfig>snapshot, so the hot path only takes a lock and copies (reading the start of the file about to run to make a decision is separate). This is a design invariant, so that a delayedFAN_OPEN_EXEC_PERMnever freezes the machine. - When ClamAV is present (
clamav_enabled, enabled by default), new files in the download-monitoring folders are scanned with the local DB after YARA. Windows executables and dangerous AI models (such as.pkl) are notified; Linux distribution formats are only logged. ClamAV is an optional dependency, and the other defenses work without it. If present, the daily updater (§11) updates the DB withfreshclam.
Process-execution recorder (local only)
A local-only feature that records exec and uid changes through the netlink process connector. It keeps the path, arguments (up to 64 arguments, 512 characters each, 4096 characters in total), the parent lineage, SHA-256 and more. It is enabled by default, and disabled by default on machines with less than 1 GiB of memory. It runs within 3% of one CPU core at nice 10. When the connector cannot be opened, it falls back to a low-frequency scan of /proc, which misses short-lived processes.
- Storage: stored in
/var/lib/roamswitch/exec_logas JSON Lines in 8 MiB segments (0600), keeping 200 MB / 14 days by default. The hash chain can detect tampering but cannot prevent it (anyone who takes root can rewrite it).
Search isroamswitch events search|tree|export|verify. A checkpoint is inserted every 10 seconds even while writing, androamswitch events verifydetects edits, deletions and swaps before it. What comes after the latest checkpoint (up to about 10 seconds) cannot be verified. - Notification-only correlation rules (EXR-001 to 012): 12 in all, each carrying a MITRE ATT&CK technique ID. They watch for things such as a shell launched from a web service, execution from
/tmpor from deleted files, snapshot deletion by anything other than the management tools (EXR-008, 1.10.11), discovery of 8 or more kinds of attack tools within 30 seconds (EXR-009, 1.11.0), and a script runtime launching 3 or more kinds of attack tools within 2 minutes (EXR-010, 1.11.0).
They never isolate on their own; only whenexec_rules_isolation_optin(default false) is enabled do high-severity rules become high-confidence Air-Gap triggers (§4). EXR-011 (reverse-shell shape) and EXR-012 (debugger launched by a service account) are not used for isolation even when opted in. - Importing Sigma rules: applies Sigma rules placed in
/etc/roamswitch/sigma.d(a subset ofprocess_creation) to the recorded events. A match is notification only and is never used for stop, isolation or automatic-isolation decisions. There is no feed; it reads only the files placed there. Rules written in unsupported ways are rejected with a reason.roamswitch sigma-checklets you check loading and trial matching. - Nothing is sent off the machine: the raw log of records is not forwarded. Only when event forwarding (§9.4) is enabled are the rule notifications (severity, rule ID, process name, summary) and the segment seal hash sent, to the destination the operator configured.
Credential-file access watch (on by default, notify only)
Enabled by default (credential_access_watch_enabled). It notifies when SSH private keys, ~/.aws/credentials, gcloud and browser credentials, AI-agent sign-in files, Git and netrc credentials and the like are opened by an unexpected program. It only sets fanotify FAN_OPEN on a small number of files, never blocks, freezes or denies anything, and the kernel does not wait for a reply.
It matches the executable name against an allowlist (ssh, git, browsers, backup tools, etc.) and suppresses repeat notifications for the same pair for 10 minutes. Additions to the allowlist go in credential_access_watch_allow and take effect within about 30 seconds.
Because it judges by name, a program running under an allowed name is not reported. For AWS and gcloud, python is also allowed, so a stealer running as a python script is not reported either (python -c is reported). ~/.kube/config, ~/.docker/config.json and ~/.azure are out of scope because each tool opens them every time.
Suspicious autostart detection (on by default, notify only)
Checks for newly created or rewritten autostart entries (persistence_watch_enabled, default true). Covered: systemd, cron, XDG autostart, shell startup files (such as .bashrc), ~/.ssh/rc, /etc/rc.local, motd, udev, apt hooks, modprobe, git hooks, and more. Package units (/usr/lib/systemd) are excluded.
It only reads small files every 5 seconds, and the first pass only records. It notifies only on malware-like content: reverse shells, decrypt-or-download-and-execute, and running programs from places such as /tmp. For files their owner often edits, such as shell startup files, only newly added lines are examined.
Comparison uses SHA-256 (up to 1 MiB), and the timeline carries ATT&CK techniques. Detection only; it does not block writes.
Reverse-shell detection (on by default, notify only)
Runs the same reverse-shell detection as the Server Edition on the client edition too (reverse_shell_watch_enabled, default true). Every 2 seconds it reads /proc and looks for shell interpreters whose standard input/output is a single outbound TCP connection (or a connected UDP socket). Connections on listening ports and loopback are excluded, and peers with private addresses are examined only when reverse_shell_watch_include_private is true. It also finds relays such as socat, and interactive shells connected through pipes or a pty (weak warning).
Something found twice in a row is notified once per process. Notification only; it neither isolates nor stops anything. Exclusions go in reverse_shell_watch_allow. It cannot find relays that go through cat, connections that end between scans, or processes whose name is not a shell.
Network setting change watch (on by default, notify only)
Reports changes caused by rogue DHCP responses or planted proxy auto-configuration (PAC / WPAD) (netconf_watch_enabled, default true). Every minute it reads the DHCP lease files (for NetworkManager's own DHCP it queries nmcli, read-only) and remembers the DHCP server, gateway and DNS per network. A new address appearing on the same network is notified once; the first lease on a new network is not. It also notifies when a new PAC or WPAD appears in Firefox, KDE, NetworkManager settings and the like.
The baseline is stored in /var/lib/roamswitch/netconf_baseline.json, and at first it only records. Expected values can be written to netconf_watch_trusted. DHCP notifications map to ATT&CK T1557.003. It changes nothing, sends nothing, and only reads files. Rogue offers that were not accepted, DHCPv6 and router advertisements are not visible; rogue offers on the network are watched by Sensor, a separate product.
ClickFix clipboard detection
Detects ClickFix attacks, in which a fake ad or CAPTCHA page pastes a command and gets it executed, from the clipboard. It works only while the desktop app is running, and there is no switch. A notification and a dialog appear only when the clipboard matches a pattern that decodes base64 and passes it to a shell, or a reverse-shell rule. The clipboard is not cleared automatically; it can be emptied from the dialog.
The intrusion path in file-tampering notifications
Notifications from the client edition's tamper monitoring (FIM and lock files) include the process that made the change and the SSH login it belongs to (source, time, authentication method) (fim_intrusion_context_enabled, default true; nothing is sent outside). Notifications from credential-file monitoring get one extra line only when they belong to an SSH login. If something could not be checked, we do not write that it was not a login. Records are kept in /var/lib/roamswitch/fim_intrusions.json.
Recording what a guard could not read
If a guard that reads logs or tables silently skips what it could not read, it cannot be told apart from a guard where nothing is happening. So each guard counts only what it has surely lost (the number of failed reads, discarded lines, the time of the last miss, etc.) and reports it in /run/roamswitch/collectors.json and in MCP's get_guard_status, among others.
A guard that cannot read its input is off even if enabled, and partial if it missed anything in the last 24 hours. Being unable to read for 2 minutes or more triggers a notification, at most once per 24 hours for the same kind. For losses that cannot be counted, only the fact and the time are recorded, and no number is guessed.
Kernel Local Privilege Escalation (LPE) Preemption & Hardening
When an attacker or malware gains an unprivileged user foothold, defense-in-depth prevents exploiting Linux kernel vulnerabilities to obtain root privileges.
- Handling of unprivileged user namespaces (mitigation for Frag Gap CVE-2026-53362). Many kernel privilege escalations use user namespaces created by unprivileged users as a foothold. The diagnostics show the state of
user.max_user_namespacesandkernel.unprivileged_userns_clone. Disabling them can break browsers, Flatpak, and the like, so the Client edition does not recommend it and does not include it in one-click hardening.
Restricting them only while on an untrusted network works only when explicitly enabled inguard.yaml(disabled by default). Server Edition applies it permanently by default. Disabling blocks only some paths and is a stopgap; the root fix is updating to a patched kernel and rebooting. - Memory protection via the Yama LSM. Applies
kernel.yama.ptrace_scope = 1(or2) and denies ordinary processes from attaching to other processes withptraceor reading their memory space (browser sessions, SSH/GPG private keys) through/proc/$pid/mem. - Core dump suppression.
fs.suid_dumpable = 0prevents the memory image of a crashed process from being dumped to disk in plaintext. - Defense by mounting
/tmp&/dev/shmwithnoexec. To prevent a payload placed in a temporary directory from being executed, they are mounted withnoexec,nosuid,nodevwhile away from home (on an untrusted network).
eBPF Runtime Threat Sensor & Autonomous Process Freezing (Desktop eBPF Guard)
The RoamSwitch client daemon includes, as standard, a mechanism to work with a Modern eBPF sensor (Falco / Tetragon / BTF) running in kernel space.
# eBPF runtime threat detection and autonomous interception flow
[Malicious process] → [Kernel (eBPF)] → ring buffer (2MB)
→ [Falco] → UNIX socket (/var/run/roamswitch/events.sock)
→ [roamswitch-daemon (root)]
├─► ① kill(pid, SIGSTOP) [state: Ts]
├─► ② Isolation: Critical only for that user, Emergency / Alert via Air-Gap
└─► ③ GTK3 modal & libnotify notification
- Direct UNIX domain socket integration (
/var/run/roamswitch/events.sock). Alerts from eBPF sensors such as Falco are received directly over an in-memory UNIX socket, not through logs on disk. No disk I/O occurs, and hand-off takes milliseconds. - Millisecond autonomous response (process freeze and network cut-off). On a
Criticalevent (kernel LPE, ransomware encryption, and so on), it stops that PID by sendingSIGSTOP, cuts off only the traffic of the process's real user (the cgroup for containers), and notifies. If the PID is unknown, or freezing or isolating is not possible, and forEmergency/Alert, it deployspolicy drop(Air-Gap) and also sendsSIGSTOPif the PID is known. BelowCritical, it does not cut off and only logs. - Low-overhead desktop tuning & log-bloat prevention (RoamSwitch Optimized) To curb battery drain, CPU load, and disk exhaustion on laptops and workstations, an optimized Falco profile (
99-roamswitch-optimized.yaml) and a logrotate policy are provided for environments that run Falco. The Client packages do not install Falco and do not place this profile (the Server Edition packages do). If you use Falco with the Client, you install Falco yourself and, if you want it, place the profile yourself. The main settings are as follows.- Severity filtering (
priority: warning). Cuts everyday-operation noise by 95%. - Early drop in the kernel (
drop_failed_exit: true). Drops failed system calls at the kernel driver stage, halving CPU load. - Memory-saving ring buffer (
cpus_for_each_buffer: 2). Shrinks the buffer size to 2MB, keeping resident memory at 30 to 50MB and CPU load under 1%. - Forced log rotation with a size cap (
/etc/logrotate.d/roamswitch-falco). 50MB cap, 7 compressed generations kept.
- Severity filtering (
- Hybrid resilience: standalone hardening vs. eBPF extension. Even without Falco, it defends autonomously with kernel sysctl (Yama ptrace restriction, core dump suppression, network protection; applied at each profile switch), nftables profiles, fanotify, and canary monitoring. Installing Falco adds zero-day interception and process freezing through real-time eBPF events.
§6
Monitors USB events and tracks keyboard (HID) class devices and USB mass storage. Off by default (shipped with isEnabled = false, the same as USBKeyboardGuard / USBStorageGuard on macOS). You can opt in from the first-run setup wizard and the USB tab, and a confirmation dialog appears when you enable it.
Rogue USB keyboard (keystroke injection)
- It does not physically cut off ports at the kernel layer (important). The old implementation (≤1.0.6) disconnected an unregistered keyboard along with its whole USB device, and with an all-in-one receiver this cut the mouse too and left the machine unusable. Now it refuses writes of
authorized=0to HID devices, and at startup it re-authorizes HID devices that were already disconnected, repairing itself. - Keystrokes are dropped in software. On detecting an unregistered keyboard, an exclusive evdev
EVIOCGRABis taken on that device’s/dev/input/eventN(only nodes with akbdhandler in/proc/bus/input/devices, matching VID:PID). The mouse node is untouched. This is the Linux equivalent of the macOSCGEventTap; the device stays powered. - Safeguard. It applies a grab only when "another keyboard that can still type is available" (the built-in one, or an approved, connected USB keyboard). It does not lock out a machine that has only a single new keyboard.
- Approval dialog. Together with the grab, it queues an approval request in
/run/roamswitch/approvals.json, and the GUI shows a modal (Allow / Deny). Allowing adds it to the whitelist and releases the grab. If 3 minutes pass without approval, it still does not release the keyboard by default (1.10.4 and later; earlier versions failed open after 3 minutes. Enablingusb_keyboard_timeout_releaserestores the old behavior).
Rogue USB mass storage
When an unregistered USB mass storage device (one without HID) is inserted and the guard is enabled, it is held with authorized=0 (safe, since it has no HID) and an approval dialog is shown. Whether the network is trusted does not matter. Drives that are mounted or in use for swap (an external disk in use, a live USB, and so on) would break as if pulled out, so they are not held and only logged. Allowing re-authorizes the device and adds it to the whitelist; denying keeps it held. On macOS, 1.7.4 unified on this "hold read-only + approval prompt" approach.
Identification and grandfathering
HID detection uses bInterfaceClass == "03" and /proc/bus/input/devices. Registering existing keyboards in the allow list (grandfathering) is done by the GUI, not the daemon. It registers the connected keyboards when you enable the feature in the first-run setup wizard, for example, and does not register them when you enable it later from the USB tab. An unregistered keyboard that is already connected when the daemon starts is treated as unregistered, because it may have been swapped.
§7
LinuxHealthChecker evaluates 31 items and produces a score from 0 to 100, a grade (100 is S, 85 to 99 is A, 70 to 84 is B, below that is C), and improvement advice. In the GTK app, the CLI (roamswitch status), and MCP alike, all 31 items are shown in the user's language (10 languages supported).
| Category | Example items |
|---|---|
| Disk / boot | LUKS / dm-crypt encryption, UEFI Secure Boot |
| Access control | LSM (AppArmor / SELinux), SSH / sudo config audit |
| Kernel hardening | sysctl hardening, unprivileged user namespace status (Frag Gap mitigation; the Client does not recommend disabling them), Yama ptrace restriction, core-dump control, noexec on /tmp and /dev/shm |
| Updates | automatic security update configuration |
| Network | ARP spoofing monitoring, gateway ARP/NDP lock state, exposed-port audit, Wi-Fi encryption strength |
| Malware | ClamAV (including a live EICAR detection test) / fanotify (also checks the guard is actually running and that no events were missed to queue overflow) / entropy monitoring / noexec / installation check of the helper programs (honeytokens and evidence capture) |
| Browser | Firefox / Chrome / Chromium Safe Browsing settings |
| DNS / USB | threat-protection DNS, zero-trust state of the USB bus |
| Containers & Vulnerabilities | Docker socket mount exposure, privileged container (--privileged) audit, container runtime isolation level (runc / gVisor / Kata), known-CVE exposure of the running kernel, Docker daemon settings (daemon.json) |
| Name-resolution responders | Reads /proc/net/udp and /proc/net/udp6 and checks whether this host answers LLMNR (UDP 5355) or NBNS (UDP 137). If it does, another device on the same network can hijack its traffic with forged replies (LLMNR / NBT-NS poisoning), so the check fails. mDNS (UDP 5353) is shown only. It runs no commands and needs no administrator privileges. The forged replies on the network themselves are not seen. |
| Backup Recency | Looks for the last run of restic, borg, Timeshift, snapper, rsnapshot, systemd timers and cron jobs and checks that it was within the past 7 days. It does not check that a backup can be restored: a restore test writes the user's files, so it is never run automatically. |
| Deleted executables | Checks whether the files of running programs have been deleted, in /tmp, /dev/shm, /home, /opt, and so on. If a newer file exists at the same place, it is treated as an update. /usr, /lib, and development folders are excluded; severity is medium for /opt and high for the rest. This is a check at diagnosis time, not continuous monitoring. Processes of all users are checked with sudo roamswitch status. Up to 3 findings are shown, and the rest are given as a count. |
Every check is based on reading local files and command output (getenforce, mokutil, resolvectl, ss, …). There is no external query of any kind.
Judgment that takes the trusted network into account. On a trusted (home) network, it deliberately holds off on pinning the gateway MAC, making /tmp and /dev/shm noexec, and threat-protection DNS. These are shown as 🟢 plus an explanation rather than 🔴 "not mitigated", and it states that they are applied automatically on an untrusted network. The actual state is read from /run/roamswitch/state.json, which the daemon writes every cycle, and for fanotify it even checks that the guard is actually running.
Per-item hardening. Failed items that have an automated fix (kernel sysctl / Yama / core dumps, /tmp noexec, USB zero-trust, gateway ARP pinning, threat-protection DNS, restarting the daemon when the fanotify guard is down) carry a “🔧 Harden” button in the GTK dashboard. The daemon runs as root, so no pkexec is needed except for the daemon restart.
NIST CSF 2.0 / CIS Controls v8 Mapping
31 items carry NIST CSF 2.0 identifiers (e.g. PR.DS-01, DE.CM-09), and well-established ones also carry CIS Controls v8 numbers (e.g. 3.11, 4.1). They are included in the MCP (get_security_report) and roamswitch status --json (nistCsf/cisControl), and do not appear in the normal display of the GUI and the Client CLI (they do appear in roamswitch status --server).
Handling of package vulnerability findings
A package CVE finding can be accepted with a reason and an expiry date. The key is (ecosystem, package, CVE ID, installed version); it is done with roamswitch vuln-accept or the GTK screen. The MCP returns only the number of accepted findings and cannot accept one. When the date passes, the finding returns to normal and is recorded once in the incident timeline and the notification history. A CVE whose map entry carries an EPSS value (epss, epssDate) is listed in descending EPSS order within the same severity.
It compares code that runs at install time with a confirmed state and reports additions or changes of scripts and the like. Only a person can mark something as confirmed (e.g. roamswitch scan-scripts --accept); the MCP only compares. The baseline ~/.config/roamswitch/package_install_baseline.json (0600) keeps digests only.
It also reports pip/uv extra-index-url, npm registries not pinned in .npmrc, and the absence of settings that avoid freshly published versions, from the files alone (no network access, and environment variables are not read).
Registered folders are checked automatically after a change, right after startup, and once a day (no network access, nothing is executed, and no records are rewritten). It can be turned off with npm_supply_watch_enabled (enabled by default).
§8
roamswitch-mcp is a stdio MCP server launched by AI clients (Claude Desktop, Cursor, and so on). It has no tools that change settings, defenses, ports, or devices. It writes only when three tools update their own record files. The only tool that can connect to an external host is run_npm_audit_signatures, which is disabled by default. Diagnostic evaluation sends nothing to the LAN, and the gateway too is checked with local information such as the ARP cache.
All MCP tools carry annotations (readOnlyHint, openWorldHint, and so on). readOnlyHint is false only for the three tools that update record files. openWorldHint is true only for run_npm_audit_signatures, which is disabled by default. Each row of the scan history carries what the probe leaves on the target (sideEffects). Each scan finding carries evidenceKind, which shows whether it was confirmed or only matched by version.
| Tool | Purpose |
|---|---|
| get_security_report | 31-item assessment, score, recommendations |
| verify_security_findings | Re-evaluates the items of get_security_report against the current state and returns one of stillPresent, resolved or inconclusive, with a reason. Use it to confirm that a fix took effect. Items that cannot be measured are never treated as safe and become inconclusive. Omitting checkIds covers all items (up to 50 on Mac and 64 on Linux). Some Mac items depend on in-app setting values. It is read-only and performs no repairs or setting changes. The result includes verificationStatus and rationale, plus counterEvidence and severityChangesIf if the item still applies. |
| audit_mcp_configs | Reads the MCP configuration files of AI clients (Claude Desktop, Cursor and others, plus .mcp.json in registered folders) and flags auto-approval without confirmation, plain-text http://, unpinned npx versions and similar. It is read-only and sends nothing. It returns no values or secrets, only items such as server names. Files that cannot be parsed are listed in unreadableFiles. |
| audit_agent_setup | Reads the instruction files, skills and settings of AI agents (Claude Code, Codex and others), plus VS Code tasks and GitHub Actions in registered folders, and flags text hidden with invisible characters, instructions that fetch and run content as is, overly broad permissions and similar. A match is a place to check, not a verdict of malice. It is read-only, sends nothing and returns no body text or secrets. With format=sarif it returns SARIF 2.1.0. |
| get_detection_coverage | For each MITRE ATT&CK technique used to weaken defenses, erase traces or persist, it returns whether detection is possible (detects / partial / none), what is not visible (blindSpot) and the guard state (liveState). It runs nothing and sends nothing. none does not mean there was no attack, and liveState is not proof that a guard is working. With format=navigator it returns an ATT&CK Navigator layer (4.5). |
| get_exposed_ports | List of externally exposed ports and firewall block status. Local AI runtimes (Ollama, vLLM, and so on) are identified by process name and port, and aiRuntimes carries a confidence level (confirmed / likely). A guess does not raise the risk. The Linux edition does not read response headers. |
| get_guard_status | The current protection level and the running state of each defense module. It also returns the record of what guards could not read (collectors). |
| audit_url_safety | heuristic URL safety analysis (does not fetch the target) |
| audit_secrets | detection of API keys / secrets in text (does not transmit the text). When a directory is given, the optional argument include_build_output (boolean) set to true also reads dist, build and the other published front-end folders that the recursive scan skips (buildOutput is added to the result). |
| audit_security_logs | aggregation of local journald / auth logs |
| get_quarantine_status / get_canary_status | quarantine and canary state |
| get_app_help | search of the built-in knowledge base |
| run_active_vuln_scan | A non-destructive vulnerability check that targets only 127.0.0.1. Because it is a tool that sends network requests, it is disabled by default. On Mac it also lists the side effects of each check (sideEffects in probesRun, such as more than 5 requests to one port). Findings distinguish what was confirmed (confirmed) from cases where only the version is in the affected range (version_range_match). |
| run_package_cve_scan | Checks installed packages (Homebrew / dpkg, dnf, and so on) against the local CVE map. It makes no network connections. If the list cannot be obtained, it sets complete to false. For Ubuntu (20.04 to 26.04), it checks only CVSS 7.0 and above that have a fixed version, so “no match” does not mean there are no CVEs. On Mac, results are ordered by severity and then EPSS (epss). For findings a person has accepted, it returns the count (acceptance); acceptance cannot be done through MCP. |
| run_package_cve_scan_languages | Checks dependency lockfiles for npm, PyPI, crates.io, and others against the same local CVE map. It makes no network connections at all. |
| get_vulnerability_scan_history | Returns, for each probe recorded by scan-vulns --confirm, the number of days elapsed since it was last actually run and confirmed (pass_age_days). |
| verify_fim | Re-hashes 27 fixed critical system files, every file directly inside 19 directories (authentication, cron, systemd, SSH configuration and the like), RoamSwitch’s own binaries, and each user’s authorized_keys, and compares them with the baseline to verify tampering and new files. When run as root, the result also has an added field, recentIntrusionContext: for each recent change, the process that made it (account, executable, command) and the SSH login it belongs to (source, login time, authentication method), or why that could not be found. |
| get_file_scan_guard_status | Returns the settings of the file scan guard (ClamAV) and the state of the quarantine Vault it uses. This tool is for the Server Edition and is not about the client edition's malware guard settings. |
| get_port_anomaly_incidents | Returns the baseline status of the port anomaly guard, the ports currently auto-blocked, and up to the latest 50 incidents. Auto-blocked ports are a current state with no timestamp, and are distinct from the timestamped incident history. This distinction is written in the annotation field of the response. |
| get_ebpf_incidents | Returns the current isolation state of the eBPF runtime guard and the incident history of why it was triggered. On the Server Edition, each record gains the time from detection to action (in milliseconds: detect_to_receive_ms, receive_to_action_ms, detect_to_action_ms), and the state of the Falco heartbeat (heartbeat) is also returned. |
| get_ssh_guard_incidents | Returns the state and records of the SSH brute-force guard. It includes whether it goes as far as banning or only detects, the sources currently banned and the time remaining, and the latest records (up to 200). Attempted usernames are not stored on Linux and only counted; on Mac they are sanitized and returned, up to 5. It is read-only, and there is no MCP tool to lift a ban. Available on Linux with the Server Edition and with the Client Edition when sshd is running, and on Mac with the Pro version. |
| get_resource_guard_incidents | Returns the history of the resource exhaustion and process anomaly detection guard (memory leaks / crash loops), with confidence tiers. This is a Server Edition guard, so on the client edition the result is always empty. |
| get_notification_history | Returns the history of notifications RoamSwitch has sent (security log-audit anomalies, ClickFix detections, and the like) from the past 7 days, most recent first. |
| get_incident_timeline | Combines the detections of each guard into a single timeline (with process lineage and MITRE ATT&CK tags; experimental). Only rows recorded because of another detection carry the ID of the triggering row and the name of the saved evidence bundle (on Linux parent_event_id, root_event_id, evidence_refs; on Mac parentEventID, rootEventID, evidenceRefs). |
| get_honeytoken_status | Returns whether the credential honeytokens are enabled, and the most recent access-detection events. On Linux it also returns where the decoys are placed, the state of the monitoring process, and the latest 50 accesses to the decoys (time, kind, path, suspicious process). If the records cannot be read, eventsReadable is false, and an empty list does not mean “no access”. Other users' home paths are shown only to root and administrators. It does not communicate. |
| get_ransomware_entropy_guard_status | Returns whether generic entropy-based ransomware detection is enabled, and the most recent burst-detection incidents (on Linux, the latest 50: time, pid, process name, affected files, average entropy, and whether the writer was frozen). If the stored file cannot be read, incidentsReadable is false, and an empty list does not mean “nothing detected”. Other users' home paths are shown only to root and administrators. It does not communicate. |
| get_lan_sensor_overview | Returns the picture of the LAN seen by a RoamSwitch Sensor running on the same host: devices, VLANs, the state of the capture and what it cannot see, and threat counts. It only reads the Sensor's local socket, and answers available: false with a reason when there is no Sensor. Strings that come from devices are treated as untrusted data. |
| get_lan_network_threats | Returns the LAN threats known to the Sensor on the same host (rogue DHCP server, rogue IPv6 router, ARP and NDP spoofing, DNS tunneling, weak spots of unmanaged devices and more; narrow it with limit and minSeverity). The list is built from the Sensor's notification history (the last 500 events, kept in memory) and its stored light audits, so it is not a complete log. When part of the LAN cannot be seen, zero threats does not mean nothing is wrong. |
| get_privilege_escalation_paths | Runs the bundled PathScope with fixed arguments and returns the paths by which an account reaches root (number and steps, urgent and high fixes with ATT&CK, and the range that could not be collected). It returns no fix commands and runs none. When complete is false (run without root, or part could not be collected), 0 paths is not "safe". Only root and administrators can name another account in start. If PathScope is absent it returns available: false. |
| get_access_log_report | Runs the bundled AccessScope with fixed arguments and returns a summary of attacks in web server, SSH and authentication logs (risk, the list of detections, masked evidence lines, logs that could not be read). since takes 1 to 90 days such as 24h or 7d, and only logs the calling user can read are covered. When complete is false, 0 detections is not "safe". Log strings can be written by an attacker and are not trusted. If AccessScope is absent it returns available: false. It uses no network and no LLM. |
Active vulnerability verification distinguishes “this check exists” from “this was actually verified recently,” so for every confirmed probe it records the time it was last actually run and confirmed, and shows the days elapsed since then (pass_age_days). There is no scheduled runner yet, so this value reflects only how often the scan has actually been run. The same elapsed-days figure is available from the CLI (roamswitch vuln-status), the GUI, and MCP (get_vulnerability_scan_history), so an operator or auditor can see when something was last actually checked rather than assuming a recent check just because the feature exists.
Results that contain strings anyone outside can rewrite (logs, Wi-Fi names, command lines, etc.) get an "untrusted external data" notice and are truncated in length. If any of 6 kinds are found, such as wording that resembles instructions to an AI or impersonation of tool calls, only the kind and the count are warned about in a separate block, and the text itself is not repeated. Wording disguised with invisible characters and the like is also restored before checking.
This is a supplementary watch; the real defense is that there is not a single tool that changes settings or defenses. The Linux version does not detect substitution with look-alike characters, or languages other than English and Japanese.
On Linux Debian hosts, the package CVE map does not distinguish Debian releases. A Debian 12 or 13 host can be shown a fixed-version number that exists only in Debian 14 (Ubuntu no longer has this problem because it uses its own map).
The MCP server itself opens no network. Only get_sensor_audit_results connects to the daemon's socket; the others either call roamswitch-core directly or only read state files. As an exception, the two tools for Sensor send one read-only request to the Sensor's socket on the same machine. get_privilege_escalation_paths and get_access_log_report run the bundled PathScope and AccessScope with fixed arguments (no network, no LLM).run_active_vuln_scan, disabled by default, sends non-destructive probes to 127.0.0.1, and run_npm_audit_signatures queries the npm registry through npm (the MCP binary has no HTTP / TLS stack). Diagnostic evaluation sends nothing to the LAN.
A misattribution found — and fixed — during a local-LLM fire drill
In September 2026, we had a local LLM (Qwen 3.8 27B) investigate an incident through this MCP server. The model misread the result of get_port_anomaly_incidents and tied a past port block to an ongoing incident. The cause was that the server returned a snapshot with no timestamp and a timestamped history without distinguishing them. After we added an annotation, the same model refused to make that link. We confirmed this with a regression test and a rerun on a real machine.
§9
The only outbound communication RoamSwitch for Linux makes by default is the GET of the daily updater's signed manifest (§11). Everything else is completed locally, and communication by features you explicitly enable is listed in 9.4. The source is not public, so lafine inspects it; the results are in 9.2 and the reproduction steps in Appendix C.
9.1 Audit method
- Crate isolation — Only one crate,
roamswitch-updater, is allowed to use an HTTP client / TLS stack. CI'sscripts/audit_no_network.shfails the build if any other crate pulls in an HTTP / TLS library, or if a.rsfile outside the allowed ones uses sockets. The exception istonic/hyper, allowed only inroamswitch-corefor gRPC to Tetragon over a UNIX domain socket, and its use together with TLS is prohibited. - Dependency tree inspection. Search the whole
Cargo.lockfor telemetry / analytics / crash-reporting SDKs (sentry,opentelemetry, etc.). - Review of
roamswitch-updater. A single request destination, no query strings or cookies, a fixed User-Agent as the only header that identifies the software, and Ed25519 verification of everything it downloads. - Enumeration of subprocess calls. Check every
Command::new(...)call site.
9.2 Results
| Audit item | Result |
|---|---|
| HTTP / TLS stack | Present in roamswitch-updater only (ureq + rustls). Not in core / daemon / app / mcp / kit |
| Telemetry / analytics / crash-reporting SDK | Not present anywhere |
TcpStream / TcpListener / UdpSocket | Only in roamswitch-updater and in the four opt-in-feature files listed in 9.4 |
| Socket APIs in use | AF_UNIX (local IPC) / AF_NETLINK (control of nftables and the like; nothing is sent out) / AF_INET for roamswitch-updater and the opt-in features in 9.4 only / AF_PACKET only when the ARP re-check (§4) sends a single ARP to the gateway (inside the LAN). When the VPN tunnel (§4) is enabled, wg-quick or tailscaled sends traffic to the user's own VPN |
| Daily updater | Two requests per ~24 h: GET https://lafine.net/updates/v1/manifest and its signature manifest.sig (the data files are fetched in addition only when their version is newer). No query string, no cookies, a fixed User-Agent: RoamSwitch-Updater (the only header that names the software), no per-device identifier. All payloads Ed25519-verified. updates.enabled = false disables it entirely |
| VPN tunnel (§4) | Off by default. When enabled, wg-quick builds a WireGuard tunnel to the endpoint in the user’s own .conf — unrelated to lafine. Endpoint hostname resolution via getent ahosts (glibc NSS), not a Rust socket API |
| License activation | Offline Ed25519 signature verification. No communication with an activation server |
RoamSwitch for Linux starts only one kind of outbound communication by default: a daily, receive-only check of a signed manifest, and, when a newer version exists, the download of signed detection data. Neither contains any information about the user or the device. Unless an operator or user explicitly enables or triggers it, no other part of the product communicates with an external server (9.4). Pings sent into the LAN to pin the neighbor table or for ARP monitoring (#2 in 9.3) are limited to loopback, private, link-local and ULA addresses and are never sent to public addresses.
9.3 Complete list of externally-facing operations
This lists every action that may send packets out of the local machine, directly or indirectly. The table below covers what happens by default; what happens only when an operator or user enables or triggers it is listed in 9.4.
| # | Operation | Destination | Trigger | What is sent |
|---|---|---|---|---|
| 1 | Daily updater. Fetches GET /v1/manifest and its signature. Each dataset is fetched only when its version is newer (the kernel, OS-package and language CVE maps are checked once a week; on an Ubuntu machine that does not yet have the Ubuntu CVE map, it is fetched on the next daily run). However, to reflect CVEs newly added to CISA's KEV, if the manifest has a newer version of the OS-package CVE map and the local map was built before the KEV list, it is fetched at the next daily check without waiting 7 days. | lafine.net/updates/v1 (CDN) | systemd timer: first run 15 minutes after boot, then about every 24 h with a random delay of up to 3 h. Off when updates.enabled = false or roamswitch-update.timer is disabled | a plain HTTPS GET: no query string, no cookies, a fixed User-Agent: RoamSwitch-Updater, nothing about the user or the machine. Receives a signed manifest + feed |
| 1a | freshclam (ClamAV’s own updater), invoked by the daily updater when ClamAV is installed | the ClamAV project’s CDN | as part of #1; also when the user presses the “Update Virus Signatures (freshclam)” button in the GUI | traffic of ClamAV itself (a separate project); RoamSwitch only launches it |
| 2 | ping -c 1 -w 1 -W 1 <gateway IP> (the same kind of single ping to the IPv6 router and to the DNS servers on the LAN) | the LAN default gateway; for the ARP/NDP pinning, also the IPv6 default router and each DNS server listed in resolv.conf (/run/systemd/resolve/resolv.conf under systemd-resolved). only those with a loopback, private, link-local or ULA address are pinged. No packet is sent to a public resolver (for example Quad9 from the threat-protection DNS) | for the gateway, only when its MAC is needed (ARP monitoring and the like) and is in none of the ARP cache, the neighbour table or the 15-second in-memory copy (at most once per 8 s per target). For the IPv6 router and DNS servers, when the gateway ARP lock (gateway_arp_lock_enabled, on by default) re-pins the neighbour table (on switching to a non-trusted network and when the setting is toggled) | a single ICMP echo request (with ping’s standard data). No DNS resolution |
| 3 | launching the system browser (xdg-open) | https://roamswitch.com/linux (product site), https://lafine.net/ (operator site, terms, contact) and https://github.com/lafine1211/roamswitch-support (release notes and support) | only when the user clicks a button such as “Open release notes” | the RoamSwitch process opens no socket; it hands the URL to the OS browser |
| 4 | resolvectl dns <iface> … | — (no communication by RoamSwitch itself) | threat-protection DNS on an untrusted network (on by default; can be turned off). <iface> is every physical NIC carrying a default route (wired + wireless at once; lo / tailscale* / wg* / docker* / veth* excluded); also applied on a trusted network when dns_scope = always_on; reconciled every sentinel cycle | it only changes the OS resolver setting; RoamSwitch itself sends no DNS query. Afterwards, name resolution on that NIC goes to the selected threat-protection DNS (Quad9 by default) |
| 5 | package-manager updates | the distro’s apt / dnf / zypper / pacman repositories | when the user runs apt upgrade, etc., or clicks the GUI “Upgrade now” button (which runs apt-get / dnf / zypper / pacman via pkexec) | On apt systems RoamSwitch reads local apt-cache policy output and launches the package manager. On dnf systems it runs dnf check-update (when the Updates tab is opened, among other times), which may query the configured repositories (zypper: zypper list-updates, pacman: pacman -Qu); in every case unrelated to lafine |
| 6 | VPN tunnel (§4) — WireGuard backend: the tunnel wg-quick builds / Tailscale backend: tailscale set --exit-node routes all traffic through the exit node | the user’s own VPN endpoint / tailnet (WireGuard: the endpoint in the .conf; Tailscale: the chosen exit node and DERP relays) | when vpn_on_untrusted_enabled and the network is untrusted. Off by default | encrypted WireGuard / Tailscale traffic; the destination is the user’s own VPN server / tailnet, unrelated to lafine. WireGuard endpoint resolution via getent ahosts (glibc NSS); Tailscale is driven by tailscaled (a separate process) |
All other features (nftables control, ARP/NDP pinning, link guard, port scan, fanotify, USB monitoring, etc.) work with only local file reads and parsing of subprocess output. The destination of the VPN tunnel in §4 is the user's own VPN server, and no data flows to lafine's infrastructure. The destinations of the features in 9.4 are listed in 9.4.
9.4 Operations that reach outside only when opted in or user-triggered
The table in 9.3 describes the default behavior. The items below communicate only when you explicitly enable or operate them. scripts/audit_no_network.sh allows the socket API in only five files, event_forward.rs, webhook_guard.rs, active_vuln_scan.rs, web_vuln_scan.rs and sensor_pairing.rs, and the build fails if it is used anywhere else.webhook_guard.rs resolves the destination name only when you enable a setting that is off by default, and does not connect. TLS and HTTP are left to the system's openssl and curl. The exceptions are two places in tests, both of which connect only to 127.0.0.1.
- Event forwarding (
event_forward.rs): off by default, with no built-in destination; it sends only to destinations the operator has configured. The types are syslog (RFC 5424 or CEF, over UDP/TCP/TLS), JSON Lines files, and webhooks signed with HMAC-SHA256; secrets are not placed on the command line. Only the hostname, event ID, time, type, severity, rule, action, PID, process name and summary are sent; file contents and raw execution logs are not included. Events that did not arrive are stored in a0600queue (default 20 MB / 72 hours) and resent. - Fleet (Business tier, endpoint side only): an unenrolled machine sends nothing and does not even resolve the Fleet hostname. Enrollment happens only when you run
roamswitch fleet enroll, and the management service is not deployed and not shipped.
A machine applies only policies it can verify with the organization's public key pinned at enrollment, and the signing key is held by the customer, not by lafine. There is no remote command path. A policy cannot weaken a local floor, and the stricter value is taken. The only things sent are the app version, OS type, isolation state, policy version, health score (0 to 100), key generation, and the device ID and organization ID. - Sensor pairing (
sensor_pairing.rs): off by default (sensor_pairing_enabled). It only connects directly to the Sensor address the operator entered, and has no built-in destination. It supports TLS 1.3 (the system'sopenssl, with certificate fingerprint pinning), but legacy pairing without a pin falls back to plaintext with a warning. Sensor is a separate product and is outside the scope of this document's Zero Telemetry. - Proof-based vulnerability assessment: disabled by default; opt-in is required. The endpoint edition is limited to probes of
127.0.0.1against listening ports it has observed on the machine itself. The SSRF check sets up a temporary listener on127.0.0.1and only watches whether the target comes to fetch from it. - The GUI's "Check for updates" button: only when pressed, on apt-based systems it fetches
https://lafine.net/apt/dists/stable/main/<arch>/Packagesonce withcurl(4-second timeout; no identifier or query string is added). On dnf, zypper and pacman-based systems, it queries each package manager. - npm signature verification:
roamswitch audit-npm-signatures <DIR> --confirmruns only when the settingnpm_audit_signatures_enabled(default false) is enabled and the user also runs it with--confirm;npmitself then queries registry.npmjs.org.
§10
- No account required. There is no user registration, no login and no entering of an email address.
- Settings are local only. They are stored in plain text in
~/.config/roamswitch/config.jsonand never leave the machine. There is no cloud sync. - Diagnostic results are local only. Security reports and log audit results are only shown on screen and, if the user chooses, exported to a local file.
- License keys are verified offline. Pro / Business license tokens contain an Ed25519 signature and are verified with a public key. No query is sent to lafine's servers.
- No crash reports. Even on a panic, no stack trace is sent out.
- The daily updater sends no user information at all. No query string, no cookie, no per-device or per-install identifier, and the
User-Agentis only the fixedRoamSwitch-Updater. This is a download, not a report. Link guard verdicts, blocked hosts and scan results are recorded only in the local activity view / journald and are not sent. - While threat-protection DNS is in use, DNS queries go to an external resolver. Threat-protection DNS (§4.5; on by default, untrusted networks only) points the OS DNS resolver at Quad9 (
9.9.9.9; Cloudflare1.1.1.2, AdGuard DNS94.140.14.14or CleanBrowsing185.228.168.9can be chosen instead). During that time the queries are sent by the OS, not by RoamSwitch, to that resolver, and RoamSwitch itself sends nothing. Setdns_enabledtofalseto stop it. - Notification history is auto-deleted after 7 days and its length is limited: the history of sent notifications is stored locally, and entries older than 7 days are deleted on every write. A title is truncated to 200 characters and the body to 2000 characters (the desktop notification popup shows up to 1000 characters of the body). This history does not leave the machine unless you enable event forwarding (off by default).
- The execution log is also local only: the process execution recorder's (§5) records are, even by default, stored only on the machine (
/var/lib/roamswitch/exec_log,0600). Because they include command-line arguments, they are deleted automatically by retention period (default 14 days) and size (default 200 MB).
§11
| Edition | For | Price | License |
|---|---|---|---|
| Community Edition | Linux personal and in-house business use (no device limit) | Free | Proprietary freeware (bundled EULA) |
| Business (planned) | Fleet management, policy distribution, signed internal apt, SLA for organizations | Paid | Commercial license. Same binary + tier gate |
When the Business tier becomes available, our policy is to grant macOS Pro Lifetime purchasers the Business features, free of charge, on their own Linux machines. The Business tier is not offered at present, and there is no management server.
Distribution and supply chain
| Channel | Detail |
|---|---|
| APT | https://lafine.net/apt (stable main). Release signed with an RSA-4096 key |
| RPM | https://lafine.net/rpm (separate Fedora / openSUSE). repomd.xml GPG-signed |
| pacman (Arch) | https://lafine.net/archlinux (repository name roamswitch, x86_64 and aarch64; roamswitch-bin, and roamswitch-server-bin for the Server edition). Packages and .db are signed with the same RSA-4096 key as apt and rpm, and pacman verifies them. The AUR is not used because new registrations are closed. Installing from the PKGBUILD with makepkg is also possible. |
| tarball | .tar.gz + .sha256 + .asc (detached signature by the repository signing key) for x86_64 / aarch64 at https://lafine.net/linux/dl/. The source repository is private, so this, not GitHub Releases, is the public download location |
- Fixed glibc floor: release binaries are built inside a Debian 12 (bookworm, glibc 2.36) container, so no symbol-version mismatch occurs on Debian 12 / Ubuntu 22.04 or later. CI has a "glibc floor check" step that fails the build if a dependency above 2.36 gets in.
- Signing key management: the private key for apt/rpm repository signing exists only in GitHub Actions encrypted secrets, and only the public key is committed to the repository.
11.3 The daily updater
roamswitch-updater is a standalone binary run by a systemd timer (roamswitch-update.timer: 15 minutes after boot, then every 24 hours, with a random delay of up to 3 hours). By default it is the only component that reaches an external distribution URL (apart from the opt-in features in 9.4). Each run:
GET https://lafine.net/updates/v1/manifestand its detached signature.- Verify the manifest’s Ed25519 signature with a dedicated threat-feed signing key — separate from the Sparkle app-update key. The feed is re-signed daily by server-side CI, so that private key lives in a CI secret; scoping it to the feed means a leak only lets an attacker serve a bad blocklist (sinkhole / warn — no code path, no app-update path). The app-update signing key never leaves the macOS keychain. A manifest that does not verify is discarded — the updater never falls back to unsigned data.
- The threat feed is fetched whenever its version changes, and installed atomically after verifying its SHA-256 and Ed25519 signature. The CVE map for verified diagnostics and the npm package name list are fetched only when the manifest version is newer. The kernel, OS-package and language CVE maps are fetched about every 7 days. However, when the Ubuntu CVE map (supported Ubuntu versions only) is not yet installed, or when the OS-package CVE map is older than the KEV, it is fetched on the next daily run. Everything is installed only after its signature is verified.
- When the manifest version is newer, the web application detection rules (§5) are fetched too. The SHA-256 and the Ed25519 signature are verified, and the file is also checked to be readable as rules before it is installed atomically. An unreadable file is never installed and the rules in force are not replaced. No new destination is added; it rides on the same manifest fetch. On the Server Edition it follows
cve_kernel_map_updates_enabled: with it off, there is no network contact at all. - If ClamAV is installed, invoke
freshclam. - Record the latest app version for a notification (the updater never installs the app; on Linux the user runs
apt upgrade).
Failures (offline, invalid signature, missing freshclam) are recorded in lastError, and the run always exits with 0, so systemd raises no failure notification. It can be disabled with, for example, systemctl disable --now roamswitch-update.timer, in which case only the bundled data is used. The threat feed is also bundled in the package and is updated by apt upgrade even if the updater is disabled.
§12
- OS: Ubuntu 22.04 / 24.04 and later, Debian 12 and later, Linux Mint / Pop!_OS / elementary / Zorin, Fedora / RHEL family, openSUSE, Arch family (install from the pacman repository; x86_64 and aarch64, Client and Server Edition), Raspberry Pi OS 64-bit (Bookworm), Ubuntu for Raspberry Pi
- Architecture: x86_64 / aarch64
- Required:
systemd,nftables,iproute2(ip neigh, the ARP/NDP lock),conntrackandlibnotify(desktop notifications); everything exceptsystemdis pulled in automatically by the.deb/.rpmdependencies - Optional:
clamav(malware scan),nmcli/iw(Wi-Fi detection),bluez(Bluetooth guard),systemd-resolved(threat-protection DNS),lsof(port detection),nmap(active verification),wireguard-tools/tailscale(VPN, §4),polkit/pkexec(administrative actions from the GUI) - Not supported: non-systemd distros (Alpine / Void / Devuan)
- Display: 1280×720 or larger (the window and font auto-scale to the screen size, supporting small Raspberry Pi displays)
Appendix A
| Crate | Purpose | Network |
|---|---|---|
| serde / serde_json | serialization of config and IPC | none |
| tokio | async runtime (features = ["full"]; by default only Unix sockets are used) | none (no TCP by default; the opt-in Sensor pairing is the exception) |
| tracing / tracing-subscriber | logging (local / journald) | none |
| thiserror / anyhow | error handling | none |
| regex | string parsing (diagnostics, CSS scaling) | none |
| url | URL parsing (audit_url_safety heuristics) | none (does not fetch) |
| chrono | date/time handling | none |
| ed25519-dalek | offline verification of license signatures and of the updater's signed manifest and data such as the threat feed (also used by the opt-in Sensor pairing) | none |
| base64 / sha2 | license tokens, canary hashes | none |
| libc | chown / kill / syscalls | none |
| idna | decoding IDN/punycode hosts for homograph detection | none |
| nfq (daemon only) | NFQUEUE binding for link guard (pure Rust, AF_NETLINK) | none (verdict channel, no egress) |
| open | calls xdg-open to open links such as “Open release notes”, the EULA and the support pages | the process itself does not communicate |
| GTK3 / ksni (app only) | GUI and tray | none |
| serde_yaml | reads /etc/roamswitch/guard.yaml (core) | none |
| toml | parses Cargo.lock / poetry.lock (language package CVE scan, core) | none |
| md-5 | hash for the Link Guard's JA3 fingerprints (not used for authentication or integrity, core) | none |
| bs58 | Base58 check of crypto-asset private keys (secret detection, core) | none |
| rand | generates the device key of the opt-in Sensor pairing (core) | none |
| tonic / tonic-prost / prost / tower / hyper-util | gRPC to the Tetragon sensor; Unix domain socket only, no TLS (core) | none (Unix socket only) |
| flate2 | gzip decompression of the RHEL-family package CVE map (updater only; pure Rust) | none (decompression only) |
| inotify | Watching access to honeytokens (decoy credentials) (roamswitch-honeytokens) and file-rewrite monitoring for ransomware recovery (ransomware-rollback) | none |
| aya | loader of the experimental XDP boot gate (roamswitch-xdp-gate, linked by the daemon) | none (bpf() / netlink only) |
| urlencoding / gdk / gdk-pixbuf / glib / pango | URL decoding in the GUI and the surrounding GTK3 crates (app only) | none |
| qrcode | Computes the QR code matrix shown in the isolation-release confirmation (drawing is done in-house with no image library; app only) | none |
| zeroize | Wipes secret values such as passphrases from memory after use (daemon and app) | none |
| ureq + rustls (roamswitch-updater only) | the daily updater's HTTPS GETs (manifest, signature, and any data that changed) | the only HTTP/TLS stack in the tree; confined to the updater binary |
roamswitch-core, roamswitch-daemon, roamswitch-app, roamswitch-mcp and roamswitchkit contain neither an HTTP client that reaches the internet nor a TLS stack. The tonic / hyper in roamswitch-core are for local gRPC with Tetragon and have no TLS. HTTP / TLS exists only in roamswitch-updater (enforced by CI), and there is no telemetry SDK anywhere.
Appendix B
table inet roamswitch { # Profile firewall (open / balanced / lockdown)
chain input {
type filter hook input priority 0; policy <accept|drop>;
ct state established,related accept
iif "lo" accept
ip protocol icmp accept # open is policy accept with no rules; balanced / lockdown are policy drop (ICMP / ICMPv6 are allowed in balanced only)
}
chain output {
type filter hook output priority 0; policy accept;
}
}
table inet roamswitch { # During Air-Gap the same table is rebuilt: policy drop on input and output, only lo is allowed (established connections are not let through either)
chain input { type filter hook input priority -100; policy drop; iif "lo" accept }
chain output { type filter hook output priority -100; policy drop; oif "lo" accept }
}
table inet roamswitch_linkguard { # §4.5 — independent of the profile table
chain output {
type filter hook output priority 0; policy accept;
udp dport 443 reject with icmpx type port-unreachable # only when block_quic is enabled (off by default)
meta l4proto udp udp dport 53 queue num 92 bypass
meta l4proto tcp tcp dport 53 queue num 92 bypass
meta l4proto tcp tcp dport { 80, 443 } ct state new,established ct original packets 1-14 queue num 92 bypass # only the first 14 packets of each connection are queued for inspection
}
}
table inet roamswitch_dev_guard { # §4 Port anomaly guard / manual port isolation, separate table
chain input {
type filter hook input priority -10; policy accept;
iif != "lo" tcp dport { … } drop
}
}
table inet roamswitch_portscan { # port-scan detection and blocking (on by default)
chain block { type filter hook input priority -200; policy accept; ip saddr @blocked_ips ct state new log … drop }
chain detect { type filter hook input priority -100; policy accept; iifname != "lo" ct state new tcp flags syn log … }
}
table inet roamswitch_sshguard { # §4 SSH brute-force block (only while sshd is running)
set banned4 { type ipv4_addr; flags timeout; }
set banned6 { type ipv6_addr; flags interval, timeout; }
chain block { # drops new connections from a banned source to the SSH ports; also cuts connections it already held by dropping the reply direction
type filter hook input priority -200; policy accept;
ip saddr @banned4 tcp dport { <SSH> } ct state new limit rate 5/minute log …
ip saddr @banned4 tcp dport { <SSH> } ct state new drop
ip6 saddr @banned6 tcp dport { <SSH> } ct state new limit rate 5/minute log …
ip6 saddr @banned6 tcp dport { <SSH> } ct state new drop
ip saddr @banned4 tcp dport { <SSH> } ct direction reply drop
ip6 saddr @banned6 tcp dport { <SSH> } ct direction reply drop
}
}
table inet roamswitch_egress_block { # outbound blocklist of malicious IPs (on by default)
chain output { type filter hook output priority -150; policy accept; ip daddr { … } log … drop }
chain forward { type filter hook forward priority -150; policy accept; ip daddr { … } log … drop }
}
table inet roamswitch_docker_guard { # countermeasure for the Docker published-port firewall bypass (only with Docker's native nftables backend)
chain forward { type filter hook forward priority -10; policy accept; … iifname { … } drop }
}
table inet roamswitch_isolate { # per-process containment after an eBPF detection (by cgroup / UID)
chain process_block { type filter hook output priority -100; policy accept; … drop }
}
table inet roamswitch_vpn { # §4 WireGuard backend kill-switch
chain output {
type filter hook output priority -150; policy drop;
oifname "lo" accept
oifname "roamswitch" accept
meta l4proto { icmp, ipv6-icmp } accept
udp sport 68 udp dport 67 accept # DHCP
ip daddr { <endpoint v4> } udp dport <port> accept
ip6 daddr { <endpoint v6> } udp dport <port> accept
ct state established,related accept
}
chain input { type filter hook input priority -150; policy drop; … } # symmetric
}
table inet roamswitch_ts { # §4 Tailscale backend kill-switch (looser)
chain output {
type filter hook output priority -150; policy drop;
oifname "lo" accept
oifname "tailscale0" accept
meta l4proto { icmp, ipv6-icmp } accept
udp sport 68 udp dport 67 accept # DHCP (v6 side is symmetric too)
ip daddr 100.64.0.0/10 accept # tailnet CGNAT
ip6 daddr fd7a:115c:a1e0::/48 accept
ip daddr 100.100.100.100 udp dport 53 accept # MagicDNS
ip daddr 100.100.100.100 tcp dport 53 accept
udp dport 3478 accept # STUN
udp dport 41641 accept # Direct WireGuard connection
tcp dport 443 accept # DERP fallback
ct state established,related accept
}
chain input { type filter hook input priority -150; policy drop; … } # symmetric
}
The ARP/NDP pinning of the gateway / IPv6 router / DNS resolver (§4) is done in the kernel neighbour table (ip neigh replace … nud permanent), not in nftables. Pinned entries are recorded in /var/lib/roamswitch/arp_lock.json.
Appendix C
Every claim in this document can be verified on your own machine. The commands below run on a host with the roamswitch package installed.
C.1 Outbound Traffic Verification
The daemon / app / MCP binaries link no HTTP / TLS library:
for b in roamswitch-daemon roamswitch-app roamswitch-mcp; do
ldd "$(command -v $b)" | grep -iE 'ssl|crypto|nghttp|curl' && echo " ^ in $b"
done
# → No output. The HTTP/TLS stack is statically linked only into roamswitch-updater.
The running daemon holds no internet socket:
sudo lsof -p "$(pgrep -x roamswitch-daem)" -a -i
# → No output = zero TCP/UDP internet connections
sudo lsof -p "$(pgrep -x roamswitch-daem)" -a -U | grep roamswitch
# → Only /run/roamswitch/roamswitch.sock and events.sock (receives eBPF detection events) (the link guard adds an AF_NETLINK socket,
# but this is a kernel channel, not an internet socket)
The only RoamSwitch-attributable egress is the daily updater:
watch -n 5 'sudo ss -tupn | grep -E "roamswitch-(daem|app|mcp)" || echo "(none)"'
# → Always "(none)". None of these three ever opens an internet socket.
systemctl list-timers roamswitch-update.timer
sudo systemctl start roamswitch-update.service
journalctl -u roamswitch-update.service -n 20 --no-pager
# → Only HTTPS GETs to lafine.net/updates/v1 (manifest, signature, and data that changed), then it exits. If ClamAV is installed, freshclam also contacts the ClamAV mirrors.
Disable it and confirm total silence:
sudo systemctl disable --now roamswitch-update.timer
# or edit /var/lib/roamswitch/updates.json to set "enabled": false
sudo strace -f -e trace=network -p "$(pgrep -x roamswitch-daem)" 2>&1 | grep -i 'connect('
# → Only connects to AF_UNIX / AF_NETLINK. AF_INET / AF_INET6 never appear.
C.2 Reproducible Defense Verification (Docker Test Suite)
Defense mechanisms such as Air-Gap isolation and self-healing can be reproduced with the Docker test suite in roamswitch-support. The suite operates only on isolated namespaces and files inside the container, and does not affect the host's network or files. However, it runs with --privileged, so kernel-wide settings such as Yama's ptrace_scope are also applied to the host, and removing the container does not revert them. Run it in a disposable environment.
# Fetch and reproduce the verification suite (automated verification inside an isolated container, using the official distribution package)
git clone https://github.com/lafine1211/roamswitch-support.git
cd roamswitch-support/test/docker
docker build -t roamswitch-test .
docker run --rm --privileged roamswitch-test
The test container fetches the distributed packages from the official APT repository and verifies them in isolated namespaces. The public suite consists of pentest.sh (7 scenarios, PENT-1 to 7) and selftest.sh (the daemon's destructive self-test). The IDs in the table are serial numbers in the record and do not map one-to-one to the script's checks. The SP-6 to SP-11 series and PENT-8 and 9 are not in the public suite; they were confirmed by other procedures, such as on real machines.
(1) Autonomous Network Defense & Air-Gap Self-Healing
| ID | Scenario | Verification Method | Pass Criterion |
|---|---|---|---|
| SP-3 | Air-Gap enable → egress drop | Send enable_air_gap IPC | policy drop applied to output hook; all outbound traffic blocked |
| SP-3b | Firewall forced purge & self-healing | Purge rules via nft delete table inet roamswitch | Anti-Clobber Self-Healing restores drop rules within 5 seconds |
| SP-3c | Fail-closed across daemon restart | Stop the daemon during Air-Gap (selftest.sh uses kill, i.e. SIGTERM) and restart it | Egress drop policy persists seamlessly across restart |
| SP-3d | Authorized Air-Gap recovery | Send authorized disable_air_gap IPC | Drop policy lifted, all marker files removed, egress restored |
| SP-8 | Preventive ARP/NDP pinning | Enable in isolated netns gateway environment → send spoofed gratuitous ARP | Gateway neigh entry remains PERMANENT; spoofed ARP ignored |
| SP-9 | VPN kill-switch (WireGuard) | Live WireGuard server in separate netns, import .conf → vpn_up | Handshake completes through inet roamswitch_vpn; zero leaks on tunnel death |
| SP-10 | VPN kill-switch (Tailscale) | Stub tailscale CLI + separate netns, tailscale0 IF | Off-tunnel plaintext TCP/80 and local DNS blocked; DERP and MagicDNS allowed |
(2) Kernel & Mount Hardening
| ID | Scenario | Verification Method | Pass Criterion |
|---|---|---|---|
| SP-11a | Network sysctl hardening | Run apply_kernel_sysctl_hardening IPC | rp_filter=1, tcp_syncookies=1, accept_redirects=0 reach target values |
| SP-11b | Memory protection & Yama LSM | Verify ptrace_scope and suid_dumpable | kernel.yama.ptrace_scope=1 (blocks snooping), fs.suid_dumpable=0 (no core dump) |
| SP-11c | /tmp & /dev/shm noexec defense | Run apply_mount_hardening IPC | /tmp and /dev/shm remounted noexec,nosuid,nodev; execution denied |
| SP-11d | Legitimate user execution preserved | Execute scripts in standard home directory (~/) | Runs unimpeded without breaking legitimate developer/admin workflows |
(3) Multi-Layer Malware & Ransomware Defense & Canaries
| ID | Scenario | Verification Method | Pass Criterion |
|---|---|---|---|
| SP-1 | Canary tamper detection | Truncate or rename decoy canary file (.xlsx) in ~/Documents/ | Tamper detected within seconds, triggering immediate Air-Gap |
| SP-2 | Ransomware bulk-encryption burst detection | Single process rapidly generates multiple high-entropy files | Offending worker process frozen with SIGSTOP; Air-Gap triggered |
| SP-2b | No false positive on shred | Run shred -n 3 -u across test files | Allow-list match prevents false-positive detection or freeze |
| SP-2c | Critical processes never frozen | Validate freeze target logic during burst detection | Critical daemons (dockerd, systemd, containerd) are never frozen |
| SP-4 | EICAR test string is notify-only | Write EICAR test string to ~/Downloads/ | No notification, notification-history entry only; file is never auto-quarantined |
| SP-4b | Real malware signature confirm-first | Write real signature outside watched folders | Raises modal approval dialog; quarantined only upon user confirmation |
| SP-4c | Quarantine Vault permission hardening | Inspect permissions of vault directory and sample files | Vault directory set to 0700, quarantined samples set to 0400 |
| SP-4d | Privileged IPC safe original-file restoration | Send restore_quarantine_file IPC | File restored to original path with user permissions (0644) and added to exclusions |
(4) Passive Link Guard & Phishing Defense
| ID | Scenario | Verification Method | Pass Criterion |
|---|---|---|---|
| SP-7 | mode = block hard enforcement | Connect to feed-listed or blocklistExtra hosts | Dropped at TLS layer (SNI parsed); unlisted safe hosts reach HTTP 200 |
| SP-7b | mode = warn fail-closed hold | Connect to warning host with no user response (timeout 8s) | Drops packets upon timeout (fail-closed); allowed only on explicit approval |
| SP-7c | mode = off complete teardown | Disable link guard | inet roamswitch_linkguard table is completely uninstalled |
(5) BadUSB Mitigation & Device Control
| ID | Scenario | Verification Method | Pass Criterion |
|---|---|---|---|
| SP-6 | Connected keyboard grandfathering | Check keyboards attached at daemon startup | Existing devices grandfathered; only subsequent hot-plugs grabbed |
(6) Attack-simulation self-check items (PENT-1 to 7 in the public Docker suite, PENT-8 and 9 from separate manual checks)
| ID | Attack Vector | Simulation Detail | Defense / Detection Criteria |
|---|---|---|---|
| PENT-1 | C2 Exfiltration | Egress HTTP/TCP to C2 attempted under Air-Gap | All packets dropped at netfilter; zero leakage |
| PENT-1b | FW Force Deletion | Purge rules with nft delete table inet roamswitch | Anti-Clobber Self-Healing restores rules within seconds |
| PENT-1c | Air-Gap Safe Restore | Issue authenticated disable_air_gap IPC | Drop rules removed; markers deleted; connectivity restored |
| PENT-2 | /tmp Backdoor | Execute dropped backdoor script in /tmp | Denied by noexec mount protection (Permission denied) |
| PENT-2b | /dev/shm Shared Memory | Execute binary payload placed in /dev/shm | Blocked by noexec mount defense |
| PENT-2c | User Space Preservation | Run script in legitimate user directory (/home/tester/) | Unimpeded execution; zero workflow interruption |
| PENT-3 | ptrace Memory Snooping | PTRACE_ATTACH to target to extract secrets/tokens | Denied by Yama LSM kernel.yama.ptrace_scope=1 |
| PENT-3b | Core Dump Secret Scraping | Trigger process crash to obtain memory core dump | Prevented by fs.suid_dumpable=0 |
| PENT-4 | Canary Tampering | Zero-out canary decoy file in ~/Documents/ | Real-time detection of size anomaly & hash change |
| PENT-4b | Canary Bulk Wiping | Mass deletion of canary decoy files | File disappearance detected immediately, raising incident |
| PENT-5 | IP Address Spoofing | Transmit packets with spoofed source IP | Dropped by rp_filter=1 (reverse path filter) |
| PENT-5b | SYN Flood DoS | Flood half-open TCP connections | State table protected by tcp_syncookies=1 |
| PENT-5c | ICMP Route Hijack | Inject fake ICMP Redirect packets | Ignored due to accept_redirects=0 |
| PENT-6 | Cyrillic Homograph Phishing | Navigate to gооgle.com (Cyrillic homograph) | Identified by LinkGuard, scored 40 (DANGEROUS / block) |
| PENT-6b | Raw IP & Plaintext Traffic | Direct outbound connection to raw IP | Accurately flagged as safety risk factor |
| PENT-7 | OpenAI API Key Leak | Expose sk-proj-... token in code or logs | Detected via Shannon entropy analysis & masked |
| PENT-7b | GitHub Token Leak | Expose ghp_... personal token in code | Matched by token pattern and entropy verification |
| PENT-8 | Kernel LPE (Frag Gap) Preemption | Unprivileged unshare -U -r (CVE-2026-53362 attempt) | In the v1.1.0 measurement, rejected immediately with Operation not permitted by user.max_user_namespaces = 0. The current Client Edition does not deny user namespaces by default (auto_enable_userns_restriction in guard.yaml is off; the Server Edition always applies it) |
| PENT-9 | eBPF Threat Sensor & Process Freeze | Critical/Emergency alert injected via Falco eBPF socket | Process frozen via SIGSTOP within milliseconds (state: Ts); Air-Gap deployed |
Kinds of verification: PENT-2/2b, 3/3b, 5/5b/5c and 8 check that the standard kernel and mount settings are in effect (PENT-8 is not applied by default in the current Client Edition). PENT-1/1b/1c, 4/4b, 6/6b, 7/7b and 9 test our own detection and blocking from the attacker's side. PENT-2c confirms that normal work does not break.
(7) Self-Check Summary (Standalone Hardened vs. eBPF Enhanced)
These are self-check results from an isolated Docker environment (Ubuntu 24.04 + Client Edition, attacked with Nmap / curl / hping3 and others). The table is the measurement of Client v1.1.0 on 2026-09-06. On 2026-09-25, an unreleased fixed build of the 1.10 series passed 11 of 11 items (audit/RESULTS-PENTEST-2026-09-25.ja.md).
| Verification Category | Without Falco (Standalone Hardened) | With Falco (eBPF Enhanced) | Defense Verdict |
|---|---|---|---|
| External Port Scan Resistance (Nmap SYN) | PASS (100% Filtered / DROP in Lockdown) | PASS (100% Filtered / DROP in Lockdown) | Total External Stealth |
| External Direct Access Cutoff (TCP/80, 3306) | PASS (Timeout drop / zero response) | PASS (Timeout drop / zero response) | Zero Inbound Exposure |
| Kernel LPE (Frag Gap) Mitigation | PASS (v1.1.0 measurement; unshare blocked where user.max_user_namespaces = 0 is set. Off by default in the current Client Edition) | PASS (eBPF alert + SIGSTOP freeze + Air-Gap) | Defense-in-Depth Verified |
| Unauthorized Port Detection (Anomaly) | PASS (0.0.0.0 bind flagged HIGH risk) | PASS (0.0.0.0 bind flagged HIGH risk) | 100% Detected & Guided |
| Log Bloat & CPU Overhead Prevention | Zero log footprint (uninstalled) | PASS (95% noise cut / 2MB buffer / 50MB cap) | Desktop Optimized |
C.3 Known limitations
| Limitation | Impact | Mitigation |
|---|---|---|
On some kernels, FAN_MARK_MOUNT on tmpfs (/tmp) delivers no events | file writes under /tmp are not monitored by fanotify | /tmp is ephemeral and not a monitored user folder; ransomware targets ~/. Mark failures are logged explicitly |
| No fanotify delivery on container overlayfs / tmpfs | in-container entropy-burst detection cannot be validated | validated on real hardware (ext4); the harness auto-SKIPs via a probe |
RoamSwitch’s nftables operations share the netfilter space with Docker’s iptables-nft | RoamSwitch rule operations can interfere with Docker’s NAT rules | it is isolated in dedicated tables (inet roamswitch and the other roamswitch_* tables), but global operations such as nft flush ruleset should be avoided |
| The link guard sees a browser’s DoH only via TLS SNI; Encrypted Client Hello (ECH) hides that too | once ECH is widely deployed, an ECH-using connection to an ECH-supporting site is not identifiable by hostname | the local blocklist and heuristics still act on DNS/HTTP and non-ECH TLS; DNS threat protection (§4.5, on by default) covers the resolver path |
The daily updater's freshness depends on the release cadence when enabled is false in updates.json | with updates off, the feed is only as current as the last apt upgrade | the highest-severity detections (brand homograph) need no feed; opt back in, or enable threat-protection DNS, for always-current coverage |