Vorwatch, our open source server watch script, now checks your own site for setup mistakes and warns about new start-up entries, expiring certificates and full disks.

Read the full post: https://vektormemory.com/blog/vorwatch-0-11-1-check-your-own-site

What is Vorwatch?
A free, open source bash script that watches a Linux server you run yourself, and tells you when something changes.

Files: edits to sshd_config, passwd, nginx.conf and other important files.
Ports and processes: new listening ports, and a web server starting a shell.
Network: first connections to new addresses, and SSH attempts from known bad ones.
Web traffic: unusually busy visitors and scanners in your nginx log.
Vulnerabilities: installed packages with known flaws, with actively exploited ones marked.
Hardening: risky SSH settings, file permissions and, if a scanner is installed, rootkits.
Why would you try it?
Small: no daemon, database, dashboard or compiled program, only a script run from cron.
Readable: you can read all of it before giving it sudo.
Careful: it recommends and never blocks an address or touches your firewall.
Plain output: text logs and reports, or JSON for your own tools.
Private by default: email and reputation scores need your own keys, and the vulnerability check sends your package list to OSV.dev.
Know the limit: it checks every 15 minutes, so something that comes and goes in between can be missed.

Vorwatch probe output listing setup mistakes on a local test site
The next probe run showing which findings are fixed
Alerts for a new cron file and a new setuid program

  1. First probe: what is wrong
  2. Next run: what you fixed
  3. Check: what is new on the server What is in this release? Today we're excited to release Vorwatch 0.11.1. It lets you check your own website from the outside for setup mistakes, and tells you when something new is set to run on your server, a certificate is close to expiry or a disk is filling up.

We tested the new probe against two small sites on one PC, one built with nine deliberate mistakes and one set up carefully, and it reported all nine on the first and nothing on the second. Vorwatch still only reports and recommends, and you decide what to change.

What is new in 0.11.1?
Site probe: vorwatch probe checks headers, content policy, TLS, cookies, cross-origin rules and redirects.
Start-up watch: new or changed cron jobs, systemd units and SSH keys.
Setuid watch: new programs that run with their owner's rights.
Disk watch: a warning when a disk reaches 90%.
Certificate watch: warnings before a certificate expires, including the one your web server is actually sending.
Token watch: a reminder when a token has not been changed for 90 days.
Can I check my own site from the outside?
Yes, with one command that uses only curl and openssl. You list the sites you own, because the probe refuses any address that is not on the list.

VORWATCH_PROBE_SITES="https://example.com" vorwatch probe https://example.com
The result marks what is new since the last run and what you have fixed:

vorwatch probe: https://example.com

  • MEDIUM content policy is report-only: nothing is blocked LOW the Server header shows a version number
  • fixed: HIGH no HSTS header It can also ask for files that should never be served, such as .env or .git. That part runs only on the server itself against 127.0.0.1, because the same requests from outside can get your own address banned by fail2ban. A file counts as exposed only when its contents look like the real thing, so a friendly "not found" page does not raise an alarm.

Known limit: this is not a penetration test. It finds setup mistakes, and it cannot tell whether one of your users can read another user's data.

We looked at Strix, an open source security testing agent, and took the idea of an outside-in pass from it. We wrote our own small script because we did not want to add Docker or a model to a tool that runs from cron.

How will I know if something new starts on my server?
Anyone who gets into a server usually wants to stay there, often by adding a cron job, a service or an SSH key. Vorwatch now keeps a fingerprint of each of those files and tells you when one is added or changed, and it does the same for new setuid programs.

The first run records what is already there and stays quiet about it. That keeps the alerts useful, but it also means you should read that first list yourself, since anything planted earlier is treated as normal.

Will it warn me before a certificate or token lapses?
Certificates are checked in two places, the file on disk and the one your server sends to visitors. A renewed file that nginx has not reloaded looks fine on disk and still breaks the site, so checking both catches it. You get a warning 14 days ahead, and another if the renewal service has failed.

Token watch is off until you point it at your .env file. It stores a short hash of each value to notice when it changes, without printing or copying the token. A Cloudflare token is also sent to Cloudflare once a week to check that it is still valid.

Try it today
sudo npm install -g @vektormemory/vorwatch
sudo vorwatch-install
Without npm, clone it instead:

git clone https://github.com/Vektor-Memory/Vorwatch.git
cd Vorwatch
sudo bash install.sh
Then run vorwatch baseline once, followed by vorwatch check. The README lists every setting.

Also in 0.11.1
Quieter port alerts. Tailscale listening ports are no longer reported as new.
Quieter SSH alerts. Your trusted address ranges are skipped.
Fixed: vorwatch check no longer stops part way on servers without a Cloudflare token. Update if you run an earlier version.
Fixed: the npm install route, including the probe and its settings.
Fixed: log lines with no client address are ignored.
Vorwatch is free and open source under Apache 2.0: github.com/Vektor-Memory/Vorwatch

Novel Technology · Privacy Enhanced · Data Sovereignty · Vektor Memory