Watch your servers
Read your first report
A scan prints one report: who it ran on, a grade, and each problem with its fix. This page walks through it from the top.
$ sudo kiyesi scan
Kiyesi 0.39.3 · read-only scan · nothing leaves this server
web-1 · Ubuntu 24.04 · 25 checks in 2.9 s
GRADE C 70/100 1 critical · 3 warnings · 19 passed · 2 skipped
based on 23 of 25 checks
CRITICAL
FAIL Redis is open to the internet on port 6379 · likely
Fix: set bind 127.0.0.1 ::1 in /etc/redis/redis.conf, then sudo
systemctl restart redis-server
WARNING
WARN No backup is set up for Kiyesi to check
WARN No firewall is on
WARN /opt/appstack/.env.api holds secrets and every user on this server can read it
DATA LOCATION
Server this server unknown found once connected
Database postgresql (this server) unknown found once connected
SKIPPED
SKIP Known vulnerabilities: Trivy is not installed. Install Trivy 0.74.0 or newer to check
SKIP Server location: the provider's details could not be read, so the country is found from this server's address once it is connected
Kiyesi can fix 2 things for you: sudo kiyesi fix
It says what it will change, and asks first.
Full report with every fix command: /var/lib/kiyesi/report-2026-10-24.txt
The header
Section titled “The header”The first two lines say what ran and where: the Kiyesi version, that the scan is read-only and sends nothing, the server’s name, its system, and how many checks ran and how long they took.
If Kiyesi is not checked on that system before each release, the header says so beside the system’s name: “(outside Kiyesi’s release checks)”. The scan still runs.
The grade
Section titled “The grade”Every scan starts at 100. Each critical finding takes off 15, and each warning takes off 5. The letter follows the score:
| Grade | Score |
|---|---|
| A | 90 and above |
| B | 75 to 89 |
| C | 60 to 74 |
| D | 40 to 59 |
| F | below 40 |
The line under the grade counts critical findings, warnings and checks that passed.
Based on N of 25 checks
Section titled “Based on N of 25 checks”When a check is skipped, the grade line says how many checks it is based on, such as based on 17 of 25 checks. A skipped check never counts as passed.
A check is skipped when it cannot read what it needs. Most often that is because the scan ran without root; the report then says needs root: run sudo kiyesi scan.
Critical findings
Section titled “Critical findings”A critical finding is something that is hurting the server now, or lets anyone in. Each one shows its fix right under it, so you can copy it and run it.
Warnings
Section titled “Warnings”A warning is worth fixing soon. To keep the report short, warnings show only their sentence. Every fix is in the saved report file.
Every fix, for you to run
Section titled “Every fix, for you to run”Kiyesi never changes your server: every finding’s fix is the commands, for you to review and run. sudo kiyesi fix lists them all, worst first, with why each matters: see Fix what Kiyesi finds. Optional clean-ups, such as old Docker images, do not change the grade: the saved report lists them under Info, with anything else that does not change the grade, and sudo kiyesi fix calls them optional.
What Kiyesi cannot see from inside
Section titled “What Kiyesi cannot see from inside”The agent reads the server it runs on. A few things that protect a server live outside it, and Kiyesi says so rather than guess:
-
Backups of a hosted database. When a server keeps no database of its own and its apps use one hosted elsewhere (MongoDB Atlas, AWS RDS, Supabase and the like), Backups is skipped, not failed: those backups are the provider’s, by its plan. Check they are on there; some free plans keep none. A server whose backups go off it (restic, rclone,
aws s3in a timed job) is named the same way. A server with no database anywhere is skipped too. Only a server that keeps a database of its own with no backup gets the warning. -
Your provider’s firewall. A firewall your provider runs in front of the server cannot be seen from inside it. Kiyesi names the one your server’s provider offers: a DigitalOcean Cloud Firewall, an AWS security group, a Google Cloud VPC firewall rule, an Azure network security group, a Hetzner Cloud Firewall or a Vultr Firewall; on any other provider, “your provider’s firewall”. If one protects the server, say so in
/etc/kiyesi/config.yaml:ports:provider_firewall: trueFirewall then passes as your provider’s, and ports and databases on public addresses are shown as behind it, not open to the internet.
-
Ports you mean to open.
ports: allowed: [8080]keeps a port you serve on purpose from being flagged.
The saved report
Section titled “The saved report”Each scan saves a full report, with every finding, why it matters, and its fix:
/var/lib/kiyesi/report-<date>.txtwhen the scan runs as root~/.local/state/kiyesi/when it runs without root
The last 30 reports are kept.
For scripts and pipelines
Section titled “For scripts and pipelines”Print the result as JSON instead of the report:
sudo kiyesi scan --jsonMake the command fail when there is a critical finding, so a pipeline can stop:
sudo kiyesi scan --fail-on criticalColour is turned off when the output goes to a file or a pipe. To turn it off anywhere, set NO_COLOR:
sudo NO_COLOR=1 kiyesi scanExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
The scan ran. Nothing matched what you asked it to fail on. |
1 |
The scan found something you asked it to fail on, such as --fail-on critical. |
2 |
The command has a mistake in it, such as an unknown flag. |
3 |
Kiyesi could not reach the service, or was not allowed to do what was asked. |