Top Ten Things You Can Do to Secure Your Mac

Follow These Steps to Secure Your OSX System!

Updated by Richard Rathe on August 22, 2005 using OSX 10.3.9.
Certain details may be different for System 10.4 and above.
Located at http://medinfo.ufl.edu/omi/medmac/security/


Protection from Casual Data Thieves

1. Disable Auto Login (Accounts Preference Pane*)

As a convenience, OSX will automatically login to your account when you start up. This means that anyone else who boots your computer will gain full access to your account. To prevent this, uncheck the auto login box in Accounts preferences. For even more protection click on Name and Password rather than presenting a list of users.

Auto Login

* Preference Panes are accessed through System Preferences... in the Apple menu.

2. Require Password when Waking (Security Preference Pane)

Wake Password

This feature offers simple but powerful protection from snoops. When the computer goes into sleep or screen save mode, you must reenter your password to wake it. For this to work well, you should also make sure that the screen saver interval is relatively short (say 10 minutes). Finally, you should consider changing your passwords periodically, at least once a year.

Protection from Password Compromise

3. Assign a Keychain Password (Keychain Access Application)

On OSX, passwords are managed by Keychain Access (found in Applications/Utilities/). By default the Keychain password is the same as your login password. The problem is that anyone can change this by booting from an OSX CD-ROM. Then all of your passwords could be revealed. To prevent this, just set a Keychain password that is different from your login and admin accounts (Change Password... command found under the Edit menu).

Keychain Password

Protection from Malware

4. Be Careful When You Enter Your Admin Password

One of the principal advantages of OSX over Microsoft Windows is the requirement that you enter your Admin Password before any major modifications can be made to the operating environment. This forces the human operator (you!) to actively manage the security of your system. But don't grant permission lightly! If the system asks for your Admin Password when you don't expect it, simply click Cancel and reassess the situation.

Admin Password

5. Keep Your System Software Up To Date (Software Update Pane)

Apple releases updates for OSX (and certain core applications like Safari) several times a year. Many of these include "patches" for potential security issues. Without these updates, your system will remain vulnerable. There are several ways to update your system, but most should use the automatic Software Update service. At the time of this writing Apple supports updates for OSX versions 10.2, 10.3 and 10.4.

Anti-Virus

Users with high-speed Internet access should set Software Update to check for updates on a daily basis. Less frequent intervals may be appropriate for modem users. Please note that nothing will be installed on your computer without your permission (see #4 above). As an alternative, you may use Software Update to alert you about new updates, then download and install them manually.

Protection from Network Hackers

6. Turn Your Firewall On (Sharing Preference Pane)

This is an easy one. Go to Sharing, click Firewall, and Click Start. <smile> You might need to Allow specific services (called Ports here) if you are using them (see next item).

Firewall On

7. Turn Unnecessary Services Off (Sharing Preference Pane)

This is the flip side of using the firewall, making sure you have services turned off if you aren't using them. (Most are off by default under OSX.) The fewer services your computer "advertises" on the Internet, the safer you are from hackers. Even if you use some of these services from time to time, it is a good idea to turn them off in between.

Services Off

Other services you should turn off when not in use are Airport (WiFi wireless) and Bluetooth (wireless for small devices, PDAs, phones, etc.). You can turn Airport off from the Internet Connect application.

Airport Off

You can turn off Bluetooth from the Bluetooth Preference pane.

Bluetooth Off

Protection from Data Loss and Theft

8. Make Regular Backups, at Least Weekly

Digital information lasts forever—or five years, whichever comes first.
       Jeff Rothenberg (Scientific American article)

It doesn't matter how you backup, just do it! A good rule of thumb is to consider the number of days work/email/transactions you are willing to lose if something should go wrong. There are two kinds of backup you should plan for. The first targets short term recovery of your data. For example, making copies of critical files at the end of each business day. You might reuse the media (CD-RW for example) on a monthly cycle. The second type of backup is better referred to as archiving. The intention here is to make archival copies of data for long term storage and retention. You don't need special software to get started. If you have a CD-R or DVD-R drive you might start by copying your email and documents to a CD/DVD once a week. If you are looking for a more sophisticated or automatic approach, several options are available.

iBackup (free!) (see recent review)
iBackup

RsyncX (free!) (MedMac handout)
RsyncX

.Mac from Apple ($ subscription required)
Dantz Retrospect ($)

9. Use Strong Encryption for Confidential Data

So what if your computer is stolen, and the thieves gain access to all your files? The last line of defense is to make sure those files are unreadable by anyone other than you. That means encryption. Starting with version 10.3, file encryption is built in to OSX! It is called FileVault and can be found under the Security Pane. My only criticism is that this is an all or nothing choice (see the warning in the screen shot below).

FileVault

For a more selective approach to file encryption, you should consider the PGP Desktop product. Using the PGPdisk function, you can make as many encrypted disk volumes as you need. These act just like a hard disk or CD, but without your PGP passphrase the actual data are gibberish. This is commercial software, so it is not free. But the package including both file and email encryption is worth the cost for anyone who needs these functions.

PGP

As a footnote, it is important to point out that both OSX and PGP allow you to 'shred' files so they cannot be recovered from your hard disk. In OSX go to the Secure Empty Trash item in the Finder menu. PGP provides a Wipe function that is faster than Secure Empty for large files and directories. Both methods overwrite the disk with random ones and zeros where your files used to live, so the data cannot be recovered.

10. Maintain Physical Security, Keep a Low Profile and Don't Advertise

Finally, there is no substitute for physical security of your computer, disks, CDs, etc. Some common sense steps you can take: don't leave your laptop unattended; don't advertise that you have a computer in your bag; when you travel by car, put your valuables in the trunk when you leave, not when you arrive at an insecure area.

Another inexpensive measure you can take is to buy a cable lock for your laptop. These typically cost around $30 and will protect you from "grab and go" thieves.

Laptop Lock

Stay safe and enjoy using OSX!

More OSX security information can be found at:

http://www.securemac.com/
http://www.apple.com/macosx/features/security/
http://www.nsa.gov/snac/downloads_macx.cfm
http://www.princeton.edu/~psg/unix/osx/osxsecurity.html
http://www.macos.utah.edu/documentation/macosx/security/security.html


What About Anti-Virus Software?

This is a somewhat controversial area because (happy to say) "Macs don't get viruses." Do you really need protection from a threat that is only hypothetical? The answer is "probably" for three reasons. (1) Just because there have been no OSX viruses yet, this does not mean some enterprising jerk won't invent one. (2) Anti-viral software also protects you from non-OS malware such as javascript and Word macro viruses. (3) If you share files with Windows users, having anti-viral software on your Mac may actually help protect them from their own insecure operating system. The Virex product is licensed by UF, so all faculty, students, and staff may download and use it for free! (To download you must be on the campus network and login with your gatorlink ID and password.)

Anti-Virus


All products discussed are copyright by their respective owners.
The views expressed are the author's. Your mileage may vary.
This document is copyright 2005 by the University of Florida.