ROAMSWITCH FOR LINUX · Last updated: 2026-11-18

RoamSwitch for Linux Manual

This guide covers the desktop edition of RoamSwitch (tray icon + main window), walking through the tray menu and every tab of the main window in the exact order they appear. It assumes a GTK desktop environment (GNOME, KDE, XFCE, etc). For running a headless server, see the Server Edition Operations Manual.

1. About this manual

RoamSwitch for Linux is an app with a 🛡️ icon that stays resident in the desktop system tray (notification area). Click the tray icon to open a menu. From there you can open the main window for more detailed settings.

There are two entry points
RoamSwitch has two entry points: the tray menu (quick actions you reach for often, Chapter 2) and the main window (a detailed settings screen with 19 tabs in the left sidebar, Chapter 4 onward). Use the tray menu when you want to act quickly, and the main window when you want to dig into the settings properly.

RoamSwitch for Linux (Community Edition) is free and includes every feature. No license key or activation is needed.

When you are stuck, or a message you do not recognize or a warning arrives, you can paste its text into an AI that has MCP installed and ask. The AI searches the official explanations of RoamSwitch and answers with the meaning and what to do, in the display language. For the setup, see MCP setup.

2. Tray menu

This is the menu that opens when you click the tray icon. Here it is from top to bottom.

ItemDescription
Status lineShows your current protection status (e.g. "🔒 Maximum lockdown [level]"). Click it to open the main window.
🚨 Release Air-Gap & Restore Network ConditionalOnly appears while your network is under emergency isolation (Air-Gap) due to a serious detected threat. Release it manually once you've confirmed it's safe.
📶 Wi-Fi / wired connection statusShows the currently connected network name and security type, or the wired connection state (informational only, not clickable).
Restore radio ConditionalShown only when wireless features such as Wi-Fi and Bluetooth are blocked for protection. You can restore them manually from here.
Apply Maximum lockdown / Standard protection (Balanced) / Trusted Mode (Open) nowImmediately applies one of the three security levels to the current network with a single click. Maximum lockdown is the strictest setting and Trusted Mode (Open) is the most lenient.
Return to automatic mode / clear overrideStops using a manually pinned level and returns to automatic detection based on your network.
Duration submenuChoose how long a manually applied level should stay in effect: until next disconnect, 1 hour, 2 hours, 4 hours, for today, or until manually cleared — six options in total.
DNS submenuTurns DNS threat protection on or off and lets you choose the secure DNS provider from 4: Quad9, Cloudflare Security, AdGuard DNS and CleanBrowsing.
Recovery submenuIncludes “Emergency network recovery” (forced recovery when communication is no longer possible) and “Uninstall”.
Settings preset: Shows the preset in effect (after a setting is changed by hand it reads "Custom (close to X)"). Clicking it opens the "Settings preset" card on the diagnosis tab of the main window (chapter 31). It is separate from the network protection level.
Launch at loginSwitches whether RoamSwitch starts automatically each time you log in to the OS. We recommend leaving it on for constant protection.
Language submenuSwitches the tray menu's display language. Besides "Match system language," there are 10 options total: Japanese, English, Simplified Chinese, Traditional Chinese, Korean, French, German, Spanish, Italian, and Portuguese.
Open main windowOpens the detailed settings screen covered from Chapter 3 onward.
QuitQuits RoamSwitch. Automatic protection stops working while it's quit.

Operation

  1. Switch the protection level right now: Click the tray icon, then click Maximum lockdown, Standard protection (Balanced), or Trusted Mode (Open). From the duration list that appears next (until next disconnect / 1 hour / 2 hours / 4 hours / for today / until manually cleared), click how long you want it to stay in effect.
  2. Return to automatic mode: Click the tray icon → "Return to automatic mode."
  3. Switch the secure DNS provider: Click the tray icon, hover over the DNS submenu, and click the provider you want to use.
  4. If you lose connectivity: Click the tray icon → Recovery submenu → "Emergency Network Recovery."
  5. Change the display language: Click the tray icon → Language submenu, and click the language you want.

On smaller screens or with high DPI scaling, the Maximum lockdown / Standard protection (Balanced) / Trusted Mode (Open) items may be grouped together into a single "Security Level" submenu instead (the content is the same either way).

3. Opening the main window

You can open the main window either from "Open main window" in the tray menu, or by clicking the status line. Unlike the Mac version, where each feature opens its own separate window, everything here lives in one large window with 19 tabs (sections) you switch between using the left sidebar. The chapters that follow walk through those tabs in exactly the order they appear in the sidebar.

4. 🌐 Network Management

This is the top tab in the sidebar. Register the network you are on and manage the registered networks in a list.

CardDescription
Currently connected networkShows the current network name and a “Register” button. If the network is already registered, it shows the current security level.
Manually switch security policyThe same feature as the Mac version's "Manual Override": temporarily ignores automatic detection and pins a chosen level.
Automatic sharing-service controlWhile you are on an untrusted network, services such as file sharing are disabled automatically.
Registered networks listLists and lets you edit every network you've registered so far, along with each one's security level.

Operation

  1. Register the current network: Click "Register" on the "Currently connected network" card, choose a name and security level, then click "Save."
  2. Edit or delete a registered network: In the "Registered networks" list, select the row and use the pencil icon to edit or the trash icon to delete.
  3. Pin a level temporarily: On the "Manually switch security policy" card, choose a level and duration, then click "Apply."

5. 📊 Security Diagnostic Suite

This is a comprehensive diagnostic tab that scores the security settings of a Linux machine. The score and title are at the top, and below them the pass/fail result for each check item. It corresponds to "Mac Security Comprehensive Diagnostic" on the Mac version. Open it regularly and check that no red or yellow items remain. The title, the details and the recommendation (command) of each item can be selected and copied.

For "LLMNR, NBNS and mDNS responses", answering LLMNR (UDP 5355) or NBNS (UDP 137) fails the check, and mDNS (UDP 5353) is display only. "/tmp & /dev/shm noexec defense & fileless monitoring" also checks whether the files of programs running from /tmp, /home and elsewhere have been deleted.

This is a check at the time of the diagnosis. To see all users, use sudo roamswitch status. If any are found, up to 3 are shown. When RoamSwitch is installed and its dependency (Recommends) systemd-resolved comes with it and answers LLMNR, the first install (not updates) puts LLMNR=no in /etc/systemd/resolved.conf.d/roamswitch-llmnr.conf if no setting exists (2.6.7; an update never touches a person's settings, and deleting that file and restarting resolved undoes it).

Tailscale (tailnet) exposure
Reads tailscale debug prefs (only ShieldsUp, AdvertiseRoutes and RunSSH are kept), tailscale status --json and /proc/net/tcp, and looks at the names of running processes. It changes no setting and sends nothing. It fails when shields-up is off, the firewall is not dropping inbound traffic and a dangerous port (22, 445, 3306, 5432, 6379 and others) is listening where the tailnet can reach it. It also fails when ngrok or cloudflared runs next to Tailscale. An exit node or subnet routes are shown only. With no Tailscale running the item does not apply, and when the settings cannot be read it says it could not be checked. To block inbound traffic run sudo tailscale set --shields-up. The tailnet ACL cannot be read.

Steps To the right of the red and yellow items there are action buttons. Click one, and in many cases the problem is fixed on the spot and the score is updated automatically.

Once an hour, at the lowest priority and without network access, the daemon runs this diagnosis and keeps the results of the items it could judge in a history (finding_history_enabled, on by default; change it in config.json). MCP verify_security_findings uses this history to tell "fixed" from "did not apply from the start".

At the top of the diagnosis tab (just under the score) is the "Settings preset" card. It lets you choose the protection and resident-load settings as a group: Light, Balanced, Standard security or Maximum security (chapter 31).

The score is counted against the "Maximum security" settings preset as the ideal. A protection that the presets switch counts as passed when it is on and as failed when it is off, and a protection that an existing item already checks is not counted twice. The last item, "Gap to the preset" (the 34th), is not part of the score; it lists the difference from the selected preset. A lower score with a lighter preset is the correct behavior.

The "Protection status" card in the diagnostic tab shows whether the protections you turned on are actually working. For those that are not, it gives the feature name and role, the place (setting key, screen, command to look), since when and what is happening, what is not being seen, and steps that include the actual commands. You can also see the state of the 27 guards. The same sentences are used by roamswitch guards, roamswitch doctor, roamswitch status --server, notifications, the Server screen and the diagnosis report. It changes nothing and does not communicate. It refreshes about every 15 seconds.

Highly exploitable vulnerabilities (installed software) (package_cve_exposure). It matches the installed software against the machine's vulnerability data and checks whether anything in KEV or with EPSS 0.9 or higher remains unfixed. Besides OS packages, it also judges Node.js, PHP and GitLab outside package management. It does not communicate.

EPSS is a probability estimate, not a confirmation of exploitation. In the hourly diagnosis, it shows one desktop notification when something newly fails, when there is a new KEV mark, or when the same finding persists for 24 hours. Setting finding_history_enabled=false also stops the notifications.

6. 🚪 Ports & DevIsolator

This is the tab with the most content. It groups the features related to the network perimeter, such as protection against exposed development-server ports, ARP anomaly detection, Sensor pairing and vulnerability scanning.

CardDescription
Exposed ports & dev server isolationLists the ports reachable from outside (such as development servers left running) and manages isolation and blocking. A port that was blocked automatically has its block lifted automatically once it goes back to listening only on 127.0.0.1 (ports blocked manually are not lifted).
Port & ARP anomaly auto-containmentSettings for automatically containing traffic when ARP spoofing or a suspicious port scan is detected.
Paired SensorsLists devices already linked with the separate "RoamSwitch Sensor" product.
Pair manually with a pairing codeEnter a pairing code issued by a Sensor to link a new one.
Sensor audit resultsReview diagnostic results reported by paired Sensors.
Proof-based vulnerability scan statusShows the result of a vulnerability scan that checks whether the open ports can actually be reached. It sends one GET each to 7 paths such as /admin and /actuator/env on the development server (127.0.0.1) without authentication, and reports only when data is returned with 200 (login screens and redirects are excluded). It does not log in, guess, or fuzz, and its side effects are traces in the logs and a large number of requests. It is meant to find apps that do not check authorization on the server side. nmap findings are not marked “Proven: reachable without authentication”.
Let incoming connections over Tailscale through in Standard protectionStandard protection drops incoming connections that you did not start and also stops remote-access services such as SSH. With this on, only connections that arrive on the Tailscale interface (tailscale0) are let in, and those services (SSH and the like) keep running, so you can reach this host from another of your devices. The local network cannot reach them. Who can reach this host over Tailscale is decided by your tailnet's authentication and ACLs. Maximum Lockdown and Air-Gap stay closed either way. It is off by default, and a confirmation appears only when you turn it on. If tailscaled uses another interface name (--tun), this setting does not let those connections through.

Operation

  1. Isolate a development server's port: On the "Exposed ports & dev server isolation" card, select the port and click "Isolate" or "Block."
  2. Pair a Sensor: On the "Pair manually with a pairing code" card, enter the code issued by the Sensor and click "Link."

7. 🔌 USB & BadUSB Guard

CardDescription
USB / BadUSB defenseSwitches on or off the protection against "BadUSB" attacks, in which a device posing as a USB drive acts as a keyboard and performs unauthorized operations.
Connected USB & HID devicesLists currently connected USB devices, keyboards, mice, and similar hardware.
Allowed USB devices (allowlist)Register the devices you have confirmed as safe, and only connections from other, unknown devices trigger a warning.

Operation

  1. Click the switch on the "USB / BadUSB defense" card to enable it.
  2. From the "Connected USB & HID devices" list, select any device you'll keep using and click "Add to allowlist."

In Maximum lockdown: even when the USB guard is off, unapproved USB drives and keyboards are held and approval is requested; when unplugged, the USB drive is authorized. The allow list (allowed_usb_devices) is matched by model ID (vendor:product) and a device fingerprint. Mounted USB drives get a read-only ClamAV scan, and a detection is reported as critical (nothing is deleted or ejected; usb_mount_scan_enabled, on by default). Right after installation (until the first-time setup is finished: config.json does not exist yet, or onboarding_completed is false) this is not enforced; it is like Balanced and your own settings apply.

8. 🦠 Malware & Quarantine

Brings together ClamAV antivirus protection and Linux-specific low-level defenses: fanotify, entropy analysis, YARA rules, and no-exec enforcement.

CardDescription
ClamAV definitions & engine statusCheck when virus definitions were last updated and whether the engine is running.
Linux low-level advanced defenseConfigures fanotify (real-time inspection the moment a file is accessed), entropy analysis (detecting ransomware-style encryption behavior), YARA rule matching, and enforced no-exec attributes, all in one place. When a ransomware-like burst of writes is detected, the network is cut off (Air-Gap) and you are notified. The process is not frozen (since 2.7.0). While the Air-Gap is on, traffic that this machine forwards for others (Docker containers, virtual machines, a Tailscale subnet router or exit node, connection sharing) is stopped as well.
ClamAV on-demand scanManually scan a chosen folder right now.
Quarantine vaultRestore or permanently delete files that were quarantined after being flagged as malware.
Watched folders (web & email protection)Sets the folders (such as the Downloads folder) that are scanned automatically every time a new file appears. By default the home folder's Downloads and Desktop are watched. Folders that xdg-user-dirs named in your language (such as ダウンロード and デスクトップ on a Japanese system, as set in ~/.config/user-dirs.dirs) are watched the same way. The decoy files are placed in the folders under their English names and under those names.
Scan exclusionsSpecify folders, like development directories, that should be excluded from scanning. These folders are also left out of ransomware encryption-burst detection. If the cache of a browser or an app was detected by mistake, "False positive: exclude and release" in the warning dialog adds its folder here.
Suspicious autostart notificationChecks newly created or rewritten autostart entries (systemd, cron, desktop autostart, shell start-up files, SSH rc, rc.local and init.d, motd, udev, apt hooks, NetworkManager dispatcher, modprobe, git hooks) and notifies only about those that look like how malware persists (on by default, notify-only).
Credential file read notificationNotifies when an unexpected program opens SSH private keys, ~/.aws, browser-stored files, AI agent or GitHub CLI credentials, ~/.git-credentials and the like (on by default, notify only). The agent itself, backup tools and indexers are excluded, and others can be excluded with credential_access_watch_allow. It does not stop anything, and does not place decoys at the real file locations. It does not watch files that each tool opens every time, such as ~/.kube/config.
Reverse shell notificationNotifies when the input and output of a shell or interpreter lead to a connection to an external address (TCP, or connected UDP) (on by default, notify only). It checks every 2 seconds and reports only what it finds twice in a row. Private addresses are examined only when reverse_shell_watch_include_private is set to true, and exclusions are written in reverse_shell_watch_allow. A form where an interactive shell is tied to a connection such as ssh or nc gets a weak warning. Connections going through a relay and short connections are not seen, and nothing is stopped. It also notifies of a program that is neither an interpreter nor a known tool, runs from /tmp, /var/tmp, /dev/shm or a hidden folder of a home directory, has an outbound connection, does not listen, and has a shell on its own pty as a child (a weak warning; nothing is isolated; editors' remote servers and AppImages are left out).
Process-name disguise noticeNotifies once when it has seen twice in a row a process whose command line begins with a kernel thread's name such as [kworker/0:2] yet which has no kernel mark and has an executable (on by default, notify only; every 15 seconds). Switch it in the settings screen or with the key process_masquerade_watch_enabled of config.json. It judges by behaviour, not by a tool's name, and stops nothing.
Network setting change notificationReads DHCP lease information every minute and notifies once when a new DHCP server, gateway or DNS server appears on a network it knows. It also notifies when a new PAC or WPAD appears in Firefox, KDE or NetworkManager settings, /etc/environment and the like (on by default, notify only). At first it only records, and the baseline is saved in /var/lib/roamswitch/netconf_baseline.json. Expected ones can be excluded with netconf_watch_trusted. DHCPv6, router advertisements, GNOME proxy settings and the like are not seen.
Lowering trust by device stateEven on a “Trusted (Open)” network, while there has been a serious detection (high or above, not closed by a person) in the last 6 hours, it runs at Standard Protection (firewall enabled). It does not isolate, block or switch to Maximum lockdown, and does not change anything during a manual override or Air-Gap. It reviews about every 30 seconds and notifies when it lowers and when it restores. Acknowledge with the card button or sudo roamswitch posture ack, and change the duration with device_posture_window_hours (1 to 72, default 6). If “Automatic shared-service control” is on, shared services are also stopped during Standard Protection. Not available in the server edition.
Notification when a new kernel module is loadedNotifies when a .ko that is not on the list of known modules is loaded with insmod (on by default, notification only). The notification shows the command that loaded it (insmod or modprobe), and a late depmod does not cause a false notice. Exclusions go in kernel_module_watch_allow or in sudo roamswitch server allowlist add kernel_module_watch <module name> <reason> (no expiry; allowlist remove brings them back).
Executable memory scan (history only)Every 10 minutes it reads /proc/<pid>/maps of every process and looks for executable memory that has no file behind it (off by default). It finds an unnamed region that is writable and executable (rwx), an unnamed executable region, an executable region of a memfd, and an executable region of a deleted file. It reads only the text of the region list, never the contents of the memory. The result is not a notification; it is recorded only in the notification history. JIT runtimes (Java, Node.js, PHP, .NET), Python's ctypes and GLib make the same regions, and the look of a region alone cannot tell normal from malicious. The programs found in one pass are put into one entry, recorded once per program and kind. Nothing is stopped. It runs when you set maps_scan_enabled in config.json to true (it follows the change within about 30 seconds), and no settings preset includes it. To keep a program out of the record, use sudo roamswitch server allowlist add proc_maps_exec <process name> --exe <absolute path of the executable> <reason> (no expiry; remove brings it back).
Log tampering noticeEvery 30 seconds, checks the authentication, system and audit logs, the package manager logs, wtmp, btmp and lastlog, and the shell history of root and of the accounts people log in as, and notifies about one that is emptied, removed, replaced by another file, or (the first 256 MiB of wtmp and btmp) rewritten. Notify only; nothing is stopped. A shell history is reported only when it shrinks to less than half, is removed, or is replaced by a link (a shell rewrites its history when it ends, so a small shrink is not reported). The baseline is kept in /var/lib/roamswitch/log_tamper_baseline.json, so a change made while the daemon was stopped is seen at the next start. Changes apply within about 30 seconds. The switch on this screen, or log_tamper_watch_enabled in config.json (on by default), turns it on or off. Every preset keeps it on.

The detection of persistence (autostart entries), network settings and reverse shells scans right after a file changes or a shell starts. The timed scan stays as a backstop for anything missed.

Operation

  1. Scan right now: On the "ClamAV on-demand scan" card, choose a folder and click "Start Scan."
  2. Handle quarantined files: On the "Quarantine vault" card, select a file from the list and click "Restore" or "Delete permanently."
  3. Add a watched folder: On the "Watched folders" card, click "Add folder," choose somewhere like your Downloads folder, and click "Save."

Searches the working copy's .git/hooks up to 6 levels below the home directory (up to 12 with git_hook_scan_depth). It also looks at hidden folders such as ~/.config, submodules, worktrees, and the target of core.hooksPath. It notifies only when a suspicious line, such as download-and-run or a reverse shell, is newly added.

9. 🛡️ DNS Threat Guard

Blocks name resolution to phishing sites and malware command servers (C2) at the DNS level. Choose a provider (such as Quad9) from the dropdown, and set the networks it applies to under “Scope”. It is linked to the DNS submenu of the tray menu (chapter 2). After the provider is set, it checks through the system's name resolution that a name can really be resolved, and on a network where it cannot, it goes back to the DNS the network hands out at once (on a network that cannot be reached, name resolution may stop for a few seconds between setting and going back). The status screen then shows the cause and what to do. On an old systemd (such as 239 in RHEL 8) that cannot do this check, the provider is not set.

The reachability check runs right after the provider is set, 1 minute later, 5 minutes later, and then every 10 minutes (each with a spread of 20%). It resolves a random name that does not exist (rs-<random>.example.com) through the system's name resolution, and an answer of “not found” (NXDOMAIN) counts as reached. RoamSwitch itself opens no socket. If the name cannot be resolved, it goes back to the DNS the network hands out. After going back, it checks again at doubling intervals starting at 2 minutes (up to 1 hour, with a spread of 25%) and sets the provider again once it is reachable. When the network changes, it checks at once. There are two notifications: when it went back (that the original DNS is in use and malicious-site blocking is not working on this network, what to do, and why), and when it became reachable and the provider was set again. Each comes at most once a day for the same network (the two have separate slots; another network has its own once a day), counted for 24 hours from the time it was sent. Even when a notification is suppressed, every case is recorded in the notification history (chapter 13). The status screen (roamswitch status and the app) shows the state every time. Blocking of malicious domains works on networks that reach the provider's servers. As before, the setting is plain DNS (port 53); DNS over TLS and DNS over HTTPS are not used.

Operation After turning the toggle on, choose a provider from the "Secure DNS Provider" dropdown, then set "Enforcement Scope" to control which networks it applies to.

10. 🔒 VPN Tunnel

Encrypts your traffic through a VPN on untrusted networks. The status card shows your current connection state, and the configuration card manages your connections (such as importing a WireGuard configuration). Like section 11.2 in the Mac manual, this protects against eavesdropping and tampering when you're on a network you don't trust.

Operation

  1. Under the configuration card's "Backend," choose WireGuard or Tailscale.
  2. For WireGuard, choose a .conf file from "Import config file". For Tailscale, authenticate your account in the browser from "Log in".
  3. Once configured, click "Connect." The VPN is active once the status card shows "Connected."

11. 🔑 Secret & API Key Audit

An audit tool that checks whether confidential information such as API keys, passwords and tokens is left in plain text in your home directory and configuration files. It helps prevent the accident of carelessly leaving secrets in repositories or configuration files.

Operation Click "Start Scan" to begin the audit. When it finishes, the detected items (file path and type) are listed.

12. 📜 Security Log Audit

A tab for auditing and browsing security-related logs recorded by RoamSwitch and your Linux system. Lets you trace what was detected and how it was handled, in chronological order.

The log audit reads journald and other logs and finds lines that are new on this machine or far more frequent than usual (on by default; only the Light preset turns it off). The interval is log_audit_interval_secs: 1800 seconds by default, and 900 seconds in Standard and Maximum security. A notification is made only for what a fixed rule (no LLM) can put into one of these 6 kinds: authentication failures, privilege escalation, kernel warnings, abnormal service exits, disk faults, and denials or detections by security features (AppArmor, SELinux, auditd, ClamAV). There is one notification per kind, written in this order: the conclusion, what to do, clues to the cause (the unit or program the lines came from, the number of lines, when it was first seen, the past average for this kind, the package work just before) and a journalctl command to check. The urgency of the desktop notification is critical for authentication failures with 6 or more lines or a “possible break-in” line, and for adding an account to an admin group; the rest are normal.

An anomaly that is only statistical is not notified. A new pattern or a rise in frequency that fits none of the kinds is kept as a single entry in the notification history (chapter 13), “Log audit: N unclassified new patterns”, with the count and three raw log examples. There is no pop-up. A notice the reader cannot judge makes people skip the notices that really matter. The same event is not notified twice: a FOUND line in the clamd journal for a signature that RoamSwitch's own ClamAV detection has already reported goes to the history only. A kind with normal urgency that is made only of lines first seen on this machine, within 7 days of the baseline file being created or right after package management ran, also goes to the history only. The first pass right after start-up notifies the kinds it could classify as well.

13. 🔔 Notifications

A history of notifications RoamSwitch has shown over the past 7 days. Handy for checking back on a tray notification you might have missed.

This is a record of the notifications that were sent. It does not show whether they arrived.

For protections that are not working, the desktop notification is a short sentence with only the count and names. The full text, with the reason and what to do, stays in this notification history (because the notification server truncates long bodies; Server edition notifications are shown in full). At the top of this screen is a card for releasing frozen processes. The notification points to where to check: in the desktop edition, the screen (Comprehensive Security Check › Protection status); in the Server edition, the command roamswitch status --server.

A notification can carry action buttons (-A of notify-send). The buttons now in use are “Allow” on the port anomaly notification (TCP) and “Stop notices from this program” on the periodic-connection notification (at most 3 on one notification). The result of a press is recorded in the notification history as a confirmation notice. A button works for 10 minutes, and at most 20 presses a day are accepted. Buttons appear only when the notification server supports action buttons and notify-send knows --action. Otherwise (an old libnotify notify-send, or a notification server without actions) or when 8 notifications are already waiting for a press, the notification comes without buttons and its text says what to do by hand. When it was shown with buttons, a line such as “Notification button: Allow” is added to the text in the notification history. The text kept in the history is limited to 2000 characters. How it looks and behaves on real GNOME and KDE desktops has not been checked.

14. 🕒 Incident Timeline

Lets you review security events — detection, response, resolution — together in chronological order (an experimental feature). Useful when you want the big picture of what happened, rather than tracking down individual log entries.

A detection that is only recorded, such as a decoy being read, has no way to be closed. It stays unresolved in the incident timeline. Once you have checked it, sudo roamswitch incidents (run as root) can mark it acknowledged and take it off the list of detections waiting for a check. list [--open|--acked|--all] [--json] prints the detections with their identifiers, ack <id>... [--reason text] acknowledges them, unack <id>... puts them back and verify checks the chain of the record. ack --all-matching <kind> [--subject target] acknowledges one kind together, and ack --all acknowledges everything (it asks for confirmation unless --yes is given). Acknowledging a critical detection needs --reason. A reason must be at least 3 characters; its content is not checked. Acknowledging does not weaken detection. The detection, the incident timeline (history and chain) and the notifications already sent all stay as they are; the detection only leaves the waiting list of incidents list. A detection of the same kind after the acknowledgement appears as a new one, and so does one you put back with unack. The acknowledgements are kept in /var/lib/roamswitch/incident_acks.jsonl (owned by root, 0600, append-only), with who, when, what and why, each line chained to the one before by its hash. A record that is broken is not treated as an acknowledgement.

Limits: the chain of the record has no key, and root can rewrite the record. Acknowledging is a tool for the operator to tidy the list; it is not a defence against tampering. The incident timeline keeps only the newest 200 events. Of the detections pushed out by that limit, those that were neither acknowledged nor released are kept, append-only, in /var/lib/roamswitch/incident_timeline_open.jsonl (the newest 2,000, read up to 90 days back). incidents list reads both. The number lost beyond even that is written in incidents list. roamswitch timeline and MCP read only the timeline itself.

15. 🔎 Security Activity Log

This is a tab for searching and visualizing, all in one place, what RoamSwitch has detected, notified and responded to so far. It combines the contents of "Incident Timeline" in chapter 14 and "Notifications" in chapter 13 into one view, and you can narrow it down by period, category, severity and keyword. "Security Log Audit" in chapter 12 is a tab that audits OS-side logs such as journald, and is separate from this one.

Steps Narrow down with the dropdowns for period, category and severity and the keyword search box. You can also click a time slot on the bar chart at the top of the screen to narrow the list to the events in that slot. To clear it, click the "Clear filter" button.

16. 🔗 Link Safety Audit

The tab for the link protection settings and a manual check tool where you paste one URL and check it on the spot. It corresponds to sections 9.5 and 9.6 of the Mac edition.

Operation To check a URL on the spot, paste it into the "Manual Check" card's input field and click "Check." A safety verdict appears within a few seconds.

DNS queries and connections to external diagnostic servers (interact.sh, oast.pro, oast.live, oast.site, oast.online, oast.fun, oast.me, burpcollaborator.net, oastify.com, dnslog.cn, ceye.io and their subdomains) are reported without being blocked (not held even in warn mode). These are where diagnostic tools check whether an attack succeeded; ordinary apps almost never use them. One notification per host, hosts on the allow list are excluded, and the process is not identified.

Check a link before it opens A link clicked in any app (a mail program, a PDF viewer, a chat) is checked with the whole URL, the path and the query too, before the browser opens it. Only a suspicious link shows a window first; the others go straight to the browser that was the default. It does not read the text of a mail, and a link that an app opens in its own embedded browser, or where a redirect leads, is not seen. Turning it on makes the RoamSwitch link check the default web browser; turning it off puts the earlier one back.

It is off by default. Turn it on with the switch on the "Check a link before it opens" card in this tab, or with roamswitch open-url enable. roamswitch open-url disable puts the earlier browser back, and roamswitch open-url status shows the state. The earlier default browser is kept in ~/.config/roamswitch/open_url_previous.json.

It uses the same analysis as the manual check above (the threat feed this machine holds, brand look-alike characters (homographs), disguised subdomains, high-risk TLDs, user information in the URL, an IP address as the host, and so on). Unlike link protection, which sees only the domain at the moment of connection, it looks at the whole URL. The verdict is made on this machine, by reading files only. It does not communicate, and it does not follow redirects.

The default answer in the window is "Do not open". Enter, closing the window and Escape all mean "Do not open". Only when you choose "Open" is the link passed on to the earlier browser. When the window cannot be shown (there is no display, or roamswitch-app is not installed), a link that would only be warned about is opened, and a link that would be blocked is not.

If the default browser is changed back to another one, this check stops. Because roamswitch-open-url.desktop has NoDisplay=true, it may not appear in the desktop's list of default applications. The way to turn it on is the switch on this card and roamswitch open-url enable. How the default applications screens of GNOME and KDE show it has not been checked.

17. 📦 Package CVE Scan

A tab for vulnerability and supply-chain countermeasures, covering everything from OS packages to the packages of each development language.

CardDescription
OS package CVE scanChecks packages installed with dpkg/pacman/dnf/zypper and the like against known vulnerabilities (CVEs). Also checks Node.js itself outside the package manager (official tarballs, nvm, etc., inside running containers), PHP itself (official container images, phpbrew, etc.), and GitLab servers (VERSION file). It runs none of them and only reads the version.
Development dependency CVE scanCross-checks vulnerabilities in your development project's dependencies from npm, PyPI, crates.io, RubyGems, Packagist, Go, and Maven.
Dependency lockfile tamper monitoringWatches for unauthorized changes to lockfiles like package-lock.json.
Install script inventoryLists the scripts that run at install time so you can check for suspicious behavior. Also shows pip and uv extra-index-url entries and npm @scope entries whose source is not pinned. Projects without a setting that avoids freshly published versions (such as npm's min-release-age) are shown with severity “Low” (environment variables and settings elsewhere are not read). For registered folders, it automatically checks install-time code and names similar to well-known packages when lock files and the like change, right after startup, and once a day (it neither connects to the network nor runs anything). Only a person can mark an item as reviewed. To turn it off, use the GTK “Lock files” screen or npm_supply_watch_enabled in config.json (enabled by default).
Typosquat detectionDetects fake packages with names deliberately similar to legitimate ones (typosquatting).
npm signature & provenance verification (opt-in)An additional check that verifies the signatures and provenance of npm packages to confirm they have not been tampered with.

On Ubuntu (20.04, 22.04, 24.04 and 26.04) it checks only serious CVEs (CVSS 7.0 or higher) that already have a fixed version, using Ubuntu's own data. "Nothing found" therefore does not mean there are no known CVEs. For the standard Ubuntu kernel and HWE kernels (generic; the kernel that Linux Mint installs by default is covered the same way), the kernel item of the diagnostic is also judged from this check (only rows that an update can fix and rows with confirmed exploitation count). For HWE, the three newest series of each release (linux-hwe-X.Y) are covered. Other kernels (flavours such as -aws or -lowlatency, and older HWE series) are handled with separate data. Fixes that exist only in Ubuntu Pro (ESM) carry a 🔒. Linux Mint is checked against the data of the Ubuntu release it is built on (Mint 20 to 22 on Ubuntu 20.04 to 24.04). Packages that Mint rebuilt itself cannot be compared with Ubuntu's fixed-version numbers, so they are left out. Other derivatives and unsupported releases are shown as not covered, and the Debian data is not used as a substitute. The data is signed (about 3 MB compressed) and checked once a week.

Operation

  1. Click "Start Scan" on either the "OS Package CVE Scan" or "Development Dependency CVE Scan" card.
  2. When it finishes, a list of the matching vulnerabilities is shown. Each item comes with a remedy (such as an update command). In the app's package CVE screen, or with the CLI roamswitch vuln-accept, you can write a reason and set an expiry (default 90 days, up to 365 days); the finding is then removed from the “Action required” count and counted separately as accepted. When the expiry passes, it returns to normal findings. Vulnerabilities with an EPSS value (an estimate of the likelihood of exploitation) on the map are sorted higher within the same severity and shown as “EPSS 12% (date)”. This is not a sign that exploitation has been confirmed. Detections that have no fixed version (unfixed), are not in CISA's KEV and have an EPSS below 0.9 do not close with an update, so they are shown as a separate count (waiting for a fix) and not in the “Action needed” count (2.6.7).

18. 📄 License

This is the “License” tab. It says that the Community Edition is free and includes every feature (no activation is needed for personal or internal business use), lists every included feature, points to the Server Edition for servers, VPS, cloud and bare metal, and opens the license agreement (EULA).

Operation

  1. Click “Open the License Agreement (EULA)” to open the license agreement.
  2. For servers, click “View Server Edition Docs & Setup” to open the guide.

19. 🧰 Recovery & Uninstall

A tab that brings together emergency recovery for when communication has been blocked by mistake and left that way, and uninstallation. It adds detailed explanations to the same features as the tray menu's “Recovery” submenu.

Removal through the package manager alone may not be enough
RoamSwitch has systemd services and configuration files. To remove it completely, follow the guidance in this tab or the uninstall procedure for each package format.

Operation

  1. Emergency recovery when you lose connectivity: Click the "Emergency Network Recovery" button, then choose "Recover" in the confirmation dialog.
  2. To uninstall: Follow the guidance in this tab, or run the command for your package format in a terminal (for example, sudo apt purge roamswitch). See the uninstall steps for the details.

The limits on automatic actions, the action journal and maintenance windows are handled from the CLI and config.json, not from a window. sudo roamswitch maintenance start --hours 2 --reason "…" keeps desktop notices other than protected detections in the history only, for up to 4 hours. The limit keys are under max_auto_tier in the CLI reference, and the details are in the Server Operations Manual §24–§26.

20. 📖 Help & Guide

The help screen built into the app. It covers everything from basic usage to supplementary notes for each feature. Use it together with this web manual.

21. 🌐 Language

Sets the display language of the main window. The selectable languages are the same as the language setting of the tray menu (chapter 2).

Operation Choose a language from the dropdown, and the main window's display switches immediately.

22. ℹ️ About RoamSwitch

Brings together version information, general settings, developer information, license, security policy, privacy policy, terms of service (EULA), disclaimer, and trademark/copyright notices — the app's basic and legal information. If you're contacting support, check your version number here first.

23. 🔄 Upgrade

This tab shows the update status of the app itself, packages, and the threat definitions and scam-site list. If you installed it with your distribution's package manager, it stays up to date automatically together with normal system updates.

24. 🛟 Ransomware Recovery (Snapshots & File Restore)

In the "Ransomware Recovery" tab in the sidebar, you can extract only the files and folders you need from home-directory snapshots taken automatically before any damage. Current files are not overwritten. (In the standard desktop version, this is Linux 1.11.21 and later.)

There are 3 types of snapshot. "Before damage (pre-emptive)" is taken automatically at a fixed interval (6 hours by default), regardless of any damage. "On detection" is always taken when ransomware-like behavior is detected. "Manual" is one you take yourself with a command.

When restoring, choose the “Pre-damage” snapshot marked “★ Recommended”. At detection: ⚠ Taken after detection, so it contains already-encrypted files. It is not a source for restoring to before the encryption (it preserves what was intact and serves as evidence).

Extracted files never overwrite your current files. They are placed in a separate folder (by default RoamSwitch-Recovered// inside the target folder).

Pre-damage snapshots are taken automatically every 6 hours by default (4 generations are kept on btrfs, 2 on LVM). You can change the interval with the command sudo roamswitch-ransomware-rollback config set --periodic-interval-secs <N> (0 disables it; otherwise 300 seconds or more). After a detection-time snapshot, pre-damage snapshots pause for 7 days so that already-encrypted data cannot push out the last clean generation. Snapshots at detection time are always taken, regardless of this setting.

Supported targets are btrfs and LVM. On a system without one, the following message is shown. Could not get the snapshot list (ransomware rollback is not installed, or there is no btrfs/LVM target).

Roll back everything (advanced, command only): sudo roamswitch-ransomware-rollback restore <ID>. Caution: the current state is overwritten with the selected snapshot's contents. Try "Restore Files" and "Restore a Folder" first. A detection-time snapshot is refused unless you add --accept-tampered.

It is also available from the command line (roamswitch-ransomware-rollback). See the CLI / headless operation page for details.

The external commands that recovery calls (findmnt, btrfs, the LVM commands, mount and umount, and the cp that extracts files) have time limits: 120 seconds by default, 60 seconds for mount and umount, and 1 hour for the extracting cp. This keeps a stuck command from stopping the whole watching unit (roamswitch-ransomware-rollback-watch). When a limit passes, the command and the processes it started are stopped.

25. 🕸️ Web shell and injected-code detection (Web Rules)

Dedicated rules find PHP, JavaScript, JSP and ASP web shells, injected obfuscated code, PHP hidden in images and .htaccess abuse. On a machine where you develop web apps, your project folders are covered too. No setup is needed: files are checked automatically when they are written or opened. The rules ship with the product and are refreshed by the daily receive-only update. (From Linux 1.11.23.)

When something is found, a confirmation dialog ("Dangerous file detected") appears. It shows the file's name and location, with three buttons: "Later", "Allow (skip in future scans)" and "Move to Quarantine". Nothing happens to the file until you choose. "Move to Quarantine" moves it to the vault (you can restore it later in the Malware & Quarantine tab). If code you are developing is flagged, look at its contents before you choose. "Allow" removes that file from future checks. While 3 confirmations for dangerous files are waiting, the fourth and later detections raise neither a confirmation dialog nor a notification, and the files are not quarantined. The notification history gets one entry, with the count, at most every 10 minutes, followed by the names of the files that were held back (up to 5). Web shell detections (a web rule of severity critical or high) are not held back by this limit; they raise a confirmation as usual. When more confirmations are waiting, the dialog says "N more waiting for a decision" and the default button is "Later"; choosing "Later" also postpones the other waiting confirmations for 1 minute.

To check folders in bulk, use roamswitch web-scan <folder>. By default it only checks and does not touch anything. The result shows severity, rule name and description. The exit code is 0 for no matches and 2 for critical or high findings. --json outputs JSON, and --no-default-excludes also includes what is excluded by default: under tests/, fixtures/ and .git/. You can see the rule version and status with roamswitch web-rules.

It also checks PHP session files (files starting with sess_), because a trick using session.upload_progress can put PHP code into them. If a progress marker and an opening tag are both present, it reports php-session-upload-progress-code (critical); if only the opening tag is present, php-session-code (high). When you run roamswitch web-scan without a folder, it reads the document root and directly under the session save locations (session.save_path, /var/lib/php/sessions, /tmp and others). It does not enter subfolders.

Critical vulnerabilities in PHP itself (CVE-2026-109618, CVE-2026-109619) are covered by the item "Highly exploitable vulnerabilities (installed software)" in the periodic check (§5). For PHP outside the package manager, it decides from the version (fixed versions are 8.2.35, 8.3.36, 8.4.27 and 8.5.12 or later) and how it is run (mod_php, PHP-FPM, FrankenPHP). For OS packages, it decides from the vulnerability data and whether the changelog lists the 2 CVEs.

CVE-2026-115560, which has no fix, fails only when all 3 conditions are met: session.serialize_handler is php_binary or php_serialize, it can be switched with ini_set(), and session.upload_progress.enabled is on. It changes nothing and does not go out to the network. The interim measure is to set session.upload_progress.enabled to 0.

These are advanced settings. Put your own rules in /etc/roamswitch/rules.d/*.json (only files owned by root and not writable by others are read). A template can be output with roamswitch web-rules example rules. roamswitch web-rules validate <file> shows unknown keys (with suggestions for close keys), invalid rules and replacements of existing rules, with their positions. To call a script on every detection, put an executable at /etc/roamswitch/hooks/post-detection (the detection details are passed as JSON on standard input). The quarantine level and similar settings are set in /etc/roamswitch/web_rules.conf.

The range it reads is limited: the first 256 KB of a file on write or execution, and the first 4 MB in a scan. It cannot follow splitting such as building a name from pieces ('ev'.'al'). Individual signatures for known malware are not bundled because there are no actual samples. If you suspect a false positive, choose "Allow" or exclude it with your own rule.

Check public frontend files (dist, build and similar) with roamswitch scan-frontend <folder>. It looks for embedded API keys, private keys, JWTs, source maps (.map) and similar, and shows only the first 4 characters and the length of each value. If anything is found, the exit code is 1. audit-secrets does not check dist and build.

26. 🤖 AI Agent Setup Audit

This screen checks whether the instruction files, skills and settings files of AI agents (Claude Code, Codex, Cursor, Gemini, OpenClaw and others) contain dangerous content. In the left menu, press "Run audit" under "🤖 AI agent setup audit" to check, read-only. It makes no network connections at all, and the file contents and the values of keys and tokens appear neither on screen nor in the results.

The targets are ~/.claude, ~/.codex, ~/.cursor/rules, ~/.gemini, ~/.agents and ~/.openclaw in your home, and CLAUDE.md, AGENTS.md and similar in the project folders registered under "Package CVE matching". It also reads agent memory (~/.claude/projects/*/memory and similar), a project's .vscode/tasks.json and .github/workflows, and Claude Code's ~/.claude/settings.json. It also checks hooks and MCP settings that run just by opening a project, in the settings of Gemini CLI, Codex, Cursor and OpenCode (.codex/config.toml, opencode.json and similar).

It finds instructions hidden in invisible Unicode characters, sentences such as "ignore previous instructions", text that fetches and runs something directly (curl … | sh), references to secret files with an outbound transfer nearby, files that others can write to, and similar. For OpenClaw, it points out disabled authentication, tokens shorter than 24 characters, switches starting with dangerously and similar. Anything inside an HTML comment is treated as more serious.

For projects, it also points out VS Code tasks that run just by opening the folder (runOn: folderOpen) and risky GitHub Actions patterns (pull_request_target, direct embedding into ${{ }}, actions not pinned to a commit and similar). For Claude Code settings, it points out bypassPermissions, a permissions.allow that allows everything, project hooks and a non-official ANTHROPIC_BASE_URL. It also points out when settings have been loosened after being confirmed (changes that make them stricter are not pointed out).

Results are split into "Severity: High" and "Medium", with the file location, line number and reason. A match is a place for a person to read and confirm, not a verdict of malice (attack write-ups and similar also match). Files that could not be read are listed separately and are not called "no findings". The command is roamswitch audit-agent-setup [folder…] [--json | --format text|json|sarif], and the MCP tool is audit_agent_setup.

roamswitch agent-check [--print-hook-config]
For an AI coding agent's PreToolUse hook: checks where a tool call goes before it runs (hook JSON on stdin, no network) This is an aid to detection: it cannot see inside scripts, variables, split commands or base64. --print-hook-config only prints the settings to paste and writes nothing.

roamswitch audit-browser-extensions [--json] [--accept] [--root DIR]
Audit the permissions of Chromium-family browser extensions (read only; nothing is sent out) Grades by combination of permissions (high: debugger; medium: all sites with webRequest, cookies, tabs or scripting). After --accept marks the state as checked, the daemon rereads every 30 minutes and notifies once about a new extension or a permission increase (notify only).

The audited places also include ~/.gemini/antigravity-cli/settings.json and ~/.gemini/config/mcp_config.json. When nothing is found, it shows the list of places that were audited. The Client Edition does not watch continuously. When you run it again, you can see the differences from the approved state.

27. 🔐 Blocking SSH brute force, and the intrusion path in notifications (no screen)

Only on a machine where sshd is running, it watches failed SSH logins and blocks new connections from a source that fails repeatedly in a short time. It also cuts existing connections, but not authenticated sessions or sources on the exclusion list. If there is no sshd, it reads nothing and changes nothing. There is no settings screen; change it with ssh_guard_* (10 keys; see the table in CLI / headless operation) in ~/.config/roamswitch/config.json. Notifications appear on the desktop and stay in the history.

The sources currently blocked are listed with sudo roamswitch bans and lifted with sudo roamswitch unban <IP> (--all lifts every one). At the client's default protection levels inbound traffic is closed, so connections may not reach SSH at all, and then there is less for the blocking to do. When fail2ban or CrowdSec already guards sshd, RoamSwitch yields the blocking and only detects and notifies.

A notification about a tampered critical file (FIM) now names the process that made the change and the SSH login it belongs to (source, time, authentication method). A notification about access to a credential file carries it only when the process belongs to an SSH login. When it could not be checked, the notification says "The login path could not be determined" and never says it was not a login. To turn it off, write "fim_intrusion_context_enabled": false in config.json.

28. 🧭 Detection coverage self-check, and the notice when a protection cannot read its input (no screen)

roamswitch detection-coverage [--server | --client] [--json | --format json|navigator] lists, per MITRE ATT&CK technique that an intruder uses to weaken defenses, remove traces or stay on a host, whether RoamSwitch can notice it (detects / partial / none), what it does not see, and whether the guard that would notice is running now (on / off / partly on / unknown). It reads the code's own map and the local settings only: nothing is executed and nothing is sent. The tests check that the code behind each claim still exists, and a technique that is not listed was not assessed. The Client Edition lists 46 techniques (39 partial, 7 none) and the Server Edition 46 (35 partial, 11 none); none is rated detects. "none" means no detection exists, not that no attack happened. An AI assistant can read the same data with the MCP tool get_detection_coverage. --format navigator prints the same table as a MITRE ATT&CK Navigator layer (layer 4.5): detects green, partial yellow, none red; techniques that were not assessed are left uncoloured.

If a protection cannot read its input (logs, tables, events) for 2 minutes or more, it notifies "The protection cannot read its input"; if lost input is recorded, for example from log rotation or a queue overflow, it notifies "Input may have been missed" (at most once a day per protection and type). During that time, detection may not be working. The count and time are kept in collectors of get_guard_status and in /run/roamswitch/collectors.json, and that protection is not shown as "Running".

Protections that are not working are shown with a reason (daemon stopped, tool missing, no baseline, and so on). You can check them with MCP get_guard_status (effectiveState and inactiveReason) and others. Cases that depend on how it is installed, such as the app not running or being off by default on a small device, are not counted in the score and do not notify. All others are counted in the score, checked every 5 minutes starting 2 minutes after startup, and notified once per 24 hours for the same reason. The reason text names the protection and its role, where it is, what is happening and the steps, with the actual commands.

roamswitch doctor [--json] checks whether this machine is in a state that can support its defenses, without changing anything and without going out to the network. It checks whether tools are present, file owners and write permissions, package verification (dpkg --verify / rpm -V), manually installed CA certificates, whether the daemon is running, and whether ufw, fail2ban and similar are running (a caution if they are). The exit code is 1 if there is even one failure, and 0 if there are only cautions. Details are in the table in CLI / headless operation. If an update failed its startup check and was rolled back automatically, that record (auto_rollback) is shown as a caution too.

Older systemd: where an older systemd (such as 239 on RHEL 8) does not know a protection directive, the unit covers it with other directives that do the same work. roamswitch doctor shows which directive is covered by what (the one thing it cannot cover is giving the daemon a separate namespace for the host name).

29. 🧾 The exec recorder and correlation rules (no screen)

It records the path, command line, parent processes, account and similar details of every program that starts, on this computer only. Nothing is sent out (event forwarding runs only if you set it up). It is on by default. On a computer with less than 1 GiB of memory it is off by default, and an explicit setting wins.

From the record, it notifies suspicious launches with 18 correlation rules (EXR-001 to 018). Examples: a shell launched from a web service (EXR-001), execution from /tmp, a deleted file or memfd (EXR-002), execution right after a download (EXR-003), one-line commands using base64 or eval (EXR-004), and execution after a change to ld.so.preload (EXR-007). It also watches for reverse-shell forms in the launch command line (EXR-011, severity high) and for gdb, strace and similar launched by a service account (EXR-012, severity medium). It only notifies; by default it stops nothing and quarantines nothing. It also tells you about -R and -D tunnels opened by an ssh with no terminal (EXR-016, severity medium) and about listeners opened by an SSH session.

EXR-011 and EXR-012 are judged from the text of the command line, and pasted example text looks the same. So even if you set exec_rules_isolation_optin to true, they never trigger isolation. EXR-011 does not react to lines that only print with echo or grep, to ssh -c, or to nc -zv; EXR-012 does not react to root or ordinary login sessions. You can turn off rules individually with exec_rules_disabled (e.g. EXR-011). Records can be viewed with roamswitch events and the MCP tool search_exec_events.

EXR-013 notifies when a process started from a service (such as nginx), or running under that account, runs with LD_PRELOAD or LD_AUDIT pointing to a library outside the system (severity High), or with LD_LIBRARY_PATH pointing to /tmp or similar (Medium; does not trigger isolation). It targets the technique of bypassing PHP's disable_functions with putenv("LD_PRELOAD=…") and mail(). root and logged-in users are excluded. Only the values of these 3 variables are recorded (up to 200 characters); other environment variables are not read. chisel, mimikatz and others were added to EXR-009 and EXR-010, and EXR-010 now also covers programs in /home, /root and /tmp.

EXR-014 notifies when a child process of an AI agent (claude, codex, etc.) runs a command that sends credentials or secret values outside (High for files, Medium for values only), and EXR-015 when credentials are read and sent outside within 5 minutes (Medium) (both T1048, notification only). Only the child process's commands are visible; reads by built-in tools, communication by python or node itself, and agents whose process name is node are not visible.

30. 📋 ClickFix clipboard detection (no screen)

It finds ClickFix attacks, in which a fake confirmation screen leads you to copy a command and paste it into a terminal, from changes in the clipboard. Only when the copied string decodes base64 and passes the result straight to a shell or interpreter, or matches a reverse shell or dropper rule, it sends a notification and opens a dialog that stays in front of the other windows. The clipboard is not cleared automatically; the dialog's button empties it.

It works only while the desktop app (GTK) is running. It does not work on a terminal that runs only the daemon, or while the app is closed. There is no setting switch. On some Wayland setups, the notification may not arrive.

31. 🎚️ Settings preset (Light, Balanced, Standard security, Maximum security)

A preset switches a group of settings for protection and resident load at once. Four are offered. You can choose one in the "Settings preset" card at the top of the diagnosis tab (just under the score), in the tray menu item "Settings preset: " (it opens that card), on the "Choose how strong the protection is" page of the first-run wizard, or with roamswitch preset. The Server Edition has no presets (roamswitch preset says it is for the Client Edition only).

Steps In the "Settings preset" card on the diagnosis tab, check the state (for example "Now: Balanced"), pick one of the four, look at what changes with "Show changes", and press "Apply". Check the confirmation dialog and go on, and the settings are written. When some items need a restart, "Restart now" appears under the result. From a terminal, give the name, for example roamswitch preset set standard. --dry-run only prints the list and changes nothing.

The 12 items that Maximum security adds are listed one per line in the confirmation dialog, each with a mark and a caution: [Stops work], [False positives] or [Talks outside]. Stops work: waiting for the scan on file opens (fanotify_open_perm), blocking QUIC (UDP/443), the USB storage guard, USB zero trust, the USB keyboard guard, and the DNS threat guard applied everywhere (dns_scope=always_on). False positives: automatic isolation on a high-confidence match of the execution record, and reverse-shell detection for private addresses, and periodic-connection detection (beacon_periodicity_enabled; update checks and other regular traffic raise notices too). Talks outside: the npm signature audit, the active vulnerability scan and Sensor pairing. The USB keyboard guard is turned on only when the connected keyboards can be put on the allow-list (if they cannot, it is left alone and the reason is shown).

Some things are never written by a preset. The protection level (away_protection_level), the registered networks, manual overrides, allow-lists and exclusions, watched folders, the language and the VPN choice stay as they are with every preset. Automatic VPN on untrusted networks, denying unprivileged user namespaces (/etc/roamswitch/guard.yaml) and the XDP boot gate need setup first or are root settings, so they are not set; a note at the end of the confirmation and roamswitch preset show maximum point to them. On a network registered as Trusted (Open), DNS, the ARP pin, Bluetooth, mount hardening and stopping the sharing services do not run in the first place.

On a new install, the first start of the app writes Balanced (only when ~/.config/roamswitch/config.json does not exist yet; what is written is preset, download_guard_poll_ms=2000 and sentinel_interval_secs=5). The first-run wizard starts with the current preset selected, and you can change it later on the diagnosis tab. The settings of a machine already in use are not changed silently, so the card may read "Now: Custom (close to Balanced, 2 items differ)" (the two new settings are simply missing). Applying Balanced changes only those 2 items. The card also reads "Custom (close to X, n items differ)" after you change a setting by hand. Applying a preset sets every managed item to the preset's value, so a guard you had turned off comes back; check the list before you apply. RoamSwitch OS starts at Standard security.

The protection level and the settings preset are different things
The protection level of a network (Lockdown / Balanced / Open) switches by itself according to the kind of network you are connected to (you can also pin it by hand). The settings preset (Light / Balanced / Standard security / Maximum security) switches a group of protection and load settings at once. They are separate, so changing one does not change the other. In the app each carries its own heading: "Settings preset: Balanced" for the preset and "Network protection level: Standard protection" for the level, so the two cannot be mistaken for each other.

Settings keys (config.json): preset (the name applied last; only a hint, the state is computed from the settings every time), download_guard_poll_ms (the interval of the download scan; default 800, 200 to 60000) and sentinel_interval_secs (the daemon's monitor cycle; default 3, 1 to 60). The last two take effect from the next cycle when you change them (no restart). A value outside the range is rounded into the range. How to use roamswitch preset is in CLI / headless operation.

32. 🔁 Periodic-connection detection (no screen; off by default)

It tells you when a program of one account keeps connecting to the same port of the same public address at a steady interval. A malicious program that checks in with an outside controller on a schedule takes this shape. What it says is only that the traffic is periodic. Update checks, sync, health checks and mail checks look the same, so it is off by default. It only notifies: it blocks nothing and changes no host setting. It runs when you set beacon_periodicity_enabled in config.json to true (it follows the change within about 30 seconds; no restart is needed). Among the settings presets, only Maximum security turns it on (chapter 31).

The judgement counts the times of connections for each combination of account, destination and port. When there are at least 13 observations (12 intervals), the mean interval is 20 to 900 seconds and the spread of the intervals (coefficient of variation) is 0.2 or less, it notifies once per 24 hours for that combination. It looks at the times of new TCP connections and also at the times data is sent on a connection that stays open. The notification gives the account, destination, mean interval, count, period, spread and the path of the executable that is connecting. It also gives the package that owns that file, as a side note that is not used in the judgement. The path is looked up once, after the traffic has been judged periodic. When a connection is too short to look up, the notification says the program is unknown. It never says the traffic is malicious.

The notification has a button, “Stop notices from this program”, that stops the notices for that program's executable path. It has no expiry: the notices stay stopped until you bring them back. The traffic itself is not stopped. To do it by hand, run sudo roamswitch server allowlist add beacon_periodicity_exe <name> --exe <absolute path> <reason>, and to bring them back run sudo roamswitch server allowlist remove beacon_periodicity_exe <name> (do not add --days). No button is offered for an interpreter, a shell or a communication tool (python3, node, sh, curl, ssh and the like), for a path inside a container or a flatpak, or for a deleted file. The body of the notification then says what to check by hand. The button appears only when the notification server supports action buttons; otherwise the notification comes without it (chapter 13).

Limits: what you stopped is identified only by the executable's path, so if the file at that path is replaced by another one, it stays stopped. What it cannot see: UDP and ICMP (QUIC included), traffic inside containers, traffic to private addresses, traffic with a large spread (more than about ±35%), traffic with a random wait, and repeats closer than 5 seconds. If observations are missed, the spread looks larger and the traffic is harder to find. RoamSwitch's own traffic is not reported (only when the executable is an installed one that FIM watches and it still matches its baseline).

33. 🚪 Notices for new listening ports, and checking where a package file came from

When a new TCP listener that can be reached from outside appears after the baseline was taken, the port anomaly guard notifies you and blocks connections from outside to that port with nftables (inet roamswitch_dev_guard). It is always on in every preset; the switch is port_anomaly_guard_enabled. A new UDP listener is only notified, not blocked. You allow a port with the “Allow” button on the notification (TCP) or on the port diagnosis screen. The program behind a new listener is judged by checking the package database (dpkg, rpm, pacman, apk).

For a new listener, the program is checked against the package database (dpkg, rpm, pacman, apk). If it is a package file as distributed (it matches the database record and sits in a place only root can write) and the package was installed within the 24 hours before the listener started, it is not blocked: it becomes an informational notice (urgency normal) with the package name, version and installation time. This avoids blocking the listener of a service that has just been installed and breaking it. The 24 hours is a fixed value that cannot be changed by a setting. Everything else is blocked as before. A package file whose content differs from the distribution is notified with a title that says it was rewritten, and steps to reinstall the package. A program that no package owns, one in a temporary place, under a home directory, deleted or only in memory, an interpreter (python3, node and the like; it is not relaxed even when the package matches), a container, snap or flatpak program, and a case where the package database cannot answer are also blocked.

The test that leaves system daemons (sshd and the like) out of the new-listener check now applies only when the package record agrees as well as the name and the place. A daemon whose content differs, that no package owns, or that has a place others can write on its path is not left out and is notified. Where the package database cannot answer, the decision stays with the name and the place as before. Limits: "as distributed" means a match with the package database record, and the dpkg record is MD5 only. The repository the package came from and its signature are not checked. A package of one's own making installed after root was taken falls under this exception: it is not blocked and becomes an informational notice. The notice for a new UDP listener also no longer treats everything under /usr/ or /opt/ as a package by its path prefix; it asks the package record instead. So a UDP listener of a vendor program placed in /usr/local/bin or /opt/ (owned by no package) is now notified once, as new. Environments where the database cannot answer, containers, snap, flatpak and Nix stay quiet as before.

A notification is written in this order: the conclusion, what was done, what to do, the cause. It gives the executable's path, the owning package with its version and installation time, whether the content is as distributed, where it sits, the account, service and parent that started it, and how long the process has been running, with commands to check (roamswitch provenance <path>, ss -tlnp, and ss -ulnp for UDP). You allow a TCP port with the “Allow” button on the notification or on the port diagnosis screen. UDP is not blocked, so there is nothing to allow. roamswitch provenance <path>... checks, one file at a time, which package owns a file and whether its content equals the package record (see the table in CLI / Headless operation).

34. 🚫 Notices for blocked connections to known malicious IPs

When a connection to a destination on a list of known malicious IPs is blocked (egress_ip_blocklist_enabled, on by default, and on in every preset), the notification gives the program that tried to connect (the executable's path), the account, the destination and port, the program's package (name and version), and whether it is as distributed, differs from the distribution or is outside package management. It also gives the list (file name) the address was on; the list has no per-entry category or date, so it cannot say what kind of malicious it is. The urgency is normal only when the program is a package file as distributed, in a place only root can write, and not an interpreter, a shell or a communication tool; otherwise it is critical. A program whose content differs from the distribution gets its own title and is critical. The notification is not suppressed: the pop-up and the notification history stay. A notification for the same destination and program comes at most once per hour. What is blocked has not changed.

The program is found by sending the first blocked SYN, with the account, to the daemon through NFLOG (group 4913 for the host's own traffic, 4914 for forwarded traffic), and looking up the owner of that socket in /proc. Limits: a connection shorter than about 1 second cannot be traced to a program (the notice says so). UDP and ICMP are not traced. For traffic from containers, virtual machines or other machines, only the source address is known. Where NFLOG cannot be used (there is no nfnetlink_log, or another program such as ulogd uses the same group), it goes back to the earlier kernel log (journalctl -k) and the notice names no program (and says so). The limits of the package check are the same as in chapter 33.

35. 🛡️ Protecting RoamSwitch itself, and notices when something stops being seen (no screen)

FIM also watches RoamSwitch's own files. These are the executables (the roamswitch* files in /usr/bin, and the bundled tools personalsoc, pathscope and accessscope), the hook that the root daemon runs after every detection (/etc/roamswitch/hooks/post-detection), the package manager hooks (apt, pacman), and the roamswitch* units, timers and paths with their drop-ins (roamswitch*.d). For units and drop-ins, a new file, a change, a removal or a mask (a link to /dev/null) is notified whatever the content. A mask is found by the periodic scan (fim_check_interval_secs), not at the moment it is made. Changes made by a package update are held back until the update ends, and only those that match the package record are taken into the baseline. A post-detection hook edited by the operator is notified as a change (accept it with roamswitch fim update). Limit: once root is taken, the baseline can be rewritten along with the files (there is no signature or chain).

Notices of a stop and of an abnormal end: ExecStopPost of roamswitch.service runs roamswitch unit-stopped client after the daemon has ended (the daemon itself cannot say it was stopped). A normal stop (systemctl stop, disabling the unit) is notified as "stopped", with how to start it again (systemctl start) and how to look into who stopped it (journalctl -u). An abnormal end (killed, a crash, the watchdog, a timeout, the out-of-memory killer) is notified as "ended abnormally", with the result and the exit status. A shutdown or reboot of the host, systemctl restart and a stop caused by a package update are not notified (an abnormal end during an update is). During a maintenance window the notice is kept in the history only. It goes to the desktop notification of every logged-in user (uid 1000 or more) and to the notification history. If nobody is logged in, it is kept in the history only. If the daemon does not start again after the stop, this one notice is the last.

Kernel protection settings and the system clock: it reads five settings from /proc/sys every 5 minutes, starting 2 minutes after the daemon starts: kernel.kptr_restrict, kernel.perf_event_paranoid, kernel.dmesg_restrict, kernel.modules_disabled and kernel.kexec_load_disabled. It notifies when one has a lower (weaker) value than last time. The last values are kept in /var/lib/roamswitch/sysctl_watch.json, so a setting that was gone after a reboot is notified too. The first check is only recorded and does not notify. The five are not items of the hourly diagnosis (34 items), so the diagnosis score does not change. For the system clock, it compares the wall clock with CLOCK_BOOTTIME in the same cycle and notifies a step back or a jump of more than 120 seconds (resuming from suspend and a jump within 15 minutes of boot are not notified). A change made while the daemon is stopped cannot be seen.

Checking that the sensor and each guard are alive: when an eBPF sensor (Falco or Tetragon) is expected to answer, the daemon makes the sensor raise a marker event (for Falco, a read of the file that a rule names; for Tetragon, the run of a known command) and checks that the event comes back to the daemon. It notifies when the event fails to come back twice in a row (at most once per 24 hours). What the Tetragon check shows is that the event stream arrives, not that each policy is loaded. The guard loops (the reverse shell watch, the process name disguise watch, the network setting watch, file integrity monitoring, the log tamper watch, the port anomaly guard, the download scan and others) report that they are alive each time they run. If a loop has not answered for 180 seconds, it notifies the name of the guard and how long it was silent, and repeats every 30 minutes while it stays silent. Nothing is notified after a suspend.

Recording when input is missing: a guard that reads a log, a table or an event stream counts what it could not read (how often the reader was started again, files replaced or truncated, lines dropped for size, reads that failed, records that could not be written). What cannot be counted is not guessed: it is recorded only as "there was a gap". Inputs where drops are counted include NFQUEUE, the exec queue, NFLOG, the exec-bpf ring and Falco events. Events from the time the daemon was stopped for 120 seconds or more cannot be read back, so for 24 hours after it starts again, the guards that read an event stream are shown as "partly on" (roamswitch detection-coverage, roamswitch doctor). When a source stays unreadable for 120 seconds, it notifies (at most once per 24 hours for the same input).

Records hidden from readers without privileges: the detection history, the notification history, the allow list and the Sensor records can be read only by root and the administrators' group (0640). The administrators' group is the first of roamswitch, sudo and wheel that exists. If none exists, only root can read them (0600). Files that an earlier version wrote as 0644 are fixed when the daemon starts. The GUI, CLI and MCP of an administrator read the files directly, as before. The GUI, CLI and MCP of a user who is not an administrator ask the daemon and see only their own part. For detections, that means the processes the user owns. For notifications, it means those delivered to the user's own screen. Records with no owner (network, firewall, kernel and the like) and history from before this version are shown to administrators only. Pop-ups follow the same rule: they appear on the screen of the owner and of administrators, or on administrators' screens only when there is no owner. For a user who is not an administrator, the diagnostics (roamswitch status, MCP) return only which protections are not working and a reason code, and never paths, process names, times or thresholds. The notification screen and roamswitch notifications show one line to such a user: what is shown is only their own part. To see everything, join the administrators' group (for example sudo groupadd -f roamswitch, sudo usermod -aG roamswitch USER, sudo systemctl restart roamswitch.service, then log in again as that user). On a disposable Ubuntu 24.04 VM (an administrator and standard users) we confirmed that a standard user sees only their own part. The narrowing of pop-up recipients on a real desktop and the one line in the app screen have not been confirmed yet.

← Mac Manual Go to Server Edition Operations Manual →