Last updated: 2026-10-21

First Hour After an Incident

This page summarizes which features to use, and in what order, during the hour after RoamSwitch detects a serious threat and contains it.

1. About this page

When RoamSwitch detects a serious threat, it contains it automatically by isolating the network (Air-Gap) or freezing processes. This page lists, for each environment and in order, what to check afterwards, what to record, and when to release. For details of screens and operations, see each manual.

This page explains how to use RoamSwitch's features. It does not cover your organization's communications, legal response, or recovery planning.

2. The same order in every environment

A containment is triggered for a reason. Before you rush to release it, work through these steps in order.

  1. Check. See what was detected, when, and in what order, on a timeline.
  2. Preserve. Export records and evidence before you release anything or restart. Information about the running state can be lost afterwards.
  3. Decide. Decide whether it was an operation you recognize or genuinely suspicious activity.
  4. Release. Release the containment only after you have confirmed it is safe.
  5. Watch. After releasing, keep watching for a while to see whether the same detection appears again.

To investigate from the logs, you can also use PersonalSOC and AccessScope in section 6.

If you were isolated by ARP spoofing, also read 8.

If ransomware is the cause on the Linux desktop edition, also read 9.

While isolated, you cannot open this page on that computer. The QR code of this page appears on the Mac in the “isolation status and release guide” screen, and on the Linux desktop edition in the release confirmation screen. Scan it with a smartphone on a different connection to read this page. The QR code contains only the public URL of this page.

3. Mac

  1. Open the menu bar 🛡️ icon and check whether it shows “🔒 Isolated (full)” or “🔒 Isolated (degraded)”.
  2. Open “ℹ️ Why you're isolated & how to release…” and read the reason it was triggered.
  3. Open 🛡️ → Mac Security Diagnostics → “📈 Security Activity Log…”. Filter by period, severity and category, and view what was detected just before, in chronological order. Clicking a bar in the chart narrows the view to that time range.
  4. With Pro, you can export the filtered results to CSV and keep them.
  5. If you turned on “🧾 Process Execution Log…” (Pro) in advance, the history of launched processes can also be used for the investigation. This log is off by default.
  6. When isolation is triggered by ransomware or an XProtect detection, evidence preservation data is saved automatically just before. It contains the list of running processes, network connections, a list of recently changed files, and the SHA-256 of each file. It is saved in ~/Library/Application Support/RoamSwitch/incident-evidence/. Packet capture is not available on Mac.
  7. Think back on whether you did anything that could explain it (such as launching a suspicious app).
  8. From the same menu, choose “🔓 Release Air-Gap isolation” and choose “Release” in the confirmation dialog. Communication comes back immediately.

For ransomware damage, use 🛡️ → Malware Protection (XProtect & ClamAV) → “🗂 Ransomware Recovery…” (Pro). From the APFS local snapshots that RoamSwitch takes periodically, you can extract files to another location (~/RoamSwitch-Recovered/<ID>/). Current files are not overwritten. Extracting requires Full Disk Access permission.

For files that cannot be restored from a snapshot, look for a decryption tool in the No More Ransom list of decryption tools or the National Police Agency's ransomware damage prevention measures (the section on damage recovery). Tools exist only for some types, and RoamSwitch does not decrypt. Before using one, remove the source of the infection, keep the encrypted files and the ransom note, and do not pay the ransom. While isolated, do your research on a smartphone on a different connection.

If communication does not come back
Use 🛡️ → 🧰 Recovery and Uninstall → “🆘 Emergency Network Restore…” only when you are still wrongly blocked and cannot communicate. It is a last resort.

4. Linux desktop edition

  1. Open the system tray 🛡️ icon. If the network has been isolated because of a serious threat, “🚨 Release Air-Gap & Restore Network” is shown. Do not press it yet.
  2. In the main window, open the history of notifications from the last 7 days under “Notifications” and check what was reported.
  3. In “Incident Timeline” (experimental), view the flow from detection through response to release in chronological order.
  4. In “Security Activity Log”, combine period, category, severity and keyword to filter and investigate what happened just before. It shows the contents of Incident Timeline and Notifications on one screen.
  5. Think back on whether you did anything that could explain it. Once you confirm it is safe, press “🚨 Release Air-Gap and Restore Communication” in the tray.
If communication does not come back, use “Emergency Network Restore” from the tray's recovery submenu. Notifications, isolation status, frozen processes and the timeline can also be checked by command (see “5.” below).

5. Linux Server Edition

The Server Edition is operated by command (the commands also work on the Linux desktop edition; sudo roamswitch server ack is for the Server Edition). A high-confidence isolation (such as canary tampering) moves to degraded (DEGRADED) mode when, by default, 3600 seconds (1 hour) pass with neither an ack nor confirmation that the cause is gone. While degraded, new traffic other than the maintenance SSH port and the management path of allowed IPs continues to be blocked, and it does not open automatically.

5.1 Check the notifications

If you have configured Telegram, LINE or a webhook, notifications have arrived there. Even if you have not, notifications from the last week remain locally.

roamswitch notifications

5.2 Look at the isolation state

Shows the current isolation status of the eBPF runtime guard and the history of detected incidents.

roamswitch server ebpf

5.3 Check the frozen processes

The list of processes the guard has frozen with SIGSTOP. They are not resumed until the evidence is recorded.

roamswitch frozen list

5.4 Preserve the evidence

When the eBPF runtime guard contains a threat at the process level, an evidence preservation bundle is created automatically. It contains about 30 seconds of packet capture and, when the PID is known, a snapshot of /proc/<pid> (where tshark is absent, only the packet capture is omitted). It is saved in /var/lib/roamswitch/incident-evidence/<timestamp>-<ID>/.

The same bundle is created in the background when the whole host is isolated. However, where the capture tool (roamswitch-incident-capture) is not installed, nothing is created and no error is shown. Check whether the bundle exists. If it does not, or if you want to preserve the state before containment, capture it manually.

sudo roamswitch-incident-capture snapshot --pid <PID> --reason "first-response"

5.5 Export the timeline and the execution record

Exports the unified incident timeline (experimental) as JSON Lines. The execution recorder can be searched by period or process.

roamswitch timeline --export incident.jsonl
sudo roamswitch events search --since 2h

5.6 Decide, then release

Resume a process that was frozen by a false positive with the command below (resume all resumes all of them).

roamswitch frozen resume <PID>

To permanently allow the same false positive, add it to the allow list. If you add --exe and bind it to the executable's path, it cannot be evaded by spoofing the process name.

sudo roamswitch server allowlist add <rule> <process> --exe <path>

Acknowledge the isolation. During FULL isolation, it acknowledges while keeping the strict isolation. The operator is treated as having taken over the response, and the move to degraded mode and automatic release stop. While degraded, acknowledging releases it.

sudo roamswitch server ack

5.7 If you are locked out

Log in from the cloud provider's web management console (VNC or serial console) and release the emergency isolation. By default, the maintenance SSH port and the management sessions from the admin IP remain during isolation.

sudo roamswitch emergency-restore

5.8 Tidy up afterwards

Evidence bundles are not deleted automatically. Those past the retention period (default 30 days) are deleted with the following command.

sudo roamswitch-incident-capture prune --keep-days 30

6. Investigating from the logs (PersonalSOC and AccessScope)

RoamSwitch bundles separate tools for examining logs, PersonalSOC and AccessScope. Both are read-only and neither changes settings nor blocks traffic. Analysis uses no network and is done only inside this device, so it works even during isolation.

6.1 PersonalSOC: put this machine's logs and detections in one report

It reads this machine's authentication logs (sudo and sshd on a Mac; auth.log, auditd, nginx, apache and others on Linux) and RoamSwitch's unresolved detections, and puts a risk estimate, a timeline and IOCs (IPs, domains, URLs, hashes) in one report.

sudo personalsoc scan --report

6.2 AccessScope: find attacks in the access logs

From web server, SSH and other access logs it shows brute-force attempts, web shells, chains of attack steps and successful logins from an unfamiliar source, each with evidence line numbers and a confidence level (confirmed, likely, hypothesis). It never declares a compromise on its own.

sudo accessscope scan --auto --since 24h --report report.md
Run them with administrator rights (sudo)
Authentication logs, journald, fail2ban, web server and auditd logs cannot be read without administrator privileges. Run the commands above with sudo. Without sudo, logs that cannot be read are shown as “unreadable”, and the report says “no readable logs”. This “no detections” is not proof of safety. Neither tool raises its own privileges.

6.3 Where to use them in the order

sudo accessscope scan --auto --since 24h --since-last --new-only

7. Afterwards

After releasing, watch the timeline (on Mac, the “Security Activity Log”) for a while to see whether the same detection appears again. Keep the exported records and the evidence bundle; do not delete them.

Actions taken outside RoamSwitch, such as changing passwords and keys or contacting the parties involved, are not covered on this page.

8. When you are isolated by ARP spoofing

ARP spoofing is when an attacker on the same network, such as on public Wi-Fi, pretends to be the router to snoop on traffic. RoamSwitch detects things like a sudden change in the gateway (router) MAC address. The approach is the same on Mac and the Linux desktop edition.

  1. When it isolates. When an anomaly involving the gateway is detected on an unregistered network (protection level Lockdown), it isolates automatically. At a registered place (such as home or work), it does not isolate automatically and shows a warning. It isolates only when you choose “Block everything now”.
  2. What to check before releasing. The app's confirmation screen shows guidance to the same effect. You check whether another device on the same network is spoofing ARP, and whether the gateway's MAC address matches the trusted one (the Linux confirmation screen shows the current and trusted values). On public Wi-Fi, it is safer to move to another connection such as tethering before releasing.
  3. Automatic release. It does not release on time alone. When the gateway's MAC address matches the trusted value in 3 consecutive checks over 60 seconds or more, it releases automatically and notifies you. If it cannot be confirmed, by default after 1 hour it moves to a state where traffic is heavily restricted (degraded). Degraded mode does not open with time, so release it manually.
  4. When releasing manually. On Mac, use “Release Air-Gap isolation” in the menu. On the Linux desktop edition, use “Release Air-Gap and Restore Communication” in the tray, or sudo roamswitch emergency-restore. If you release while the cause remains, traffic resumes and you are affected in the same way. Check before releasing.
  5. After releasing. Watch for a while to see whether the same detection appears again. If it does, do not use that network and move to another connection.

9. When you are isolated by ransomware (Linux desktop edition)

When many files are rewritten in a short time, RoamSwitch treats it as possible ransomware, freezes the rewriting process (SIGSTOP), and cuts the network (Air-Gap). The Air-Gap confirmation screen opens and shows the reason, the process, and the number of rewritten files. This section is for the Linux desktop version. On Mac, read 3.

  1. Check. In the confirmation screen and the notification history, see which process rewrote which files. You can also see frozen processes with roamswitch frozen list (5.3).
  2. Record. Before releasing or restarting, save the evidence and the timeline as in 5.4 and 5.5.
  3. Decide. If the frozen process is an operation you recognize (such as a backup or compression), it is a false positive. Resume it with sudo roamswitch frozen resume <PID>. If it is a real attack, do not resume it; record the evidence, then terminate the process.
  4. Get the files back. Rewritten files can be retrieved from a snapshot. In the screen, open the “Ransomware Recovery” tab (1.11.21 or later) and choose “Before” under “★ Recommended”. On the command line, use sudo roamswitch-ransomware-rollback list and sudo roamswitch-ransomware-rollback restore-files <ID> <PATH>.

    This works on btrfs or LVM, not on an ext4 home. Snapshots from before the damage are taken every 6 hours by default. The snapshot taken at detection is already encrypted, so it cannot be used for restoring.

    Retrieval does not overwrite; by default it places the files in <target>/RoamSwitch-Recovered/<ID>/. restore, which overwrites, is the last resort (command line only).
  5. Look for a decryption tool. If there is no snapshot, look for a decryption tool in No More Ransom's list of decryption tools or in the National Police Agency's ransomware damage prevention measures (the recovery section). Tools exist only for some analyzed variants, and RoamSwitch does not decrypt. Before using one, remove the source of the infection, keep the encrypted files and the ransom note, and do not pay the ransom. Because communication is cut, search from a smartphone on another connection or from another computer.
  6. Release. Time alone does not release it. It is released only when you have confirmed the cause is gone, or when you release it with “Release Air-Gap and restore communication” in the tray or with sudo roamswitch emergency-restore.
  7. Watch. After releasing, check that the same detection does not appear again. Before putting retrieved files back in their original place, check their contents.