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.
| Environment | What you can use |
|---|---|
| Mac (macOS 12 or later) | The app and the command |
| Linux client edition | The app and the command |
| Linux Server Edition packages | Command 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
- 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.
- 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.
- Press 'Run diagnosis'. Progress appears as 'Reading logs' and 'Analyzing', and the results open when it finishes.
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.
| Type | What can be read |
|---|---|
| Web servers | Apache, 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 authentication | sshd, 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 |
| Others | fail2ban, 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.
| Tab | What you see |
|---|---|
| Dashboard | Overall 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 |
| Findings | The list of findings. You can filter by severity and search by title |
| Input logs | Which logs were read and how many lines. Logs that could not be read, with the reason |
| Analyze with LLM | Have 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.
- Confirmed means something the logs alone can show.
- Likely means the attempt probably happened.
- Hypothesis means something the logs alone cannot confirm.
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.
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.
- What is counted: logs that could not be read, were not found or were in no recognized format; logs with no records in the selected period; logs read only in part because of the size limit (
--max-mb); journald, macOS unified log anddocker logsoutput that ended early (timeout, read-size limit or command failure); lines of a web log that could not be parsed (when there are at least 10 and at least 5%); lines that were invalid UTF-8; and files not read because one directory had more than 500 candidates (the oldest are dropped first). - How "no findings" is worded: when part of the input could not be examined, it reads "No findings in the part that was examined" and says that some input was not examined. No findings is not proof of safety.
- Exports carry the same content:
coveragein JSON, rows withstate=coveragein CSV, andcoveragenotifications in SARIF. It is also part of the summary handed to an LLM.
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.
- In the 'Findings' tab, press 'Exclude this IP...' next to the IP of a finding.
- Enter a reason and press 'Add to suppression rules'. The reason is kept in the report.
- 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.
| Button | What it does |
|---|---|
| Save report (Markdown) | Saves the diagnosis report as a Markdown file |
| Copy summary | Copies 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.
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
- Raw logs are not sent. What is sent is the statistics, the facts of each finding, and up to 3 evidence log lines per finding (up to 300 characters per line). With step-by-step investigation, an answer to a query can include up to 14 evidence log lines per finding.
- Secrets such as keys, tokens and passwords, and email addresses, are masked before sending.
- IPs are passed in a defanged form such as
203[.]0[.]113[.]9. If you tick 'Do not send real IPs (use pseudonyms)', they are replaced with pseudonyms such asip-001.
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.
- The contents of a log can be written by an attacker. AccessScope reports strings that look like instructions to an AI as findings, and it shows LLM output as untrusted quotation. An LLM may also read a finding as more serious than it really is, so confirm any conclusion against the evidence log lines.
- For claude and opencode, AccessScope starts them with their tools (running commands and reading files) disabled. codex and agy cannot have their tools disabled, so you need to tick the confirmation shown in Settings. LLM analysis can be used as root too, but the LLM then runs with root's rights, so an unprivileged user is recommended (a note is shown in Settings while the app runs as root).
- The IP addresses, domains, CVE IDs and hashes the LLM writes are compared with what it was given (the summary and the evidence log lines). A value that appears nowhere in that material is listed in the LLM section of the report and on screen under “Values not found in the collected material”, as a possible invention. Only the strings are compared; the LLM is not asked.
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
| Option | What it does |
|---|---|
--auto | Looks for logs in the standard locations and diagnoses them. --since 7d narrows the period |
--report FILE | Writes a Markdown report |
--format json|csv|sarif|brief-json | Changes 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|low | Ends with exit code 3 if there is a finding at or above that severity |
--fail-on-partial | Ends with exit code 4 when some part could not be examined, such as logs that could not be read |
--since-last、--new-only | Compares with the previous run and shows only the new findings |
--llm NAME、--show-prompt | Has 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|cron | Prints 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-investigate | Use 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 |
--notify | Use 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 check | Checks 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"]
- A rule applies to requests that match every item written in it.
reasonis required and appears in every report. A rule past itsexpiresdate is not applied. - A finding with a High severity is not removed unless the rule has
allow_high = true. - The User-Agent and the path are values that a client can write. A rule that uses only those, without an IP, cannot remove findings such as attacks, authentication and web shells.
9. What AccessScope Cannot Do
- AccessScope can see only the facts that remain in the logs. It cannot know the request body, the contents of responses, the internal state of an application, or periods that were rotated away. No findings does not prove that you are safe.
- A finding means that an attempt happened, and it is not evidence that the attempt succeeded. A User-Agent is self-reported and can be spoofed.
- A chain that spans several logs is based only on the fact that the address is the same. Behind NAT or a proxy, unrelated people can look like the same address. Internal addresses (a reverse proxy or a Docker gateway) stand for many clients at once, so they are not put into a chain. A chain with no sign of success gets the low severity.
- 'Logins from an unfamiliar source' means unfamiliar to that log, and it is not necessarily unauthorized. 'Changes from the usual' only shows a change, and it is not necessarily an attack.
- Tested with real output: Envoy (including Istio's format), Google Cloud Run, containerd's CRI, the MySQL general log, the MariaDB Audit Plugin log, host execution records, and the Linux audit log (Ubuntu and AlmaLinux). The logs of AWS ALB, CloudFront, Cloudflare, Google Cloud load balancers and Podman were tested only with lines built from the vendors' documentation, not with real output.
- Host execution records have no IP. They are linked to a web attack only by the 5 seconds that follow it, so an unrelated process at the same moment can be paired with it. If the clocks of the web log and the host records differ, a pair is missed or a different event is linked.
- A suspected HTTP tunnel (web_tunnel_suspect) cannot be confirmed, because the log has no request body. A payment service's webhook looks the same. The detections of API and static-file reconnaissance are always Low and never put in a blocklist, because crawlers, monitors and penetration tests look the same.
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.
- For file logs, start AccessScope as a user with permission, or copy the log and choose the copy with 'Choose files'.
- For journald on Linux, start it as root or as a user in the adm, systemd-journal or wheel group.
- For the macOS unified log, start it as a user in the admin group.
'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.