|
Division of IT: Security
Best Practices: Red Hat Linux OS
This document should be used as a follow up to Unix best practices. Refer to that document first before reading this one.
Subscribe to redhat-announce-list
Read Securing and Optimizing Red Hat Linux
When possible, always do a custom installation
- This will help to ensure that you have total control over how the disk and partitions are laid out and which packages are installed. Performing an automated installation tends to install software that you don't need. Be aware of what you are installing. You should carefully document the configuration in case the box needs to be rebuilt from scratch.
Disable all services at first
- When you first reboot after installation, drop into single user mode and disable all services that would be started with the chkconfig command (it's easier then removing symlinks from /etc/rc.d/rcX.d individually.) Then re-enable services that you need one by one when you are sure of what they are intended for.
Verify RPM integrity before installation
- RPM is a very powerful tool despite some of its shortcomings. Issuing "rpm -K package.rpm" will check the packages signature to make sure it hasn't been tampered with before installation. To verify the system after installation, you can issue "rpm -Va" to verify all installed packages.
- The Red-Hat Package Manager: http://www.rpm.org/
Read the RPM man page
- Man pages are your friend, especially in the case of RPM. There are numerous options to help keep your system healthy.
Consider using libsafe
- Install libsafe to aid in preventing stack smashing attacks and common buffer overflow exploits. It is only usable on systems that don't require the installation of Java, Netscape, and other "badly" coded programs. Make sure that libsafe is in /etc/ld.so.preload so that all users are affected.
Consider using grsecurity
- If you are using Linux 2.4 (the kernel version, not Red-Hat), consider using the grsecurity module. It enables several security features to aid in the protection of a system. Some features include stack-protection, execution logging, process hiding, fork-bomb protection, and many more. Be sure to read the manual page and the kernel patch to understand the implications of using the patch.
- Grsecuity home page: http://www.grsecurity.net/
Periodically review and harden security settings
- Consider using Bastille to check your system on a regular basis.
Additional services running on your system may require special attention. If you have questions or concerns about specific security issues, contact isam@missouri.edu for assistance.
|