LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-21-2010, 08:16 AM   #1
eveningsky339
Member
 
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 466

Rep: Reputation: 51
Why the lack of malware?


I was having a discussion with an acquaintance the other day about how Linux is superior to Windoze. We came upon the subject of malware and my acquaintance claimed that the amount of malware affecting each system is proportional to its number of users. Windoze has truck-loads of people using it, and therefore there are more viruses. Linux has few in comparison, and therefore there is a smaller amount of malware.

I think that may be part of why malware for Linux is rare but I believe there is much more to it than that. I gave my acquaintance a few more reasons:

- Ideology. Linux is free and open for everyone to use and modify. Most malware authors would probably get their jollies by targeting a large, multi-billion dollar corporation instead of a free community effort.

- Open source. Most software used on Linux platforms is open-source, and therefore any author who tried to sneak malicious code would be caught dead in the water.

- Package management. Rather than hunting around the insane internet for software, most Linux users utilize software repositories packaged and maintained by people dedicated to security.

Now I've started to think (dangerous, I know) and I'm curious about what other aspects there may be as to why Linux is mostly malware-free and secure.
 
Old 09-21-2010, 08:32 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Malware, on Windows machines, when executed by a user can pretty much do whatever it wants to the underlying operating system; this is because there really isn't much to prevent a user from doing anything her or she wants to.

Linux (and Unix) machines, on the other hand, do not permit users to do that sort of thing (you have to be the super user to cause much damage). Thus, it just isn't effective to write something that will turn a Linux/Unix system into a zombie simply because it really can't be done (unless the system administrator is really, really dumb -- contrasted with Windows which is "dumb" by default and you have to do a lot to un-dumb it).

There are also a number of things that prevent hacker/malware tricks-of-the-trade (like writing into kernel space to take over a machine which is so easy to do on a Windows box). The reason there's so much crap floating around for Windows (and no effective crap that I'm aware of for Linux/Unix) is that it's so easy to do; get a user to open an attachment and there you go.

Hope this helps some.
 
1 members found this post helpful.
Old 09-21-2010, 08:32 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I agree with you.

Because it is FLOSS, there are more eyes looking at the code and more chances of an exploit being found and reported. There's also more motivation to report an exploit rather than exploiting the exploit, you know. With proprietary software, why should anyone bother reporting an exploit rather than exploiting it instead ? With FLOSS you report the exploit because you want to use the program and for the program to be more secure. Ideology, like you mentioned, is also important.

Technically there have been recent cases of malware being snuck into FLOSS, but it was due to bad and insecure practices by the devs, they didn't even checksum anything much less use gpg. This may actually be the reason for the huge amount of malware on Window$, bad security practices on the part of everyone, the user, the developer, and others.

Window$ is just inherently insecure and badly designed, and it hasn't improved any, I don't think they even care to develop this aspect of window$, they only care about eye candy and making a profit. Did you know that you can download all versions of Window$ ever made on a single DVD ? I've seen it, and it's because it compresses easily, and this means they really haven't changed much at all, just the UI.

I don't even think Window$ and Linux can be and should be compared in these terms, they're just so different. I wouldn't even argue with people over this, they should just try Linux, and if they don't like it, just continue using Window$. That's my usual answer for arguments against Linux, I mean Linux is FLOSS, if you're too lazy to download it and try it, instead of arguing with me over technicalities, then go on and keep using Window$.
 
Old 09-21-2010, 09:35 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I think one reason is that Windows is standardized, the malware has a defined base to work on, whereas there are so many Linux distros that do the things in different ways. Even when you look only at one distro, there is not really a standard. My Debian installs are set up from a minimal install and then tailored to my needs and I think many people do it that way. The malware has no standard base to work on.
 
1 members found this post helpful.
Old 09-21-2010, 09:36 AM   #5
eveningsky339
Member
 
Registered: Mar 2010
Location: Western Maine
Distribution: PCLinuxOS (LXDE)
Posts: 466

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by H_TeXMeX_H View Post
I don't even think Window$ and Linux can be and should be compared in these terms, they're just so different. I wouldn't even argue with people over this, they should just try Linux, and if they don't like it, just continue using Window$. That's my usual answer for arguments against Linux, I mean Linux is FLOSS, if you're too lazy to download it and try it, instead of arguing with me over technicalities, then go on and keep using Window$.
That's basically what I ended up telling him. Virtually all popular distro's are absolutely free of charge and available on LiveCD, so there is no commitment outside of a few minutes to give things a go. My acquaintance decided to keep using his expensive malware-box. Stinks to be him, glad it's not me.
 
Old 09-21-2010, 10:03 AM   #6
unixfool
Member
 
Registered: May 2005
Location: Northern VA
Distribution: Slackware, Ubuntu, FreeBSD, OpenBSD, OS X
Posts: 782
Blog Entries: 8

Rep: Reputation: 158Reputation: 158
I'd argue against his comment of "each system is proportional to its number of users". That may've been true back in 1998, but this is 2010...lots of people have a basic understanding of what Linux is, even if they haven't used it.

I'd argue that the difference between the two in regards to malware impacting each is, Linux (*nix in general) has a better security model. Each normal user account is pretty much locked down, permission-wise. Even if a normal account were compromised, the compromise is somewhat isolated. Each account is a container. If a container is breached, it doesn't typically spill over into the main machine. (yeah, I'm using a lot of analogies here)

Each user is limited in privilege also (in *nix).

I'm not saying that Linux machines are rock solid, but the success of an attack is directly dependent upon how diligent the admin is, IMO. This is also true of MS OSs, though...so, there must be a mentality/perspective issue between the people who admin MS OSs and Linux distributions.

I'll not get into the codebase and developers. Purely from a usage model perspective, the security focus is quite different.
 
Old 09-21-2010, 10:34 AM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
  1. because most Linux users don't run as root
  2. because Linux's maintainers haven't introduced inherently unsafe scripting languages such as ActiveX and VBScript
 
Old 09-23-2010, 04:47 AM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
We came upon the subject of malware and my acquaintance claimed that the amount of malware affecting each system is proportional to its number of users.
The usual argument against this is Apache. By far and away the most used webserver on the internet http://news.netcraft.com/archives/ca...server-survey/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti-Malware MikRose Ubuntu 2 07-28-2009 08:03 AM
[SOLVED] May have contracted malware. Yes, malware. Firefox on Ubuntu Fiesty. Seeking a fix drachenchen Linux - Security 22 08-17-2008 01:05 PM
May have contracted malware. Yes, malware. Firefox on Ubuntu Fiesty. Seeking a fix drachenchen Linux - Security 1 06-12-2008 05:10 AM
Linux malware on the go TigerOC Linux - Networking 3 11-07-2004 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration