Ten minutes after your server goes online, someone is already knocking on the door. This book is for developers who log in to servers themselves to deploy and change settings - especially on small teams with no dedicated infrastructure person. It is a book for defenders: it does not reproduce attack techniques, but explains what happens and how to block it.
Every chapter starts with
read-only commands that show the current state of your server, then walks through safe changes - with backup steps and checks so you don't lock yourself out of a remote session.
Ubuntu and Rocky/RHEL commands and paths appear side by side.
What this book covers: - The six ways into a server and the five stages of a breach
- Accounts, sudo, and SSH hardening; narrowing access with firewalls and network segmentation
- Patch priorities and secure settings for web, application, and database servers
- Log auditing and finding traces of intrusion
- Backups attackers can't delete, and a step-by-step incident response
- Per-chapter checklists, plus a full checklist and command cheat sheet in the appendixes
Security in Practice for Developers series: Vol. 1 Web Security - Vol. 2 Server Security - Vol. 3 Defending Against AI-Powered Attacks