How to Infect a Mac with a Virus or Other Malware
It's not as easy as you might think to infect a Mac with a virus or other malware program.
I became curious about the fact that while there are malware programs for OS X, I hadn't ever seen any. I wondered if it would be possible to find out how to get infected so I could pass on to you, dear reader, how to avoid the scourge of virii/viruses and Trojans that are lurking out there just waiting for an innocent Apple user.
I did what any good Net user would do: I asked Google, "How do I get infected with a Mac virus or Trojan?"
This is what I found out.
Malware for Macs
According to one website, a Trojan was discovered maybe a year ago that is theoretically capable of infecting applications on an OS X computer. In order to have your Mac infected by this "Oompa-Loompa" Trojan, you have to (quoting now):
- Are somehow sent (via email, iChat, etc.) or download the "latestpics.tgz" file
- Double-click on the file to decompress it
- Double-click on the resulting file to "open" it
...and then for non-Admin users, it fails to infect most applications."
The writer goes on to say that he refuses to send the casual reader (that would be me) a copy of the Trojan to play with, because we are not (obviously!) computer security professionals. I suppose I could lie, try a little social engineering, and see what happens, but I guess I would be caught at it pretty easily.
Here's another resource. This document hasn't been updated since the year 2000. This one's a little more interesting; it leads (among other places) to the Viruses and the Mac FAQ>, which purports to have a virus "test file" that will allow you to test your virus scanning software. It will register as a false positive (showing a virus infection), but the file itself is nothing more than a header set to trigger virus scanners.
Scanning for Viruses
Before I try something like that, it's time to run Norton Anti-Virus. I had to find it with Spotlight, because I can't remember the last time I opened the program. Then get a virus definition update. The latest update is from January 1, 2007. Apparently the last time I ran the program according to the log was sometime in August 2006; I really don't recall running it.
While I'm waiting for the scan to complete, I go back to Google: The next hit is about "opener", which I gather from a quick read is some sort of startup script requiring physical access to the computer or someone who is using the same password for email as for login on the machine. (Here's a tip: don't do that!)
The scan's complete: I'm apparently clear of Mac and PC viruses, and I surf the Web every day.
The next hit's about a virus that only attacks phones, and the next one is about how McDonald's gave away some sort of spyware-infected toy. The last one on the first page deals with AIM viruses, and the link leads to a page where the term "Mac" doesn't even appear.
You Have to Install Them Yourself
It seems that if you were aggressive about it on a non-production machine, you could find a couple of OS X Trojans to infect yourself with primarily by asking someone to email them to you. I couldn't find any Mac malware that is self-propagating. Maybe they exist, but none come up in my search.
You can also work hard at disabling all the security built in to OS X by doing things like always logging in as root (something the average user doesn't know how to do in the first place) or by using machine passwords that are identical to your clear-text email passwords. Or maybe you could set your Mac up in a busy shopping mall (with a Kensington security cable, of course) with a big INFECT ME sign and the password printed on the screen in magic marker.
I don't mean to be too flippant about security. After all, it's a huge issue for the general computer user, and no one deserves to have valuable work or files deleted (backup backup backup) by some virus or spyware or malware. My point is that it's pretty hard to get your Mac infected in January 2007 even if you go looking for your personal Typhoid Mary.
At work, my employer uses a virus scanner on all incoming email, and there are usually 5 or 6 infected files in my mailbox that would infect a PC if I insisted on overriding the security software's recommendation. I expect that some the stuff sitting in my Junk mail folder has viruses and other malware attached, but I haven't actively downloaded the files - and I'll erase them eventually.
Getting infected on a Mac is kind of hard. It's not impossible, though. And overconfidence will someday be the downfall of Mac users so smug they completely ignore security issues.
It's still good etiquette to get yourself a copy of a virus scanner, if for no other reason than to prevent the spread of PC viruses.
I think most PC users are probably having more issues with spyware and adware slowing down systems than out-and-out viruses these days. Still, that doesn't change my tried-and-true response to anyone who ever asks me how to fix the malware problem on their PC: "Get a Mac."
is a longtime Mac user. He was using digital sensors on Apple II computers in the 1980's and has networked computers in his classroom since before the internet existed. In 2006 he was selected at the California Computer Using Educator's teacher of the year. His students have used NASA space probes and regularly participate in piloting new materials for NASA. He is the author of two books and numerous articles and scientific papers. He currently teaches astronomy and physics in California, where he lives with his twin sons, Jony and Ben.< And there's still a Mac G3 in his classroom which finds occasional use.
Recent Mac Lab Reports
- Macs in Space: Curiosity Rover Based on G3 Processor, 2012.08.07. When choosing a CPU for space missions, NASA looks for reliability above all else - and NASA chose a PowerPC G3 as the brains of the Curiosity rover.
- Bike Across the Country While in Your Basement, 2012.06.25. By linking your exercise bike to a PC running Google Maps Street View, you can virtually bike across the country.
- Microsoft Word 2004 vs. iWork Pages 1.0 for writing a book, 2008.01.10. Microsoft Word is great for technical writing, powerful yet slow, while Pages lets you concentrate on just writing, making it great for novels.
- More in the Mac Lab Report index.
Links for the Day
- Mac of the Day: Centris 650, introduced 1993.02.10. The replacement for the Quadra 700 has room for an internal CD-ROM.
- May 25 in LEM history: 99: OS X and the econoMac - iMac iMpact - 00: Is a Mac better than a PC? - 01: 1993: PowerBook vs. ThinkPad - Old files on a new Mac - 05: Mac minis in classroom a big hit - Of mice and keyboards - 06: The best 'Book for my needs - 07: More RAM vs. matched RAM - Running OS X from flash memory
- Support Low End Mac
Recent Content on Low End Mac
- World Book Encyclopedia 2012 DVD, Tommy Thomas, Reviews, 2013.03.05. "You may be asking yourself, in an age of Wikipedia and instant information, is World Book still relevant?"
- Vintage Computer Festival SouthEast, April 20-21, 2013, Simon Royal, Mac Spectrum, 2013.02.25. Old Apple gear and old PCs.
- iMessage: The Ultimate Messaging Service?, Simon Royal, Mac Spectrum, 2013.02.21. In most ways, Apple's iMessage is far superior to BlackBerry Messenger.
- More links in our archive.
- Best Mac mini Deals
- Best 13" MacBook Pro Deals
- Best Intel iMac Deals
- Best iPod touch Deals
- Best iPhone Deals
- Best iPod nano Deals
- Best iPod classic Deals
- Best Apple TV Prices
- More deals in our archive.
Low End Mac Reader Specials
Cult of Mac
Shrine of Apple
The Mac Observer
Accelerate Your Mac
The Vintage Mac Museum
Mac Driver Museum
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ