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.
RoamSwitch for Linux (Community Edition) is free and includes every feature. No license key or activation is needed.
2. Tray menu
This is the menu that opens when you click the tray icon. Here it is from top to bottom.
| Item | Description |
|---|---|
| Status line | Shows your current protection status (e.g. "🔒 Away Protection [level]"). Click it to open the main window. |
| 🚨 Release Air-Gap & Restore Network Conditional | Only 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 status | Shows the currently connected network name and security type, or the wired connection state (informational only, not clickable). |
| Restore radio Conditional | Shown only when wireless features such as Wi-Fi and Bluetooth are blocked for protection. You can restore them manually from here. |
| Apply Lockdown / Balanced / Open now | Immediately applies one of the three security levels to the current network with a single click. Lockdown is the strictest setting and Open is the most lenient. |
| Return to automatic mode / clear override | Stops using a manually pinned level and returns to automatic detection based on your network. |
| Duration submenu | Choose 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 submenu | Turns DNS threat protection on or off and lets you choose the secure DNS provider from 4: Quad9, Cloudflare Security, AdGuard DNS and CleanBrowsing. |
| Recovery submenu | Includes “Emergency network recovery” (forced recovery when communication is no longer possible) and “Uninstall”. |
| Launch at login | Switches whether RoamSwitch starts automatically each time you log in to the OS. We recommend leaving it on for constant protection. |
| Language submenu | Switches 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 window | Opens the detailed settings screen covered from Chapter 3 onward. |
| Quit | Quits RoamSwitch. Automatic protection stops working while it's quit. |
Operation
- Switch the protection level right now: Click the tray icon, then click Lockdown, Balanced, or 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.
- Return to automatic mode: Click the tray icon → "Return to automatic mode."
- Switch the secure DNS provider: Click the tray icon, hover over the DNS submenu, and click the provider you want to use.
- If you lose connectivity: Click the tray icon → Recovery submenu → "Emergency Network Recovery."
- 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 Lockdown/Balanced/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.
| Card | Description |
|---|---|
| Currently connected network | Shows the current network name and a “Register” button. If the network is already registered, it shows the current security level. |
| Manually switch security policy | The same feature as the Mac version's "Manual Override": temporarily ignores automatic detection and pins a chosen level. |
| Automatic sharing-service control | While you are on an untrusted network, services such as file sharing are disabled automatically. |
| Registered networks list | Lists and lets you edit every network you've registered so far, along with each one's security level. |
Operation
- Register the current network: Click "Register" on the "Currently connected network" card, choose a name and security level, then click "Save."
- 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.
- 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.
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.
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".
The "Protection status" card in the diagnostic tab shows whether the protections you turned on are actually working, and for those that are not, it gives the reason and what to do. You can also see the state of the 24 guards. The content is the same as roamswitch guards; 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 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.
| Card | Description |
|---|---|
| Exposed ports & dev server isolation | Lists 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-containment | Settings for automatically containing traffic when ARP spoofing or a suspicious port scan is detected. |
| Paired Sensors | Lists devices already linked with the separate "RoamSwitch Sensor" product. |
| Pair manually with a pairing code | Enter a pairing code issued by a Sensor to link a new one. |
| Sensor audit results | Review diagnostic results reported by paired Sensors. |
| Proof-based vulnerability scan status | Shows 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”. |
Operation
- Isolate a development server's port: On the "Exposed ports & dev server isolation" card, select the port and click "Isolate" or "Block."
- 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
| Card | Description |
|---|---|
| USB / BadUSB defense | Switches 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 devices | Lists 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
- Click the switch on the "USB / BadUSB defense" card to enable it.
- From the "Connected USB & HID devices" list, select any device you'll keep using and click "Add to allowlist."
In 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).
8. 🦠 Malware & Quarantine
Brings together ClamAV antivirus protection and Linux-specific low-level defenses: fanotify, entropy analysis, YARA rules, and no-exec enforcement.
| Card | Description |
|---|---|
| ClamAV definitions & engine status | Check when virus definitions were last updated and whether the engine is running. |
| Linux low-level advanced defense | Configures 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 process is frozen and the network is also cut off (Air-Gap). |
| ClamAV on-demand scan | Manually scan a chosen folder right now. |
| Quarantine vault | Restore 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. |
| Scan exclusions | Specify folders, like development directories, that should be excluded from scanning. |
| Suspicious autostart notification | Checks 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 notification | Notifies 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 notification | Notifies 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. |
| Network setting change notification | Reads 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 state | Even 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 apply 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. |
Operation
- Scan right now: On the "ClamAV on-demand scan" card, choose a folder and click "Start Scan."
- Handle quarantined files: On the "Quarantine vault" card, select a file from the list and click "Restore" or "Delete permanently."
- 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).
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
- Under the configuration card's "Backend," choose WireGuard or Tailscale.
- For WireGuard, choose a
.conffile from "Import config file". For Tailscale, authenticate your account in the browser from "Log in". - 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.
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.
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.
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.
17. 📦 Package CVE Scan
A tab for vulnerability and supply-chain countermeasures, covering everything from OS packages to the packages of each development language.
| Card | Description |
|---|---|
| OS package CVE scan | Checks 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 scan | Cross-checks vulnerabilities in your development project's dependencies from npm, PyPI, crates.io, RubyGems, Packagist, Go, and Maven. |
| Dependency lockfile tamper monitoring | Watches for unauthorized changes to lockfiles like package-lock.json. |
| Install script inventory | Lists 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 detection | Detects 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, 26.04), it checks only serious CVEs (CVSS 7.0 or higher) that have a published fix, using Ubuntu-specific data. So “No findings” does not mean there are no known CVEs. Kernels are handled with separate data. Fixes available only through Ubuntu Pro (ESM) are marked with 🔒. Derivatives such as Mint and unsupported versions are shown as out of scope, and it does not switch to Debian data. The data is signed (about 4 MB) and checked once a week.
Operation
- Click "Start Scan" on either the "OS Package CVE Scan" or "Development Dependency CVE Scan" card.
- 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.
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
- Click “Open the License Agreement (EULA)” to open the license agreement.
- 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.
Operation
- Emergency recovery when you lose connectivity: Click the "Emergency Network Recovery" button, then choose "Recover" in the confirmation dialog.
- 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.
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/
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.
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.
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.
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 38 techniques (31 partial, 7 none) and the Server Edition 38 (25 partial, 13 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.
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.
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 12 correlation rules (EXR-001 to 012). 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.
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.