Skip to content


How to scan your Mac for viruses

Mac Security

According to the ClamXav home page -

Today, the number of viruses actively attacking OS X users is…NONE! However, this doesn’t mean we should get complacent about checking incoming email attachments or web downloads, for two reasons. Firstly, there’s no guarantee that we Mac users will continue to enjoy the status quo, but more importantly, the majority of the computing world use machines running MS Windows, for which an enormous quantity of viruses exist, so we must be vigilant in checking the files we pass on to our friends and colleagues.

So – do you even need anti-virus software on your Mac? That’s up to you to decide. If you do decide you want anti-virus software on your Mac, this tutorial will guide you through installing and using ClamXav – a free (and frequently updated) virus scanner for OS X.

  1. Start out by downloading ClamXav. Once the download has completed, open the DMG file, and drag ClamXav to your Applications folder.

  2. click to enlarge

  3. ClamXav isn’t very large, so it won’t take long to copy/install.

  4. click to enlarge

  5. Open up an instance of Finder. Select your user name from the left navigation window, and go to Library -> Contextual Menu Items. Back in the opened DMG window, drag ScanWithClamXav.plugin to the Contextual Menu Items folder. Sign out of your Mac (or restart, but signing out and back in will do the trick). Signing out and back in again will activate the “Scan with ClamXav” plugin.

  6. click to enlarge

  7. Now launch ClamXav from your Applications folder. You’ll be prompted to install the Clam Anti-Virus engine. Click the Install button.
  8. On the Introduction screen, click Continue.

  9. click to enlarge

  10. Review the Software License Agreement and once again, click Continue.

  11. click to enlarge

  12. Click Agree to accept it, again.

  13. click to enlarge

  14. Now click Install.

  15. click to enlarge

  16. Enter your password when prompted, and click OK.

  17. click to enlarge

  18. And now the scanning engine will install.

  19. click to enlarge

  20. Click Close once the process has completed.

  21. click to enlarge

  22. Now launch ClamXav from your Applications, again. Before you start the scan, click the Update virus definitions button.
  23. Once completed, you should see a Virus definitions updated successfully status message.
  24. Now click the Preferences button.
  25. On the General tab, make the selections that are appropriate for you. I opted to quarantine infected files rather than outright delete them, in case of any false positives (ClamXav flagging a file as being infected with a virus, when it in fact isn’t).

  26. click to enlarge

  27. Depending on which settings you opt for, you may receive a message telling you not to turn on certain features if you plan on having your email scanned or watched. This wasn’t an issue for me as I use Gmail (via the web) but it is something to consider if you use Mail or Entourage for email.
  28. Select the Internet tab, and again, make any changes you see fit. I opted to have ClamXav check for all possible updates each time it starts.

  29. click to enlarge

  30. Select the Schedule tab, and if you’d like to schedule virus scans, this is the place to create them.

  31. click to enlarge

  32. Select the Folder Sentry tab. From here you can add folders to be constantly monitored for viruses (eg. your Downloads folder). Review the other options and make any changes you see fit. Click OK when you’re done.

  33. click to enlarge

  34. Back in the main ClamXav window, click the Choose what to scan… button.

  35. click to enlarge

  36. If you attempt to select your entire startup disk (as indicated in the screenshot below)…

  37. click to enlarge

  38. you’ll get an error.
  39. So instead, just select all of the folders (hold down the Apple Key to select multiple items) on the drive you want to scan. Then click Open.

  40. click to enlarge

  41. Finally, click the Start Scan button.

  42. click to enlarge

  43. ClamXav will do a “quick” (it’s not that fast) scan of your drive to determine how many files it’s going to check.

  44. click to enlarge

  45. And then they actual scan will begin.

  46. click to enlarge

  47. At this point, you might as well settle in for the long haul. Depending on the size of your hard drive, the number of files on it, and the speed of your Mac, the process can take quite a long time. As indicated in the screenshot below, it took ClamXav 172 min and 31 seconds to complete on my MacBook Pro (an older one). With all of that said, I was able to work on my Mac the entire time without much of a noticeable slowdown. However, I kept my tasks to the relatively ’safe’ – the last thing I wanted was a crash in the middle of the scan, forcing me to start over again. Running the scan overnight while you’re sleeping is probably a good idea.

  48. click to enlarge

  49. And that’s it. Now you may want to scan your Mac for spyware, malware and tracking cookies.

Posted in Mac, Security.

Get Simple Help tutorials just like this one in your email inbox every day - for free! Just enter your email address below:

 

You can always opt out of this email subscription at any time.

9 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Insomnic says

    I often recommend people get ClamXav on their Macs to scan questionable files (even if they won’t infect themselves they may pass it on). I also have it installed as a ’safe’ place to scan those questionable files before moving them to my VirtualPC or onto other Windows computers at home or work.

    Thanks for posting the tutorial – so many Mac fans use the “no virus” argument that they won’t do an article about antivirus software.

  2. kris says

    Hi! Thanks for creating this tutorial – it’s great! and I also used your MacScan tutorial and am waiting for the scan to finish. :)

    One question: My Mac doesn’t seem to have a “contextual menu items” folder (for the plugin) – I looked in Kris/Library/ and there’s no contextual menu items folder there. I also did a Spotlight search.

    Should I create this folder?

    Thanks!

  3. Bullie says

    Hi, I’m trying to download ClamXav on the link provided above http://www.clamxav.com/index.php?page=dl#TigerLeopard
    but receive an error msg said “The page you asked for does not exist on our server”. What have I done wrong here? I’m trying to download ClamXav for Leopard.
    Thanks for your help.

  4. Ross McKillop says

    Bullie -

    I just clicked that same link you pasted in to the comment and it works perfectly for me (??). Try just going to http://www.clamxav.com/ and navigate to the downloads page, then find the version for Leopard.

    Cheers,

    Ross

  5. Jerry says

    Same here! No “contextual menu items” folder…

  6. AJay says

    I’ve been trying to follow the above steps but can’t get past step 4. I click Install and nothing happens. What’s up?

    AJB

  7. WHOOO says

    THIS WEBSITE IS AWESOME

Continuing the Discussion

  1. günlük kayıtlar 2009-01-13 « Blogdivx linked to this post on January 14, 2009

    [...] Posted an item Arturo Servin: How to scan your Mac for viruses – Simple Help (via Google Reader) [...]

  2. How to scan your Mac for spyware, malware and tracking cookies - Simple Help linked to this post on January 18, 2009

    [...] MacScan provides a nice little report of its history (last time a scan was run, number of items found etc). That’s it – you’re done! Now you may want to scan your Mac for viruses. [...]



Some HTML is OK

or, reply to this post via trackback.