ACCESSSCOPE · Last updated 2026-10-28

AccessScope User Manual

This manual explains how to use a diagnosis tool that finds attack attempts in your server access logs and shows the log lines behind each finding. It covers the steps in the app first, and chapter 8 collects how to use the command line.

1. About AccessScope

AccessScope reads the logs that your web server or SSH server already keeps and looks for attack attempts. Every finding is shown together with the log lines it is based on. It suits people who run their own servers and want to check whether suspicious requests are left in the logs.

AccessScope only reads your logs. It never changes or deletes them, never blocks traffic, and never raises privileges. The diagnosis itself uses neither an LLM nor the network.

EnvironmentWhat you can use
Mac (macOS 12 or later)The app and the command
Linux client editionThe app and the command
Linux Server Edition packagesCommand only

On Mac, AccessScope is included in the RoamSwitch DMG. On Linux, it is included in the RoamSwitch deb, rpm and tarball. It is a separate tool from RoamSwitch and is licensed under the Apache License 2.0. To start it, choose the app icon on Mac, or choose 'AccessScope' in the app list on Linux.

Saved files

AccessScope saves your settings, the list of logs it found, your suppression rules and the record used to compare with the previous run. All of them are placed under ~/.config/accessscope/ with permissions that only you can read and write.

Updates

On Mac, AccessScope connects to lafine.net only when you press 'Check for updates' under 'Updates' in Settings. It sends no information about your machine or your logs, and it verifies the signature of a downloaded file before installing it. Linux has no in-app update, so you update through your package manager.

2. Your First Diagnosis

  1. Choose the logs. The easiest way is “Find logs on this device”. It automatically finds logs such as nginx, Apache, and SSH, and lists them under “Logs found on this device”. If you know the location, choose with “Choose files” or “Choose folder”, or drop files or folders onto the window.
  2. Choose the 'Period'. The default is 'Last 7 days', and you can change it to 'Last 24 hours', 'Last 30 days' or 'All'. The period is counted back from now, so choose 'All' when you want to diagnose old logs.
  3. Press 'Run diagnosis'. Progress appears as 'Reading logs' and 'Analyzing', and the results open when it finishes.
Read-only
Your log files are never changed. If a log cannot be read because of missing permissions, AccessScope does not raise privileges to read it and simply shows that it could not be read.

3. Supported Logs and Where to Find Them

AccessScope detects the type of a log from its contents. Rotated logs compressed with gzip can be read as they are. If you choose a folder, it reads all the files in it that look like logs.

TypeWhat can be read
Web serversApache, nginx, Caddy, Traefik, HAProxy, AWS ALB and CloudFront, Cloudflare Logpush, Envoy and Istio, and Google Cloud logs (such as load balancers). For cloud logs, download them first and then choose them with “Choose files”
SSH and authenticationsshd, sudo, su and PAM. On Linux it reads auth.log, secure and journald. On Mac it reads the macOS unified log
Host records (optional)The RoamSwitch Server execution records and the Linux audit log (/var/log/audit/audit.log). They make no finding of their own. If a web server account starts a shell or similar within 5 seconds after a web attack request, the confidence of that finding is raised. The automatic search does not find them, so pick the file
Othersfail2ban, mail (Postfix, Dovecot), databases (MySQL and MariaDB error logs, the MySQL general log, the MariaDB Audit Plugin log, PostgreSQL), and container logs of Docker, Kubernetes and Podman (Kubernetes and Podman logs are not found by the automatic search, so pick a file or a folder)

'Find logs on this machine' checks the standard locations and the log locations that your web server configuration files point to. Only files confirmed to be readable as logs are listed.

Docker containers

If you tick 'Also check Docker containers', the Docker logs on this machine are included too. Before the diagnosis, the confirmation screen shows the commands that will run and the target containers, and AccessScope reads them only after you press 'Agree and diagnose'. It only reads and never raises privileges.

Searching for logs with an LLM (optional)

If nothing is found, you can ask an LLM to look for the locations with 'Also search with an LLM'. Only facts about the environment are passed, such as the names of running servers and the names of files in places like /var/log. The contents of the files are not passed. Suggestions appear with their checkboxes cleared, after AccessScope has confirmed that they can be read. See chapter 7 for the settings.

4. Reading the Results

When the diagnosis finishes, you can check the results in four tabs.

TabWhat you see
DashboardOverall risk (None, Low, Medium, High), the number of findings by severity and by category, the trend over time, and the IPs and paths with the most requests
FindingsThe list of findings. You can filter by severity and search by title
Input logsWhich logs were read and how many lines. Logs that could not be read, with the reason
Analyze with LLMHave an LLM write the text of a report (chapter 7)

How to read a finding

A finding is shown by name, such as 'SQL injection attempts', and has a severity (High, Medium, Low) and a confidence. Confidence tells you how much can be said from the logs alone.

Open the 'Evidence lines' to see, exactly as they are, the log lines that a finding is based on. They are closed by default, so read the name and the reason first and open only the ones you are curious about.

An HTTP 200 does not mean the attack succeeded
A server on the internet is scanned all day, and a static site returns 200 even to requests that look like attacks. AccessScope compares the size of a 2xx response to an attack-looking request with the normal response for the same path. If the size is the same, it shows 'the payload was probably ignored' and does not raise the severity. Only responses that differ from the normal one are treated as 'an effect is suspected', and even then the confidence stays at 'Hypothesis'.

The overall risk (0 to 100) is a guide weighted by severity and confidence. It does not grow just because there are many findings, and it never becomes 'High' unless there is at least one High severity finding. It is not a probability, so please treat it only as a guide.

What was not examined

The diagnosis result applies only to the range of logs that could be read. Only when something was skipped, the report gets a short “range not seen”, and the same content also appears in “Input logs” on the screen. When all the logs could be read to the end, nothing is added.

5. Reducing What You Have to Review

Suppression rules

Findings that you already know will appear, such as your office IP, uptime monitoring or your own vulnerability scans, can be removed from the report. Removed findings are not thrown away. Their counts are kept together with the reason.

  1. In the 'Findings' tab, press 'Exclude this IP...' next to the IP of a finding.
  2. Enter a reason and press 'Add to suppression rules'. The reason is kept in the report.
  3. Check the details in the confirmation dialog and approve. The rule takes effect from the next diagnosis.

'Suppression rules' in Settings lists the rules that are currently active. It is for viewing only, and you cannot edit rules there. Rules with detailed conditions go in a file in the settings folder (suppress.toml), and chapter 8 explains how to write it. Findings with a High severity are not removed even if they match a rule, and they stay in the report.

Comparison with the previous run

When you diagnose the same combination of logs repeatedly, AccessScope compares with the previous record and marks newly appeared findings as 'New'. Tick 'New only' in the 'Findings' tab to show only the new ones. On the first run, every finding is treated as new. The record contains only the fingerprint (hash) of each finding, its type, severity, count and time, and never the text of your logs.

6. Exporting Results

The buttons at the top of the results screen let you take the results out of the app.

ButtonWhat it does
Save report (Markdown)Saves the diagnosis report as a Markdown file
Copy summaryCopies the summary to the clipboard
Export…Exports a blocklist (a list of IPs), the list of findings, or a draft of web_guard.conf for RoamSwitch Server

With 'Export…' you can choose fail2ban-ip, nftables, ipset, nginx-deny, apache-require or csv as the blocklist format. The list of findings can be exported as CSV, SARIF or JSON. 'web_guard.conf draft' under 'RoamSwitch' writes a draft of the settings file of RoamSwitch Server. Every suggested line is a comment, and only the lines whose '# ' you remove after checking take effect.

For a blocklist you can choose 'What to include' from 'default', 'stricter' and 'wider', and the number of IPs to be exported is shown before you save. IPs of official crawlers and IPs covered by suppression rules are never included.

It only exports and applies nothing
AccessScope only writes files. It does not change firewall settings and does not block traffic. The list of IPs is based on logs alone. Behind NAT or a CDN, many people can share one IP, and IPs can also be spoofed. Always check the contents before you apply them.

7. Analysis with an LLM (Optional)

This feature has an LLM write up the diagnosis results as text. It is off by default. To use it, tick 'Enable analysis with an LLM' under 'LLM integration' in Settings, choose the 'LLM to use' and press 'Save'. You can choose from claude, opencode, codex and agy, limited to those whose command is installed on the machine.

What is sent

Press 'Show exactly what will be sent' in the 'Analyze with LLM' tab to see the whole text that will be sent. This does not send anything. Data is sent for the first time when you press 'Analyze with LLM'. With step-by-step investigation, you can see only the first round. What is sent in later rounds depends on the LLM's queries, so it cannot be shown in advance.

Not covered by 'Zero Telemetry'
When you enable this feature and run an analysis, the summary and the evidence log lines are sent to an external service through the command of the LLM you chose. Where they go is decided by the settings of that command itself. This feature is not included in the RoamSwitch 'Zero Telemetry' description. While it stays off, the contents of the logs read in a diagnosis never leave your machine.

8. Using the Command Line

In a command-only environment such as the Server Edition, or when you want to run it regularly with cron, use the accessscope command. It uses the same engine as the app, so it finds the same findings.

On Mac, if the app is in the Applications folder, the command is at /Applications/AccessScope.app/Contents/MacOS/accessscope. To call it by its short name, run the following in Terminal. After that, accessscope alone works.

sudo mkdir -p /usr/local/bin
sudo ln -sf /Applications/AccessScope.app/Contents/MacOS/accessscope /usr/local/bin/accessscope
accessscope discover
accessscope scan --auto --since 7d --report report.md
accessscope scan /var/log/nginx/access.log /var/log/auth.log
OptionWhat it does
--autoLooks for logs in the standard locations and diagnoses them. --since 7d narrows the period
--report FILEWrites a Markdown report
--format json|csv|sarif|brief-jsonChanges the format of the standard output. brief-json is a small JSON of a fixed shape for other tools (evidence lines are already masked, and at most 40 findings)
--export-blocklist FORMAT[:FILE]Exports a blocklist
--export-roamswitch FILE|-Writes a draft of web_guard.conf for RoamSwitch Server. Every suggested line is a comment, and nothing is applied
--fail-on high|medium|lowEnds with exit code 3 if there is a finding at or above that severity
--fail-on-partialEnds with exit code 4 when some part could not be examined, such as logs that could not be read
--since-last、--new-onlyCompares with the previous run and shows only the new findings
--llm NAME、--show-promptHas an LLM analyze the results. --show-prompt shows the whole text that would be sent and then exits (nothing is sent)
--print-schedule=systemd|launchd|cronPrints an example of a scheduled run (systemd, launchd or cron). It writes no file and registers nothing. --interval-min sets the interval (1 to 1440 minutes)
--llm-investigateUse it with --llm. Before it writes the report, the LLM can make up to 6 read-only queries about the diagnosis results (the LLM is called once per round). Log files are not read again and raw logs are not passed on
--notifyUse it with --fail-on or --fail-on-partial. When the exit code is 3 or 4, it shows one desktop notification with counts only (it uses osascript on Mac and notify-send on Linux)
accessscope suppress checkChecks how suppress.toml is written and lists the rules that expire within 7 days and those that have already expired. It changes no file
--what-if-suppress "ip=198.51.100.7"Shows which findings would disappear or shrink if you added that rule. No file is changed (keys such as ip, ua, path and kind)
accessscope fleet a.json b.json ...Combines the scan --format json output of several hosts. It shows attackers seen on more than one host, a merged blocklist and what each host could examine (it makes no connections)

Running it daily with cron

accessscope scan --auto --since 24h --since-last --new-only --fail-on medium

It shows only the findings that were not in the previous run, and ends with exit code 3 only when a new finding is Medium or higher. The diagnosis also works as root, including when --llm is given. accessscope --print-schedule=cron (or systemd, launchd) prints an example of this setup.

The --fail-on decision covers only what could be read. When some part could not be examined, such as logs that could not be read, the exit code stays 0 if there is no detection, and a notice goes to standard error. To make the exit code 4 in this case, add --fail-on-partial. If there is also a detection that matches, it is 3.

The exit codes are: 0 means no problem, 1 means there was no readable log or the output could not be written, 2 means a usage error, 3 means --fail-on matched, 4 means --fail-on-partial found a part that could not be examined, and 5 means the --llm analysis failed. When two or more apply, the smaller number is used.

When the --llm analysis fails, it is written in the report (one line in Markdown and in the terminal output, llm.failed in JSON), and the exit code is 5.

How to write suppress.toml

Write suppression rules in ~/.config/accessscope/suppress.toml. If this file exists, it is read automatically.

[[rule]]
reason  = "office"
ip      = ["203.0.113.0/28"]
expires = 2027-03-31

[[rule]]
reason      = "uptime monitor"
ua_prefix   = ["Mozilla/5.0 (compatible; UptimeRobot"]
path_prefix = ["/healthz"]

9. What AccessScope Cannot Do

About the accuracy figures
In our own test data, 1,136 of 1,142 attacks (about 99.5%) were detected, and none of the 396 normal-traffic cases produced a finding of Medium or higher. The test data is not a sample of real server traffic, so these figures do not guarantee accuracy on a real server.

10. Troubleshooting

It appears under 'Logs that cannot be read right now'

This is shown when permissions are missing. AccessScope does not raise privileges to read logs. Please deal with it in one of the following ways.

'No logs that can be diagnosed were found' appears

The reason is shown as a sentence, for example 'There are no web server logs (Apache, nginx and so on)'. On Mac, when there are no SSH records, it shows 'Remote Login (SSH) may be switched off'. You can try the next step with 'Choose files', 'Search with an LLM' or 'Choose another location' shown on the screen. To see where AccessScope looked, open the closed 'Detailed search results'.

'The Docker logs could not be read' appears

This means one of the following: Docker is not running, Docker was not found, there is no permission, or Docker returned an error. When there is no permission, start AccessScope as a user who can use Docker. AccessScope does not read again with raised privileges, and it does not ask you or advise you to join the docker group, because docker group permission is equivalent to root on the host.

'Not readable as a log' appears

This is shown when not a single line could be parsed from the file you chose. That file is not diagnosed and is not sent anywhere. Check whether it is a supported type of log, and choose again.

'Analyze with LLM' cannot be pressed

The reason appears near the button. If it says 'LLM integration is off', turn it on in Settings. If it says 'No LLM is selected', choose one in Settings. It also cannot be used when the command of the LLM you want to use is not installed on the machine.

All the access sources are proxy IPs

In logs behind a reverse proxy or CDN, the source of access may be the proxy's IP. The default “Auto” decides the client IP from X-Forwarded-For only for lines whose connection source is an internal address. Because it can be forged, this IP is not treated as a verified crawler. Under “Parsing” in the settings you can also choose “Do not use” or other methods, but use the other methods only behind a trusted relay that you manage yourself.

← AccessScope product page To the RoamSwitch Mac User Manual →