Skip to content

Host checks

Checks from inside a host. They need an active, connected SSH tab and use its connection; the dialog shows Host: with the tab’s label. Commands run with your SSH login and appear in the server’s logs (auth log, journal, auditd).

Scan Packages… finds known vulnerabilities of the installed OS packages. The scan runs on this computer:

  1. Over SFTP, fixed files are copied into a private temporary folder, paths kept: /etc/os-release, /usr/lib/os-release, /etc/debian_version, /etc/redhat-release, /etc/system-release, /etc/alpine-release, /etc/lsb-release, /var/lib/dpkg/status (and status.d/), the rpm databases (rpmdb.sqlite, Packages) and /lib/apk/db/installed. Each file has a size limit.
  2. On the server only two things run: counting installed packages (dpkg-query -W, rpm -qa or apk info) and checking /var/run/reboot-required.
  3. trivy rootfs --scanners vuln --pkg-types os --format json --list-all-pkgs --timeout 5m --cache-backend memory --skip-db-update --offline-scan … reads that copy against the local vulnerability database.

Nothing is installed or written on the server. With exploit data downloaded, vulnerabilities are marked when they are in CISA KEV, have an EPSS score, a Metasploit module, a nuclei template or an Exploit-DB entry, with the impact class (remote code execution, privilege escalation, login bypass) from trivy’s CVSS vector, CWE and title.

Audit Host… runs fixed read-only shell scripts over the tab’s SSH connection: one exec channel each, no PTY, no sudo, no file written. The report shows every script with its exit code, time and output.

Section Reads
User and system id -un, id -u, uname -srm, PRETTY_NAME from /etc/os-release
SUID/SGID files find / -xdev -type f \( -perm -4000 -o -perm -2000 \) -exec ls -ldn {} + (time limit 120 s when timeout exists, at most 2000 lines)
World-writable system files and PATH find in /etc, /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin and systemd unit folders; every folder of the login PATH
Accounts (/etc/passwd, password field hidden) /etc/passwd, with the password field replaced by EMPTY, LOCKED or HASH; UID_MIN from /etc/login.defs
sshd configuration (files) /etc/ssh/sshd_config, /etc/ssh/sshd_config.d/*.conf when readable
authorized_keys of this user (key lines only) modes of ~, ~/.ssh and the files; key lines only, environment= values masked
Listening ports ss -tuln, else netstat -tulnW / -tuln
Firewall which of nft, iptables, ufw, firewall-cmd exist; systemctl is-active of firewalld, nftables, ufw, netfilter-persistent, iptables; OpenRC services; ENABLED= of /etc/ufw/ufw.conf
Automatic updates unattended-upgrades and APT::Periodic::*; timers apt-daily-upgrade, dnf-automatic, dnf5-automatic, yum-cron; apply_updates in their config

Run Lynis… uses the Lynis from your Homebrew (brew install lynis).

Mode What happens
As the login user (--pentest, some tests skipped) Default. Runs over SSH exec.
With sudo: full audit, the line runs in the tab’s terminal KryoDesk types a line into the tab’s terminal; you start it with Return and sudo asks for the password there. The sudo call is logged on the server. Afterwards Fetch Report or Remove Copy.

Steps:

  1. Lynis is copied unchanged over SFTP into a new private folder /tmp/kryodesk-lynis.<random> with a SHA256SUMS file. KryoDesk adds custom.prf: no upgrade check (a DNS lookup), no repository refresh, no upload.
  2. Lynis runs as sh ./lynis audit system --usecwd --plugindir <dir>/plugins [--pentest] --quick --no-colors --logfile … --report-file …. In sudo mode the line first copies the folder to a root-owned <dir>.root, checks the file list and checksums and refuses to run if they differ.
  3. lynis-report.dat is read back over SFTP and parsed; the folder is removed.

The audit takes 1–5 min, uses CPU and disk I/O and reads most of the system configuration. Security tools on the host (EDR, auditd, AIDE) may report it. Commands and custom.prf are listed in the dialog under Commands with Copy Commands.

Every folder created on a server is recorded in lynis-copies.json in the KryoDesk folder (host label and path only) until it is removed, so a copy left by a closed tab, a lost connection or a quit app is shown later and can be removed.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close