Does it surprise you...?

Posted:
in General Discussion edited January 2014
Does it surprise you that no one has written any viruses for Macs yet? With all the gloating that Mac users tend to do because of the venerability and general crappieness of Windows and the security, stability, and general superiority of Macs, why doesn't someone write a virus for OS X and shut us all up? Last count I heard was somewhere in the area of 50,000 known viruses for Windows XP, and zero for OS X. So why doesn't someone do it? Can it be done? There is only so much gloating that we can do before someone gets pissed and tries to take their revenge.

Comments

  • Reply 1 of 9
    Well my Mac labs at my university just got hit with an old Melissa virus that messed around with Microsoft Word. Nothing serious, but a pain in the ass nonetheless. ANd after all, it was Microsoft software, not the OS itself, that was affected.
  • Reply 2 of 9
    Quote:

    Originally posted by DMBand0026

    Does it surprise you that no one has written any viruses for Macs yet? With all the gloating that Mac users tend to do because of the venerability and general crappieness of Windows and the security, stability, and general superiority of Macs, why doesn't someone write a virus for OS X and shut us all up? Last count I heard was somewhere in the area of 50,000 known viruses for Windows XP, and zero for OS X. So why doesn't someone do it? Can it be done? There is only so much gloating that we can do before someone gets pissed and tries to take their revenge.



    Yes it can be done and it has, Dont know where you heard 0 for OSX, a quick run through of nortons virus defs shows a few for the mac. 99% of them are for windows, it's a long list and so far i've found 1 mac worm and a CDEF-a mac file infector in the list, So there out there.



    I think the main reason is that people like apple and just plain hate M$.
  • Reply 3 of 9
    Quote:

    Originally posted by cybermonkey

    so far i've found 1 mac worm and a CDEF-a mac file infector in the list, So there out there.



    Ah, but a CDEF is a relic from the dead Classic Mac OS ages. It doesn't apply to Mac OS X unless you're using Classic.



    I'd bet almost all (if not all) of the Mac viruses you find are for the Classic Mac OS and not Mac OS X.
  • Reply 4 of 9
    jlljll Posts: 2,713member
    Quote:

    Originally posted by DMBand0026

    Does it surprise you that no one has written any viruses for Macs yet? With all the gloating that Mac users tend to do because of the venerability and general crappieness of Windows and the security, stability, and general superiority of Macs, why doesn't someone write a virus for OS X and shut us all up?



    Didn't Clive try to tell us that he could do it in a day? Linky



    Anyway, this is from a previous post (I think Amorph wrote one of the posts):



    I'll address several issues here. I'm a programmer by trade, and have been creating UNIX programs, filters, and drivers since '82. My name is in the '94 and '94 Yggdrasil Linux "Plug-and-Play" books, so I've obviously been a Linux hack since '92. I also write Windows programs using Visual Studio, and have been porting my tools from Linux to OS X since the beta. So, I think I *might* be qualified to say what I'm about to say.



    Remember: a "virus" is a set of invasive routines which have been attached to a legitimate program. A "worm" is, in essence, a detached background process.



    Creating a UNIX "virus" would require the writer to muck with program text and data segment pointers, and change the program initialization pointer from the "crt0.o" equivalent to something else. The degree of difficulty here is at least 9.5 on a scale of 1-10... even if you *do* have the source to the runtime invocation routines. Then, to screw up the system, you have to attain root privileges from within the attached routines in that user-privileged program, which is indeed quite a bit harder. It's not impossible with the default OS X install, but it ain't easy. The easiest way to defeat this is to create a root account with a scrambled password on *EVERY* *NIX system you use, and that includes OS X.



    Writing a UNIX "worm" is easier. Any program can create a detached process. BUT, the same issues with user-level vs. root permissions exist. Worms will run on properly protected systems, but they may never be able to attain the privileges necessary to do significant damage.



    Now, these are not easy tasks. It's *much* easier to write a simple script that fools Windows into thinking that an offending program is actually something the user *wants* to run. Windows does *NOT* have user-level protections - and that's why viruses and worms are so easy to invoke on Windows.



    Lastly: each task on a *NIX program runs in its own virtual memory space. Programs running within these virtual spaces are not allowed to "touch" devices or other system resources. Instead, programs make requests to the system for system resources. Even the graphics subsystem runs as a task under OS X. Hence, a "buffer overflow" within the OS X desktop would cause the desktop to crash and restart, but shouldn't cause any other problems.



    Windows has incorporated graphics routines into its kernel. Hence, a "buffer overflow" in one of the graphics routines causes the kernel to respond with a handler. If you write your virus properly, the handler will execute *virus code* as the handler... and the virus has now attained system-level capabilities. The Windows kernel thinks it is running legitimate code, but it is running the virus' code -- which just happens to now be running as the system-level error handler. And, without user-level privilege protections, you can do.... anything.



    That's how it's done, folks.





    -----





    MS has several bedrock problems, which at this point sort of coalesce into one problem. First, and deadliest sofar, is the lethal alchemy between extraordinarily permissive interfaces (why, exactly, can Word macros delete system files?!) and commingled code. Second is their interpretation of user friendliness, which involves having all kinds of things going on in the background automagically - and this is as much of a problem as it is precisely because all the interfaces that make this happen are permissive. Third, features always trump security. This means on the one hand that (you guessed it) interfaces are permissive (so that there are fewer obstacles for software developers and power users - including dishonest ones) and also that many security holes come with built-in disincentives to plug them: There was a great deal of justified moaning when we ordered everyone in the office to turn off message previewing in Outlook, because it really is a nice feature. Lastly, MS still hasn't acted on the information that 90% of security lies in picking sensible defaults. This, again, is really another facet of the problem that every other point here is a facet of: It's convenient and featureful for all the services to be going, and a minimum of ports to be obstructed, and for interfaces to be permissive - so they are.



    This set of attitudes has been codified into years upon years of legacy; into billions of dollars of investments, and into MS' strategy of mollycoddling developers. Even their half-hearted attempt at a competently engineered OS (NT/2000) went nowhere until they rolled in a lot of compatibility with Win9x - which is, and has always been, a security nightmare. So it doesn't really matter how many security experts they hire, because the experts are left with the unenviable task of turning a glass house into a fortress. That's not how security works: Fortresses are designed from the get-go to be fortresses, and for Microsoft it's years too late to go back to blueprints.



    Then, of course, there's the monster under the bed that nobody wants to mention. All the armchair security analysts blathering on about how OS X is only defended by security through obscurity (ha!) should take note: MS CEO Steve Ballmer has come out and said, reluctantly, that Windows Messaging - the core of every version of every one of MS' operating systems - is a sieve, and if anyone found out just how to take advantage of that... well, do the math. Unfortunately, one of the things I learned talking at length to Microsoft developers is that large portions of that code are black boxes. The people who wrote them are long since gone, the code is ancient, nobody knows how it works. Whole swaths of Windows are built by attempting an implementation and hoping that it didn't break anything down in the pit of the OS. NT didn't change this. 2000 didn't change this. XP didn't change this. The security experts can't change it: first. you can't change what you can't understand; second, since Messaging is the foundation on which Windows is built, redesigning and reimplementing it would be an unfathomable nightmare (you'd have to test and make sure that nothing in Windows, or in Windows applications, broke!); last, the interface is permissive, and secure implementations of insecure interfaces are impossible - and again, all of Windows and all Win16 and Win32 apps assume that interface. The security experts are tasked with bandaging the Titanic.



    I haven't even listed all of the ways Windows is insecure. This is just one example.



    This is why MS is trying to keep the Messaging code hidden by all means, and protected by any number of big Federal laws with sharp teeth. But this is all still security through obscurity, and Federal laws mean nothing to hackers in, say, North Korea.



    What nobody wants to face is the fact that 95% of the computing world is built on a house of cards, and the current epidemic of viruses and worms only hints at what could happen if someone really found the soft spots in the world's de facto operating system.



    We can all hope that that day doesn't come.
  • Reply 5 of 9
    Interesting read JLL, thats reasurred me a bit.

    I guess if viruses do start appearing via email attachments they'll have to pop up a window saying " Please type your password so i can infect your computer"
  • Reply 6 of 9
    lainlain Posts: 140member
    I think that even if somebody does write a virus, they would rely on e-mail to spread it. In PCs its easy, the virus that e-mails itself has a 99% chance of arriving at a machine that can run the virus so it will spread more efficiently.



    How many Mac user's e-mail addresses does the "common" Mac user have in his/hers address book I wonder?



    Whatever happens, keep your Anti-Virus software up to date.
  • Reply 7 of 9
    stoostoo Posts: 1,490member
    Quote:

    All the armchair security analysts blathering on about how OS X is only defended by security through obscurity (ha!)



    Odd, for a partially open source operating system.
  • Reply 8 of 9
    cosmonutcosmonut Posts: 4,872member
    I just had a thought: Microsoft wouldn't be able to pull off a completely redesigned, more secure OS because of how large it's user base is. When Mac OS X came around, Apple had to convince 8 or 9 times less users that all the new software they'd have to buy would make for a better experience.



    MS is stuck. If they fix things the right way, they potentially piss off hundreds of millions of users and IT people. Like was mentioned above, the old code is so old that the people who wrote it are gone. They can't fix it but for the creation of a completely new OS. It's a Catch-22.
  • Reply 9 of 9
    Quote:

    Originally posted by CosmoNut

    I just had a thought: Microsoft wouldn't be able to pull off a completely redesigned, more secure OS because of how large it's user base is. When Mac OS X came around, Apple had to convince 8 or 9 times less users that all the new software they'd have to buy would make for a better experience.



    MS is stuck. If they fix things the right way, they potentially piss off hundreds of millions of users and IT people. Like was mentioned above, the old code is so old that the people who wrote it are gone. They can't fix it but for the creation of a completely new OS. It's a Catch-22.




    Well they piss of millions as it is.



    When they released XP they claimed compatability with older programmes. But this was only the case is you used XP with the fat32 partition. If you went the suggested NTFS partition then 9/10 times the programmes compatabilty prgramme just wouldnt work. I had this with several programmes and games that werent made for NTFS(win2000). Thats when i went complty linux and bought this mac as my main machine.



    No doubt they'll do the same thing again to keep people buying updates not just for windows but for all the other software firms, how else are they going to make money.
Sign In or Register to comment.