Skip to content
Analysis/Server analysis

Analysis

Server analysis

What Analyze reads, what host access adds, and how it stays read-only.

Server analysis is in beta and not fully ready. A report can miss something or get it wrong, so check a finding against the server before acting on it. The Analyze button and the panel both carry a Beta tag to say so.

Analyze, on a box's page, reads the last 72 hours of its metrics and writes a report: findings across performance, availability, capacity, recoverability and maintainability, forecasts for what is trending toward a threshold, the risks behind them, and anomalies — anything that has drifted from what is normal for that box. With host access turned on for that box, it can also run a fixed set of read-only commands on the machine itself — a process list, a service's status, the end of a log, SSH and account policy, kernel hardening settings, what is listening, and the scheduled jobs that would restore it — and use what they show to explain a cause, not just report a number. A run in which the host answered at least one command gains a sixth category, security, placed first.

  • Eight successful analyses per account every 8 hours — a rolling window, so a slot comes back 8 hours after the run that used it, not at a fixed time of day. Without an Anthropic API key on the server, every run shows a labelled sample instead, and there is no quota.
  • With host access on, the same 52 read-only commands run on every analysis, each capped at 15 seconds and 64 KiB of output. They are recorded for auditing — which ran, their status, size and duration — but their output is never stored.
  • A run can take up to about 10 minutes. It happens on the server, so closing the panel (it asks first) or the tab entirely never stops it — reopen later and a finished report is waiting.
  • Findings are about the server itself — never about Monilogix or the agent watching it.
  • Container logs are never part of a run. An analysis reads your metrics and, with host access on, the fixed 52 commands below — nothing your containers print is sent, whether or not Docker reporting is on for that box.
  • Every successful report is kept, and past analyses can be reopened from the Analyze panel at any time. Sample runs are not stored.

Host access

Off by default, and per box. Turning it on needs two things: the box running agent 0.4.0 or newer, and host_access_enabled: true in its /etc/monilogix/config.yaml.

Turning it on

At install, or any time after with the same command:

$curl -sSf https://monilogix.jpjapos.com/install.sh | sh -s -- --key mlx_your_agent_key --enable-host-access

On a box that already has the agent, no key is needed and -s -- has to be spelled out before the flag:

$curl -sSf https://monilogix.jpjapos.com/install.sh | sh -s -- --enable-host-access

Or edit /etc/monilogix/config.yaml by hand and restart:

$sudo systemctl restart monilogix-agent

Turning it off

--disable-host-access on the same install command, or set host_access_enabled: false and restart monilogix-agent. The box goes back to a metrics-only analysis; nothing else about it changes.

A box on an older agent, or with host access off, still gets an analysis — it just reads metrics only. Nothing here is required.

How “read-only” is enforced

Not one promise — several independent layers, each of which has to hold on its own:

  1. The host opts in. Nothing runs on a box that has not set host_access_enabled: true.
  2. A fixed allowlist on the agent. Every command the analysis runs is matched against the table below before anything runs. There is no shell in the path at any point — arguments are passed straight to a program, never interpreted — so nothing resembling ; rm -rf / in an argument is even meaningful, let alone dangerous.
  3. An unprivileged system user, for all but five commands. Almost every allowed command runs as monilogix-reader, not as the agent itself. Linux's own permissions refuse it a service restart, a process kill, or a read of another user's private files, regardless of what the allowlist would otherwise let through — it can still read whatever is world-readable, and, through the adm/systemd-journal groups, logs.
  4. Five exceptions, and why they exist. Reading a firewall ruleset is the one thing an unprivileged user cannot do at all: iptables and nft need CAP_NET_ADMIN simply to list rules, and ufw calls them. So ufw status, iptables -S, ip6tables -S, nft list and firewall-cmd's read flags run as the agent. They are the whole privileged surface, they are held to reading only — every write verb is refused, and nft arguments containing ; or { are refused outright, because nft would read them as a second command — and they live in their own list in the agent so that what runs as root can be read in one sitting. Without them a box whose rules are in iptables is indistinguishable from a box with no firewall at all.
  5. A read-only filesystem. The agent runs inside a systemd sandbox (ProtectSystem=strict): the filesystem is read-only, so there is nowhere for monilogix-reader to write, whatever a command asked for.
  6. Secret paths refused by name. SSH keys, /etc/shadow, the agent's own config, .env files and a handful of others are refused outright — see the list below — whatever the allowlist would otherwise permit for the program asking.
  7. Output redaction and caps. Anything that looks like an agent key or a private key is replaced before it leaves the host, and every command's output is cut at 64 KiB.
  8. A rule in the model's own instructions, repeated at the start of the conversation and again at the end. It is the last layer and deliberately not the only one: text a command reads back — a log line, a file — can try to talk a model into doing something else, and the rule is there for exactly that attempt.

The allowlist

Commands run as arguments to a program, never through a shell. argv[0] is resolved only from /usr/bin, /usr/sbin, /bin and /sbin — never from PATH — and every command has a 15 second timeout and a 64 KiB output cap.

GroupAllowed
Systemuname, uptime, id, lscpu, hostnamectl (no args, or status), timedatectl (no args, status or show)
Processes & memoryps, top (batch mode only), free, vmstat
Disksdf, du (a bounded depth), lsblk, findmnt, iostat
Networkss (read-only flags), ip addr / link / route (a show/list verb, never a mutating one)
Services & logssystemctl (status, show, list-units, list-unit-files, list-timers, is-active, is-enabled, is-failed, cat), journalctl with read-only flags — never -f/--follow, and never a maintenance flag like --rotate or --vacuum-time
Packagesdpkg (-l, -s, -L, -S), dpkg-query, apt (list, policy, show), apt-cache — dpkg and apt because the agent runs on Debian-based servers
Firewallufw status (no other verb), iptables / ip6tables with -S or -L only, nft list, firewall-cmd's read flags. The only commands that run as the agent rather than as monilogix-reader, because a ruleset cannot be read otherwise — every rule-changing verb and flag is refused
Kernel settingssysctl, reading only — never -w or a key=value argument
Web servernginx -T — that exact command and no other
Loginswho, w, last
Filesls, stat, head, tail (never -f), wc, grep. Every path argument must be absolute and passes the same path check as read_file and list_directory, below.
Reading a file or a directoryNot a program the analysis names — a request for the start or end of one file, or a directory listing, run the same way as everything else in this table: as monilogix-reader, against the same path check.

Anything not in that table is refused, whatever the box or the request — that includes every shell and interpreter (sh, bash, dash, zsh, python, perl, ruby, node, php, lua, awk, sed, …), every network client (curl, wget, ssh, scp, rsync, nc, …), anything that kills a process, any package manager's mutating verbs, sudo/su/doas, find, xargs, tee, dd, env, nohup, timeout, chroot, and docker.

Paths that are refused outright

Regardless of which program is asking, and checked against both the path given and where it actually resolves to:

  • /etc/shadow*, /etc/gshadow*, /etc/sudoers and its .d directory
  • SSH host keys, and any path with a .ssh component
  • /etc/monilogix/config.yaml and the rest of /etc/monilogix — it holds this box's agent key
  • /root
  • /proc/*/environ, /proc/*/mem, /proc/kcore
  • /dev, entirely
  • A file named .env, starting with .env., or ending in .pem, .key, .p12 or .pfx

What leaves the host

A command's output goes to your Monilogix server, and from there to Anthropic, to write the analysis. Monilogix does not store it: what it keeps, for auditing, is which commands ran, their status, how much they printed and how long they took — never the output itself. Anthropic's own retention is theirs to describe, not this page's.

Boxes is where Analyze lives, on each box's own page.