LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-28-2006, 09:25 PM   #16
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31

Quote:
Originally Posted by b0uncer
No, smartness is just what is not needed. People who use Windows and programs for it, only need - most of the time - either not care or press the big green button saying "Press Me To Be Safe", whereas Linux users still need to stick with the good old command line tools that not all the newbies know how to use efficiently. I'll say it again: a person who knows what s/he's doing on a Windows machine can make it safer than a Linux distribution he's not familiar with.
The problem being your premise holds true if we rip the details that make it support your argument right out of your premise. If we instead say "A person who knows what s/he's doing on a machine can make it safer than one s/he's not familiar with." it becomes more obvious which is true and which is necessarily true. It doesn't really have anything to do with which OS they're running--it comes from the handicap of being unfamiliar with a platform.

FYI, RedHat, Mandriva, and SuSE all now have mechanisms by which updates can be automatically retrieved and installed. Probably Debian and a few others as well, but those are the four that stand out in my mind as having functionality equivalent to or exceeding "Windows Update" functionality. Linux is not lagging on this front but it appears that your knowledge of Linux might be. Heck, even stodgy old Slackware has two different projects that can do an automatic updates on a user's behalf.

Quote:
Originally Posted by b0uncer
The updating is another thing; nearly all the Windows apps do the updating automatically with no user interaction needed. No smart-asses needed here.
I have to use Windows at the office, and I'm just not seeing that. Mozilla/Firefox updates itself, and the apps sold by Microsoft get updated through Windows Update, and that's about the extent of it.

Quote:
Originally Posted by b0uncer
And there is this other thing too, now that we talk about being smart: how many times has iptables asked you whether or not you wish to kick a cracker out of your system?
If iptables is asking you to kick a cracker out of your system, then you have a serious problem because they're already in your system. The hundreds of "stray" UDP packets that are looking for trojans you don't have installed, and the hundreds of failed ssh connections genuinely don't warrant resulting in a message to your desktop asking you about them, or looking for a pat on the head.

I get the feeling you're trying to allude to ZoneAlarm here, and while ZA does do a reasonable job, the vast majority of the notifications it sends to a user are just a waste of time. Almost the only real purpose they serve is to make the user feel better about having spent $30 on it. Presenting a user with a dialog box to which only a complete lunatic would respond differently to isn't adding security--it's just coddling.

And let's be honest... Statistically speaking, no one does attacks manually anymore. Unless something's following a deny-by-default model, generally the only purpose a warning dialog to the user about whether or not to break a connection represents only one thing--a delay large enough for virtually any automated attack to have done it's dirty work, compromised the system, and have moved on to something else.

Quote:
Originally Posted by b0uncer
Or some other "Linux built-in/pre-installed system"? I'm saying to keep your system safe but usable you'll need to do a lot of work with a Linux box, but Windows on the other hand can help you out there. Windows provides tools for those who know what they're doing and newbies, Linux isn't that newbie-friendly, not even today with all the nice gui apps and automated stuff.
Okay, this paragraph has me thinking you're in the completely wrong area. This forum is about Linux security. Windows security doesn't exactly apply except as a poor comparison. Linux provides security tools for people who know what they're doing. Distributions also provide tools for people who don't know what they're doing, but generally, they just configure a default-deny policy. More importantly, since before 2000 nearly every Linux distribution out there has been setting up machines with a minimal number of services exposed to the network by default to begin with. This is a fundamentally more secure approach than SP2's firewalling, which came about much, much later. Services that aren't there don't need to be firewalled.

Quote:
Originally Posted by b0uncer
That got a bit off the topic, but I hope you'll still read it and think it. Linux still needs to evolve, before it's too late; if Windows died tomorrow, I would consider enforcing my security settings. Part of Linux's security illusion is surely caused by the fact that Windows is more interesting a target for some than Linux is. And that could change.
Linux's security is anything but illusory. ...and thanks to things like browsers that aren't correctly sandboxed, and mail user applications which have administrator rights (Outlook), someone who really, really wanted to almost could make Windows die tomorrow.

Do linux vendors hide vulnerabilities?

Do linux vendors wait a month before patching things?

Do linux vendors make their source available for anyone to audit and/or fix?

Do linux vendors file lawsuits against people who find bugs?

Do linux vendors properly give credit to people who find bugs?
 
Old 06-28-2006, 10:11 PM   #17
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
Quote:
It is certain, though, that no matter how robust the security of Linux is, some day when Windows goes out of the lights and the crackers' heads turn at Linux, the penguin-friendly OS will be as full of holes as Windows is today.
Man, you must understand that the holes must have been there for the crackers to exploit them. Crackers don't create them. They don't even find them! They just take what some other security-conscious guy working at sysinternals.com found. The only thing that makes some sense in the popularity theory is that suddenly the new users of Linux approach it with a Windows mentality, which further proves my point that it all comes down to the security consciousness created by our use of some OS. What Microsoft does and has done is to create a full-featured system that they later patch to close holes. They never build with a security-minded approach from the ground up. This is what makes a difference between OS'es being more secure than others. Sadly, it's happening to Linux now when packs of new features that weren't carefully thought out. It's the case with the setuid() call. Check the manpage. This call drops privileges when a setuid program calls this function with the real ID of the user. Well, in Linux this call may fail if the new uid "brings process over it's NPROC rlimit". Meaning that all programs now must check if setuid() failed (which previously meant that the caller wasn't root, that is: with an effective UID of zero). I bring this example to prove my point that it is the mentality of untested featurism that may put holes on previously secure models. Linux is a new system that inherits the Unix model. It's not that Linux learnt from Windows mistakes. The two models are different.

Quote:
Well, maybe not that much since Linux has more coders around the world than MS does, but that will not mean Linux is the ultimate OS that will keep on being a virus-free, problem-free, ultra-secure and totally-nice pack of goodies forever.
The Windows security mentality implies only viruses as being malware. The truth is that "virus" is a marketing term that's used to name worms too. Unless users are taught what do they do and why they can do it, they will always be potential customers. Fortunately, most Linux still want the user to know better, so they learn a "new" model to know what "security" should mean to them. It won't be "evolution" if they skip this fact.
 
Old 06-29-2006, 04:34 AM   #18
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Quote:
Originally Posted by primo
Man, you must understand that the holes must have been there for the crackers to exploit them. Crackers don't create them. They don't even find them! They just take what some other security-conscious guy working at sysinternals.com found.
Actually, no. There are quite a number of people working on finding weaknesses in Windows on their own. You just don't hear about it because Microsoft almost never gives credit to these researchers. It's only to Microsoft's benefit that most of the guys skilled enough to do this actually "play ball" and typically won't release any exploit information to the general populace until after Microsoft has made a patch available. (It's a white hat thing.)
 
Old 06-29-2006, 06:29 AM   #19
LazyP
Member
 
Registered: Jun 2005
Location: Athens GR
Distribution: Slackware 10.2
Posts: 43

Rep: Reputation: 15
I'm relatively new to Linux but I have seen quite a few UNIX-like platforms and they are all more stable and safe than Windows. Ever wondered why? I believe there are two reasons for that:
1. UNIX is around for about 30 years or so. Security models have evolved all these years for these platforms and today they are stable and mature.
2. SECURITY IS A PROCESS NOT A STATE. If the admin is experienced then s/he will be looking all the time at the security lists and apply patches all the time. Now linux is open source which means people look at the code and find bugs ALL THE TIME but these are fixed immediately.

The real security risk is not on the kernel/base system but on the applications. Linux is not easily hacked but apache based Linux servers are defaced all the time.
To sum up Linux is evolving a lot faster than windows and that's what makes it more secure. Plus it is free which means it may not be always backwards compatible (see ipchains vs netfilter) but it also isn't stuck with some 1990's stupid ideas.
Finally have you ever wondered why experienced sysadmins pick up UNIX if they have the choice? Or what routes the packets that allows us to write are thoughts on this forum this very moment?
 
Old 06-29-2006, 08:07 AM   #20
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
evilDagmar: did you even read that? I'm not saying Linux couldn't do auto-updates, but that Windows programs can; well actually the older ones might not, but it's your problem if you use such things. Every piece of "security software" I'm using has the ability to auto-update from the internet without user interaction.

Secondly, the iptables thing..oh man, you wrote a long story. If ZoneAlarm-like programs do bug you asking simple questions, keep in mind what was just said: security is not a state. I'd like to see your bullet-proof security configuration that keeps every threat away without ever interacting with you.

And then.
Quote:
Presenting a user with a dialog box to which only a complete lunatic would respond differently to isn't adding security--it's just coddling.
Hey, if the firewall (or some else program) would always 100% surely know what needs to be accepted and what not, we wouldn't need such apps since they'd be built-in. I like it more answering some questions than reconfiguring a huge script every time I need a small change for a moment.

Quote:
Linux is not lagging on this front but it appears that your knowledge of Linux might be.
Who said Linux is lagging? (and how do you define what knowledge is lagging and what's not; is it the years or decades?)

From LazyP: (good points, you had)
Quote:
Plus it is free which means it may not be always backwards compatible (see ipchains vs netfilter) but it also isn't stuck with some 1990's stupid ideas.
I'd see that a bit differently (just a bit, but still a bit); there are some 1990's stupid ideas still around in Linux (especially in it's applications).
 
Old 06-29-2006, 10:47 AM   #21
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Ah Security...
Windows is a black box. You don't know what's inside. If you trust Microsoft, you can feel secure. I don't and I wouldn't advise any business to trust it. I don't want to report anything to Microsoft and I don't want Microsoft to manage my data behind the door.
Openess is security. Linux belongs to you, you can see what it does to your data and that is what is making you or your business secure. You can encrypt your filesystem if you want, you can manage rights the way you want at any level, you can do anything you are free.
If there is a bug that may corrupt your data, you can fix it.
If there is a hole thta a hacker may exploit, you can fix it.

That's not the case of Windows. Don't trust Microsoft, don't store any confidential data in .doc format. Trust only yourself, that is the only way to be secure

Last edited by Agrouf; 06-29-2006 at 10:48 AM.
 
Old 06-29-2006, 11:54 PM   #22
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Quote:
Originally Posted by b0uncer
evilDagmar: did you even read that? I'm not saying Linux couldn't do auto-updates, but that Windows programs can; well actually the older ones might not, but it's your problem if you use such things. Every piece of "security software" I'm using has the ability to auto-update from the internet without user interaction.
Well, if you weren't saying that Linux can't do automatic updates, then you've fooled me and a lot of other people here. Why were you even bringing Windows up in the first place? This is a Linux Security forum.

Quote:
Originally Posted by b0uncer
Secondly, the iptables thing..oh man, you wrote a long story. If ZoneAlarm-like programs do bug you asking simple questions, keep in mind what was just said: security is not a state. I'd like to see your bullet-proof security configuration that keeps every threat away without ever interacting with you.
I wrote a "long story" because information security is one of the things I do professionally, and I have a lot of knowledge and experience in this particular field. You were the one who brought up the subject of "how many times has iptables asked you whether or not you wish to kick a cracker out of your system?" Did you have a point to asking that?

As to my particular security stance, it's called a deny by default policy. It doesn't require interaction with me to keep bad people out. It keeps everyone who is not me out, and no, it really is not hard to do such a thing.

Quote:
Originally Posted by b0uncer
Hey, if the firewall (or some else program) would always 100% surely know what needs to be accepted and what not, we wouldn't need such apps since they'd be built-in. I like it more answering some questions than reconfiguring a huge script every time I need a small change for a moment.
Your ability to surmise a needlessly complicated situation does not necessarily require the existance of any shortcoming in a given security tool.

...and not to upset you, but firewalls <I>do</I> know "100% surely" what needs to be accepted and what needs to be rejected. They're following the unambiguous instructions of whoever set up their policies.

If the administrator actually knew what they were doing, they wouldn't need a child's GUI to help them figure out what to block and what not to block in the policies they set.

Quote:
Originally Posted by b0uncer
Who said Linux is lagging? (and how do you define what knowledge is lagging and what's not; is it the years or decades?)
You did. Either your entire post was comparing how Linux is "behind" Windows in the state of it's security, or it's time to admit you're just trolling by bringing up Windows (in a Linux-specific forum) in the first place and move on.
 
Old 06-30-2006, 03:59 AM   #23
Lotharster
Member
 
Registered: Nov 2005
Posts: 144

Rep: Reputation: 18
Quote:
Originally Posted by evilDagmar
Why were you even bringing Windows up in the first place? This is a Linux Security forum.
Didn't the thread starter ask how windows and linux security compare?
 
Old 06-30-2006, 04:32 AM   #24
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Some of the reasons a Linux system is more secure:
  • Linux, being open source, allows more eyeballs to find and fix potential problems. This makes security fixes a proactive process rather than a reactive one.
  • In Linux, users have limited access. You can do this in XP, but then many programs won't work.
  • Process like an MTA or webserver are chrooted, and run in restricted shells.
  • Windows uses RPC's for everything.
  • Internet explorer has over a dozen unfixed exploits ( according to secundia). There are more that have partial workarounds that Microsoft will not fix.
  • Windows allows a hacker's program to use a network port even if another program is already using it.
  • Window's IIS server uses shared data space to make it operate faster.
  • A file downloaded (or dropped) by the mail reader is executable if it's extension matches. In linux, you need to also set the 'x' bit before it will run.
  • The registry in Windows is overly opaque. There are several places where malware can hide and start when the machine reboots.
  • The average time for a fresh install of XP to be exploited is less than the time it takes to download SP2 to fix these design flaws. ( A catch 22 situation, if you don't have a NAT router to buy you more time. ).
  • Windows will not work without ie explorer. IE explorer is even used for automatic upgrades (as a super user).
 
Old 06-30-2006, 05:30 AM   #25
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Quote:
Originally Posted by Lotharster
Didn't the thread starter ask how windows and linux security compare?
*chuckle* Okay, yeah, there is that, but by now I would have thought that by now everyone would recognize that as a Holy War topic, and especially not try to depict things as if Windows were the standard and Linux the aberration.

The fundamental difference is that Linux is built on the principle of least privledge*, and Windows is built the other way around. Windows expects to allow the user to do anything s/he wants, where Linux is rather particular about only allowing things which are explicitly needed. Especially with everyone and their brother using an account which is effectively Administrator (under XP and often under 2000 as well) this makes a lot of the mischief that happens under Win32 something that would never be able to happen under a unix-alike system.


* The Principle Of Least Privledge is an important information security concept. It boils down to "That which is not explicitly allowed is denied by default".
 
Old 06-30-2006, 06:35 AM   #26
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Why were you even bringing Windows up in the first place? This is a Linux Security forum.
The topic.

Quote:
I wrote a "long story" because information security is one of the things I do professionally, and I have a lot of knowledge and experience in this particular field. You were the one who brought up the subject of "how many times has iptables asked you whether or not you wish to kick a cracker out of your system?" Did you have a point to asking that?
Yes I did, and I do. Read.

Quote:
...and not to upset you, but firewalls <I>do</I> know "100% surely" what needs to be accepted and what needs to be rejected. They're following the unambiguous instructions of whoever set up their policies.
Correct - I don't mind if you're having such a simple configuration where you can deny everything that's not your own professional usage, but some people do have more complex situations. Firewalls do know what needs to be accepted if you instruct it so. But for some people's use that just doesn't fit.

Quote:
As to my particular security stance, it's called a deny by default policy. It doesn't require interaction with me to keep bad people out. It keeps everyone who is not me out, and no, it really is not hard to do such a thing.
Nice. Try that in a server environment in some corporation.

Quote:
If the administrator actually knew what they were doing, they wouldn't need a child's GUI to help them figure out what to block and what not to block in the policies they set.
What if the administrator just couldn't see to the future and know every possible needed thing? Situations change.

Quote:
You did. Either your entire post was comparing how Linux is "behind" Windows in the state of it's security, or it's time to admit you're just trolling by bringing up Windows (in a Linux-specific forum) in the first place and move on.
Nope. Just saying that Linux's security is not so overwhelmingly better than that of Windows, it depends on many things. You should know that since you claimed to be a professional.
 
Old 06-30-2006, 06:35 AM   #27
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Why were you even bringing Windows up in the first place? This is a Linux Security forum.
The topic.

Quote:
I wrote a "long story" because information security is one of the things I do professionally, and I have a lot of knowledge and experience in this particular field. You were the one who brought up the subject of "how many times has iptables asked you whether or not you wish to kick a cracker out of your system?" Did you have a point to asking that?
Yes I did, and I do. Read.

Quote:
...and not to upset you, but firewalls <I>do</I> know "100% surely" what needs to be accepted and what needs to be rejected. They're following the unambiguous instructions of whoever set up their policies.
Correct - I don't mind if you're having such a simple configuration where you can deny everything that's not your own professional usage, but some people do have more complex situations. Firewalls do know what needs to be accepted if you instruct it so. But for some people's use that just doesn't fit.

Quote:
As to my particular security stance, it's called a deny by default policy. It doesn't require interaction with me to keep bad people out. It keeps everyone who is not me out, and no, it really is not hard to do such a thing.
Nice. Try that in a server environment in some corporation.

Quote:
If the administrator actually knew what they were doing, they wouldn't need a child's GUI to help them figure out what to block and what not to block in the policies they set.
What if the administrator just couldn't see to the future and know every possible needed thing? Situations change.

Quote:
You did. Either your entire post was comparing how Linux is "behind" Windows in the state of it's security, or it's time to admit you're just trolling by bringing up Windows (in a Linux-specific forum) in the first place and move on.
Nope. Just saying that Linux's security is not so overwhelmingly better than that of Windows, it depends on many things. You should know that since you claimed to be a professional.

EDIT: I seem to have a very fast mouse-click or then this site is doing magic on me..I could swear I clicked the button just once. Well, sorry anyway for posting it twice.

Last edited by b0uncer; 06-30-2006 at 06:36 AM.
 
Old 06-30-2006, 06:36 AM   #28
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
Internet explorer has over a dozen unfixed exploits ( according to secundia). There are more that have partial workarounds that Microsoft will not fix.
I just read a newsletter (from a business magazine) where IE and the integration of IE in Windows was labeled the "biggest and most expensive mistake" ever made by Microsoft.

Quote:
with everyone and their brother using an account which is effectively Administrator
The summum being the release of Windows XP Home, where every user IS an "Administrator".
But then again, XP Home wasn't designed for networking and was over-simplified.
 
Old 06-30-2006, 07:39 AM   #29
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by timmeke
The summum being the release of Windows XP Home, where every user IS an "Administrator".
But then again, XP Home wasn't designed for networking and was over-simplified.
Not every user is "administrator", but if you want to install (and use most) programs then you do have to be.
The only difference between xp home and pro IS the networking is crippled in home (although there are ways to install pro dlls and divers to extend networking).
And that windows firewall (if you can even call it that) is the lamest pseudo security app ever and a bi**h to configure.
 
Old 07-01-2006, 09:47 AM   #30
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
I'm just going on the basis of the default setup which no one ever bothers to change. You have to go fairly out of your way to create a non-administrator level account (with Home OR "Pro") and use it.

...and as has been implied, many apps are still pretty braind-dead about that and will expect regular access to magic administrator powers.
 
  


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
How secure is Linux compared to windows? bongski55 Linux - Security 18 09-19-2005 06:23 PM
Is Linux Truly More Secure than Windows? Nukem General 18 09-24-2004 08:54 AM
Linux vs windows? which is more secure? giovannym Linux - Security 5 08-05-2004 09:14 PM
Windows vs Linux, which is more secure? giovannym Linux - Newbie 5 08-05-2004 03:12 PM
Windows more secure than linux? Kage Linux - Security 7 02-12-2002 06:51 AM

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

All times are GMT -5. The time now is 03:05 PM.

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