Appearance
How to respond to a security incident
- Contain — block the offender if known:bash
sudo ufw deny from <offending-ip> sudo fail2ban-client status sshd - Evidence — do not destroy logs:bash
sudo journalctl -u sshd --since "1 week ago" | grep Accepted sudo last -20 sudo journalctl --since "24 hours ago" -p err --no-pager | tail -100 - Rotate credentials that may be exposed: SSH keys, DB passwords, API tokens, app admin passwords (Vaultwarden is source of truth).
- Audit:bash
sudo aa-status ps auxf sudo ss -lntp - Document timeline, IPs, accounts touched, and actions taken.
- Prefer moving admin SSH behind Tailscale/VPN long-term (security model).