140 likes | 366 Views
CIS 193A – Lesson4. Bastille Hardening a System. Focus Question. What Linux utilities, commands, and files are used by Bastille to harden a system?. The Bastille Package. /etc/Bastille - Configuration files (config) /var/log/Bastille - Reports and log files
E N D
CIS 193A – Lesson4 BastilleHardening a System
Focus Question What Linux utilities, commands, and files are used by Bastille to harden a system?
The Bastille Package • /etc/Bastille - Configuration files (config) • /var/log/Bastille - Reports and log files • /var/log/Bastillerevert - backup files • /usr/lib/Bastille - Perl libraries • /usr/share/Bastille - Documentation
Command Syntax • bastille–a # --assessAssess the system • bastille –x # -c for curses Create config file and implement changes • bastille –b <config>Harden system with specified configuration • bastille –r Undoes the configuration
Bastille Groupings • File Permissions • Account Security • Boot Security • Logging • Miscellaneous Daemons • Secure Inetd • Disable User Tools • Services: Sendmail, Printing, Apache, DNS, FTP
File Permissions • Setting permissions in /sbin and /usr/sbin to 750 instead of 755 • Removing setuid bits from: • mount, umount • ping traceroute • dump restore • at • X windows • others
Account Security • Disable clear text r-protocols • Add password aging • Strengthen umask • Disable root loggins on ttys • Remove extraneous accounts and groups • Restrict use of cron to root account
Boot Security • Password protect grub or lilo • Disable ctrl-alt-del reboot sequence • Password protect single user mode
Logging • Adding additional logging • Activating system auditing • Turning on process accounting
Miscellaneous Daemons • Disable the following services: • apmd / acpid • nfs, nis • samba • pcmcia • gpm • kudzu • etc
Secure Inetd • Disable telnet service • Disable ftp service • Include default deny for hosts.deny • Banners: authorized use warnings
Disable User Tools • Disable compilers
Focus Question What Linux utilities, commands, and files are used by Bastille to harden a system? Bastille uses grub, PAM, chkconfig, chmod, iptables, and edits such files as issue, securetty, nologin, inittab, login.defs, as well as service configuration files.