Watch your servers
Fix what Kiyesi finds
Kiyesi never changes your server: not the agent, not a command, not the dashboard. Every problem comes with the commands that fix it, and you review and run them yourself.
sudo kiyesi fixThis is a fresh Ubuntu 24.04 server with no backup set up and root login over SSH still on:
Kiyesi changes nothing on this server. It only suggests: you review each command and run it yourself.
What to do, for you to review and run yourself:
WARN No backup is set up for Kiyesi to check Why: Without a backup, a failed disk or one wrong command loses the data for good. If you do have backups, tell Kiyesi where they are written. Add the backup folder under backups.paths in /etc/kiyesi/config.yaml
WARN SSH allows root login Why: Attackers try root first. Sign in as a normal user and use sudo. Check that such a user can sign in before you turn root login off. echo "PermitRootLogin no" | sudo tee /etc/ssh/sshd_config.d/00-kiyesi-no-root.conf && sudo systemctl reload ssh
Read each command before you run it. It changes your server, and you are the one who runs it.Critical problems come first, then warnings. Each says why it matters and what to check before you run its commands, such as that you can sign in as your own user before root login goes off. Then run the next scan, sudo kiyesi scan, to see the grade move.
Run it safely
Section titled “Run it safely”- Read the why first. It names what to check before the change, such as that your SSH key works before passwords go off, or that the firewall allows the port you sign in on.
- Keep your session open when you change SSH or the firewall, and test from a new terminal before you close it.
- Take a snapshot first before a big change, such as moving to a newer release. For that,
sudo kiyesi guard -- <your command>notes what works before, checks again after, and shows how to put the settings back: see Guard a risky change.
Only some problems
Section titled “Only some problems”Name a fix to see only what it covers, or ask for JSON for a script:
sudo kiyesi fix ssh-passwordsudo kiyesi fix --jsonThe names are ssh-password, ssh-root, firewall, login-protection, secret-files, certificates, updates and docker-cleanup. With --json it prints {"changed": false, "suggestions": […]}, each suggestion with its check, severity, sentence, why and commands.
--yes and --dry-run, from scripts written before 0.40.0, are accepted and change nothing.
The same everywhere
Section titled “The same everywhere”The scan’s report, kiyesi findings, kiyesi server <name>, the dashboard and every alert give the same commands, and none of them offers to run them for you. A report an older agent sent still shows only the commands.
Why Kiyesi never runs them
Section titled “Why Kiyesi never runs them”A change to a server is a decision, and the person who runs it should see exactly what it does. So Kiyesi reads and suggests, and a person reviews and runs. Your team’s own rules, reviews and change records stay in charge, and nothing reaches your servers from Kiyesi’s side. See Trust rules.
Changes made before 0.40.0
Section titled “Changes made before 0.40.0”Before 0.40.0, sudo kiyesi fix could make a change after a yes, and kept a record of each. Those records stay on the server, so you can still see them, and the commands that put one back:
sudo kiyesi fix undosudo kiyesi fix undo 7f3asudo kiyesi fix undo <id> prints the commands that put that change back as it was, for you to review and run: the files it added to remove, a file it rewrote written back as it was, a mode set back, a key added back, and SSH reloaded. It changes nothing. Installing updates, renewing certificates and removing unused Docker images cannot be undone. On the dashboard, History still shows each of those changes, with who ran it.