Reference
The 25 checks
Each check reads one thing on the server and reports it in one sentence, with the command that fixes it. The words on these pages come from the same file the agent prints from.
25 of 25 checks are built today: 9 health , 11 security and 5 data location . A scan never counts a check that did not run as passed.
Health
- Load The 15-minute load average in /proc/loadavg and the number of CPU cores in /proc/cpuinfo.
- Memory and swap Memory and swap totals in /proc/meminfo.
- Disk The mounted file systems in /proc/self/mounts, and the space and inodes on each.
- Containers Each container's state, restart count and health status, read from the Docker socket.
- Out-of-memory kills The kernel log for the last 24 hours, through journalctl or /var/log/kern.log. In the background, kills are noted as they happen from the system log the agent already follows, so the log is never searched; a scan by hand searches the last 24 hours.
- SSL certificates The certificates in /etc/letsencrypt/live, Caddy's certificate folders, and the certificate files named in nginx and Apache settings.
- Backups The age of the newest file in each backup folder named in /etc/kiyesi/config.yaml, and that file itself, read through once when it is new (gzip, zip, tar, and PostgreSQL and MySQL dumps), to check it would restore. Nothing is unpacked or sent.
- Pending updates The security updates apt has waiting, from a dry run that changes nothing (apt-get -s upgrade, in the background only when the package lists or the installed packages changed, and at least once a day), and the date Kiyesi first saw each one.
- Security fixes for the system The system and its version in /etc/os-release, whether Ubuntu Pro's extended fixes are on in /var/lib/ubuntu-advantage/status.json, and the end-of-life dates built into kiyesi, from the vendors' own pages: ubuntu.com/about/release-cycle and Ubuntu's end-of-life announcements, debian.org/releases and wiki.debian.org/LTS, and Red Hat's life-cycle page, with endoflife.date for the rest. Nothing is downloaded. The date is the last day of free security fixes: for Debian, of its long-term support; for Red Hat and its rebuilds, of Maintenance Support. It warns from 90 days before.
Security
- Open ports The ports listening on public addresses, from /proc/net/tcp and /proc/net/tcp6, and the ports Docker publishes.
- Exposed databases Whether MongoDB, Redis, PostgreSQL or MySQL listen on a public address or are published by Docker, and whether the firewall on this server blocks them.
- Docker bypassing the firewall The ports Docker publishes on all addresses, and the ufw rules for them.
- SSH settings /etc/ssh/sshd_config and the files in /etc/ssh/sshd_config.d.
- Firewall Whether ufw, firewalld or an nftables or iptables rule set is on.
- Login attack protection Whether fail2ban, sshguard or CrowdSec is running, and whether SSH allows password login.
- Secrets in files Environment files, Compose files and shell history in the folders listed under secrets.paths in /etc/kiyesi/config.yaml. Kiyesi reports where a secret is, never its value.
- Risky containers Each running container's settings for privileged mode, mounted volumes and user, read from the Docker socket.
- Known vulnerabilities System packages and container images, checked by Trivy if it is already installed. Kiyesi never downloads Trivy or its database during a scan.
- Leftovers Env files and wp-config.php in the folders under secrets.paths and the web roots, for debug and development settings (the setting's name, never another value); each running container's image and environment; Git folders in /var/www and the other web roots; the sizes of files in /var/log and of containers' logs; and Docker's own count of images and build cache nothing uses.
- Signs of a break-in The programs in the system folders, compared with the checksums their packages installed (dpkg's lists, or rpm -V; once a day in the background); each running process's name, program path and command line, to look for a miner's words (only the name and path are kept); /etc/crontab, /etc/cron.d, the cron folders and users' cron tables, systemd's units in /etc/systemd/system and users' own, and /etc/rc.local; /etc/passwd; the dates of users' authorized_keys files; /etc/ld.so.preload; where users' .bash_history points; and the dates and sizes of the sign-in log and the system log. Never a file's contents beyond these, and never a command line, which may hold secrets.
Data location
- Server location The cloud provider's own details: /run/cloud-init/instance-data.json, the maker in /sys/class/dmi/id/sys_vendor, and the provider's metadata address on its local network (169.254.169.254). Nothing is sent there; the scan only reads the region.
- Database connections The database hosts in env files, Compose files and connection settings in the folders under secrets.paths, and in running containers' environments, by the setting's usual names or by a value that is a database's address. Only the host and port are kept, never the user or password.
- Backup destinations The storage targets in rclone settings, restic repositories, AWS CLI settings, and the backup commands in cron jobs and scripts under secrets.paths.
- Outside services The log, monitoring, email and SMS services named in env files, Compose files and running containers' environments, such as Sentry, SMTP hosts, Twilio and Termii.
- Payment data tag The databases listed under payment_data in /etc/kiyesi/config.yaml.