Macosx 10 6 Hardeningtips PDF
Macosx 10 6 Hardeningtips PDF
6 Snow Leopard. Apple's official Snow Leopard Security Guide can be found at http://www.apple.com/support/security/guides/ Important: System updates may override many of these configuration changes. Achieve their persistence through vigilant re-application or management software.
Require password "5 seconds" after sleep or screen saver begins Disable automatic login Use secure virtual memory Disable Location Services (if present) Disable remote control infrared receiver (if present)
com.apple.RemoteDesktop.PrivilegeProxy.plist ARD com.apple.RFBEventHelper.plist com.apple.UserNotificationCenter.plist com.apple.webdavfs_load_kext.plist org.postfix.master ARD User notifications WebDAV email server
In the FileVault tab, read the warnings and consider activating FileVault. Consult the Apple Snow Leopard Security Guide for more information. FileVault is recommended for portable systems since it can protect data even if the system is stolen. In the Firewall tab, click "Start" to turn firewall on. Next, click on "Advanced..." and enable "Block all incoming connections."
The following services can be found in /System/Library/ LaunchAgents. Disable them in the same way.
Filename: com.apple.RemoteUI.plist com.apple.RemoteDesktop.plist Needed for: Remote Control ARD
Firmware Password
Set a firmware password that will prevent unauthorized users from changing the boot device or making other changes. Apple provides detailed instructions for Leopard (which apply to Snow Leopard) here: http://support.apple.com/kb/ht1352
Account Settings
Open the Accounts pane in System Preferences. Disable Automatic Login and User List: Click on "Login Options." Set "Automatic login" to "Off." Set "Display login window as" to "Name and password." Disable guest account and sharing: Select the Guest Account and then disable it by unchecking "Allow Guest to log in to this computer." Uncheck "Allow guests to connect to shared folders."
If it is an AirPort interface but AirPort is not required, click "Turn AirPort off." Click "Advanced." Click on the TCP/IP tab and set "Configure IPv6:" to "Off" if not needed. If it is an AirPort interface, click on the AirPort tab and enable "Disconnect when logging out."
After identifying setuid and setgid binaries, disable setuid and setgid bits (using chmod ug-s programname) on those that are not needed for system or mission operations. The following files should have their setuid or setgid bits disabled unless required. The programs can always have their setuid or setgid bits re-enabled later if necessary. For more information see Apple's Snow Leopard Security Guide chapter 7.
Filename: /System/Library/CoreServices/ RemoteManagement/ARDAgent.app/Contents/ MacOS/ARDAgent /System/Library/Printers/IOMs/LPRIOM. plugin/Contents/MacOS/LPRIOMHelper /sbin/mount_nfs /usr/bin/at /usr/bin/atq /usr/bin/atrm /usr/bin/chpass /usr/bin/crontab Needed For: Apple Remote Desktop Printing NFS Job Scheduler Job Scheduler Job Scheduler Change user info Job Scheduler
/usr/bin/ipcs /usr/bin/newgrp /usr/bin/postdrop /usr/bin/postqueue /usr/bin/procmail /usr/bin/wall /usr/bin/write /bin/rcp /usr/bin/rlogin /usr/bin/rsh /usr/lib/sa/sadc /usr/sbin/scselect /usr/sbin/traceroute /usr/sbin/traceroute6
IPC statistics Change Group Postfix Mail Postfix Mail Mail Processor User Messaging User Messaging Remote Access (Insecure)
from /System/Library/Extensions:
IO80211Family.kext
See the note below for information about removing kext files.
Hardening Tips
for
System Activity Reporting User-selectable Network Location Trace Network Trace Network
Note on removing kext files: To make the system reflect the removal of kext files, run the following command and reboot:
sudo touch /System/Library/Extensions
Safari Preferences
Safari will automatically open some files by default. This behavior could be leveraged to perform attacks. To disable, uncheck "Open safe files after downloading" in the General tab. Unless specifically required, Safari's Java should be disabled to reduce the browser's attack surface. On the Security tab, uncheck "Enable Java."
the ipfw man page Apple's Snow Leopard Security Guide http://www.freebsd.org/doc/en/books/handbook/
Au Revoir, Bonjour!
Bonjour is Apple's implementation of Zeroconf which provides a network service discovery protocol. Using Bonjour, many programs advertise their services on the local network to facilitate configuration. While this may be beneficial in some cases, from the security perspective this makes the computer unnecessarily visible and generates unwanted network traffic. Disable Bonjour's multicast advertisements with the following command and reboot:
sudo defaults write /System/Library/ LaunchDaemons/com.apple.mDNSResponder ProgramArguments -array-add "-NoMulticastAdvertisements" Systems and Network Analysis Center National Security Agency 9800 Savage Road Ft. Meade, MD 20755 http://www.nsa.gov/snac
The best way to disable AirPort is to have the AirPort card physically removed from the system. If this is not possible, disable it at the software level by removing the following file