Securing Your Hosts
General
- Resources and timely information are important - AUSCert, BUGTRAQ, NTBUGTRAQ
- Vendor lists are also important - Commercial Unix Vendors, Debian, RedHat
- Incident reporting - AUSCert, AFP
Logging
- System call or Process accounting
- Syslog - Use a UDP syslog server, make sure it is partitioned properly
to protect against flooding
- Syslog - Disable UDP syslog on other servers
- nnstat or NetFlow based logging of all external links
Reducing Vulnerabilities
- Examine and disable SUID programs (dxpasswd example); consider groups
instead
- Network scanners - free (SAINT, SATAN, mscan, nessus) or locally produced
- Network hardware - IOS bugs, routers/switches with hard-coded passwords or
passwords in SNMP scans
- Unrestricted shell access should never be considered impossible if any
access to a shell machine is given
- OpenBSD or Linux with Secure Linux kernel patches may improve security
- noexec or nosuid and nodev mount flags, and quotas, resource limits and
per-user process count limits all control the trade-off between usability
and security
- Per-user login controls reduce password-guessing risk
- Secure your web servers (both NT and Unix) and keep them up to date
Vulnerabilities
- Currently popular are those vulnerabilities scanned for by mscan
- Other problems are too numerous to mention - buffer overflows and tmp
races mainly
- Examples of overlooked problems: nobody homedir, tar/patch/shar and /etc/passwd, sshd tunnels,
ftp-bounce, mode 711 files
Responding to an attack
- Consult AUSCert or Cert technical tips web pages
- Approach 1: Shutdown system, backup drive in alternative system
- Approach 2: Disconnect from network, clean up processes (be aware of
modified "ps" and kernel modules to hide processes), find modified files
(note possibility of changing clock time), fix, reboot bring back online
- Approach 3: As with approach 2 only without disconnecting from the
network - only for experts on systems which really can't go down
--
David Luyer
<david@luyer.net>