It’s all going to depend on how we want to define hacked within the scope of the discussion. Basically you can put hacks into the two categories of virii and actual webserver hacks which lead to defacement, data theft, etc. The difference between the two being that virii tend to exploit a flaw in the actual OS of a computer while hacks exploit flaws in the daemon for whichever protocol is being hacked (telnet, ssh, http, etc.).
A discussion of OS integrity should really focus on virii since those are direct attacks against the OS for the most part. OS being defined in this case as the kernel as well as any software written so as not easily removable by a lay-person (like Outlook Express). If using virii as a criterion for OS integrity all one really needs to do is get a list of virii affecting each system take a count and maybe weight the results a bit based upon the potential damage individual virii can have on a given system.
While thinking about this I pulled up the virus list from the AV software on the computer I’m typing this on (a Powerbook running MacOSX) and from one of my NT servers. The results were, astounding.
MacOSX
Number of Virii-4810
Latest Definitions-08/01/2003
WinNT
Number of Virii-65074
Latest Definitions-09/18/2003
Something important to note is that while I was looking through the OSX list I found virii from the early days of System 7 as well as UNIX virii (which can affect it due to the BSD core) while the NT numbers were only for OSes with the NT kernel. Another note is that no virus on the list affected any MacOS later than System 9.2.
Now, the straight dope n which systems get hacked the most. I thought about this for quite a bit last night and I realized that the most reputable sources for such statistics would likely be hacker communities. Namely, those such as Attrition.org where the members post their successes in website defacement and server cracking. Unfortunately, at the moment the only figures I can obtain are from 2001 but they are quite the opposite of mi2g’s statistics.
According to the stats posted at Attrition.org about 58% of all successful defacements were against Windows machines while the OS only held 30% of the web market. I don’t how these relate to statistics for today, it appears that the only study that has been done is that by mi2g and we’ve already determined that those results are, at best, suspect. All we know is that Windows share of the server market has been falling, perhaps as a result of being the most hacked server.
Keep in mind that most of the onus on web-security is on the Administrator as webserver software has a tendency to be insecure in it’s default configuration. There is still, however great pressure on the part of the vendor to release a product that is secure when configured to be so (and given my experiences with supposedly locked down Windows machines MS has failed at this)
Register Article Summing up the Survey.
Attrition.org Study