Wil Shipley: Max OS X Viruses

September 27th, 2005 § 0 comments

or-shut-up.html”>Mac OS X Viruses: Put Up or Shut Up (part 1)

Thank you Wil — I might have dis­agreed about you’re com­ment about Unit/Functional Test­ing, but damned if I don’t agree with you about the “Mac Virus” thing. I’m sick and tired of explain­ing to peo­ple why Macs in gen­eral are more dif­fi­cult to pen­e­trate, and over­all almost impos­si­ble to infect in a sim­i­lar fash­ion to Win­dows Machines. Why do you think you only see root-kits on Linux? The inher­ent OS struc­ture won’t allow you to do any­thing to the sys­tem as a whole with­out full
root access — which, like OS/X — requires pass­word authen­ti­ca­tion. I could rant on — but I won’t. Yes — it is pos­si­ble to write Mal­ware for a Mac — all you need to do is make a piece of soft­ware that users will click to down­load, and install. Hell, if you’re feel­ing squir­rely, you could even make it force the OS/X “this appli­ca­tion needs to run a pro­gram to install” sudo authen­ti­ca­tion dia­log to really get access.

Once the user finds the soft­ware, the user has to down­load the soft­ware. Then that user has to install the soft­ware, and then
authen­ti­cate that soft­ware. This is not a virus! A virus uses flaws within the OS, on a basic ker­nel level or other system-level flaw to gain oth­er­wise inac­ces­si­ble access within the OS to cre­ate dam­age. For instance, click­ing on a web­site within Inter­net explorer that has a mali­cious ActiveX con­trol, that because every­thing on a win­dows box (nor­mally) effec­tively runs as Admin­is­tra­tor, gains access to your sys­tem reg­istry and then plays the banjo with your sys­tem as a whole.

Cur­rently, there are 0 “viruses” meet­ing this cri­te­ria for OS/X. There aren’t any on the hori­zon. Yes — there are pieces of Mal­ware — I could write one right now that would har­vest user data from a given OS/X host. I would not be able to access things like Key­chain (for pass­words, etc) with­out prompt­ing the user, but social engi­neer­ing (manip­u­lat­ing users to do some­thing they might not oth­er­wise “want” to do) has never been ter­ri­bly dif­fi­cult. Mal­ware is a risk on every sin­gle com­put­ing plat­form in the wild! Heck, I could com­pile a cus­tom ver­sion of Apache that does very bad things, and dis­trib­ute it for unix systems.

That last state­ment is a bit of an argu­ment for Open-Source, not that any­one has time to sit there and read thou­sands of lines of code — but given that projects like Mozilla can have their dis­tri­b­u­tion “infected” with a virus — the argu­ment stands. (Iron­i­cally enough, the virus that infected the mozilla dist was aimed at — you guessed it — windows!

The biggest risk Mac users face at the end of the day is being a “por­tal” to viruses from other users. For instance, I have Mail.app run­ning right now — my mom could send me an infected file/email from Out­look, and I could in turn pass it onto another user with­out real­iz­ing it — the virus did not affect/infect me — but it might infect a per­son down the chain. This is an argu­ment for server-side virus/email fil­ter­ing. Again — the same thing hap­pens with Linux/Unix
clients.

There was an issue at a pre­vi­ous com­pany where we had a 1.5 TB linux file­server open on the net­work. The server was run­ning NFS and SMB, and every­one in devel­op­ment and QA used this as a dump­ing ground. After two severe virus infec­tions (attack­ing win­dows) in .doc files and Win­dows exe­cuta­bles we had to start scan­ning the shares for infec­tions on a nightly basis. Although we had AV tools installed on all of our work­sta­tions, AV tools some­times don’t play well in a test­ing envi­ron­ment, so our test hosts kept get­ting infected. Joy! Another case of “you ain’t infect­ing the host, just the consumer”.

On one hand, I’m happy about Wil’s bounty offer for 500$ for the first per­son to make a real virus for OS/X — on the other hand, I’m both­ered by the fact it might one day come to pass, even if I truly believe that OS/X inher­ent design won’t allow it.

What's this?

You are currently reading Wil Shipley: Max OS X Viruses at jessenoller.com.

meta