Slashdot Mirror


Is the Unix Community Worried About Worms?

jaliathus asks: "While the Microsoft side of the computer world works overtime these days to fight worms, virii and other popular afflictions of NT, we in the Linux camp shouldn't be resting *too* much. After all, the concept of a worm similar to Code Red or Nimda could just as easily strike Linux ... it's as easy as finding a known hole and writing a program that exploits it, scans for more hosts and repeats. The only thing stopping it these days is Linux's smaller marketshare. (Worm propagation is one of those n squared problems). Especially if our goals of taking over the computing world are realized, Linux can and will be a prime target for the worm writers. What are we doing about it? Of course, admins should always keep up on the latest patches, but can we do anything about worms in the abstract sense?" Dispite the difficulties in starting a worm on a Unix clone, such a feat is still within the realm of possibility. Are there things that the Unix camp can be learning from Code Red and Nimbda?

516 comments

  1. Well... by Scoria · · Score: 0, Offtopic

    I'm waiting for someone to write a worm that's cross-platform and exploits just about everything.

    That'd be a big worm, though. And it's about time that Microsoft stops hogging the worm marketshare!

    --
    Do you like German cars?
    1. Re:Well... by Scoria · · Score: 2

      How exactly is my reply offtopic? Moderators on crack again, I suppose. My point was this:

      Someone will write a worm that attacks not only Windows, but all variants of Unix as well. It will keep a database (or even download the information temporarily from a website) of exploits.

      My point was that it would be a big (as in file size) worm, and then I added a little bit of humor at the end.

      --
      Do you like German cars?
  2. What to learn from M$ worms by while(1)fork()0x42 · · Score: 1

    Just say NO to closed-source products.

    1. Re:What to learn from M$ worms by Anonymous Coward · · Score: 0

      Hey dooder there's been Linux worms going on for months. RAMEN ring a bell?

    2. Re:What to learn from M$ worms by while(1)fork()0x42 · · Score: 1

      Nope. Hasn't hit me. Haven't heard about it.

    3. Re:What to learn from M$ worms by Anonymous Coward · · Score: 0

      CERT® Incident Note IN-2001-01

      If you look at your firewall logs, you will most certainly see port 111 attempts coming from machines that have been infected. Has been around since last January, and still propagates via unpatched rpc.statd.

  3. keep your code clean? by mrsmalkav · · Score: 0, Troll

    It seems like it would be a stupid answer to this question being as UNIX code is generally cleaner than Windows code. My understanding is that the hackers are just trying to exploit weaknesses. The best solution for that is to not have weakness. And if you do, fix it (patching, etc). It seems that most viruses are written for MS products (ie Outlook) anyway, but being as UNIX programs or opensource programs are pretty clean and tight, there's not that worry.

    I don't think there really is anything to be done differently....

    1. Re:keep your code clean? by Anonymous Coward · · Score: 0
      hackers are just trying to exploit weaknesses

      Partially true.

      They want to exploit weaknesses in popular software. >p> Contrary to the open source dogma, Microsoft software is not any weaker than open source software. However, because it's much more popular it also gets targetted more by the crackers and therefore also looks more vulnerable.

    2. Re:keep your code clean? by GregK72 · · Score: 2, Informative

      I think that people could probably find exploits in Apache, Sendmail, etc... probably a lot easier since they can scan the sourcecode. From what I have read though, most of these worms & virii are not very complicated and are using relatively easy to exploit holes in M$ products. Most of these holes exist since M$ is trying to make life easier on the user by doing work behind the scenes (such as automatically calling an IE dll to render an HTML email). As work continues on desktop environments such as GNOME and KDE, I think that it is not unreasonable to expect to see exploits in those products being used. But since M$ products dominate the desktop market, I expect to find most people writing worms&virii for M$ environments.

      --
      Now accepting sig suggestions.
    3. Re:keep your code clean? by daviddennis · · Score: 2

      But it's not, in web server market share. Last time I looked, Microsoft had under a third of the market.

      The basic problem is that it's a very complex task to make things look and feel simple to the end user. Because of that, the Microsoft server is a great deal more complex than Apache. And it exposes more services, which to an Apache user would be installed on a case by case basis. Note that the problems we've seen in IIS are generally caused by auxillary stuff like the Index Server. That exists to make things easy, yes. But it also increases complexity, and whenever complexity goes up, the possibility of there being holes goes up even more.

      Hope that helps.

      D

    4. Re:keep your code clean? by gimpboy · · Score: 2

      not to mention that unix operates on a different paradigim than windows. this paradigm operates on all levels from program design (automatic execution of arbitrary code sent to you from an arbitrary source) to genreal security within unix (the concepts of a single user with administrative rights which the user does not always operate as).

      --
      -- john
    5. Re:keep your code clean? by Anonymous Coward · · Score: 0

      unix paradigm? who is to say it will not change, is not changing? the more interoperability we lust for within the environment, the more we are exposed just as MS users are exposed. even though our developer groups strive to work within and up to this standard, holes can and will open and close. RTM, sendmail, 1987? ring any bells..?

    6. Re:keep your code clean? by Anonymous Coward · · Score: 0

      I haven't laughed this hard in a long time. UNIX is not clean. UNIX has been piled on top of since the 70's. You do the Linux/UNIX community a disservice when you make comments like this one. It shows your ignorance.

    7. Re:keep your code clean? by Dastardly · · Score: 1

      What kind of exploit would be possible in KDE or GNOME in the future tht isn't possibel now? KDE and GNOME have the same problem as IE and Outlook, except it requires the user to actively do something stupid.

      Probably the only problem in GNOME or KDE would be social viruses. I don't know of any Unix mail clients that automatically execute attachments. So, the main possible virus threat is a social e-mail virus, that can get people to detach and run it. It would consists of basically something interesting to look at plus a forked process that looks in as many typical places as possible for e-mail addresses, then simply runs 'mail friend@someplace.com self' for every e-mail address. Worst case when it had retrieved the list of e-mail addresses into process memory it could then run 'rm -rf *' and delete your home directory. While of course entertaining the user with a 15 minute movie clip of something interesting, so that the user would have no idea he/she had been hosed until it was too late. Of course, hopefully most users don't have root access and those that do don't retrienve e-mail ro run e-mail attachements as root. So, worst case would be harm to a few stupid users home directories which could be restored from backup. Of course another interesting social virus could come up with some way to convince a user to run it as root, and then get really destructive or insert backdoors.

      Dastardly

    8. Re:keep your code clean? by Anonymous Coward · · Score: 0

      I am assuming "clean and tight" is in regards to rosy-cheeked young boys.

    9. Re:keep your code clean? by Anonymous Coward · · Score: 0

      Yes! It is! Clean young boys from Austria!

  4. Linux has plenty of marketshare by EllisDees · · Score: 2, Informative
    The only thing stopping it these days is Linux's smaller marketshare.

    What smaller marketshare? Check out the Netcraft survey if you don't believe me. I think better programming is the reason we aren't seeing any worms targetted at linux web servers.
    --
    -- Give me ambiguity or give me something else!
    1. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      funny, do a search on that page and the word Linux is only there once - and has nothing to do with the surveys.

      With something like 95% of consumer PC's being sold with windows, please quit kidding yourself that linux doesn't have a smaller marketshare.

    2. Re:Linux has plenty of marketshare by egon · · Score: 1

      I think his point is that linux has a larger marketshare with regards to web servers (which appears to be the primary propagation method for this particular virus I believe).

      --
      Give a man a match, you keep him warm for an evening.
      Light him on fire, he's warm for the rest of his life
    3. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      That's not important. We should be talking IIS Vs. Apache market share here.

    4. Re:Linux has plenty of marketshare by quartz · · Score: 1

      That, and the fact that the average Apache admin is *way* more knowledgeable than your average IIS admin. I guess that's what you get when you market web servers under the "easy-to-use" paradigm: admins who know little else than where the "on/off" button is.

    5. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      Yes, check out netcraft.

      http://www.netcraft.com/Survey/index-200106.html

      Windows has 49% of the web SERVERS .

    6. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      That, and the fact that the average Apache admin is *way* more knowledgeable than your average IIS admin.

      Too bad they waste so much time extolling the virtues of OSS on Slashdot, they're just as worthless.

    7. Re:Linux has plenty of marketshare by variable · · Score: 1

      Perhaps if you wanted to claim *Apache* has a large market share that would be okay. But, just so you know, Apahce != Linux. In fact, these days, Apache != UNIX! It runs great on Windows and OS/2. Oh, and OpenSource != Linux either, depsite what the uninformed may think. This sort of thinking is no better then people who think that PC == Microsoft.

      --
      ........ "The faster I go, the behinder I get" - Lewis Carroll
    8. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      to quote the netcraft survey for you (since large words seem to baffle you who loves purty pictures)

      Windows has a significantly higher share of the web when one counts by computer, rather than by host

      Yeah, so you have to buy multiple Win machines to handle the same load and uptime that you would get from a single *NIX box. Thank you for proving us correct in our assumption that *NIX is more powerful. You may now proceede to the assimilation chamber.

    9. Re:Linux has plenty of marketshare by HansRH · · Score: 1
      Netcraft only surveys servers (say that three times fast), and it's not just the marketshare of the servers that has to be taken into account. In NIMDA's case (which also propagates itself through email and the web browser) you must also consider which platform the majority of normal users are running.

      From this perspective, if Linux were the dominant desktop operating system (in terms of usage ;-) ), then we would probably see more linux exploits.

    10. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      That is an entirely different argument as to whether or not Linux and/or even Apache is in the minority of physical machines on the internet.

      The Netcraft survey includes personal web servers on millions of machines.

    11. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      Uhh, No. Most Windows users don't even know that they are supposed to be "admins" for their machines. Do you expect your mother, who installed FrontPage to make the family website, to be aware that she is also installing a webserver? The fault lies with MS and their unbelievable ability at creating packages that install hidden services.

      And all Apache admins are not more knowledgeable than IIS admins -- have you ever installed IIS? It takes a lot of tuning to get it to do what you want.

    12. Re:Linux has plenty of marketshare by einhverfr · · Score: 2

      Last record we have from Netcraft is 07/00:
      http://www.netcraft.com/Survey/index-200007.html

      Linux has the slightly higher market share.

      --

      LedgerSMB: Open source Accounting/ERP
    13. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      what possible advantage could there be in running something like Apache on Windows? This thing was built for unix, and even on httpd.apache.org they state that the Windows version lags behind the unix version somewhat. Windows just makes a poor choice for a webserver.

    14. Re:Linux has plenty of marketshare by Anonymous Coward · · Score: 0

      Of course, lots of Apache security goodness goes away on Win32, like chrooting...

  5. frequent distros - already 1 step ahead by shibut · · Score: 1

    By having many releases of Linux distros at various times, when you get the most recent version you are up to date on protection (whatever that may be). On the other hand, M$ does not bother to incorporate their patches in later CDs of their OS. For example, the Oct 2000 patch was not incorporated in a w2k/iis server sold this summer. It's only 9 months later...

    1. Re:frequent distros - already 1 step ahead by hal_mayned · · Score: 1

      Why can't you jjust have a process monitor (perhaps like the freedom.net product) where you can set which programs can and can not access the internet, close unused ports, etc. If a program tried to disguise itself as an allowed program maybe even monitor for irregular internet usage activity by a program.

    2. Re:frequent distros - already 1 step ahead by big_hairy_mama · · Score: 1

      I update my Debian unstable daily. Therefore I can expect and assume that my system is free of nearly every known bug, because the Debian maintainers work very hard to incoporate security fixes as soon as possible.

      On the other hand, Microsoft may provide patches, but they do not provide them in a place that's accessible to the average user. Of course there is Windows Update, which usually has fixes to the more publicized bugs, but it also usually doesn't have fixes for IIS or Outlook, since those are separate products from Windows (I guess).

      Therefore Windows users are much less likely to update, even if the patches are available. And the other problem you pointed out.

      The problem you pointed out - that new CDs often don't include new patches - only compounds things. If I buy a new Linux CD, I expect that it will have the latest versions of all of its software. I *expect* the same thing from Microsoft, but obviously that's not what really happens.

    3. Re:frequent distros - already 1 step ahead by Anonymous Coward · · Score: 0

      "I update my Debian unstable daily. Therefore I can expect and assume that my system is free of nearly every known bug,..."

      ..except for the ones which crash your system or leave you unable to login, of course... ;-)

    4. Re:frequent distros - already 1 step ahead by arkanes · · Score: 1

      I'm not a linux user (boo! hiss!) But similiar products already exist (in fact, this is exactly how ZoneAlarm works on Windows) with varying degrees of security - For example, to defeat ZoneAlarm, people name thier trojans clever things like 1explore.exe. I can imagine a linux trojan named htttpd, for example. Making sure a program that has valid access is still the program it was before is important as well, which can be done with checksums (slow and secure) or last-modified dates (fast and less-secure). The annoying part of this is that you've gotta give it access each and every time you re-compile, which is a pain if you're coding a server or some such....

    5. Re:frequent distros - already 1 step ahead by big_hairy_mama · · Score: 1
      ..except for the ones which crash your system or leave you unable to login, of course... ;-)

      Fortunately, in a year or two of doing this, that's only happpened once (when the PAM maintainer mis-packaged some libs - whoops!). And, (props to the debian people), it seems like in the past months even the bugs that cause the update to fail have been rare.

  6. Grammar by ugen · · Score: 0, Offtopic

    Being a computer geek does not releive you of aneed to use good grammar. It's "dEspite"..

    1. Re:Grammar by Anonymous Coward · · Score: 0

      You forgot a space in there grammar boy :)

    2. Re:Grammar by Restil · · Score: 2

      Its "relieve."

      Its "a need."

      ahem....

      -Restil

      --
      Play with my webcams and lights here
    3. Re:Grammar by Anonymous Coward · · Score: 0

      1. "Dispite" is not a grammatical error, it's a spelling error.
      2. "releive" is a spelling error, "aneed" is a typographical error. Kettle black, glass houses, that sort of thing.
      3. Who really cares? This is just a discussion board, not a formal paper or something.

    4. Re:Grammar by Anonymous Coward · · Score: 0

      It's (ahem) and we're talking about spelling, not grammar. The guy's an idiot, that's all.

  7. Can't happen by Anonymous Coward · · Score: 0

    No one runs *nix as root.

    Unless you have root, you can't do much damage to a system.

    It's impossible to get root on a *nix system without permission, because it is designed that way.

    1. Re:Can't happen by Jon_E · · Score: 1

      That's funny!

      I would almost expect a different type of exploit on Unix - especially if ppl think this way ..

    2. Re:Can't happen by Tim+C · · Score: 2

      No one runs *nix as root.

      No, they don't. But many, many daemons and other long-lived processes run as root.

      A quick scan of the processes on my machine right now shows kdm, X, kppp, pppd, cupsd and a few others.

      On our production servers at work, resin runs as root - I have been reliably informed that it has to (at least, I assume our systems team are reliable - they were rather upset when two of us demonstrated ftping a file onto the server that allowed arbitrary commands to be run :) ).

      Just because there's no-one sat at the machine, launnching xterms and applications as root, doesn't mean that there isn't a whole bunch of stuff running as root. A single buffer overrun exploit in a network-aware daemon running as root, and your machine is wide open, if you're not behind a firewall.

      Cheers,

      Tim

  8. Learning from Code Red? by Kaz+Kylheku · · Score: 4, Insightful

    The UNIX world already had a worm that recursively exploited security holes and spread, back in 1988.

    THAT was the worm to learn from, not Code Red!

    1. Re:Learning from Code Red? by jd10131 · · Score: 3, Informative

      While *NIX systems are not impervious to various forms of attack, they are less vulnerable for several reasons.

      1. People using *NIX systems are usually administering servers, or just love computers. The end result is that they're better (not nessicarily great) at keeping their machines patched.

      2. People using NT/2000 often don't even realize they have exposed ports. The worst of the Code Red/Nimda infections are coming from machines on Cable/DSL...home users who probably don't even know their machine is a server.

      3. Maturity. Any given piece of software will mature in features and stability/security. Most often, growth in security is sacrificed for features in commercial software. When software is free there tends to be less people trying to add marketing based features to a product. Most features come as modules which you must chose to install. With the focus on security, the number of vulnerabilities shrinks until there are virtually none.

      4. Development environment. This may not be immediately obvious as a cause, but it is very relevant. IIS is written in C++, and many people think that C++ is better than C. The real truth is that while C++ provides many benefits, it also can make auditing code more difficlt. The language contains so many features that it becomes very difficult to trace a path of execution just by looking at some code.

      I am sad to admit that every day I write code in C++, using MFC. My conclusion is that development is more difficult on Windows in C++ than on any other platform/language I have used. M$ has an idea of how an application should be laid out that very rarely fits my idea of how an application should be laid out.

      Compare Apache with IIS. Apache has been around for quite some time now, it aims to be a decent general use webserver with a useful set of features. Things such as dynamic content and indexing are provided by various modules which communicate through a well-defined API. It's written in nice, linear easy-to-read C.

      IIS has been around for a while, but the push is on features and integration with Windows. IIS integrates into many aspects of Windows, and it uses COM for it's extensions. Because all COM objects are handled at an OS level, there is much potential for a bad module to blow up the system.

      Of course, even the holes in M$ software have patches available long before they become a headline for the day.

    2. Re:Learning from Code Red? by t0qer · · Score: 1

      >> 2. People using NT/2000 often don't even realize they have exposed ports. The worst of the Code Red/Nimda infections are coming from machines on Cable/DSL...home users who probably don't even know their machine is a server.

      My freind caught it being on MSN dialup on his 2k machine. Isn't that funny? Cmon moderators I need the points!!

      --toq

    3. Re:Learning from Code Red? by spectecjr · · Score: 1

      I am sad to admit that every day I write code in C++, using MFC. My conclusion is that development is more difficult on Windows in C++ than on any other platform/language I have used. M$ has an idea of how an application should be laid out that very rarely fits my idea of how an application should be laid out.

      Then use ATL's windowing support instead. It's exceedlingly lightweight, and doesn't bind you into any kind of framework (caveat: yes, you have to create your Window objects deriving from certain classes, and you have to create a message map, but other than that, it leaves you the hell alone). Much nicer than MFC, and much more powerful.

      Simon

      --
      Coming soon - pyrogyra
    4. Re:Learning from Code Red? by Anonymous Coward · · Score: 1, Funny

      The UNIX world already had a worm that recursively exploited security holes and spread, back in 1988.


      Huh? I thought the first UNIX worm was released in 1991, by some Finnish 5kr1p7 k1dd13 called Torvalds or something like that.

    5. Re:Learning from Code Red? by mengel · · Score: 1
      Actually, while considering the Morris worm, (what was once called THE internet worm), it is important to note that the newer worms are spreading not only by attacking obvious things (network server processes, how the Morris worm spread) but also via user-interface programs like mail readers and web browsers.


      So it seems to me the lessons to learn are that we need to:

      • bulletproof elm, pine, Netscape, Mozilla, and any other News/Mail/Web client against their respective servers.
      • Avoid the urge put excessive DWIM features in such clients. One of the reasons nimdA got through lots of folks email filters and still ran was that various Windows clients got a "audio/wav" attachment, but looked at it and decided it was really an executable and ran it.
      • Avoid having downloaded-executable parts of any kind if possible. Java applets, javascript, and even PostScript are examples of this design methodology, and all have lead to numerous potential security violations.
      --
      - "History shows again and again how nature points out the folly of men" -- Blue Oyster Cult, 'Godzilla'
  9. something to remember by CoreyG · · Score: 2, Informative

    Worms aren't just a Microsoft thing. You should know(remember?) that the first worm ever written infected many *NIX systems (and the net in general) quite badly.

    1. Re:something to remember by Zwack · · Score: 3, Interesting

      You should know(remember?) that the first worm ever written infected many *NIX systems

      The First worm ever written?

      Well, let me see, the term worm was invented by John Brunner, in his classic book, "Shockwave Rider"

      And the guys at Xerox Parc wrote some network based programs... which they called worms after the John Brunner usage.

      And WAY later, Robert Tappan Morris Jr. wrote the Internet worm.

      So, No. The first worms didn't run on Unix

      Incidentally, at least one of the xerox worms got out of hand and crashed a lot of machines at PARC.

      Z.

      --
      -- Under/Overrated is meta-moderation, and therefore is Redundant.
    2. Re:something to remember by Lxy · · Score: 2

      FWIW, the history of worms and such is available here:

      http://www.software.com.pl/newarchive/misc/Worm/da rbyt/pages/history.html

      Pretty well written article with more detail than the above post (same info though).

      --

      There is no reasonable defense against an idiot with an agenda
      :wq
    3. Re:something to remember by arkanes · · Score: 1

      I remember some people speculating back in the 80s that the first virii actually "evolved" because of line noise in modems, causing random mutations in the code... Kinda spurious if you ask me, but fun.

    4. Re:something to remember by American+AC+in+Paris · · Score: 2
      FWIW, the history of worms and such is available here:


      http://www.software.com.pl/newarchive/misc/Worm/ da rbyt/pages/history.html [software.com.pl]


      That site has been updated and now lives at http://www.snowplow.org/tom/worm/worm.html.


      The co-author

      --

      Obliteracy: Words with explosions

  10. Holding back the worm by Heem · · Score: 4, Funny

    The only thing stopping it these days is Linux's smaller marketshare.

    That, and the fact that MOST *nix users/admins tend to be a bunch of computer dorks, like us, and will be sure to stay up to date on security concerns, or at the very least, clean their system of the worm in a timely fashion.

    --
    Don't Tread on Me
    1. Re:Holding back the worm by Anonymous Coward · · Score: 0

      Funny? Try +5 Insightful. This is the theory I subscribe to, as well.

      The Code Red, Code Red ][, etc. worms are spreading through leet hax0r w4r3z installs of win2k s3rv3r on cable modems.

      People who run Linux on their home PC are usually more technically able and hence more aware of security risks/holes/etc. Unfortunately in this they sacrifice things such as good looks, sex, and social skills.

    2. Re:Holding back the worm by bazonic · · Score: 0

      I think you're on to something here. How f*cking hard is it to subscribe to the MS security bulletin and apply patches as they come out. All the NT/2K admins who do that religiously have nothing to worry about (well...at least from worms). It is unbelievable how many of these virii exploit year-old holes that had patches readily available.

      There is absolutely no excuse for nimda to even exist. It would be one thing for a virus that tapped some new hole no one knew about, but this is just admin ignorance/arrogance/ineptitude.

    3. Re:Holding back the worm by Mr.+McGibby · · Score: 1

      Guess what? Not all machines have admins. Yes, they have people that use them and may install software from time to time, but those ser users, not admins. Much of the nimda problem is due to broadband Win2K users who don't even know what a web server is, let alone that they have one running on their system.

      The point is that people shouldn't *have* to worry about this kind of thing. Webservers and other potentially damaging things should be disabled by default. Why would joe user even want to run a web server unless he is the kind of guy that has some idea of how to keep it safe?

      --
      Mad Software: Rantings on Developing So
    4. Re:Holding back the worm by Heem · · Score: 1

      The webservers are not enabled by default, as many of us think, but yet it is just a click box to install them , and they are called "internet information services'... any idiot installing their system would say " OOOOH, I'm going to be going on that internet thing, I should install this! "

      --
      Don't Tread on Me
    5. Re:Holding back the worm by chriss · · Score: 1

      Both arguments are more or less the same. In the early days of NT 3.51 most people using it were computer literate administrators. Only when the market share of NT/W2K rose to levels where close to everyone uses it as a workstation the average users competence dropped. Should Linux reach 20% market share, these 20% will most likely not all be a bunch of computer dorks.

      Chriss

    6. Re:Holding back the worm by ordinarius · · Score: 1

      The only thing stopping it these days is Linux's smaller marketshare.

      Bah. One thing I'll say for Microsoft, they don't publish toolkits on how to build Linux worms.

    7. Re:Holding back the worm by Trepidity · · Score: 2

      Perhaps there aren't as many incompetent admins, but there are still a lot of neglected Linux installs out there. A lot of them are just forgotten boxes, or test boxes that are sitting around waiting for a project to complete, or forgotted installs - I can't even count how many default Apache pages I've seen on the internet. Somebody installed Apache and never did anything with it, so if there were a hole in Apache, who knows if they'd even remember they had Apache running, much less to patch it. Sure, worms might spread slower, but I think they'd still spread.

    8. Re:Holding back the worm by Dastardly · · Score: 1

      It may stop worms, but not e-mail Virii. Because most e-mail virii appear to be social virii. They look like an attachment a user might want to execute, so inexperienced user, or others not paying attention might execute the attachment. Even Unix is vulnerable to these, although they probably don't have quite the destructive potential.

      For example. Create an executable that looks like a video file som eone might want to execute. But, what actually happens is the executable forks the virus process, then goes into playing 5 minutes of video data embedded in the executable. The virus process then proceeds to search the users home directory for e-mail addresses to propgate itself to. We can then mak ethe virus destructive by erasing files as they are checked for e-mail addresses. The virus then sends itself to the other e-mail addresses using 'mail person@someplace.com self'.

      Notice there is not a single vulnerability exploited here, just dumb users.

      Dastardly

      P.S. Yes, I know there are a bunch of gotchas involved in the above example. (Hardware differences, BSD vs Linux vs Solaris...)

    9. Re:Holding back the worm by A.Gideon · · Score: 1

      Apparently, it is not as easy as one would expect.

      I watched someone corrupt a machine by installing some patch from MS. It would boot straight into the BSOD. He had to do manual tweeking from the CDROM to get it to work (a less savvy admin would no doubt have just reinstalled).

      With a UNIX, I can have multiple kernels - and even root partitions. I can make my choice at runtime. Do MS environments have this feature?

    10. Re:Holding back the worm by Anonymous Coward · · Score: 0

      Yeah, I had a NT 3.5 job, and I was getting paid $10/hr MORE than the Unix guys. Ha Ha Ha ... oh.

    11. Re:Holding back the worm by rayd75 · · Score: 1

      I know this will shock some of the Linux zealots out there but there is actually a baseline... A minimum intelligence required to admin even a Windows box and I can guarantee that it is higher than what is required to install a hotfix or service pack. In most cases, the problem lies in the fact that companies don't want to pay for hypotheticals. Spending money is only warranted if there is a problem NOW. The end result is that non-essential things like applying patches, reviewing permissions and checking logs get tossed aside because "senior system administrators" and "network engineers" are fixing font size problems and helping users change the Office assistant. If one of these employees isn't standing over a down system or implementing some VP's fetish-induced project, they are an expense to be trimmed.

    12. Re:Holding back the worm by Anonymous Coward · · Score: 0

      I'm worried about worms, big time! There's this one worm named RMS that seems to think it created every operating system out there and that because someone uses an application that it's associated with, the operating system should be named after it. No matter how hard I try, I keep getting emails in regards to this worm, and it just won't let up! Does anyone have any advice?

    13. Re:Holding back the worm by SCHecklerX · · Score: 2
      Perhaps people should be required to have a license to use a computer, just as they are required to have a license to operate a motor vehicle.

      It is the 'information superhighway' after all.

      I've often thought about this, and think it is an awesome solution if it could be enforced. People would actually have to understand the damned tool they are using, and might *gasp* use it properly for a change.

    14. Re:Holding back the worm by jcast · · Score: 1

      You missed a gotcha: MIME types. Executables should have MIME type application/x-executable; anything else should not be executed!

      Furthermore, any MUA should post a HUGE warning ``This file is a program; if you are not expecting a program from this person, you should not run this attachment, as it is probably a virus''. Outlook's habit of running executable attachments automatically is the cause of 90% of email viruses.

      --
      There are reasons why democracy does not work nearly as well as capitalism.
      -- David D. Friedman
    15. Re:Holding back the worm by jcast · · Score: 1

      Actually, I think it'll shock the Windows zealots even more--they're the ones saying Windows is so much easier to use than GNU/Linux.

      If the ``baseline'' for Windows is that high, why can't these people figure out GNU/Linux?

      Ultimately, what you're saying is that Windows is not more idiot^Wuser-friendly than GNU/Linux. Or am I missing something major?

      --
      There are reasons why democracy does not work nearly as well as capitalism.
      -- David D. Friedman
  11. Monoculture by fractalus · · Score: 3, Insightful

    Even if Linux gained market dominance, it wouldn't quite be the monoculture that Windows is. There are many distributions of Linux, which put important files in different places. This isn't insurmountable but it does make writing a worm capable of running rampant a wee bit harder.

    Also, it's my experience that (for now) people who set up Linux to run on the net are a little bit more clueful than NT administrators. NT seems to encourage the idea that any moron can run it because it's point and click. This isn't true; it takes more work to effectively admin an NT box than a Linux box.

    There have and will continue to be worms. Worms are most successful at any point of monoculture. (sendmail; bind; IIS) The solution, then, is not dominance... but diversity.

    --
    People are never as simple as their stereotypes. This applies equally to Christians, Muslims, and Emacs-lovers.
    1. Re:Monoculture by Anonymous Coward · · Score: 0

      Having many different distributions with different versions of software, compiled with different options, running on different hardware platforms also makes it quite a bit harder to exploit buffer overflows etc.

    2. Re:Monoculture by Shimmer · · Score: 1

      Windows isn't really a monoculture either. Windows 9x and Windows NT are vastly different OSes. Within each codebase there are a variety of releases that are also different (Win95, Win98, WinME, Win2K, WinXP, etc.). On top of that, there are all the different flavors of each release (e.g. Win2K Professional vs. Server vs. Advanced Server).

      Alot of people consider this menagerie to be an indication of Windows' crappiness, but I guess not in this context.<g>

      -- Brian

      --
      The most rabid believers in American Exceptionalism are the exact same people whose policies are destroying it.
    3. Re:Monoculture by Florian+Weimer · · Score: 1

      In addition, even if you use a Linux-based GNU system, you have a broad range of software to choose from to implement your services. There are multiple web servers, FTP servers, MTAs, different SSH implementations, and so on. Of course, this makes keeping track of vulnerabilities a nightmare (Debian is currently looking for someone to do this job, BTW), but if a single vulnerability is identified, it won't affect all of your systems. (In addition, there's a trend towards disabling unnecessary services by default, something which I can't see on the Windows front.)

      Fear of monoculture has prevented us from agressively promoting the use of OpenSSH on all our UNIX boxes (we have a couple of thousands of them). Given the code quality of OpenSSH (which doesn't differ much from other SSH implementations, I think), it is not wise to advocate the use of free software in this case.

    4. Re:Monoculture by fractalus · · Score: 1

      This is a fair point. It's also worth noting that overflows in browsers (IE) would need tuning since there are so many different versions of key DLLs floating around for it.

      However it's obvious that IIS is fairly consistent throughout the NT/2K server realm, given the number of systems infected by Code Red. So while it's not exactly monoculture, it's still fairly homogenous!

      --
      People are never as simple as their stereotypes. This applies equally to Christians, Muslims, and Emacs-lovers.
    5. Re:Monoculture by Anonymous Coward · · Score: 0

      > The solution, then, is not dominance... but
      > diversity.

      Wow. That was incredibly eloquent, well put, and a lesson that far extends the current topic.

      Mod him up, folks....

    6. Re:Monoculture by frankie · · Score: 2

      it's my experience that (for now) people who set up Linux to run on the net are a little bit more clueful

      That experience is most definitely changing with every passing day. In the first week of September, JHU's whole class B block was placed on ORBL, ORBZ, and RBL. We had a dozen-ish open SMTP relays. It may be perpetual september now, but some months are more september than others.

      As expected, our network team tracked them down to the underclass dorms. Students who downloaded ISOs, installed Linux, and turned on everything. Most of them couldn't have secured a server to save their lives. Some of them didn't even know they were running a server. Gee, that situation sounds strangely familiar...

  12. Open ports and executables by shinji · · Score: 1

    I for one close all ports that I don't need to be open. At work this means my linux box listens on zero ports. I don't execute code that people send me in emails (though no one sends my linux executable stuff just MS Crap (people are wiser than that)) If I do open a port I update update update. 'nuff said. Most these worms exploit known bugs that MS users haven't heard about but the patch has been out for months.

    --
    Remove the spam reference to email
    1. Re:Open ports and executables by Anonymous Coward · · Score: 0
      At work this means my linux box listens on zero ports.

      wow, you must not do very interesting work.

    2. Re:Open ports and executables by Anonymous Coward · · Score: 0

      Wow, he must be a developer who doesn't need to run servers.

    3. Re:Open ports and executables by shinji · · Score: 1

      Bingo. I let the server admin people run the samba servers and web servers and the ilk. I write code.

      --
      Remove the spam reference to email
    4. Re:Open ports and executables by SaturnSS · · Score: 0

      That's exactly what microsoft could do, especially with their new release of XP is automatically secure the firewall, don't allow any ports in. Any program wishing to use a port would require autorization from the user. At the same time they need to make it easy for everyone to turn on certain ports as well.

      --
      85% of Americans think this signature sucks
  13. Apt and cron by Anonymous Coward · · Score: 4, Informative

    Or any other form of auto-updater. Remember, Code Red and Nimda used holes that were patched months ago.

    Patch the holes that are inevitable. Patch them early.

    1. Re:Apt and cron by Synn · · Score: 1

      I gotta second this.

      I run Debian and do upgrades about twice a month. Keeping your system current is the best preventative medicine out there.

    2. Re:Apt and cron by Anonymous Coward · · Score: 0

      My only beef with this solution is that there isn't a debian package to set it up automagically.

      Yes, I'm lazy. Apt does that to you. ;)

  14. Lessons learned... by Glock27 · · Score: 1
    Are there things that the Unix camp can be learning from Code Red and Nimbda?

    Certainly! First, that such worms affecting Microsoft servers are very good for Unix/Linux business! :-)

    Secondly, that 'integrating' everything under the sun into the OS leads to security holes and maintenance problems.

    Finally, that Open Source is better in terms of the actual number of security holes - which will certainly decrease over time (which is apparently not the case with Microsoft products).

    186,282 mi/s...not just a good idea, its the law!

    --
    Galileo: "The Earth revolves around the Sun!"
    Score: -1 100% Flamebait
  15. Nitpick by Anonymous Coward · · Score: 0

    Worm propogation is more of an \Theta(2^n) problem, given an infinite pool of vulnerable, unaffected machines.

  16. Nimbda? by $eRvmanIO · · Score: 1

    I thought it was Nimda....

    Could blame the spellchecker, but admin spelled backwards? Come on....

    1. Re:Nimbda? by Anonymous Coward · · Score: 0

      Yeah, I'm pretty sure it's nimda. I've seen it 450+ times on one PC alone (after the virus scan) I swear to all things good and holy: If I ever meet one of the moron children that make these virii I will cut off their tiny grape-like testicles and beat their heads' so hard they'd wish they were Osama bin Laden in a couple of weeks.

      but maybe I'm just bitter.

      S.

    2. Re:Nimbda? by Anonymous Coward · · Score: 0

      nimda = admin backwards

  17. the real culprits by Tregod · · Score: 1

    i dont beleive we should be AS worried as all the windoze users out there. It's the *nix users who are creating the horrible virii (or so im guessing due to "elitist" status of many *nix users) of which windoze machines "just happened" to be suceptable to. we obviously should continue to keep security tight in case of future intrusions.

  18. Yep, by Anonymous Coward · · Score: 0

    Don't run daemon's that are know to have buffer overflows. Bind, sendmail, NFS, LPRng come to mind. If you must run them, research either replacements in bind,sendmails case (djbdns,qmail,postfix) or proper setup in NFS and LPRng's case.

    Further, don't run daemons that send a unix password in plain text over an untrusted network (ie the internet).

    Finally, run a firewall to limit access if your box is on the internet or on a DMZ.

    1. Re:Yep, by RubberDuckie · · Score: 1

      Actually, sendmail hasn't had a buffer overflow bug in some years. I trust sendmail more than most anything else I run. It just seems to have a bad reputation from past exploits. Too bad I can't say the same for bind. If you won't run software that has _ever_ been compromised, you must not run much ;-).

  19. From earlier in the day... by FortKnox · · Score: 2

    Just read this and protect yourself.

    This is a pretty pathetic ask/.

    --
    Good quote, too many chars. Seriously, the slashdot 120 char limit sucks!
  20. Lion by Anonymous Coward · · Score: 0

    UNIX/Linux has already been hit with worms. It's no more difficult. The Lion worm that affected bind a few months (9?) is a good example.

  21. someone else will if I don't by great+throwdini · · Score: 1

    Dispite the difficulties in starting a worm on a Unix clone, such a feat is still within the realm of possibility. Are there things that the Unix camp can be learning from Code Red and Nimbda?

    Despite the difficulties in starting a worm on a Unix clone, such a feat remains possible. Are there things that the Unix camp can learn from the Code Red and Nimbda incidents?
    Mod down if you wish, but I'm just doing my part to push Slashdot editors to improve themselves and their grammar. "Write-ups that are more concise, better grammar," I say.
    1. Re:someone else will if I don't by Anonymous Coward · · Score: 0

      Nice work, but you failed to address the smugly arrogant tone.

    2. Re:someone else will if I don't by LostOne · · Score: 1

      Ummmm, the only actually grammatical problem was the "dispite" thing. The rest of it is *style* not grammar.

      --

      If it works in theory, try something else in practice.
    3. Re:someone else will if I don't by great+throwdini · · Score: 1

      Ummmm, the only actually grammatical problem was the "dispite" thing.

      *sigh* Never thought I'd write a reply, but you apparently didn't read my post very carefully, e.g. "Write-ups that are more concise."
    4. Re:someone else will if I don't by Anonymous Coward · · Score: 0

      Forget it. Slashdot editors are as retarded as the readers.

  22. same goes for virii.... by pherthyl · · Score: 1

    sure right now there are almost no linux virii but if it ever does gain widespread acceptance you can be sure the virus writers will target it...

    THere should be an antivirus program for linux... the only problem being, who wants to write a program that may never be used?
    I suppose there would be enough time to write it when the viruses start appearing..

    1. Re:same goes for virii.... by spudnic · · Score: 2

      Very good virus protection is already available for Linux. Check out AVP.

      --
      load "linux",8,1
    2. Re:same goes for virii.... by Janitah · · Score: 1

      there should be a antivirus program for linux? ever heard of mcafee???????? idiot

    3. Re:same goes for virii.... by darylp · · Score: 1

      who wants to write a program that may never be used?

      Quite a few people, apparently!

  23. *nix is safe for now... by superflex · · Score: 1
    The answer is obvious. *nix admins don't need to worry because the people writing these things run *nix on their boxes, and they're not interested in screwing themselves over.

    then again, perhaps i'm overestimating the self-preservation instincts of the script-kiddies

    --
    sigs are for suckers
  24. i'm gonna puke by Anonymous Coward · · Score: 0

    if I see one more person write virii instead of viruses. Virii is not a word!

    1. Re:i'm gonna puke by Anonymous Coward · · Score: 0

      Virii is not a word

      But you just used it in a sentence! :-)

    2. Re:i'm gonna puke by Walterk · · Score: 1

      This is where you're wrong. Virus is a Latin word, and as such is written as Virii when you're talking about multiple virii. Virusses is partly english, but virii is actually better. Know your Latin, dude!

    3. Re:i'm gonna puke by Anonymous Coward · · Score: 0

      "Virii" is not the plural form of "virus"!

    4. Re:i'm gonna puke by Anonymous Coward · · Score: 0

      Idiot. Lameness filter encountered. Your comment violated the postercomment compression filter. Comment aborted

    5. Re:i'm gonna puke by memyselfandmyhand · · Score: 0

      Its Virii.

      The same logic behind Fungus x2 = Fungi

  25. uh... worms? by Swaffs · · Score: 1

    Not only does linux have a smaller market share, but there's also so many varieties and configurations that writing one that can attack a significant portion of that marketshare would seem quite difficult. Add to that that Linux users tend to be better informed on these things, and its less likely to find vulnerable systems. Most importantly, any infected boxes would probably soon become obvious to the admin, and it would be fixed. There's really no excuse for Code Red to still be propagating.

    --

    --
    "Karma can only be portioned out by the cosmos." - Homer Simpson [1F10]

  26. It's worth noting.... by pjbass · · Score: 1

    that people who run different Unix platforms (Linux included) are typically more aware of potential security holes that their applications/OS may have. People usually are subscribed to Cert's mailing list, and although the advisories come out after the initial uncovering of a worm/virus/exploit, the people who take care of these boxes have a good idea of what's installed on their boxes, and know where to look for more proactive administration. I think a big reason why Microsoft software is a target that seems to be much more affected (not only that it is a bigger market-segment share) is that its users are normal users, not your everyday 1337 user, so they will not necessarily know what's wrong with their system (let alone what's installed) until something bad happens to their system. So I'm not sure it's a question of are we vulnerable in the Unix world, but the question should be, how much more aware are we in the Unix world OF potential exploits, or even how much less aware might we be?

    /pj

  27. Sweet Revenge by WildBeast · · Score: 1

    Security is only an illusion, we can't be 100% secure without sacrificing our privacy and/or confort; even then that won't guarantee our security. Ask yourself this, is it easier to destroy or to create?

    I say we should do the same thing as U.S. does with terrorists. Find the worm writers and beat them to a pulp. We'll make them our bitch.

    1. Re:Sweet Revenge by Anonymous Coward · · Score: 0

      Really? What about the terrorists it harbours itself?

      Like your most hated Osama Bin Laden, that in the 70's and 80's, you gave money to, and had the CIA train?

      You definitely sound like an archtypical stupid, clueless American.

    2. Re:Sweet Revenge by WildBeast · · Score: 1

      First, I'm Canadian, Second you misunderstood, it was supposed to make fun of what's happening.

    3. Re:Sweet Revenge by Anonymous Coward · · Score: 0

      We'll beat you mounties to bloody pulps too.

  28. More than I was last week, but not terribly so by barzok · · Score: 1
    I don't think anyone can say in all honesty that they aren't more concerned about it. But I also feel fairly safe as I keep a minimum of ports open and I don't screw around with software I suspect to be unsafe. Nor do I just run anything someone sends to me.

    It's hard to not be "one of those smug Linux geeks" this week. However, my Linux- FreeBSD-lovin' friends, our day will come if we don't keep watching out for ourselves. Keep your eyes open and your ports closed.

  29. I'd like to see 'White Hat' worms... by ddstreet · · Score: 2
    What I think would be interesting, is a Linux worm that used a security hole to get into a box, then closed the security hole, then propagate to other boxes, and finally uninstall itself. Maybe also leave a message or email on the box stating that it's fixed the box's security hole...;-)

    Unfortunately, doing constructive work (i.e., fixing the security hole) is always more difficult than doing destructive work (e.g., rm -rf /). But worm/virus writers seem to have plenty of time on their hands...

    1. Re:I'd like to see 'White Hat' worms... by Anonymous Coward · · Score: 0

      being hit by a "white hat" worm wouldn't make me feel any better than being hit by a "black hat" worm. either way, my box has been compromised. sure, the white worm was nice enough to let me know, but i probably would've found out anyway. either way, it means i'm reinstalling the os.

    2. Re:I'd like to see 'White Hat' worms... by mandolin · · Score: 2
      a Linux worm that used a security hole to get into a box, then closed the security hole, then propagate to other boxes, and finally uninstall itself.

      Except for the uninstalling part :-), it's been done. Try a google search for "cheese worm".

    3. Re:I'd like to see 'White Hat' worms... by wishus · · Score: 4, Funny
      What I think would be interesting, is a Linux worm that used a security hole to get into a box, then closed the security hole, then propagate to other boxes, and finally uninstall itself.

      Then you get black worms that exploit vulnerabilities in white worms, white worms that search for black worms and destroy them, black worms that hunt black-hunting white worms, grey worms that fix your security hole but extract a "payment" in the process, grey worms masquerading as white worms, black worms masquerading as white worms, white worms that inadvertantly do damage while trying to do good, black worms that exploit new holes left by those white worms, and pretty soon you've lost track of what worms you thought you had, what worms the white worms told you you had, what the grey worms have taken, and what the black worms have done.

      It's much better to fix your own security problems, and not depend on some worm that says it's white.

    4. Re:I'd like to see 'White Hat' worms... by Swaffs · · Score: 1

      How would you prevent the white hat worm from eating bandwidth as well though?

      --

      --
      "Karma can only be portioned out by the cosmos." - Homer Simpson [1F10]

    5. Re:I'd like to see 'White Hat' worms... by Anonymous Coward · · Score: 0

      Max Vision was arrested because he written and spread one of these good worms :-(

    6. Re:I'd like to see 'White Hat' worms... by Accipiter · · Score: 2

      Ah, yeah. That'd be the Cheese Worm.

      And apparently, this factual informative comment "violated the postercomment compression filter.", whatever the fuck that is.

      --

      -- Give him Head? Be a Beacon?
      (If you can't figure out how to E-Mail me, Don't. :P)

    7. Re:I'd like to see 'White Hat' worms... by allism · · Score: 1

      Ok, call me crazy but, what if for some reason I WANTED to leave open something that someone else considers a security hole? Inflicting yourself on someone else's stupidity, especially if the someone else is not hurting anyone else, is as much a violation of someone's rights as guessing that their password is 'password' or the name of their mom's dog and then using that to trash their files.

    8. Re:I'd like to see 'White Hat' worms... by Rupert · · Score: 2

      Just like a real ecosystem, then, which many people have compared the internet to.

      I think something like this may be inevitable. You may even get parasites on the worms. So long as they don't turn out like the viruses in Hyperion...

      --

      --
      E_NOSIG
    9. Re:I'd like to see 'White Hat' worms... by Dexx · · Score: 1

      Sounds like this is a can better left unopened..

      --
      Feel the fear and do it anyway.
    10. Re:I'd like to see 'White Hat' worms... by isomeme · · Score: 2

      It's much better to fix your own security problems, and not depend on some worm that says it's white.

      Of course. However, we all pay the price (direct, in network slowdowns, and indirect, in the threat of government regulation) for sites which do not fix their own security problems. How should we respond?


      An instructive analogy: Suppose you notice that your neighbor's house is on fire. This is obviously a big problem for your neighbor, but it's also a big potential problem for you -- left uncontrolled, the fire could easily spread to your house. You try to alert your neighbor, but get no response. Does it make sense for you to call 911? Perhaps even use your own garden hose to try to control the fire? Of course; anyone would do this, and nobody would say you were doing anything wrong.


      On an internet thriving with worms of all greyscale values, properly administered sites won't need to worry about them, and improperly administered sites will hopefully get dogpiled so quickly that they'll either be forcibly patched or crash in minutes. When the vast majority of sites are being properly administered, all flavors of worm will starve for lack of prey.

      --
      When all you have is a hammer, everything looks like a skull.
    11. Re:I'd like to see 'White Hat' worms... by gmarceau · · Score: 1
      I'll roll along with you. Once your neighborg has been compromised, disabling his worm could/should be seen as self defence.

      Having a trobing ecology of worm as Wishus so beautifully describes will motivate keepting admins to safe guard their machines. Because those that won't will get arbitraly shutdown by by bunch of angry grey-hat worm writers trying to protect themselves.

      --
      This post was compiled with `% gec -O`. email me if you need the sources
    12. Re:I'd like to see 'White Hat' worms... by Anonymous Coward · · Score: 0

      These white/black distinctions border on the racist. Can't we use "good" and "evil" instead? We can still use "grey" for the middle.

    13. Re:I'd like to see 'White Hat' worms... by wishus · · Score: 2
      These white/black distinctions border on the racist. Can't we use "good" and "evil" instead? We can still use "grey" for the middle.

      These color distinctions come not from skin tone, but from the color of hat these hackers wear.

    14. Re:I'd like to see 'White Hat' worms... by Dont+tempt+me · · Score: 1

      When the CodeRed worm came out, a general challenge was issued to the world of geekdom to write a worm similar to the one the you suggested. One other thing that it added was that the worm could listen on the port and then only propegate itself to others trying to exploit the hole. That way it wouldn't "cure" other computers unless they "asked" for it.

      However, alas, it looks like nothing materialized of it. It was a fun idea to chew on, though. Who knows -- maybe Slashdot can turn out some better attempts.

      --
      ----- I hate sigs.
    15. Re:I'd like to see 'White Hat' worms... by snake_dad · · Score: 2
      Eh... and the internet will wake up and call itself "Mike" :-)

      --
      karma capped .sig seeking available Slashdot poster for long-term relationship.
    16. Re:I'd like to see 'White Hat' worms... by NoMoreNicksLeft · · Score: 1

      From a scientific standpoint, I can't wait til we see a worm be infected by a virus, and then drag the virus along with it to a new host. Horrid from a network security standpoint, but from a biological perspective, incredibly intriguing...

      Dear mister script kiddy, this is not an invitation to attempt to create such a worm or virus, nor is it a challenge. This is only cool at all if it happens accidentally or spontaneously, if it's designed, it doesn't mean squat.

    17. Re:I'd like to see 'White Hat' worms... by Anonymous Coward · · Score: 0

      These white/black distinctions border on the racist.

      Spoken like someone who's not watched an old-time Western movie in a long while. Check out the color of hats worn by heroes and villains and see the analogy.

    18. Re:I'd like to see 'White Hat' worms... by NoInfo · · Score: 1

      But if his house had termites and were afraid yours would get them as well, would you break in and start spraying those termites?

      I doubt it.

    19. Re:I'd like to see 'White Hat' worms... by WyldOne · · Score: 1

      Don't forget the Earth-Worm Jims, and the corresponding Xearth-worms. The polka dot worms, and the dreaded rainbow worm.

      --

      make Linux, not Microsoft. sin(beast) = -0.809016994374947424102293417182819
    20. Re:I'd like to see 'White Hat' worms... by Anonymous Coward · · Score: 0

      Actually, there have been a few instances of people writing software that listened for Code Red attack attempts, then ran a script through the backdoor that Code Red (created | exploited, and frankly I forget which) to pop up a window on the server informing the admins that their computer was infected, then shut the system down 30 seconds later. Note that this didn't actually "fix" anything, however it did raise some awareness and at least cut off some of the infection nodes.

    21. Re:I'd like to see 'White Hat' worms... by Trinn · · Score: 1

      No, it would call itself Wintermute Join me in lobbying for a .dot domain. http://slashdot.dot (slash slash slash dot dot dot)

    22. Re:I'd like to see 'White Hat' worms... by thefallen · · Score: 1

      I've lost a couple of illusions about our society in past few weeks. I think that one, conveniently posted as AC, removed another one.

      -Kaatunut

      --
      - Kaatunut
  30. Despite .... not "Dispite" by Anonymous Coward · · Score: 0

    Dont spite me ...

  31. Smaller market share? by rw2 · · Score: 2

    The only thing stopping it these days is Linux's smaller marketshare.

    I thought apache had a majority share of the web server market. One that has been hit by worms, and those worm writers usually choose IIS despite it's smaller market share.

    It could be because IIS has more exploits...

    1. Re:Smaller market share? by Mr.+Sketch · · Score: 1

      Not to be nitpicky, but Apache runs on windows too. But you're right that IIS definately has more exploits which would make it a better target despite it's smaller market share.

    2. Re:Smaller market share? by Anonymous Coward · · Score: 0

      No, Apache has a smaller share of servers. They have a larger share of host names. Remember, more than one host name can be run on a single instance of a server.

    3. Re:Smaller market share? by mblase · · Score: 2

      I believe it's not that IIS has more exploits, but that IIS users aren't as vigilant about patching their exploits.

      Think about it. Microsoft's entire appeal is based on ease-of-use; zero administration, wizards, automatically opening your attachments, and so on and so forth. This philosophy sells their servers and server software as well. So people who are used to MS products think they can set up a server, turn it on, and pretty much forget about it.

      The MCSE graduates know better, of course, but they're so expensive to hire. Meanwhile, Linux and *nix in general almost always require a degree of problem-solving ability in order to set them up and get them working. This is part of the reason why they have a smaller market share. However, it also means that most people who take the time to install *nix and get it working on a network (not all, but most) are also going to be vigilant about keeping things patched and secure.

      Maybe that's the nature of it, maybe not. But I'm convinced that there's something in the culture of *nix that drives its adopters to keep things patched, updated and secure, while the culture of MS users is to buy it, install it and let it do your work for you.

    4. Re:Smaller market share? by ptomblin · · Score: 2

      Apache != Linux

      Apache's market share includes the Apache installations running on Solaris, AIX and even Windows, not just Linux.

      --
      The next Cmdr Taco duplicate will be ready soon, but subscribers can beat the rush and see it early!
    5. Re:Smaller market share? by rw2 · · Score: 2

      Apache != Linux

      Right. And worms, virii and other popular afflictions of NT is wrong to. Most of the worms and virii have been infecting outlook and IIS, not Windows. So to on the unix side. And the vast majority of Apache is running on unix flavors.

      My comment is a fair one, even if you do have a lower uid than mine.

    6. Re:Smaller market share? by bare_naked_linux · · Score: 1
      I believe that the wide range of host OSs on which Apache runs is one reason Apache isn't targeted as much as IIS. With IIS, you can exploit it, and since there are only a few OSs on which is runs, exploit the box fairly easily.

      However, with Apache, a worm built to break into boxen would have to either target a subset of Apache hosts, or attempt to determine which OS the compromised Apache service is running on and use an appropriate exploit to own the box.

      Of course, I could be completely wrong. :-)

      --

      --
      Unscrample my email, win a prize.

    7. Re:Smaller market share? by kilrogg · · Score: 1

      Remember though that Apache has a lower server/host ratio then IIS, so you need more IIS servers to host the same amount of websites as Apache. The result is that there are actually more IIS then *nix boxen out there to exploit (see the June Netcraft survey).

    8. Re:Smaller market share? by 4of12 · · Score: 2

      You are right on and ought to be modded up.

      Following your line further, the real danger is that as *nix attempts to become more popular by becoming "easier to use", it will succumb to some of the same pitfalls that plague MS.

      I have to hope that we can prove the old adage wrong - you know the one - every programmer does - I forget who said it first

      "If you make your program so simple that even a fool can use it, be assured that only fools will use it."
      --
      "Provided by the management for your protection."
    9. Re:Smaller market share? by kuiken · · Score: 1

      yes apache has a larger market share, but it would need to be a cross OS, cross cpu worm to be efective, apache runs on about every os out there, and on about any cpu you can thing off while IIS runs on windows and i386 (ok and yes alpha but who buys an alpha and installs windows on it)

      --

      42
    10. Re:Smaller market share? by AdrianG · · Score: 1
      I'm not sure its simply a matter of vigilance. When you install a "patch" from Microsoft, you run the risk of breaking your system. It's frequently true that the only way to fix it (unless you have a real backup and recovery strategy, rather than just backups) is to reinstall and then go back to reapply all the old patches except for the one that broke your system. Even if you know what you are doing, and if you really are committed to doing things the right way, all these statements that you just have to be "vigilant about patching" your system (and many have said this, mblase, so I'm not just picking on you) is unrealistic. There's a great deal of risk associated with this automatic application of new patches that I keep seeing people insist on.

      Linux is not immune from worms. But it is modular enough that simply creating and testing a security patch is much easier, so when we get a patch, it is more likely to be safe to install. When something goes wrong with a patch, most of the system still works, so we are better positioned (on a Unix box) to troubleshoot the problem and find a workaround. If we must back out the patch, some Unix varients have specific and fairly reliable procedures for doing this. Those that don't are modular enough that you have a good chance of figuring out enough about the problem to remove the new software and reinstall the old. Keeping a Unix system up-to-date, patchwise, is a lot safer than this same task for Windows.

      Beyond this, I'm convinced that most Unix varients are simply better written. The programmers that write them are more professional, on average, and they are not trying to cover for their boss's perjury before congress and in the courts by tangling things together than any first year computer science student knows should be kept separate (can you say "Modularity"??). MicroSoft starts of by setting a bad example, and the application writers are almost forced to follow. By the time you finish all the mid-project design changes that you have to make to cope with the fact that the API's do not function as they are documented to function, a non-trivial application will no longer be true to its original design.

      Those of you that say Unix/Linux is not safe from worms and viruses are correct, but this fact should not be made to suggest that Unix and MS-Windows are equally vulnerable. Most versions of Unix are better written than MS-Windows because most Unix vendors are more committed to quality work than is MicroSoft. If MicroSoft doesn't like the reputation they've earned, then they should start earning a different one and stop whining about how Unix is not perfect either. Unix is not perfect, but it is much better.

      Adrian

    11. Re:Smaller market share? by Anonymous Coward · · Score: 0

      This has been proven to be wrong.

      The two largest web hosting companies use IIS (Network Solutions Web Hosting and Namezero).

      Collectively, this conversion a few months ago accounted for a 5% rise in hostnames attributed to IIS.

  32. Spelling by Edgewize · · Score: 1
    Being a computer geek does not releive you of aneed to use good grammar. It's "dEspite"..

    Being a nitpicker does not relieve you of the need to spell properly (releive?), use correct spacing (aneed?), or punctuate correctly (is it . or ...?).

    1. Re:Spelling by Anonymous Coward · · Score: 0

      Er ... and he was pointing out a spelling error, not a grammar error. YHBT.

  33. by Robert Morris by maddogsparky · · Score: 2, Informative

    Yeah. It was the classic example that we studied in my Computer ethics class. Sounds sort of like the nimd worm in that it had four different methods of spreading. The only thing that stopped it from being even worse than it could have been was a programming error that caused it to fill up memory and eventually cause the infected machine to crash.

    --
    science is a religion
    1. Re:by Robert Morris by Anonymous Coward · · Score: 1, Funny

      I'm worried about worms, big time! There's this one worm named RMS that seems to think it created every operating system out there and that because someone uses an application that it's associated with, the operating system should be named after it. No matter how hard I try, I keep getting emails in regards to this worm, and it just won't let up! Does anyone have any advice?

  34. tail -f error_log by Anonymous Coward · · Score: 0

    yes it effects us Linux people!!!!!

  35. Ignorant Question: by rkent · · Score: 3

    Okay, here I go, proving my lack of server programming skilz: is it really so hard to prevent buffer overflows? Why does the length of a URL (for example) ever cause a server to crash?

    It seems like every time you get input from the outside, you would only accept it in segments of a known length, and whatever was longer would just wait for the next "get" or whatever. At least this is the case in my (obviously limited) socket programming experience. So when some program is hit with a buffer overflow error, does the team of programmers smack their collective head and say "d'oh"?

    1. Re:Ignorant Question: by valdis · · Score: 1

      Yes, they smack their collective head and say "d'oh".

      Remember - it's usually NOT the URL itself that causes the problem - it's when you start parsing it down, and you look for a '~username' to expand in a URL, and of COURSE since usernames are 8 chars or less, you have a 'char username[8];' declaration...

      (and yes, there's an OBVIOUS bug in the example, the fact that you can be passed a username over 8 chars, and a SUBTLE bug too, left as an excersize for the reader.)

    2. Re:Ignorant Question: by Zathrus · · Score: 5, Informative

      Yes, it's trivially simple to protect against buffer overflows. But it takes some regimented coding to do it properly instead of taking the easy way out.

      Instead of using gets(), you use fgets(). Use strncpy() instead of strcpy(). And so forth. The only real difference between these calls is that the "safer" one lets you specify a maximum number of bytes to copy. So you know you can't copy a string that's larger than your destination buffer (and you use sizeof() or #define's to ensure you have the proper buffer size) and thus start overwriting executable code.

      This is all high school level programming. Anyone that does it deserves to be strung up for professional negligence. As many others point out, one of the first large distributed cases of a buffer overrun exploit was 13 years ago. So it's not like this is a new thing.

      And yes, there are probably some Unix programs running around with buffer overrun exploits in them. They've been largely weeded out over time though and, to some extent, Unix's permission scheme avoids most serious issues, at least when services are installed properly.

      The real key difference between Unix and Windows though is very, very deep assumptions. Unix assumes that the user cannot be trusted (thou shalt not run as root), nor can any external input. Windows assumes that everyone will play nice. Since the reality of the world is that there is a significant fraction of people who will NOT "play nice" it invalidates coding under that assumption. Thus the repeated security exploits using Microsoft tools and services - which weren't designed from the ground up to distrust the input given to them.

      The plus side of "play nice" is that it's faster to code and you can put in features which would never, ever fly otherwise, like automagic remote installation of software. Or executing email attachments automatically. All that stuff that users think is "wow cool nifty" until someone does something they don't like.

    3. Re:Ignorant Question: by daviddennis · · Score: 2

      In the olden days where men were men, women were women, and people generally didn't engage in tiresome obnoxious behaviour, there was really no need to deal with these issues. It's worth noting that the Morris worm used the 'debug' command of sendmail. This command allowed anyone a root shell by just typing 'debug' at the sendmail prompt easily accessible from outside the system. Life went on just fine, because few people knew of the hole, and those who knew about it didn't bother to use it.

      Sadly, nowadays things are different and we must deal with tiresome security problems all the time. But it was easy to get into the habit of programming in a non-security conscious way, because for many years it really wasn't a problem at all.

      The C programming language was very much a part of that ethos. It was simply not designed to consider the buffer overflow problem. The size of buffers was almost never checked in early C programs.

      And there are many cases other than the input of text where buffer overflows can occur. For instance, sprintf is a common function used to build up a string from smaller pieces. You use it by saying:

      sprintf(destination_string, format, args);

      The format determines the way the arguments are put together to create the string. If you have a destination string of 1,000 characters, and the string being built up contains 1,200 characters, you have an overflow.

      The solution is to use snprintf, which is the same but includes a limit on the number of characters that are added to the string. But that means that every time you want to build up a string, you have to remember to use snprintf and add the count. If you've been programming "the old way" for a long period of time, it's easy to forget to do this.

      The way I work around this problem is by building my own sprintf(), which automatically uses snprintf to build up a string with the maximum buffer size I normally use. So I can program "carelessly" but be protected at the same time.

      As you can see, it's not just the size of the input string, it's how it is combined with other strings using functions like sprintf() that's the problem. And because it's a big pain to calculate all this out, it's no wonder programmers tended not to do it - until they got persuaded by tiresome security issues, that is.

      Hope that helps.

      D

    4. Re:Ignorant Question: by Anonymous Coward · · Score: 0

      Well of course some of this could be stopped by decent language systems that do bounds checking (like good old Pascal or PL/1) but nooooooo we can't have those languages anymore they restrict programmer freedom ...

    5. Re:Ignorant Question: by Osty · · Score: 2, Interesting

      It seems like every time you get input from the outside, you would only accept it in segments of a known length, and whatever was longer would just wait for the next "get" or whatever. At least this is the case in my (obviously limited) socket programming experience. So when some program is hit with a buffer overflow error, does the team of programmers smack their collective head and say "d'oh"?

      The problem lies not in the realm of receiving the information, but actually processing it. What do you think happens after you've received all the necessary data chunks for the requested URL? They're put together and treated like a string, then parsed out for various pieces of data (the path to the file being requested, the type of file based on MIME types, any data parameters (passed from a form, for instance), and any other interesting information your server may be looking for). Now, with insecure coding practices, it's very easy to get a buffer overflow simply by doing something as innocuous as a call to sprintf() (because sprintf doesn't do any bounds checking). The really dangerous part, however, is when the target string is on the stack. Now, when that buffer overflows, a carefully constructed overflow string can easily put executable code into the stack and change the return address on the stack to point to the beginning of that executable code. This is sometimes referred to as "smashing the stack". If instead you're dealing with heap-allocated buffers, it's harder to get code executed, but you can still just as easily cause an access violation and kill the server anyway.


      I'm not trying to pick on sprintf directly, because there are a ton of other potentially unsafe (any unbounded string operation, for instance) or always unsafe (gets, fgets, any function that expects a string to be formatted in a certain way, etc) functions that are used commonly. In fact, too many people use these functions without even knowing that they're opening themselves up to major problems.


      One way to mitigate the possibility of having a buffer overflow in your application is by always using bounded string ops (snprintf, strncpy, etc) (note that strncat is a special case, in that the 'n' refers to the amount of chars to be appended, not the size of the target buffer). Another way is to simply not use the completely unsafe functions, like *gets(). These won't guarantee that you'll be safe, but it's a start. There are plenty of resources out there, so if you're interested, I suggest you do some reading.

    6. Re:Ignorant Question: by JimMcCusker · · Score: 1

      Yeah, someone will call this flamebait. I don't care. The problem is C. There is no bounds checking, or anything else remotely dealing with error handling (does it even have exceptions?) C++, Java, Perl, Python and many other programming languages do, but for some reason, the GNU coding standard says C, and most people want to use that instead. Personally, I think that they're just making work for themselves. It would be much more secure (and easier, I might add) to use std::string and std:iostream, or java.lang.String and java.io.* than to use char* and *print*()and *get*() in C, which both make it very easy to to the wrong things. And don't tell me that C++ isn't portable enough. gcc and g++ are certainly portable, which means that you have that on almost all Unices, and everything else has excellent native support of C++ (and if you don't like VC++, then you can use g++, again). That's portable enough, for me, at least.

    7. Re:Ignorant Question: by Osty · · Score: 1

      Instead of using gets(), you use fgets().

      Just to pick pits, but fgets() is no safer than gets(). gets() is simply a more specific version of fgets(), using stdin as the file handle. The only way to make gets() and fgets() safe is to not use them. The same goes for other calls, as well, like scanf()/fscanf()/sscanf(). I know it's easier said than done, and I have been guilty of writing such code in the past, as well, but to truly be safe, you can't use these functions at all. Ever. Some people might think that it's safe to use fgets or fscanf when they're not dealing directly with user input. This is not correct. By definition, these functions read from a filehandle (stdin, a real file, a pipe, whatever). That means that you're reading data outside of your program that can potentially be changed. You might think, "Oh, but it's safe to use these to read a config file, because only root has access to that," but what happens if root makes a mistake in the config file that you didn't anticpate?


      The point is, not all unsafe functions have a safe counterpart (strictly referring to ansi c functions, for the sake of argument, but this could probably be extended as a truism). In some cases, the only safe option is to do something else instead.

    8. Re:Ignorant Question: by ZanshinWedge · · Score: 2

      This is somewhat offtopic, but I dispute your allegation that Unix assumes that the user cannot be trusted. This is simply not the case. If it had been, unix would not be the security seive that it is (admit it, it is, the only reason it doesn't look so bad at the moment is that in comparison windows is like those dogs that eat their own poo, relatively speaking unix looks like a friggin' fortress). Unix assumes that not all users can be trusted *to the same degree*, but fundamentally, the basic unix structure assumes that all users can be trusted at least partially.

    9. Re:Ignorant Question: by ch-chuck · · Score: 1

      Msft typically doesn't handle overloads gracefully - like my Outlook97 once refused to move a message to a folder with a terse message like "unable to complete task" or something. It wasn't untill I noticed there were 16,383 messages in the folder (2^14 - 1) that I'd hit an internal limit and had to clean up. It's almost like Msft is embarassed to report a limit (a simple "this folder is full" would have saved me hours) has been reached and they'd rather just ungracefully crap out and hope you'll blame someone else. The constant need of rebooting is a sympton of their code getting into weird states they don't know how to handle, and it's simpler (read: "more profitable") to just force the user to start all over.

      --
      try { do() || do_not(); } catch (JediException err) { yoda(err); }
    10. Re:Ignorant Question: by battjt · · Score: 1

      What? Could you please explain that statement?

      A user account can not modify executable, delete others data, change the configuration of the system, fill the disks or on many unixes, use all the process slots or all the memory. When does Unix trust users?

      Joe

      --
      Joe Batt Solid Design
    11. Re:Ignorant Question: by peccary · · Score: 2

      Another thing to do is never ever do copy-type operations into auto variables (on the stack). Auto variables should only be assigned to with the = operator. Makes it awfully hard to stack-smash.

    12. Re:Ignorant Question: by epine · · Score: 1


      The fundamental problem is that programmers are not taught to properly differentiate structural constraints from logical constraints.

      A structural constraint is not writing to a pointer unless you are certain that the pointer points to valid storage.

      A logical constraint is not writing to a pointer unless you are certain the operation contributes to the functionality you are implementing.

      Mistakes occur when programmers start thinking about the logical constraints before coding the structural constraints.

      A good example is writing a device driver for a device you don't really understand. You're going to spend a lot of mental effort trying to understand the logical requirements of the device. Somewhere along the way you forget to address a structural requirement of the operating system.

      The only cure for this is to adopt the habit of coding structural constraints _before_ you start to address your logical constraints.

      The big surprise when you learn to do this is that most programs write themselves. It can very surprising how little "logic" most programs really have, and how few ways there are to implement that logic without violating structural constraints.

      The downside of adopting structural discipline is that programming in the C language becomes less enjoyable. You begin to realize that 90% of your work is extremely blue collar, and only 10% of your work can be considered creative.

      I wish I could say that C++ is the cure. I've devoted a decade of my life to mastering C++. C++ eliminates the worst elements of the C language at the expense of introducing new complications ten times more difficult to teach.

      People come along all the time with the idea of simplifying C++. Invariably, these people throw away the most promising features of the language, templates, while elevating the most pedestrian feature, the object model.

      I'm waiting for the day a language comes along where I can sit down and code up a custom memory management policy that exactly meets the need of my application and be entirely sure that it is going to work the first time, every time.

      The language which makes that possible hasn't been invented yet.

      It can't be done in C because there isn't enough abstraction. It can't be done in C++ because of the vast complexity of the language. It can't be done in any of the popular alternatives because those languages have defined the task of solving the really hard problems as not being part of computer science.

    13. Re:Ignorant Question: by then,+it+was+nigh · · Score: 1

      Just to pick pits, but fgets() is no safer than gets(). gets() is simply a more specific version of fgets(), using stdin as the file handle.

      With the all-important difference that fgets() allows (indeed, requires) you to specify the buffer size, and gets() doesn't. fgets(buf, sizeof(buf), stdin) will stop reading when the buffer fills up if it hasn't hit a new-line yet; gets(buf) won't, and there's no way to convince it to.

      --
      sed 's/In Soviet Russia/In NSA America/g' < yakov-smirnoff-jokes.txt
    14. Re:Ignorant Question: by ENOENT · · Score: 1

      ust to pick pits, but fgets() is no safer than gets(). gets() is simply a more specific version of fgets(), using stdin as the file handle

      Bull. The reason gets() is unsafe is it doesn't have any way to specify the maximum number of bytes to read, so any call to gets() is an automatic buffer overrun hole. fgets() takes as a parameter the maximum number of bytes to read, and is therefore safer.

      By the way, any program that doesn't read external input is known as a HOMEWORK PROBLEM. Such programs are not very useful.

      OK, I'm done ranting now. Now I feel better.

      --
      That's "Mr. Soulless Automaton" to you, Bub.
    15. Re:Ignorant Question: by Osty · · Score: 1

      With the all-important difference that fgets() allows (indeed, requires) you to specify the buffer size, and gets() doesn't. fgets(buf, sizeof(buf), stdin) will stop reading when the buffer fills up if it hasn't hit a new-line yet; gets(buf) won't, and there's no way to convince it to.

      Ah, yes, brain fart. I was thinking "fscanf()" when seeing "fgets()".

    16. Re:Ignorant Question: by Geoff · · Score: 1

      Unix has many situations where trust of users has been implicit, if not outright designed in.

      Many Unix commands have failed to test user input, leading to the potential for problems ("passwd -f", for example, used to allow things like newlines, making it trivial to add your own r00t account).

      The "all or nothing" security model of Unix leads to a whole bunch of setuid programs, which means we have to trust the users, or at least trust our ability to code against every possible thing a user might try.

      The three-level permission model (user, group, others)is pretty weak, and there's no standard way to implement ACLs to make up for it.

      Think of all of the ways to crack root on a Unix box.

      I'm in no way defending Microsoft, I'm just saying that *nix users shouldn't be so smug. Unix was designed by researchers in friendly environments (even the Internet was a friendly environment, once upon a time). We've spent the last 10 years or so trying to work around built-in assumptions and provide some semblance of security. If *nix is more secure than Windows, it's mostly due to having had a head start.

      A couple of years ago, NT admins on campus where I work were ranting against Linux because there were so many exploits floating around, while Windows was largely ignored. NT was "obviously" more secure, since it wasn't being exploited at the same rate as Linux, Irix, etc. I said that NT would have its day, too. *nix was the #1 security problem then, Windows is today, and tomorrow something else will get its turn (maybe even *nix again).

      Any computer that's running and networked is vulnerable. (If it can be used, it can be abused.) There are just varying degrees of vulnerability, and varying degrees of desirability of targets.

      Geoff

      --

      Computers are useless. They can only give you answers. -- Pablo Picasso

    17. Re:Ignorant Question: by AT · · Score: 2

      Yes, it's trivially simple to protect against buffer overflows.

      It may seem trivial problem, but it is actually very hard to solve in practice. The C string API is simply poorly designed -- it is way too easy to mess up. It's not a matter negligence, people are human and make mistakes; thinking good programmers are exempt is pure hubris.

      The real solution is to expect, and learn to live with buggy code.

      Remotely accessible programs should run in chroot jails with the bare minimum of capabilities.

      Languages should make it harder to screw up. Less error prone string handling in languages such as perl, Java and even C++, are helping. Java has even more potential with its untrusted code security model.

      And yes, there are probably some Unix programs running around with buffer overrun exploits in them.

      Undoubtably. Many more than you'd think. And the vast majority won't every be found or fixed, because the program is not suid or remotely available.

      Unix assumes that the user cannot be trusted

      This assumption is broken by suid programs. They say a user is trusted to use me, but only to do something safe. It makes the implicit assumption that an suid program will only do what it was written to do. Secure systems must ensure that when these programs are inevitably comprimised, the damage is contained.

    18. Re:Ignorant Question: by battjt · · Score: 1
      Unix has many situations where trust of users has been implicit, if not outright designed in.

      OK... Please explain.

      Many Unix commands have failed to test user input, leading to the potential for problems ("passwd -f", for example, used to allow things like newlines, making it trivial to add your own r00t account).

      So there was a bug? passwd surely wasn't designed to trust users to not put returns in their name field.

      The "all or nothing" security model of Unix leads to a whole bunch of setuid programs, which means we have to trust the users, or at least trust our ability to code against every possible thing a user might try.

      But Unix isn't all or nothing. Your installation may be. My machines, have a variety of accounts with different permissions for different parts of the file systems and could have different permissions for memory usage and cpu usage.

      The three-level permission model (user, group, others)is pretty weak, and there's no standard way to implement ACLs to make up for it.

      True, but again why does that that imply that Unix "trusts" the users?

      Think of all of the ways to crack root on a Unix box.

      Again, please explain this to me. The existence of bugs is not an indication that Unix was designed to trust the user. In the case of windows, it was designed as a single user operating system. It was designed to trust the single user, for example, users can modify system files. I'm not bashing MS, I'm bashing you. I think you are wrong with your assertion that Unix trusts the user.

      I'm not an ass, but I play one on the 'net.

      Joe

      --
      Joe Batt Solid Design
    19. Re:Ignorant Question: by steveha · · Score: 2

      Instead of using gets(), you use fgets(). Use strncpy() instead of strcpy(). And so forth.

      Yes.

      My question: isn't it sort of a bug that gets() and strcpy() are still there in the standard C library? I would like, at a minimum, to see these cause a compile-time warning. It will be a long time before we can expunge all calls to these functions, but it might go quicker if we can get the compilers to complain about them.

      Has anyone looked at doing this?

      steveha

      --
      lf(1): it's like ls(1) but sorts filenames by extension, tersely
    20. Re:Ignorant Question: by Detritus · · Score: 2

      Try using an old version of UNIX, like V7. It was still a research operating system and the philosophy was that users were mature and trustworthy enough not to do stupid/hostile things. There were many ways for a user to screw up the system. The program crashes when you feed it an input line of 4096 characters? Well, don't do that! That philosophy becomes untenable you put the system on a public network and give accounts to large numbers of immature college students.

      --
      Mea navis aericumbens anguillis abundat
    21. Re:Ignorant Question: by Anonymous Coward · · Score: 0

      Let's simply his post --

      Until a few years ago, Unix was exploit laden shit. The programmers who created it were academic airheads that didn't give a damn about security with untrusted users. Almost no input was checked because the minimalist "Unix philosphy" of the day. Even trusted users could easily exploit standard sevices like NFS and NIS because there was no security BY DESIGN. Even suggesting that you do something like almost silly in it's obviousness, like say encyrpt the password file, was grounds for a flamewar.

      Only after repeatedly being buttraped by hackers did a security community form around BUGTRAQ and other lists. Eventually these folks got the Unix/Linux vendors to patch long-standing holes and tighten up their default configuration. Standard but shitty demons like sendmail and bind were massively overhauled. New software like Apache was written correctly. Now Microsoft is going through this same process.

    22. Re:Ignorant Question: by rgbrenner · · Score: 1

      For gets() atleast, this is already done in gcc. Compiling a program with gets() will give you the warning:

      /tmp/ccjbr1R2.o: In function `main':
      /tmp/ccjbr1R2.o(.text+0xe): warning: this program uses gets(), which is unsafe.

    23. Re:Ignorant Question: by Anonymous Coward · · Score: 0

      Nimda wasn't the result of a buffer overrun, but of confusion over how to normalize Unicode. That is a trickier problem than fixing buffer overruns.

    24. Re:Ignorant Question: by Anonymous Coward · · Score: 0

      Trust is allocated to users, rather than programs.
      As a result, an exploit against $LARGE_PROGRAM
      is, in most cases, going to have the same powers
      as the user who started $LARGE_PROGRAM.

      And the only significant exceptions to that are
      carefully-written apps which are either suid or
      run as root and switch to a less-privileged
      account, both of which are suboptimal.

  36. It's the MCSE's fault by alen · · Score: 1

    Back in ancient Persia they would tie someone to a boat and pour honey on his stomach. They would also leave some meat. And add the maggots and other cute little lifeforms. In the space of a few weeks they would eat the victim alive.

    That's one way to solve the problem.

  37. Been there, on UNIX by Lish · · Score: 1

    Worms are not a new phenomenon. What new can we learn from Code Red et al that we shouldn't have learned already? The lesson, as always, to sysadmins is basically, keep your patches up to date; to developers, don't write buggy code. (Particularly code with silly errors like buffer overflows. C'mon, folks, bounds checking!)

    Yes, I know it's not really that simple, but in many ways, it is.

    --
    "This message is composed of 100% recycled electrons."
    1. Re:Been there, on UNIX by Anonymous Coward · · Score: 1, Funny

      As a developer, I thank you! All this time I've been writing deliberately buggy code, never imagining that it might cause problems.

  38. Find a *root* identitied server. by DunbarTheInept · · Score: 2
    To really make a worm mess people up, it needs to get root access. That fact alone is enough to make Apache more secure than IIS, due to the fact that unless you're an idiot you run your Apache servers as a non-root user. And even if you're an idiot there's still a good chance you are running your server as 'nobody' anyway, since that's the default insallation setting. You would have to be a very special sort of idiot, the kind that goes out of his way to do idiotic things on purpose, in order to be running Apache as root.

    Now, this doesn't alleviate all the problems of course, because even with "normal user" access a person can still do some damage. The web pages are probably owned by that normal user, so with normal access a person could alter your content. The normal user could set up cron jobs for himself such that he attacks other machines later, and thus you can still get propigation without root. So this still leaves open the possiblity of having DNS attacks (since being a part of the attack doesn't require root privilieges, just any user will do.) But it doesn't really leave any way to mess up the target machine permanently. You couldn't alter the httpd program, for example, since it isn't owned by the same user as the user ID it runs under.

    At worst, you lose the web pages themselves, but most likely you have those copied over from some other location as part of your "I'm going to edit in a scratch area and then install these changes for real after I try them out" technique.

    --

    Don't label something "offtopic" unless you know the topic well enough to tell what's on topic.

    1. Re:Find a *root* identitied server. by Anonymous Coward · · Score: 0

      Thank you! I couldn't believe as I was scanning the replies that no one understood what the underlying problem of Windows worms/viruses/etc. is: root/administrator access.

    2. Re:Find a *root* identitied server. by richardalan · · Score: 0

      Actually, being able to exploit apache could lead to root access even if apache is running as another user. All the attacker needs is to be able to exploit a buffer overflow in a userland program to gain root access. IIRC, that's what happened in one of those cracking contests few years ago. A security problem in a cgi script was exploited to run a user program which was exploited to gain root access.

    3. Re:Find a *root* identitied server. by david.johns · · Score: 2, Insightful
      To really make a worm mess people up, it needs to get root access. That fact alone is enough to make Apache more secure than IIS, due to the fact that unless you're an idiot you run your Apache servers as a non-root user.

      For a moment, this didn't ring true. Why? Because the capacity of a local user to utilize a local root exploit (and thus render your argument invalid) is high.

      But then, I realized something. Open Source software encourages diversity. Apache may be running on Windows, Debian GNU/Linux, Redhat, OpenBSD, FreeBSD, etc... etc... And the root exploits are all different. Who are you going to pick on? All of them?

      The worm we're seeing floating around the MS community are exploiting lots of known bugs in one fell swoop. Virtually all Windows installations except those secured by some smart users and some smart admins are vulnerable to one of these attacks. Thus, once again, the Open Source world could have a worm that used a collection of exploits to root many kinds of boxes, right?

      Wrong. The memory footprint and coding skill this would take would make the worm look a lot more like "Microsoft Office for Every Platform" than the Morris Worm. That's because the vulnerabilities taken advantage of are most often in a variety of particular programs rather than some standard API or a few known awful (*cough*Outlook*cough) offenders. If a kernel version or the last few X11 versions had some huge flaws, or maybe Gnome or KDE, then we have a chance to worry. But you know what? The only one of those that Apache is involved in at all is the kernel. Server machines s often do not have X11, let alone Gnome, or KDE.. etc.. etc..

      So my extremely longwinded point is: We aren't immune, but the kind of attack that we're seeing on Windows right now is hard against Open Source Software. Infinite Diversity in Infinite Combinations.

    4. Re:Find a *root* identitied server. by ZanshinWedge · · Score: 3, Informative
      This is fundamentally wrong.


      Theoretically, if you're system is ship shape, then only root, or someone with root access, can REALLY fuxor it up. However, there are many levels of fuxored below "REALLY fuxored", and no system is 100.0000% perfect. Unix is a security nightmare. It's security model is decrepit and is only being patched / kludged into anything resembling reasonable security. I fear that it is too established to be replaced with something completely different at this point (i.e. something that was still unix, but fundamentally different in security model).


      In general, I don't think it's a good idea to measure security success compared to the gimp of the security world (MS).

    5. Re:Find a *root* identitied server. by Anonymous Coward · · Score: 0

      NO! The static content should NOT be owned by nobody. They should be owned by whoever made them or uploaded them and world readable (but not world writable!)

    6. Re:Find a *root* identitied server. by Ami+Ganguli · · Score: 2
      Unix is a security nightmare.

      Why do you say that? Certainly traditional security is simple, so you can't do the fine-grained things that other systems allow (not really true anymore with capabilities, but those aren't widely used or entirely standard). But simple has it's advantages - there are fewer ways to mess things up.

      --
      It is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail. - Abraham Maslow
    7. Re:Find a *root* identitied server. by AKAImBatman · · Score: 1

      Theoretically, if you're system is ship shape, then only root, or someone with root access, can REALLY fuxor it up ... Unix is a security nightmare. It's security model is decrepit and is only being patched / kludged into anything resembling reasonable security.

      Oh, go grab yourself a copy of Trusted Solaris and stop whining. Not even root can fuxor THAT up.

    8. Re:Find a *root* identitied server. by scrytch · · Score: 2

      But simple has it's advantages - there are fewer ways to mess things up.

      By this logic, DOS is the most secure OS in existence. Can't mess up what doesn't exist.

      Let's begin with the problems of unix security: how about a "god" user that can do absolutely anything and everything, which many critical subsystems require the permissions of to do basic work. Inability to invoke basic simple security mechanisms like chroot or setuid without that user's perms. Requiring an interactive shell with that user's perms for most basic system maintenance -- even most tools for system maintenance have to spend some time as uid 0 or go through something that does. The fact that every piece of executable or interpreted content runs with the full permissions of the executing user and not the owner of the resource or at least a subset of the permissions of the executor according to some kind of mask.

      Capabilities are great, but they're sort of the lambda calculus of security -- you can model anything with them, but you wouldn't want a system that used nothing but pure caps any more than you'd want to program in nothing but the lambda calculus.

      --
      I've finally had it: until slashdot gets article moderation, I am not coming back.
    9. Re:Find a *root* identitied server. by ZanshinWedge · · Score: 2

      Why do I say unix is a security nightmare? Simple: experience. Unix is a vast, convoluted, complex system with many little cracks just waiting for someone to exploit them. It takes an extraordinary amount of knowledge to configure unix to a basic level of security. It takes a goodly amount of diligence to keep it that way. And even then you are not guaranteed in any reasonable sense to be secure. And it's not like it takes a criminal mastermind to break into your system, all it takes is a bored kid with some automated tools and a little general knowledge. There is an asymetry, it requires less sophistication and less tools to break in than it requires to prevent a break in. That asymetry is due to the security weaknesses in unix.

    10. Re:Find a *root* identitied server. by Ami+Ganguli · · Score: 2

      Odd, I've found almost the opposite. Most systems come with configurations that are pretty secure and all you need to do to lock them down is disable services you don't need and install SSH. Maintaining security means watching for security notices (which are widely distributed) and updating every now and then.

      In order to break into a Unix system you either need to do a lot of painstaking work to find an exploit, or you need to monitor security lists and create an exploit before your target has updated his software. Either requires considerable effort and luck.

      The fact that real Unix exploits are relatively rare lends some empirical support to the notion that hacking into a Unix box isn't that easy.

      --
      It is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail. - Abraham Maslow
    11. Re:Find a *root* identitied server. by Ami+Ganguli · · Score: 2

      No, I was promoting the idea that a system should be as simple as possible, but no simpler. The original Unix developers managed to create a security system that was much simpler than ACLs, but did most of what was needed. It's held up remarkably well.

      That said, you raise some valid critisisms, but they are slowly being addressed. The reason things are changing slowly is that the old system, although lacking for all the reasons you mention, actually works pretty well in practice. Requiring root access is a problem, but not a crippling one (if it were then the whole Internet would have been rooted long ago).

      --
      It is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail. - Abraham Maslow
  39. Speaking of Microsoft: by bribecka · · Score: 1


    Microsoft has delayed the XBox.

    I submitted this as a story but apparently it's not juicy enough (rejected).

    --

    Where are we going and why am I in this handbasket?

    1. Re:Speaking of Microsoft: by Anonymous Coward · · Score: 0

      Finally, some news from the Xbox camp. When I saw the gamecube launched I was wondering what ever happened to this thing. Poor Microsoft, their whole strategy was to get it in the hands of consumers before the game cube did. They were talking about a delay a few months ago, no doubt some sort of software bug. Can't wait to find out what I get for Christmas this year.

    2. Re:Speaking of Microsoft: by Anonymous Coward · · Score: 0

      No doubt some sort of manufacturing ramp up problem. Fuck 'tard.

  40. Is Linux hard to infect for binary worms by Anonymous Coward · · Score: 0
    A question to the experts:


    Since there are so many different distributions of Linux compiled with different versions of gcc, different optimization flags, etc., does this make life hard for "binary only" worms? The thinking being that to exploit a garden variety buffer overrun in a controlled way, one probably needs a highly specialized worm code. So even if the same version of some vulnerable software is installed on different Linux distributions, one may be attacked by a particular instance of a worm, while the other one is not. Or that a hand-compiled version of a critical piece of software is less likely to be infected by a worm, provided some non-standard compiler settings are chosen?


    Is this a significant effect which limits the spread of worms on Linux?

    1. Re:Is Linux hard to infect for binary worms by valdis · · Score: 1

      It's probably a significant effect that limits the spread of *viruses* on Linux (although the fact that most binaries are not writable by users is probably a bigger factor). Viruses attach themselves to existing binaries.

      Worms, on the other hand, are completely self-contained binaries - so if you're running a Linux 2.2.mumble or later kernel, and have anywhere near recent glibc installed, a worm should be able to run just fine. If you're still running a kernel so old you only have a.out support and not ELF, you're probably mostly safe, but have bigger problems ;)

    2. Re:Is Linux hard to infect for binary worms by GiMP · · Score: 1

      That is a good point, I often say that running the latest and greatest thing is the best.. (debian) but it also makes you more compatable with whatever worms may exist..

      sure, my old linux 1.x box with a.out may be taken by a worm exploiting an hole in telnetd, sendmail, etc.. but the worm won't execute on the a.out/libc5 based box ;)

      But keeping up to date with debian woody will really keep a box pretty secure too.. for the most part.

  41. Microsoft vs Linux by josepha48 · · Score: 2
    I think the big difference here is that most people at some point in the Linux commuintiy start to look at security as part of the system, not like Microsoft where security is only now being thought of.

    Lets face it Linux comes and has come with ipchains and now iptables for firewalling and many other UNIX flavors have similar features. Linux and the UNIX community think about things like proxy firewall combinations, where Windows is only now starting to think about this. It is not until the release of XP (or the anticipated release as it is not out) that windows is by default including a firewall.

    People in the unix community also tend to be more aware of what is going on on their system. They have logs and there are tools to view them.

    While I do not dismiss the possiblity that if Linux / UNIX got to be as popular as windows then there would be more 'attempts' I think that because of the nature of Linux you would have a much harder time of spreading a worm like code red.

    A good UNIX administrator is going to spend time in configuring his web server and securing it. If they do not think about this then they are no good.

    If you are wondering how secure your computer is try these two site. They'll help, but don't try this at work or you may piss off your admins. https://grc.com/x/ne.dll?bh0bkyd2 or http://scan.sygatetech.com/

    --

    Only 'flamers' flame!

    1. Re:Microsoft vs Linux by Anonymous Coward · · Score: 0

      josepha48, you sir are horrendously confused as Windows 2000 was bundled with an ipchains equivalent. As the popularity of the operating system grows, those same users who neglect their windows servers, are going to do the same with their *nix machines. This I can promise you.

  42. Wha't the next step for UNIX security? by melquiades · · Score: 2

    Certainly the robust UNIX security model is one reason we haven't seen as many worms. The strategy of creating a separate "www" or "http" user to run Apache, a "db" user for the database, etc., is common and very wise. If somebody co-opts your web server, at least it can't wipe your db. It still has weaknesses -- it's sometimes necessary to grant more permission to certain users/processes than you might like, and it requires a lot of vigilance from sysadmins, but it works quite well.

    I wonder if there isn't a way of generalizing this to allow more sweeping, more generalized expressions of security rules. A UNIX install has soooo many little apps, and so many points of contact for everything, it's sometimes hard to say "I want all apps that could access X to have permissions Y, or go through acces point Z." TCP wrappers are a good example of the kind of thing I'm talking about -- they provide a single point of access and control for all things TCP, and they make it much easier to set up very broad rules that you know cover all possible cases.

    Am I making any sense here? How might an OS take on this issue in the general case? It seems like one next logical step for UNIX security.

    1. Re:Wha't the next step for UNIX security? by valdis · · Score: 3, Informative

      The first step is POSIX 1003.1e 'capabilities', and is already partially supported in the current Linux kernel. Basically, it breaks the 'suser()' check for "are we running as root?" into lots of little checks: "are we allowed to open any file?" "are we allowed to use raw sockets?" "are we allowed to kill() other processes?" and so on. So instead of (for example) 'ping' being suid just so it can use a raw socket, it would have CAP_NET_RAW, and if subverted, the only thing the attacker gets is the ability to send raw packets (which may be leveragable, but makes it a LOT harder than just execve'in a root shell on the spot).

      The other big move is to support ACLs - access control lists - so you can say "fred, george and harry can write this file, members of group foo are only able to read it, and members of group bar aren't able to do anytying with it".

      SELinux, the LSM project, and the like, are the sort of thing we're aiming at....

    2. Re:Wha't the next step for UNIX security? by Anonymous Coward · · Score: 0

      Generally speaking, the NT security system is more advanced than the UNIX system.
      In NT, most key data structures have ACLs, as have files, etc. Heck, UNIX doesn't even have ACLs!

      Perhaps it's the simplicity of UNIX permissions that keeps things safe?

  43. The real reason. by TheNecromancer · · Score: 2

    Microsoft systems are more susceptable to worms(IMHO) because the level of compter knowledge is way higher for Unix users that it is for Microsoft users. I mean this sincerely, and not just as flamebait.

    Consider how many Unix users would actually just open their emails and run attachments blindly. I would venture that there are a ton more Microsoft users that actually do just that!

    --
    Attention all planets of the Solar Federation! We have assumed control! - Neil Peart
  44. There are security problems on *nix boxes... by nite_warrior · · Score: 1

    there have been worms exploiting *nix boxes, I think that the biggest difference is that running a *nix box u HAVE TO KNOW WHAT U DOING, not like Windows system that u just mark a couple of checkboxes to make a system secure. Unix let u specify exactly which services the computer will be offering on a network, and as long u keep those services secure u make lot for the security of the system. If u left unused ports open u can become a target of some exploit...

    Also, most of the sys admins on the *nix world are reading about security issues related to their systems to protect them, while a lot of the sys admins of windows systems (at least the ones i know) dont do it...

    Being worried on ur system and the way it is working is a big thing on Unix world.

    1. Re:There are security problems on *nix boxes... by Anonymous Coward · · Score: 0

      Your keyboard is serious screwed ... did you spill coffee on it?
      Buy a new one, they're cheap.

  45. difficulties? by friscolr · · Score: 2
    Dispite the difficulties in starting a worm on a Unix clone, such a feat is still within the realm of possibility. re there things that the Unix camp can be learning from Code Red and Nimbda?



    what difficulties?



    whenever an inexperienced user brings up a redhat 7.0 or lower box on our network, it is exploited within 12 hours. within 24 hours i have received email from admins on other networks informing me that the redhat box has been probing their network. 1 minute later i have informed yet another user that it takes more to do my job than booting off of cd and following instructions on the screen.

    someone out their has already taken advantage of the various vulnerabilities found in older distros.



    lessons learned? i am reminded of something my brother told me:

    Having your own box appeals to the pioneer spirit: your own plot of land to develop as you please, fighting off the savages, protecting from the elements.



    In other words, every time you run software which other people will somehow have access to (users running desktop software, server software connected to the internet , etc) you will need to constantly monitor and upgrade that software.

    1. Re:difficulties? by kwj8fty1 · · Score: 1

      If you are the net admin in said network, then you are not doing your job well. If you had a firewall to the outside, it would prevent these boxes from getting hacked. If you are at a large company, having protected vlans would prevent the few "internal" hackers you may have.

    2. Re:difficulties? by friscolr · · Score: 1
      you're right.

      im not the net admin of said network. but beyond that, i work for an educational institution which complicates the matter even further.

  46. The Morris Worm by Prof_Dagoski · · Score: 2


    Let's not forget that what was probably the first worm, the Morris Worm, was released on Unix machines. I don't remember the year, but it was in the early days of the Internet when about all there was out there was Unix and VMS. The lesson that the Unix community took away from this and other incidents was that they needed to secure their machines and tighten up code. The point here is that no system is immune. When I first started out in the Internet field, almost all attacks were launched against Unix and VMS machines because that's about all that was hooked up to the Net on a constant basis. So, don't get smug just because Micrsoft is victimized today. After MS dies a firey death, something else will become the dominant system on the net and that will be the most attacked system.

  47. Are you saying MS is first? by Anonymous Coward · · Score: 0

    Do you really think Microsoft OSs are the first to encounter a worm? They've been around longer than Microsoft. And why would it be any harder to infect a Linux box? Unless your refereing to the a) general lack of functionality and robustness and b) the fact that it's mostly techno geeks running Linux that are a bit more educated on internals and security than the average Windows user (they have to be in order to get anything to work). If your counting those 2 points, then yes, it might be easier.

  48. too many script kiddies... by akira2001 · · Score: 1

    basically, back in the day worms only affected UNIX systems because they were pretty much the only systems that were networked and mult-user. Hence, you could write a worm on a major UNIX system and it's affects could be felt for all the users on that system. These worms took knowledge of UNIX and usually programming in c. Today's script kiddies are "writing" viruses using virus generation programs to dump out a lame vbscript to affect outlook users. I think many of the older "hackers" have lost interest in the whole scene or have gone out and gotten high paying software jobs. The major reason for this is because the orginial worms were written by hackers to show off & display weaknesses in UNIX system. Now, script kiddies write virus to show off, but also to cause damage to tons of people. It takes a great deal less of skills to point out the weakness in windows ... it's just not built for security by design, it's built for usability.

  49. Why is open source more virus-secure? by skuzzlebutt · · Score: 1
    Maybe I'm a little slow, but I don't understand fully how open source development tools, peer-review, and the like can IN AND OF THEMSELVES keep a system safe(r) from virii...What is it about Apache that keeps it from getting attacked less than IIS (besides just poor code and built-in backdoors, and the fact that people just want to screw with MS). I'm sure Apache has it's holes yet to be exploited, too

    ...wouldn't the actual OS security features be the biggest factor (i.e., forced logins and priv levels vs. global access for all)?

    Can someone explain this in terms that a retard like me can understand?

    --
    My debut novel AMITY now available: http://jeremydbrooks.c
    1. Re:Why is open source more virus-secure? by WildBeast · · Score: 1

      yet to be exploited? Don't you remember when apache.org got cracked?

    2. Re:Why is open source more virus-secure? by skuzzlebutt · · Score: 1

      Yeah, but I mean new (undiscovered) holes that get hammered on the CodeRed level...

      --
      My debut novel AMITY now available: http://jeremydbrooks.c
    3. Re:Why is open source more virus-secure? by Jordan+Block · · Score: 1

      As has been said here already, apache, mysql, and most other *nix / Open Source software, does not run a root.

      IIS runs under FULL system privilages, so a pretty simple exploit gives you full access to the system.

      Open Souce code, particularly the higher profile stuff like apache, linux kernels, and whatnot have countless people looking over the code, squashing bugs, and plugging holes. This approach seems to work better than a (comparably) small team at MS, where a lot of the code probably is only seen by the coder working on it, and perhaps glanced over by his/her manager.

    4. Re:Why is open source more virus-secure? by Anonymous Coward · · Score: 0

      First, httpd on most Unix is(or should be) run as a normal user that can only access the web directories,
      second, root should never be used as a day to day user, so the chance that a Unix user with admin level right is quite reduced. (Since NT has no su chance are higher that administrators will run with full rights all the day long, including while reading their emails).

      So probably it is not open source but Unix that reduce the risk. But pear review does also help to find bugs early ....

      Anyway, my Solaris servers are still imune to code_red and its clones ....

    5. Re:Why is open source more virus-secure? by Anonymous Coward · · Score: 0

      Which, IIRC, was not due to a bug in Apache...someone used the same password at apache.org and sourceforge.

  50. WTF -- does anyone here have a memory? by Anonymous Coward · · Score: 0

    Rembember the Ramen worm? So, yes, it is more than a possibility.

    Thankfully I trust Apache more than I trust IIS. Also the marketshare thing does help and the fact that Red Hat now disables every network service by default helps. We are safer but by no means in the clear. We just have to keep our eyes open and our systems patched.

  51. Why is this difficult? by Billy+Bo+Bob · · Score: 1
    I fail to see why so many believe this is difficult. There are several well documented holes in common Linux services that -- although patches exist -- almost certainly exist in a large number of systems. Several give plenty enough access to be able to write automated entry/replicate code that works. Just examine some of the honey pot projects to see how fast a Linux machine will get hacked (in a few cases hours after deployment).

    I suspect the lack of worms is:

    • Lack of interest on the virus/worm writers part. Windows in more fun (to crack).
    • Poorer food source. Lets face it, @home is just chock full of win machines which are unpatched; you will have much more successful propagation with windows machines
  52. It could happen... by Greyfox · · Score: 2
    God knows there are enough newbie sysadmins who feel that even though 30 years of sysadmin wisdom says never run as root, they feel they can because they understand the risks involved. They typically also give all their friends accounts on their system (Ooh! I have a multiuser OS! I'll give all my friends accounts!) Usually they stop doing that after the second or third time they get compromised and have their hard drives filled up with goat porn.

    Fortunately the default installs of most of the mainstream distributions are getting more secure as time goes by. And while RedHat traditionally isn't quite as easy to set auto-updating up for as Debian is, it's still pretty easy to keep up with the security patches for it. I'd really like to see the package maintainers package at least some of the more traditionally insecure packages (*Cough*Bind*Cough*) in ultra-paranoid configurations, say, statically compiled and chrooted. It hasn't been enough of an irritation for me to go do it myself though.

    We all pretty well know, though, that security is more what the user does with the OS rather than how inherently "secure" the OS is out of the box. FreeBSD is by reputation one of the most secure OSes available but I could take that thing and install a bunch of servers with holes in them and be no better off than if I was running Windows 2000 doing the same thing.

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

    1. Re:It could happen... by doom · · Score: 2
      Finally someone says it:
      And while RedHat traditionally isn't quite as easy to set auto-updating up for as Debian is, it's still pretty easy to keep up with the security patches for it.
      It seems pretty clear to me that *this* is the real solution. The problem is lazy sysadmins, and you get more lazy sysadmins as you get more popular. So a real "easy to use" linux distribution has got to include a mechanism for automated security updates (and it had better be a *secure* mechanism). It does indeed sound like Debian is better off than RedHat in this respect, but eventually even RedHat will get it's act together...

      (How hard can it be to figure out a way to generate some extra revenue from this? "And for only $5/month, we'll set you up with the the Head Patch Automated Reinsecuritator Mechanism.")

    2. Re:It could happen... by Greyfox · · Score: 2
      Well IIRC Microsoft has tried to set up some sort of auto-update feature as well. I don't know how well it works, or if it works, since I don't do Windows.

      The problem with using such a feature to generate revenue is that at the very least security patches should fall under warranty coverage and be provided for free. Now if you want to provide something on top of that, say, non-security related kernel patches or something, you might be able to swing that. Making sure security related kernel patches don't rely on non-security kernel patches could be a pain in the ass though.

      --

      I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  53. Smaller marketshare??? by MS · · Score: 1
    The only thing stopping it these days is Linux's smaller marketshare

    If I recall correctly, Linux' marketshare among webservers is around 40% (Apache has 61%), while Windows' is around 25%. Considering that worms spread among servers, and that among the top webservers there are lots of Linux but barely Windows, worms "should" spread much easier under Linux/Apache than under NT/IIS.

    Several studies from Netcraft to Securityspace show you, that neither IIS as webserver nor NT as OS is the most popular among InternetServers.

    ms

    1. Re:Smaller marketshare??? by Anonymous Coward · · Score: 0

      netcraft scans "official" webservers. not scads of @home, xDSL, wireless servers out there.

    2. Re:Smaller marketshare??? by Anonymous Coward · · Score: 0

      You should really read some more up to date information. Windows has 49% of the physical servers on the internet, while Linux only has about 29%. Apache itself is less than 50%, since people are running lots of different servers in the remaining 51%.

      http://www.netcraft.com/Survey/index-200106.html

    3. Re:Smaller marketshare??? by Anonymous Coward · · Score: 0

      This is a common error, so I'll correct. The netcraft numbers he quotes aren't webservers -- they are domains. Therefore this number has NO relevance to a discussion of server-infesting worms.

      That is, a ISP hosting 50 sites on Linux gets counted 50 times. Microsoft.com has 50 servers but gets counted once. Taking this into account IIS and Apache probably have about equal marketshare.

  54. I send you this tarball... by Scratch-O-Matic · · Score: 1

    Hello. How are you?

    I send you this tarball in order to have your opinion.

    --


    Evil is the money of root.
    1. Re:I send you this tarball... by Jon_E · · Score: 1

      that's true ..

      how many unix users do you know who would blindly run shell scripts sent to them and then proceed to complain about viruses .. I think the industry reaction would be quite different as in "oops - *I* did something stupid here" rather than "evil viruses are out to get us" .. which is probably more at the core of it - most unix users I've known tend to be a little more personally responsible with their systems - knowing how to take steps to protect themselves rather than saying the problem is out there somewhere ..

      yet another sad result from catering to the masses that just wants technology to work and not be bothered with understanding or responsibility ..

  55. Bad Comparison by gad_zuki! · · Score: 2

    If someone goes through the trouble of downloading/buying Linux and setting it up as a public server they're probably a lot more computer literate than most windows users. They certainly would understand the need for patches and probably read some kind Linux news site to keep up.

    Now if Linux had windows' market share, it would have to come pre-installed with a new PC and not require the user to do much more than just use the GUI. Which is fine as far as I'm concerned, but we can also assume a Linux dominated universe would be full of unpatched servers too.

    Maybe untreated Windows exploits are heading toward exinction. Its easy access to the internet that has created such a huge market for anti-virus software. Maybe we'll start seeing Windows shipping with an MS or a third party patch manager in the near future. Or something like NAV with a patch checker. "No viruses found, you are open to these attacks, please goto this URL to download the patches."

  56. linux can only get worse by Anonymous Coward · · Score: 0

    linux has got the market share of smart users. now it must expand and get stupid ppl to use it too. this means the new wave of linux admins will but dumb ass ppl who don't know how to sort their boxes out and worms will also infest linux as well so that we will also look like stupid windows users just cos we use linux because of these dumb ass ppl.

  57. Hard to create a Unix worm??? by sterno · · Score: 2

    Why do you think it's harder to create a *nix worm? I mean the basic principles of worm propagation work under any platform if there are any security holes. Certainly *nix does occasionally suffer from security vulnerabilites, if perhaps less than Windows. Look at the ramen worm that was going around recently. I STILL get scans on my box for that vulnerability. Certainly the scale is less dramatic because of the fewer *nix systems out there, but it's not like writing a worm for unix is somehow more difficult than for windows.

    --
    This sig has been temporarily disconnected or is no longer in service
  58. VERY Concerned by MadCamel · · Score: 1, Informative

    I am very concerned about UNIX/Linux worms. Not only is it possible, but it is probable. As much as I dislike Microsoft, they DO release security fixes for their products, usualy before a worm is written to exploit the vulneribilities. The same goes for Linux, BSD, and any other activly maintained operating system. So why are these worms causing so much trouble? Because the average user has no idea how their OS works, and no clue about security. With the recent advancements in user-friendlyness, the same thing goes for Linux too. For example, the statd worm family, which had rooted every insecure RedHat machine in 24.*.. With matters like this, it is not the OS that matters. It is the user/admin of the OS being clueless about security. Until users learn how to apply security patches, and learn to keep up with the latest security news, these things will be commonplace. I sincerely hope that this recent outbreak of particularly nasty worms will get more users and admins interested in keeping their machines secure.

    1. Re:VERY Concerned by Anonymous Coward · · Score: 0

      apt-get update/upgrade and redhats auto installer are the wave fo the future. not admins manually patching stuff.

    2. Re:VERY Concerned by carlosjordao · · Score: 1

      Yes, I agree.
      But almost everybody forgets about distro when they talk about Linux. I guess lots of people
      know about mountd/statd bugs in RedHat.
      So, worms in general are exploiting
      bug in tools for Linux, not exactly Linux kernel.

      Maybe some distro can publish some section in their site telling about new bugs and offering updates...

    3. Re:VERY Concerned by MadCamel · · Score: 1

      I agree, I also think mailing lists would be a good idea, a-la FreeBSD. If you are using a pre-rolled distro, or even somthing modified, mailing lists and security resources are a blessing. If you roll your own, well, you are on your own.. but you probably know enough to keep things secure anyway :)

      Directly exploiting a remote vulnerability in the Linux kernel itself is highly improbable. I doubt the IP stack has any buffer overflows or string format problems, etc. If it did we'd be getting kernel panics more often than win95 BSOD's. This is a very good thing.

  59. Subtle bug? by dschuetz · · Score: 2

    Is it that the username might be 8 unicode (or other multi-byte format) characters?

    Just a quick hunch...

    1. Re:Subtle bug? by Osty · · Score: 1

      Nope. The "subtle bug" he's referring to is that the string should be length 9 (for the terminating NULL). However, there's an even more subtle bug, in that the string:

      char foo[8];

      is allocated on the stack, making it a much more enticing target for a buffer overflow.

    2. Re:Subtle bug? by fractalus · · Score: 1

      No, it's probably that you forgot to include space for the NUL character to terminate the string. You need char username[9]; and then you still be paranoid about checking the length.

      --
      People are never as simple as their stereotypes. This applies equally to Christians, Muslims, and Emacs-lovers.
    3. Re:Subtle bug? by Anonymous Coward · · Score: 0

      he certainly meant the bug was that he was forgetting the '\0' terminator, but yours is also a bug in these international times...

    4. Re:Subtle bug? by Sly+Mongoose · · Score: 2

      More likely that he only declared an 8-byte buffer, with no room for the '\0' string terminator.

  60. There have already been some Linux worms by Chibi · · Score: 1

    There have already been a few Linux worms:

    • Ramen worm - sucks up lots of bandwidth by doing network scans and changes the main page on web servers. (January 2001)
    • Adore worm - Replaces ps with another program that would list all processes except for the worm. Then it would e-mail "several key system files" to some e-mail addresses. (April 2001)
    • Lion worm - attacked computers running BIND. (March 2001)


    One thing pointed out in most of the cases is that there had been patches out for at least a few months that would have protected the computers from attack (Just like Nimda). It just goes to show that it isn't just Windows admins/users who don't keep up-to-date on security.

    --
    If all you have are silver bullets, everything looks like a werewolf.
    1. Re:There have already been some Linux worms by wstearns · · Score: 1

      100% agreed; when Ramen came out it exploited vulnerabilities that had been patched 3 and 6 months before.
      Just for reference, there are detection and removal tools for all of these worms at ISTS/Dartmouth College. GPL'd, source at www.stearns.org/detectlib. (Many thanks to ISTS and SANS for their contributions).

      --
      Mason, Buildkernel and more: http://www.stearns.org/
  61. You can be lazy on any platform. by NetJunkie · · Score: 4, Insightful

    If someone doesn't patch their Windows systems why would they patch their Linux systems? Doesn't matter if the patch is out 2 seconds after the bug is revealed if the admin doesn't take notice and act.

    1. Re:You can be lazy on any platform. by gimpboy · · Score: 2


      If someone doesn't patch their Windows systems why would they patch their Linux systems? Doesn't matter if the patch is out 2 seconds after the bug is revealed if the admin doesn't take notice and act.


      if they are too lazy to patch their windows systems then they are probably too lazy to install linux. currently *nix attracts a different kind of user. this might change in the future, but right now i think your average linux user is a bit more informed and competent.

      --
      -- john
    2. Re:You can be lazy on any platform. by ralmeida · · Score: 1

      Use Debian stable, and add apt-get update and apt-get upgrade to your crontab.

      --
      This space left intentionally blank.
    3. Re:You can be lazy on any platform. by KingBozo · · Score: 1

      I would have to disagree with all the distros that are easy to install. It doesn't take a rocket scientist to install some of these, then ignore them since they work. People need to understand that software is buggy as hell, no matter what platform it is on. As programs and OS's bloat they will just have more vurnerabilities, and need to be constantly patched as fixes come out.

    4. Re:You can be lazy on any platform. by Anonymous Coward · · Score: 0

      And when a worm worm installs itself in the Debian update server ...

    5. Re:You can be lazy on any platform. by allknowing · · Score: 0

      I wouldn't have it any other way.

      The minute *nix becomes as easy to install/administer will be the same minute that lame users and worms will also make the leap to these platforms.

      I say keep *nix as cryptic as hell!
      KEEP US FREE!

    6. Re:You can be lazy on any platform. by ansible · · Score: 2

      I'm sure someone's already come up with a script that can automatically check the GPG signatures of downloaded packages.

      Of course, I would never run automatic software updates on a production server. That might be fine for desktop machines though.

    7. Re:You can be lazy on any platform. by beanyk · · Score: 1

      Doesn't that count as "security through obscurity"?

    8. Re:You can be lazy on any platform. by Anonymous Coward · · Score: 0
      To dissect your point here:

      Nothing beats a good sysadmin, but a Linux sysadmin is more likely to be a good sysadmin than a Windows guy. Put simply, you have to know more to get Linux doing what you want it to. Windows on the other hand has a lot of very useful stuff hidden away behind tabs and menus that Joe Sysadmin might miss while he's unwrapping the shrinkwrap... You could argue that a good Windows admin would have to be a really good Windows admin to even be remotely competent, which is pretty much true. There's nothing more fun than watching a qualified MCSE get stumped by a really simple problem.

      That said, in any OS circle - if you install your patches when they're released, then you won't get anything. To be hit by Code Red was to learn, to be infected by Nimda was to point out that you don't learn from you mistakes and are stupid...

    9. Re:You can be lazy on any platform. by Nykon · · Score: 1

      though sometimes its a good idea NOT to patch your system right away. Lets look at M$ for a sec. Most of the system patches as they come out actually cause more harm then good until they are fixed. The problem lies in deciding when and what level of patch to install on your system and weight system stababilty vs security.

      --
      "It's better to be a pirate then join the Navy"
    10. Re:You can be lazy on any platform. by celloguy · · Score: 1
      Agreed. I went on a rant this morning about this subject: Windows software breeds point and click sysadmins. Scary.
      --
      Confucious say: "Is stuffy inside fortune cookie."
    11. Re:You can be lazy on any platform. by Anonymous Coward · · Score: 0

      At least I can get a full copy of a patched system. With windows you have to put on that old install from 1996 and patch away... for hours. The people who make linux allow you to get a new disk that is already patched.

    12. Re:You can be lazy on any platform. by chrisvdp74656 · · Score: 1

      In crontab:

      * */12 * * * root urpmi --auto-update

      or, for Debian:

      * */12 * * * root apt-get update // or whatever it is

      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
    13. Re:You can be lazy on any platform. by NetJunkie · · Score: 2

      You can get a patched WinNT/2K CD. They update the CDs with the service packs all the time. If you don't have a patched CD all you have to do is apply the LATEST service pack and the hotfixes, which they are now rolling in to one big hotfix at times.

      You don't have to apply ALL the service packs, just the latest.

  62. *nix Worms? Great Skill == More Maturity by Lethyos · · Score: 2

    Worms are definitely a problem on all platforms. But the *nix world has a bigger advantage over the Windows world. In our world, code is written with lots of thought towards quality and strong design. Windows, well, is questionable. Certainly *nix has exploits, but those that exist require a GREAT deal more skill to exploit than those that exist for Windows. Therein lies our safety net.

    Most people who have the skill to code worms for more secure and robust *nix platforms are probably mature/responsible enough through their experience to not do something so utterly foolish. However, if they do decide to do so, they end up trying to do a positive thing for the community! (Anyone remember those Linux worms that FIXED the exploits they took advantage of before moving onto the next box and cleaning themselves up?) Besides, look at the very few malicious worms we have seen for *nix platforms. They didn't last long. The OSS community has a VERY quick response time to big problems and the admins are generally more skilled and knowlagable about applying patches.

    I say, let's enjoy this while we can. It's kind of amusing to see MS admins scurry around, trying to stick fingers in all the leaks. It's risky to say "it serves them right", but that's for only weighing mundane factors in deciding what platform to use. And for those companies that reject OSS products, well, they get what they deserve for thinking "stuff that doesn't come from a company mustn't have any quality". Pah. Worms with the scale of NT aren't a concern for us. Let's parade this around as a reason to support and use open software.

    --
    Why bother.
  63. Virus & Worm Immunity by jordandeamattson · · Score: 1

    In the real world, the way you become immune to diseases is to get them or get vacinated. Maybe we need to take this model and apply it to computer security.

    How about forming a company, call it WormCo, that will take standard distribution of various flavors of Unix and Linux, let a group of hackers have at them, and then have a second team that creates the vacine - i.e. patch(s) - for that worm or virus.

    This company will be funded by subscriptions from the folks that want to keep there servers safe and secure. The staffing will come from a crew of permanents (who will try to break systems and create the patches for the worms and viruses that they and others discover), and by crew of virus writers that get to play in the sandbox and get a bounty for every worm or virus they create.

  64. Wrong! by Captain_Frisk · · Score: 2

    IIS does have a smaller market share in terms of commercial websites out there. However, there are lots of clowns at home on DSL or cable who are running win2k.

    Many people run IIS without knowing it, so i think there are much more vulnerable machines out there than just the webservers.

    Granted, IIS probably does have more exploits, but the real problem is that windows users usually aren't on top of patching them up. There are plenty of exploits out there that exploit linux, but there aren't as many issues because admins patch regularly, and the smaller market share.

    Captain_Frisk

    1. Re:Wrong! by Keith+Russell · · Score: 2
      However, there are lots of clowns at home on DSL or cable who are running win2k. Many people run IIS without knowing it...


      We've been over this before. Windows 2000 Professional never installs IIS by default. It must be explicitly installed by the user. And it's not in an obvious place, either. So if the average user doesn't know where to look, it won't happen by accident.
      --
      This sig intentionally left blank.
    2. Re:Wrong! by yesthatguy · · Score: 1

      But the l33t h4x0rz who pirate Win2K are often just as likely to grab 2K server as 2K professional, because it's l33ter and it costs more...

      --
      Yes! That guy!
    3. Re:Wrong! by _xeno_ · · Score: 1
      Well, it does install by default if you install Personal Web Server (which, in reality, is just a incredibly-dumbed-down GUI for www-IIS).

      I do know of a few people who run Personal Web Server on their DSL/cable machines and don't really use it for anything, but installed it "because they could." These are the type of idiots being really hurt by these worms - the people who installed it for no good reason (with some original purpose, as you point out) and then kinda just leave it running even after they no longer need it.

      (Like the ASP test machine I had for a while - damn, I hate VBScript...)

      --
      You are in a maze of twisty little relative jumps, all alike.
    4. Re:Wrong! by Anonymous Coward · · Score: 0

      To clarify your post - W2K Pro installs IIS if you are doing an upgrade from 98 and you had PWS installed. PWS gets installed with MS Front Page, and was installed by OEMs on certain machines.

      So, it's possible that legit workstation users are running IIS without knowing it, but I tend to think it's mostly warezed copies of 2000 Server.

    5. Re:Wrong! by snake_dad · · Score: 2

      "Hey, look, I can install a real honest-to-god webserver-thingy! Wow! Dunno yet what I'll do with it, but it sure is cool to have my own web-thing."

      Need I say more?

      --
      karma capped .sig seeking available Slashdot poster for long-term relationship.
  65. Why don't people attack UNIX more? by supabeast! · · Score: 2

    Actually, it would probably be easier to attack UNIX with a worm. There are more UNIX machines out there than Windows machines, and most of them are probably just as poorly maintained in regards to security.

    So why don't people write more UNIX worms? I think the first big problem with a UNIX worm is the portability problem: getting a worm that runs well on all of the different CPUs, UNIXes, Linux distros, etc. out there would require a pretty basassed coder. Anyone good enough to do so probably wouldn't waste his time on a worm since he could get paid obscene amounts of money for coding something more productive.

    On a more positive note, I think worms generally target Windows because computer users in general don't really like Windows. Jokes about Windows being unstable/buggy/insecure/slow have gone from being a subsect of geek culture to a repetitive theme in popular culture. People run Windows mostly out of necessity, because it is the only desktop OS that provides access to a large variety of commercial software, and runs on cheap, non-proprietary hardware. People who use UNIX do so because they want to, and they like doing it; therefore they are less likely to produce something as randon as a worm. (I am leaving crackers/s'kiddies out of this as they have far different motivations.).

  66. What can be done to stop worms? by mtcrowe · · Score: 1

    I think several approaches will help us combat the spread of worms on Linux/BSD/OSS:

    Default installations should not enable services that listen on external interfaces. You should have to know enough to re-enable these services securely.

    Agents such as the RedHat Network updater should be common (and FREE!). You should be able to specify what services you're interested in checking regularly and automatically (those that you've enabled) and have any remote root exploit patches found for those services applied automatically (if you want.)

    An open source IDS might also be useful, only if it's updated quickly & by a trusted group. In conjunction with the agent, it's checklist would certainly be able to be updated quicker than a patch.

    Finally - what about a distributed reporting system agent? It should reside on a system and get it's checklist from an external source. If it finds a known worm attack, it can send out a quick update to a centralized database alerting them to the fact. If the ISP's would work with us, they could regularly scan that database for their address space and make the necessary adjustments. Sort of like a Seti@Home system for ratting our your infected network neighbors.

    Some of these ideas, I know, are a bit of a reach (especially the last one, imagine the abuse potential!), but the first three could definitely be done and done right by the security-conscious *nix community.

  67. Default installed servers by ukpyr · · Score: 1

    I'm not sure on the statistics, but I'd imagine the primary vector for the recent worms are infectable IIS servers, my thought being that they are servers and that they have large resources availible to spread the worms.

    Something admins learn (or should) in sysadmin 101 is that you disable things you don't use. Alot of the traffic I see from infected servers comes from IIS installations that aren't even running a website.

    Here is my jab at all you MSCE's and the like out there: Most unix admins (currently anyway) know that you have to keep the software up-to-date and take an active interest in learning about the newest threats. My own, private, personal experience is that NT admin's don't, as a group, have the same "do it yourself" culture. As if that wasn't enough qualification, alot of NT admins DO know their schtuff inside and out, they deserve raises :)

  68. No No No by Anonymous Coward · · Score: 0

    Microsoft IIS contains many blatant holes and ridiculously insecure default settings. Their nearest competitor (Apache), which just happens to have double their market share, hasn't had a hole of this type discovered since 1997.

    If Apache can accomplish this while still running on over 60% of the web servers out there I think it's obvious the blame lies squarely with Microsoft and statements such as "anyone else in their position would be having these problems too" are just plain silliness.

  69. sprintf can be safe by petej · · Score: 1

    When printing strings in sprintf, use "%.*s" to enforce a maximum size on the output. snprintf does the same thing, but you actually get to be a little sloppier, because you don't have to worry about the individual pieces.

    1. Re:sprintf can be safe by Karmageddon · · Score: 1
      i think that both you and he and the unix powers-that-be think about this problem the wrong way. the source is available: the answer is disimplement sprintf. period. if it didn't exist, you would never call it.

      the only thing that would break is other programs you build which use it, but even a program that called it 5000 times would be easy to clean up.

      solutions that incrementally improve the world are so easy, but so few see the beauty in that.

    2. Re:sprintf can be safe by Eugene+O'Neil · · Score: 1

      I don't know how many times I've seen %.*s used in a sprintf, only to discover that the maximum length provided for the string was determined by doing a strlen of the string. Arrgh! Bad programmers always find a way to write bad code.

    3. Re:sprintf can be safe by dumbunny · · Score: 1

      > ... even a program that called it 5000 times would be easy to clean up.

      No, it wouldn't. If your C code used sprintf 5000 times, you would find plenty of places where buf is passed in as an argument so that 'n' is not locally known. Rewriting 5000 instances of sprintf and then testing the code paths in a program that used sprintf 5000 times sounds like a big job for little gain. Most sprintf instances are not potential buffer overflows, and there are plenty of other dangerous functions to worry about.

    4. Re:sprintf can be safe by then,+it+was+nigh · · Score: 1

      Another variant I've seen on some Unix systems is asprintf(), which malloc()s its own buffer and grows it as necessary to accommodate the sprintf() output.

      --
      sed 's/In Soviet Russia/In NSA America/g' < yakov-smirnoff-jokes.txt
    5. Re:sprintf can be safe by Karmageddon · · Score: 1
      you would find plenty of places where buf is
      passed in as an argument so that 'n' is not locally known.
      1. a passed in buffer is exactly where it is dangerous. code that is implemented as a sprintf is generally code that is concerned with user i/o, == chance for a malicious exploit. otherwise, what the hell is sprintf being used for? who would implement something in terms of sprintf? but that is an unimportant point.
      2. in 99% of such code, and I mean that 99% because I clean up code like this all the time, it is simple to programmatically determine the buffer size from the caller's declaration, and programmatically correct it by adding an n argument. you don't need to solve the general case; programmer's each have their own style and they follow it pretty reliably and generally not too many programmers will be involved in coding an app. [hint: don't do it programmatically in C; try perl]
      3. and yes, you do need to test it, but guess what? the only bugs you will encounter will be from actual buffer overruns. though the code may have worked before because the stack was "free" :) you will now sleep the sleep of the angels realizing that you've fixed it.

      I speak from experience. people are always so scared of cleanup because it could theoretically be bad. and it could. theoretically. but in practice it is straightforward.
    6. Re:sprintf can be safe by dumbunny · · Score: 1

      5000 instances of sprintf doesn't sound like a program written by a small team. It sounds like a large, legacy app, with (in my experience) generations of coders, many of whom are no longer with the company for a good reason. You didn't say 50 apps with 100 sprintf's each. I love code cleanup, but I know my limits. I realize the sprintf density may vary from field to field, but hearing the number 5000 will make most people think twice.

      Grep your company's repository for sprintfs. 5000 in one app? Not bloody likely.

  70. overspecialize, and you breed in weakness by andi75 · · Score: 1
    The thing that's most dangerous to any system, is lack of diversity. If every router runs cisco IOS, if every webserver runs IIS (or apache), if every mail server runs sendmail, the potential for disaster is HUGE.

    What is a problem for IT is an even greater problem for agriculture. Rice and corn diversity have greatly decreased, which leads to serious risks, putting especially developing coutries in danger. One parasite/desease could destroy the entire harvest.

    Of course, large companies like Monsanto deny this and keep pushing their products and binding customers with highly dubious tactics, like their terminator technology (sounds familiar?).

    - Andreas

  71. 2 Reason; Not Market Share by VB · · Score: 4, Interesting


    While client market share for Windows is undisputed, Apache has close to 60% of the web server market. I haven't received a single readme.exe attachment.

    Current Nimda stats are:
    26900 attempts on 2 servers.

    Apache (on *n*x, anyway) is not vulnerable to worms in the same way IIS is since it runs as notroot.somegroup. The only thing an Apache web server worm (on *n*x) could do is muck up the web server.

    *n*x mail clients don't (at least yet) do a
    file this_attachment
    if file is ELF, or a.out
    chmod +x this_attachment
    execve this_attachment.

    This isn't to say *n*x is immune. Just why Win* is not. Not because of market share.

    --
    www.dedserius.com
    VB != VisualBasic
    1. Re:2 Reason; Not Market Share by Anonymous Coward · · Score: 0

      A worm doesn't need root to propogate itself. It just needs to be able to execute arbitrary code. The only way a worm would not be able to exploit a hole would be if the user didn't have access to TCP/IP, which is kind of beside the point of any internet application.

    2. Re:2 Reason; Not Market Share by rtaylor · · Score: 1

      If apache had a buffer overflow bug it would be exactly as succeptable to spread as IIS. All you have to do is tag along your an apache module that you load dump into a memory segment and start running with. It may be possible for apaches controlling process to notice infection in another process and kill processes with excessivly high load -- bug then it just gets re-infected again :)

      --
      Rod Taylor
    3. Re:2 Reason; Not Market Share by flink · · Score: 1

      I guess the differnece is that the worm would only last as long as the web server stayed up. Without write access to the file system, it couldn't modify any startup scripts or httpd itself. So stop apache, patch, and restart - clean!

    4. Re:2 Reason; Not Market Share by sheldon · · Score: 2

      Code Red was also memory resident.

      That sure didn't stop it from propogating.

    5. Re:2 Reason; Not Market Share by imipak · · Score: 2
      "While client market share for Windows is undisputed, Apache has close to 60% of the web server market. I haven't received a single readme.exe attachment.
      ...near 60% of the non-SSL server market. Netcraft don't seem to offer the depressing SSL server stats for free; IIS is the market leader and gaining, last time I checked (several months ago, now.)

      What I find most astonishing is that so far there's no discernable sign of a move away from IIS at all in the Netcraft numbers. They explain that a couple of major colo hosters have switched thousands of virtual hosts, which results in the last couple of month's big losses for Apache at IIS' expense. But if Code Red and Nimda don't make the PHBs reconsider using IIS, what on earth WILL?

  72. Well.. by mindstrm · · Score: 2

    You could call it marketshare.. but the worm problem really isn't about an OS.. it's about individual applications and technologies.. the environments the worm can flourish in. A cross platform worm is entirely possible.

    As for our 'goals'.... who's goals are those? Who wants linux everywhere? Use the right tool for the right job. If MS actually made something that was better for a job, I'd use it. (IF.. big IF)

    1. Re:Well.. by Geekboy(Wizard) · · Score: 1

      Who wants linux everywhere?

      Linus does. World domination through linux.

  73. What I've Learned by jazman_777 · · Score: 1
    Is to be smugly satisfied at my superior planning and selection of platforms, to look at the seething Microsoft rabble with disdain and without pity. Bwa ha ha ha!


    Oh, wait, you say there has been a big UNIX worm already? I didn't know that, I've only been a UNIX guru for 3 months. Thanks for the tip!

    --
    Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
    1. Re:What I've Learned by BumbaCLot · · Score: 0

      Can you please tell me where to get a guru certification?

    2. Re:What I've Learned by jazman_777 · · Score: 1
      Can you please tell me where to get a guru certification?


      Read _UNIX for Dummies_, then hide it and be arrogant.

      --
      Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  74. What??? by Anonymous Coward · · Score: 0

    But if I don't run Apache as root, my kernel module replacement CGI script won't work!

  75. "White Hat" worms still illegal by Rommel · · Score: 1

    So you're talking about a worm that will connect to machines that are owned by different people and execute arbitrary code on those machines. This is still not right to do, and I'm sure the FBI would not smile upon this behaviour.

    Also consider the possibility of simple error. If I write a "White Hat" worm intending to make things better for people, but wind up hurting them, how "White Hat" is my action?

    1. Re:"White Hat" worms still illegal by willie3204 · · Score: 1

      The last guy who did that definately went to jail...
      http://www.wired.com/news/technology/0,1282,4696 4, 00.html

  76. Lesson One by 4of12 · · Score: 2
    1. Learn from OpenBSD to go over code with a 5 micron comb.
    2. Get rid of as many exploits as you can before your market share gets to 90%. (Still have some time here:)

    The biggest obstacle, AFAICT, is making solid security Ease-Zee.

    Certainly many commercial outfits haven't successfully solved this problem yet and there are still plenty of opportunities for spoofed trojans with fake internal certifications.

    I mean, when I download a package, it usually contains its own references to valid signatures, etc. Or, the md5 signature is kept in another file, but on the same ftp server.

    Better are package maintainers that digitally sign their products. I'd like to see more of that, maybe in conjunction with multiple certifying authorities that can verify the signator's credentials. I don't need a system that compromises the anonymity of me or the package writer - just something that verifies that a package originated with a consistent unique individual.

    Do modern CD distros of GNU/Linux and other OS come with anything like a set of multiple certifying authorities where package writers can register signatures in multiple places to minimize the chances that a fake can be passed off on innocent downloaders?

    --
    "Provided by the management for your protection."
    1. Re:Lesson One by dSV3Hl · · Score: 1

      Debian packages are usually signed by gnupg with a key from a well known keyfile. Also you can pick up most of the keys from a keyserver aswell.

      --
      -- [ta]
  77. IIS doesn't need to run as root by petej · · Score: 1

    (God I hate having to defend Microsoft!) Properly configured, IIS runs as a user other than the administrator, and scripts under IIS run as yet-another-non-administrator user. This is one step ahead of how most Apache installations are run.

    Still, I'd rather run AOLserver.

    1. Re:IIS doesn't need to run as root by sammy+baby · · Score: 2

      I've never seen an Apache server running as root (except for the initial start-up process). Even in my greenest sysadmining days, I never set up Apache to run as root. And believe me, I did some dumb-ass things.

    2. Re:IIS doesn't need to run as root by NutscrapeSucks · · Score: 2

      IIS runs as a user other than the administrator, and scripts under IIS run as yet-another-non-administrator user

      This is wrong. IIS runs as LocalSystem, which pretty much has full rights to the local machine, and more privs than Administrator for certain things.

      There's a good reason for this -- It needs system access so that it can use security impersonation and run scripts as the local user (IUSR_foo or who ever's logged in). The problem is, if someone finds a bug before the user identity is switched, they've owned the machine.

      (I think IIS 5 does support non-System users, but you lose the ability to impersonate someone else.)

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    3. Re:IIS doesn't need to run as root by Anonymous Coward · · Score: 0

      IUSR_foo does NOT run as local system!

      It is a normal account, and NOT part of the system account. (Neither does the IWAM_foo account).

      However, the root of the problem is that by default, the Windows NT/2K grants the Everyone group full control over the NTFS file system... and... nobody (almost) never changes those defaults. Hence, all users are root in the filesystem!!

    4. Re:IIS doesn't need to run as root by NutscrapeSucks · · Score: 1

      Sorry if I was not clear IUSR_foo is an unprivledged account. IIS needs LocalSystem so that it has the privs to switch process ownership to IUSR_foo to run scripts.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
  78. Worms are possible but harder to create. by jellomizer · · Score: 1

    It is harder (not impossible) to make worms for linux for the reson that linux/unixes are different from each distribution. Unlike MS which has 2 standard distrubutions. This inconsisenty helps keep linux free from easy to program worms. because say apache can be located in /usr/bin or /var/http /usr/local/apache etc. There are no real standards where these files are placed. Also most of these tools like apache run as a Non Root user. so if they break in there is a very limited amount of damage they can do to the system. Plus New Distros of Linux like Redhat 7.1 comes with a firewall utility that can be setup at startup thus allowing those extra ports you dont know about to be closed Windows in contrast dosent have a firewall yet. and IIS server basicly runs as administrator so if you get in you have a good controol of the OS.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  79. Tarpit by Hooya · · Score: 1

    maybe that should be a standard service? add the ports exploited to tarpit.rc ..

    of course that wouldn't solve much but it would be something to start with.

    then maybe watch for the originating server, and bring those suckers down thru an exploit (likes of back-orifice). but then you would have to be armed with something that can do that which means that a script kiddie can get their hands on it too. s/he then brings you down. we bring each other down. the entire internet is down. we have no problem. no worm propogation... 'it is one of those n square problem' -- well no more!!

  80. two factors to consider by Anonymous Coward · · Score: 0

    Microsoft software is well spread _and_ practically uniform. Only one architecture is supported.

    Even if (or when :) Linux becomes widespread it will still be less suspictable to virii and worms thanks to the wide variety of architectures, kernels, configurations.

  81. Rest easy but not blindly by Felinoid · · Score: 2

    Rest easy. Yes Unix can have worms and in fact it has happend.
    This worm was fixed about as quickly as possable. The only real problem was getting the fix out as the worm had sereously disrupted the primary means of getting the patch out.
    The time delay for Microsoft patches is a great deal longer and is due to develupment delays not distrubution delays.
    There is also a delay due to NT admin fears the patch may disrupt the system. I doupt this is a realistic fear but I have heard it once or twice. I think this is more or less the end result of the ignorence Microsoft premotes amoung NT admin. That ignorence is probably responsable for more problems than the software itself.

    In short once a worm is created once known it should be a short time before bug fix.

    But not blindly....
    The reality is worms are a low likelyhood. You should stand ready for a whole range of issues worms are in the bag.
    Viruses are even less likely and nearly impossable. However IF we go getting paranoid about worms to the exclusion of all else... Viruses viruses viruses... becouse we are looking the other way.. won't you feel dumb..

    Keep an eye do the maintanence, read the logs, read slashdot, bug trap and so on.. keep an eye on the issues related to your system.

    Worms aren't the only problem. They are an issue. They aren't the only issue.
    Just don't get cought with your shorts down.

    And... don't wait for someone to fix it... yeah it'll happen in 10 or 20 minuts (vs the 10 to 20 days for Microsoft) but as we learnned with the last Unix worm..

    Min 1. You learn about defect
    Min 2. You look for someone fixing it
    Min 3. You find someone
    Min 4. You wait
    Min 5. You wait
    Min 6. It's done.. you download
    Min 7. Your still downloading
    Min 8. Hmm the network seems a bit slow.. your still downloading
    Min 9. Why is the network slow?
    Min 10. Your crashed... you got the worm before you got the patch... you lose try again..

    If someone fixes it first.. horray... if not.. don't wait...

    However rember this stuff requires a major deffect in the system to work. It'll only effect one platform and only one version of that platform.
    (With Linux it'll hit many distrobutions unless it's a distro screw up and not a real software defect..)

    --
    I don't actually exist.
    1. Re:Rest easy but not blindly by Rupert · · Score: 2

      It's not an irrational fear. Service packs for NT (particularly SP6) have been known to do horrible things to third party applications. I had an application that ran just fine on SP3, but when we went to SP5 (might have been SP4) for Y2K, I could not get it to work. Eventually I rewrote it from scratch using a different set of APIs.

      --

      --
      E_NOSIG
  82. Lessons Learned by nivelo9 · · Score: 1
    In the wake of Nimda I think everyone will agree that a few precautions need to be taken :
    • always apply M$ patches (who cares if they open new holes, as long as they close the old ones)
    • distrust emails from your friends (besides, who needs friends? your address book should be *empty*)
    • 50+ connections in the space of 30sec from IPs in your subnet != good news
    • don't warn people that they're infected : they'll just send back an email containing the virus and saying "what do you mean i have a virus? i can't, i'm too l337, i run winXP beta which i downloaded from a k-rad w4r3z site!"


    anyone have any more?
    --
    another "quality" nivelo9 comment
  83. Illustration of a common *nix guy misunderstanding by Anonymous Coward · · Score: 0

    You see, outside of the *nix world, there are things other than servers and sysadmins - they have these things called USERS.

  84. Worms in the Unix world are rare by jd · · Score: 2
    for a reason. There is next to zero similarity between any two installs of even the same kernel, and even less between two different kernels.


    With no guarantee of any given system calls, any given system libraries, any given applications, any given directory structure, any given TCP/IP stack, any given version of any given implentation of any given service, any given architecture or any given dialect of any given scripting language, worms have a limited scope to work with.


    The "Original" Internet worm was so dangerous, because at that time there was less diversity. Certain standard daemons were virtually guaranteed to be running, for example, built from basically the same source.


    Therein lay the danger for Unix - without diversity, a single virus or worm can cause untold damage. If it can affect one machine, it can affect many.


    (Biologists have woken up to the same lesson. For years, it was preached that simple systems were more stable than complex ones, but it was learned the hard way that that was not the case. Biodiversity offers protection, because it inhibits the spread of hazards. By making it non-trivial for an infection to pass on, you could guarantee that real-world viruses were self-limiting in scope.)


    Linux is relatively safe from virii and worms, for that same reason. There is sufficient diversity to ensure that propogation is non-trivial. The very "irritation" that turns away so many is Linux' greatest shield. With Windows, it's trivial to infect a registry, because there is only one and there's a standard way to access it. Linux has many "registries", and much code that people use won't be registered anywhere at all.


    Then, there's libraries. Windows 9x uses certain very standard libraries. If it's a 9x OS, you know what you can expect. For Linux, you've got elf & a.out formats, libc5, glibc 2.0/2.1/2.2, XFree 3/4, Bind 4/8/9 (or any number of alternative resolvers, including the one built-in to glibc), etc. You really don't know what to expect.


    Scripting languages? There's no telling WHAT anyone'll have. The only thing you can be sure of is that there will be a /bin/sh, but that might be ASH, BASH 1.x, BASH 2.x, or any other shell that someone decided would be fun to use as standard.


    To stay resident, the virii or worm also has to find a place to stay. Not easy to do, with Linux. With Windows, you've a choice of FAT16 or FAT32. Oh, and maybe NTFS, if you're using NT. With Linux, you could be using almost anything. Sure, people will probably use what's installed as standard, as FS migration is non-trivial, but that still leaves ext2, ext3, reiserfs or XFS, all of which one distribution or another uses.


    Finally, there's security within Linux. But which security are you using this week? There's GRSecurity, LSM/SELinux, RSBAC, POSIX ACLs, various other ACL implementations, socket ACLs, and any combination of the above.


    Oh, and that's not including intrusion detection software, honeypots, firewalls, and all sorts of other similar code.


    In short, you can envisage a worm or virus which affects Red Hat 6.2 / Intel distributions that use the standard libraries and kernel. But you can't have a worm or virus which affects ALL running Red Hat Linux boxes - the variation is just too great. It gets much worse when you talk of all Linux boxes, and many many orders of magnitudes of absurdity greater when you talk of all POSIX-compliant UNIX kernels.


    To answer the original question of "is the Unix community worried about worms", the answer is "that depends on how homogenious any person's network is". The "worry" level will probably be about the same as the homogeniety level.


    As for the community at large, the answer is probably "no". The community at large has such a high level of diversity that there is no single threat which could affect every system (or even a significant fraction of them).

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:Worms in the Unix world are rare by WolfWithoutAClause · · Score: 2

      I don't know... There have been some very nasty bugs in, for example, TCP-IP protocol stacks. They have been traced back to the same implementation across Windows, Linux, BSD etc.

      The one I was thinking of was capable of nuking most operating systems by injecting odd length packets (close to 64K in size).

      There's more commonality than you might think in places.

      --

      -WolfWithoutAClause

      "Gravity is only a theory, not a fact!"
  85. Are you so sure? by Anonymous Coward · · Score: 0

    I've read many times on /. about people who bought a shiny new desktop or laptop computer with Win2K installed that had IIS running from the factory setup. Most users don't even know what IIS is, let alone know if it's running on their new machine.

    I'd think this is more prevalent than bad Windows admins.

    1. Re:Are you so sure? by alen · · Score: 1

      I was just kidding, but you're right. I've seen a Sony laptop that's set up with almost every service running. It was horrible. And the worst part was you couldn't just use a normal W2k CD to install. You had to use their CD restore thingy.

      I'm an MCSE, but it's what you make of it. You can spend all your time and not get past the wizards or you canlearn the concepts. It's up to the individual. I visit the microsoft.public.exchange.admin newsgroup daily and there are a bunch of unix people there learning nt and exchange for the first time. They are always asking questions. I'm learning linux and have a lot of questions.

      There are good and bad sys admins on every platform. My company we run 95% NT and were OK.

    2. Re:Are you so sure? by Anonymous Coward · · Score: 0

      Doh! Obviously my sarcasm detectors are in need of a tuneup. But you are certainly correct that MCSE doesn't have to have a negative connotation if you put forth the effort to learn the system.

  86. Yes and no by Anonymous Coward · · Score: 0


    As you point out, UNIX worms have existed in the past which (at a very high level) looked and behaved similarly to these recent Windows worms. Such a thing could easily happen again; while the quality of UNIX security (and Linux security, too) is heads and shoulders above that of Windows, there are still root exploits for various UNIXes being posted regularly to security mailing lists, and in fact recently our local geek community over here in the bay area noted a slew of attacks (manual, it looked like, not by worm) on Linux systems, trying to exploit a known buffer overflow bug in identd.

    That is not to say, however, that we cannot learn from the more recent worms. If nothing else, the sheer scale of the traffic and number of hosts involved puts fighting these beasties into a different domain. Mainstream use of the internet is at an all-time high, and the average competence of those running the internet is at an all-time low. Look, for instance, at @Home's incompetent response to Code Red, and at all of the hosts which still do not have the IIS security hole plugged, months after the attacks commenced, despite a security patch having been offered by Microsoft for any and all to use. This is what we can learn from, and we'd better do it quick before we find ourselves having to learn on the fly.

    -- TTK

  87. *nix Worms and MORE! by huckda · · Score: 1

    Most *nix users I know take an active role in the administration of their machines and are generally more educated in computers than MS product users. This alone makes it more difficult to create a general havoc exploit such as CodeRed and Nimda, let alone the fact that people were coding and developing *nix OS's before MS was a twinkle in Bill's eye. Thus, if a worm were to be made, the very nature of *nix's is a defense in and of itself, because the OS has forced the 'home user' to become more aware and knowledgeable about the beast of a machine they are using instead of taking everything for granted(the very reason *nix is not in every household and most likely never will be)...people don't want to come home from a long day of work and have to THINK about maintaining their computers...they want the quick and easy way out...which just so happens to have a quick and easy way to enter/attack...but that is the tradeoff for ignorance...and as we say...it is bliss.

    --
    "Just Smile and Nod." --Huck
  88. Hopefully not by dead_penguin · · Score: 2

    I think that it would be *possible* to write a worm targetting Linux machines right now, but it probably could never spread as quickly as the recent MS-specific worms we've seen. Even though many (most?) Linux distributions come with some relatively serious security flaws out-of-the-box, Linux is still a "geek OS". The average Linux user hopefully knows enough to apply most of the critical security updates, and won't be running too many unneeded services. Add to that the fact that while growing, there still aren't *that* many systems out there running Linux, and I'd say that the density of vulnerable Linux boxes out there is so low that a worm would have a difficult time spreading.

    As far as the future goes, though, unless the various distributors become more and more security conscious (I believe that they are doing this), we may be at risk. Doing such things as running potentially vulnerable services as their own userid, turning off unneeded ones, and only opening ports with an actual service that needs it open to the outside may seem like common sense to hopefully all of us, but these are things that distributions should automatically do for the newbie users.

    --

    It's only software!
  89. Capabilities! by david.johns · · Score: 1
    And in this case, it should be the next step for Linux security, but still. ;)

    Capabilities rock my world and provide the capability (pun not intended) for the sort of no-nonsense secure-by-default security that people dream of these days. I don't know how effectively they can be added to the linux platform in general, since we have a lot of existing software that could break given a sufficiently odd change to the general security model. But, capabilities are a good start for creating and maintaining a secure-by-default future for Linux. Pervasive use of capabilities would make me very happy, since then I might actually have some control over what programs will actually be allowed to DO!

    relevant capabilities link

  90. You're Kidding right? by Anonymous Coward · · Score: 0

    In the last 2 years I've had Linux boxes attacked via rpc, telnet, named, and FTP. All have set up shop on the affected machine and started the business of broadcasting themselves to the masses. The latest was an Adore attack which is harder to detect because it installs itself as a kernel module and does not show up to (even a non-hacked) ps. The Linux world is just a vulnerable to attack as MS, you probably just don't notice it because the attackers are (at least a little) more sophisticated...

  91. What I learned from this attack ... by Anonymous Coward · · Score: 0

    .... is that our IT department still thinks
    that everyone is running Microsoft software
    on their office computers.

    Like a Weather service doesn't need any *real*
    computation to predict the weather, instead
    of playing catch up with the slow proof-
    reader of your next interoffice memo.

    Toon Moene, g77 maintainer.

  92. LINUS HIMSELF WROTE THE WORM by Anonymous Coward · · Score: 0


    Perhaps these mystical "worm-writers" like the Linux OS. Maybe they want to destroy Microsoft's reputation so some other OS can take over.... there's one way to get ahead by making the public loose faith in the competition.

  93. Doesn't anybody remember the Lionshead Worm? by Craig+Maloney · · Score: 2
    Linux already has had a worm (or at least Redhat did). It exploited a problem with rpc.lockd. I still get portscans on 111.

    How quickly we forget that Linux too is vulnerable.

    1. Re:Doesn't anybody remember the Lionshead Worm? by Lxy · · Score: 2

      How quickly we forget that Linux too is vulnerable

      ipchains -A input -i eth0 -p tcp -s any/0 111 -j DENY
      Yes, linux is vulnerable. Simple recipe for keeping it safe: if you don't need it, turn it off. If you do need it, study the security history and upgrade the daemon if necessary. If it's sendmail, install postfix or configure it as non-root. If it's WU-ftpd try Pure-FTPD.

      On a side note, a default install of most linux distros turns a lot of stuff on that shouldn't be running if it's world accessible. So, like NT admins, linux admins need to study their install and find out what's there that you don't want. Upgrades are sometimes needed, services need to be stopped. The good news is that all linux worms to date are nothing more than automated script kiddies so if you've kiddie-proofed your setup, chances are you're OK.

      --

      There is no reasonable defense against an idiot with an agenda
      :wq
  94. We already do by libertynews · · Score: 1

    Just take a look at the number of attacks on port 111 trying to exploit unpatched RH 6.1 systems. We're not immune either!

    According to the guys at the Honeynet project the average lifespan of an unpatched RH 6.1 box is 3 hours.

    --
    Remember Lexington Green!
  95. Biodiverity anyone? by Anonymous Coward · · Score: 0

    What we may wish to develop is diversity. If any single computer/operating system/web server comprises a majority of the network, then a single worm can substantially destroy that network. This is the reason people write worms for Windows.

    We are pretty sure that monocultures are not good for long-term survival. For example, one can have a monoculture lawn, but there is high price to pay in maintenance. Such a lawn will not naturally prosper. Likewise, a network mainly comprised of Windows machine is too much of monoculture to naturally survive. The prize for writing a worm is so great that people will look very hard for an exploit.

    The people who buy windows machines must realize that they are trading survivability and safety for convenience. This is a perfectly legitimate trade off. The problems arise when those same people start complaining that the computers are not secure. No computer is secure, and you made the choice to be less secure by buying into the dominant culture. If you made that choice out of ignorance, it was still a choice.

    So, if Linux becomes the dominant species, we may or may not be in the same mess. If there is an exploit that is common to all implementations, then nothing is different. If each implementation has suitably unique vulnerabilities, then a worm will not have the disastrous effects that we have all come to know in the MS dominated industry. Please not that basis of any argument must assume that vulnerabilities exist and they will be found. It is a fallacy to assume, a priori, that one OS is inherently more secure.

    In a sense, the value of open source may not be the perceived scarcity of security holes, but the rapid and diverse evolution of related but disparate products. We see the value of this with the release of Windows XP. The crackers have exploits written upon its release, while the public remains defenseless until MS can fix the problems.

    It is interested to contemplate that a wide variety of less secure products may make the overall Internet a more secure and robust environment.

  96. Linux != Unix != Apache by Anonymous Coward · · Score: 0

    Apache is the leading web server in market share.

    Absolute Market share is not the reason Unix web servers have fewer worms.

    Market share of stupid users running web servers and poor security design in IIS and NT is.

  97. A White Hat would not leave a backdoor by Rommel · · Score: 1

    From WiredNEWS May 22, 2001 (emphasis mine)

    The worm that sent Max to jail was programmed to close a security hole that was being exploited by another worm that was on the loose at the time.

    Systems infected with Max's worm downloaded a software patch and automatically repaired the security hole that would have allowed the malicious worm to comprise the system. That's a good thing.

    But Max's worm, which he developed by reprogramming the malicious worm, also left a secret backdoor in all the systems it penetrated. That's the bad part.

  98. Vulnerabilities are maintenance related. by vtechpilot · · Score: 1

    Someone else probably said so already but I'll take the risk of being redundant. The truth of the matter is that the vulnerabilities of systems is based almost entirely on maintenance. Code Red is a great example of this because long before the breakouts there were fixes in place to close the hole that Code Red needed to propagate. Code Red was so big because lazy or ignorant sysadmins failed to properly maintain their systems. *nix users are much more anal about having all the latest patches installed so I bet a majority of the *nix boxes out there tend to get exploits closed in a timely manner. This means that the holes are closed before someone has time to write a worm for that hole. Heh, ?worm holes?. I know its possible to run a relatively secure windows box if you keep up with maintenance. I know because I keep some windows boxes running without suffering attacks, but the key to my sucess has been keeping up with updates. Again the point here is maintenance. I think as Linux moves into the hands of more casual users, it too will have many machines all over the place that are not properly maintained, and when that time comes it too will have its fair share of attacks.

    --
    Slashdot is an anagram for Has Dolts, and I am Dolt number 468543
  99. Worms? No. by fmaxwell · · Score: 3, Funny

    I'm much more worried about rabies and distemper.

  100. Apache Can propagate nimda by rsimmons · · Score: 1

    A site that is running Apache can also spread nimda. If the site that is served by Apache is served in some idiot's development environment under IIS, and the site is moved out to an Apache server, the nimda worm that embeds itself as a javascript in the web pages, can be spread from the Apache server (duh!). This also only works, if you move the .eml file with the html file.

  101. What, me, worry? by dead_penguin · · Score: 1

    I'd say there's nothing to worry about in most of North America and Europe. We've got some reasonable laws requiring the inspection of meat at slaughterhouses, so the risk is minimal. Your biggest risk is probably contracting some form of E. coli due to poor meat handling at restaurants etc.

    Oh, *computer* worms. Well, that's a bit different...

    --

    It's only software!
  102. happiest day of my life by sprag · · Score: 1

    ...and when the doctor said I didn't have worms anymore, that was the happiest day of my life.
    - Ralph Wiggum, Windows Admin

  103. A little /. education... by Anonymous Coward · · Score: 0
    Wrap the URL in the correct HTML href tags and you get something we can automagically link to, like this:

    http://www.wired.com/news/technology/0,1282,46964, 00.html.

  104. Realm of Possibility? by Accipiter · · Score: 2

    Hello?

    Ramen? 1i0n? Adore? Sound familiar? It's far from the "realm of possibility" - they've already been done. And these worms haven't been eliminated, either. I work in network security, and I see SunRPC scans and DNS scans, and a whole slew of different kinds of scans on my network *several times an hour*. Yes folks, *hour*.

    The fact is, people are running unpatched systems. And yes, a good majority of these systems are running Linux. The fact that the scans aren't letting up says that administrators:

    A) Are too ignorant to know there's a problem
    B) Too ignorant to fix the problem
    C) Don't give a shit.

    The thing is, the Open Source community is quick to act on these security problems and crank out a fix. In the case of Microsoft, the worms are usually a lot more destructive, thus, they receive more attention.

    It's quite sad when people can't patch a two-month old exploit, however.

    --

    -- Give him Head? Be a Beacon?
    (If you can't figure out how to E-Mail me, Don't. :P)

  105. How about a cross-platform worm? by Sabalon · · Score: 2

    Now that would be an achievment. If you found a hole in Linux/BSD and found one in Windows (no biggie), then try for either platform. And have that platform try for either platform. Nimda, from what I understand, took a step in this direction in that it went out with e-mail and http.

    About the only worry I have about worms is all the impact on the network as a whole and the PITA my job is whenever one gets out.

  106. Look at me, I can write a virus by nick_burns · · Score: 0

    People write the MS worms because an NT security hole is easier to find than a linux security hole. Besides, most of the people who know of the linux security holes probably are developers, who wouldn't want their name tarnished by releasing a malicious virus. As long as linux holes are patched before the hackers find out about them, linux will stay one step ahead. MS, on the other hand, has very visible security holes and none of the programmers there worry about finding them. Thus, they only release fixes after considerable damage has been done.

  107. Deny port access to non approved apps by Anonymous Coward · · Score: 0

    On my win box, I use ZoneLabs personal firewall software. Is the worm problem as easy to resolve as putting a layer between the ports and the software that maps process names to types of port interactions? Taking into account that once the worm has compromised the box, it would need to either overcome this counter-measure or co-opt an approved app.

  108. darwinism at work in open source? by raldanash · · Score: 1

    well, apache has a huge market share, but seems to not have the enormous security holes that IIS has.

    now, some have said it's complexity and perhaps hacker malevolence towards MS. probably that's part of the reason.

    but my background is the life sciences (biochemistry)-and i've always wondered how to model the situation in the software world by analogy with nature.

    with open source you have tens of thousands of people scrutinizing the source code-kind of DNA repair mechanisms that keep on the molecular level. you have a plethora of distributions, variations on a general model.

    the closed-source projects have fewer people checking problems on the small scale. and since they are backed by huge companies with good marketing departments and moderately well paid programmers you have a few overly complicated applications to choose from, not a plethora of distributions.

    so open source has better proofing mechanisms on the small close, a better DNA repair system so to speak. on the large scale of populations, it has a strong tendency toward being shaped by natural selection (a friend of mine once told me LINUX was easy to screw with because you could spot holes in the security just be looking at the code-but this is a strength, because the hole will be spotted EVENTUALLY and you might as well patch it sooner than later).

    closed source projects have spottier records when it comes to proofing, because they don't have the numbers, even if the ones that do it are full-time in their endevours. they don't have the immediate penalties for having security holes either, so they built up over time like deleterious mutations. in addition, a closed source company isn't going to produce multiple versions of the same application, so there isn't the same level of natural selection. of course, you do have rival operating systems like the MacOS, windowz, and OS/2 or what not, but there aren't a dozen windowz distributions floating around-you're basically stuck with XP or 98 or whatever you have.

    -razib

    --
    NO gods, NO governments, NO [OPTION]....
    1. Re:darwinism at work in open source? by Graymalkin · · Score: 2

      Were you dropped when you were little? Your conclusions are pretty ridiculous. You're equating that open source projects must be of higher quality because there are more people working on them. Completely ignoring the fact that not all programmers have the same capabilities. To use your natural selection analogy in a correct fashion, corporate development houses have to operate within margins. This means they have to produce a product garnering so much return for so much effort. Thus the developers they have are very highly skilled because it does not make economic sense to have a bunch of shitty programmers. If good programmers produce bad software it is usually a management issue. Non-professional developers are a much wider swath of skill levels. Most aren't good programmers in any sesne while others are exceptional usually do to professional training and experience. The other aspect anyone has to regard is reliability. Are you going to wager mollions of company dollars on the work of volunteers with schedules that are impacted by their own jobs and even at times school? Well you probably would because you're mentally retarded.

      --
      I'm a loner Dottie, a Rebel.
    2. Re:darwinism at work in open source? by maxpublic · · Score: 1

      What fucking world do you live in? Have you ever *worked* in the corporate world? Regardless of your ludicrous claims concerning margins and the need to make a profit, many of the people in *any* large corporation, programmer or not, are dead weight. Worse, they're intellectually restrained by the corporation itself which insists that things be done a certain way regardless of whether or not they make economic sense. The larger the cash cushion of a corporation, the more idiotic demands it can enforce prior to going bankrupt.

      As for a larger pool of programmers producing better product, that's a statistical likelihood in any activity. The more brains on the ball, on average the more improved the end product will be. Don't be a fucking moron by insisting otherwise.

      Finally, learn how to spell. Or at least use a spell-checker, for gods sake.

      Tom

      --
      My god carries a hammer. Your god died nailed to a tree. Any questions?
    3. Re:darwinism at work in open source? by Graymalkin · · Score: 2

      Don't be a fucking moron by insisting that a bunch of developers looking at code is going to default make a better project. You seem to ignore all of the open source software which just sucks fucking dick. All of the core GNU tools were written by professional code writers who knew what they were doing. The more brains on the ball as you say solve no problems if none of the people know what they're doing. Where do you think people who know what they are doing get their experience from? Sorry but school don't teach you shit about real programming.

      --
      I'm a loner Dottie, a Rebel.
    4. Re:darwinism at work in open source? by maxpublic · · Score: 1

      Next you're going to tell me that MS employs geniuses in its OS department. Or that Windows is actually more robust than Linux.

      Please, explain to me how the few hundred programmers at Redmond are in any way capable of equalling the thousands, even tens of thousands, of folks who work on Linux.

      And personally I haven't seen that much open source software that "just sucks fucking dick". However, I can name quite a few programs written for Windows - and that people charge money for - that reallly blow. No small number of these were written by MS itself.

      Finally, you imply that "none of the people know what they're doing" who work on Linux. Why don't you explain that for the benefit of the audience?

      School - straw man. Apparently you missed a necessary Debate class or two.

      Max

      --
      My god carries a hammer. Your god died nailed to a tree. Any questions?
    5. Re:darwinism at work in open source? by Karl+Cocknozzle · · Score: 1

      While we talk about discounts, lets talk about the fact that you're discounting how many proprietary programs just plain suck dick too.

      Like IIS. It installs by default in Windows 2000 Professional. Why? So I can share printers? Are there that many people screaming to share a printer on the internet from a workstation that it needs to be a default?

      You're discounting the fact that the corporate scene is driven wholly and totally by making as large a profit as possibble, ASAP.

      Unfortunately, because management jobs are won and lost in quarters instead of decades, they have to turn a profit immediately or get fired. When you make 600k per year, you really don't want to get fired because you're on the fuckin' gravy train. Result?

      When the deadline gets there, the product ships, regardless of whether it's really ready or not.

      Where I work (a fortune 50 corporation) our developers fall into three categories:

      1) Two uber-gods.
      2) Three mid-levels, pretty smart, but have some minor flaws.
      3) 14 slobbering dolts.

      Furthermore, every software company I've ever worked in has had a similar distribution of programming talent.

      My point here is that every corporate organization brings together varying levels of talent, just like Open Source projects do.

      To claim that corporate organizations are exempt from the bell curve of programming talent is just plain stupid.

      --
      Who did what now?
    6. Re:darwinism at work in open source? by Graymalkin · · Score: 2

      Tens of thousands of people that work on Linux? Right. You can name lots of shitty closed source programs as well as open source ones. The original contention was that open source is somehow naturally superior to closed source. That's like saying your product is 100% more effective than sugar pill.

      --
      I'm a loner Dottie, a Rebel.
    7. Re:darwinism at work in open source? by Graymalkin · · Score: 2

      I wasn't suggesting corporate development schemes were the greatest, just discounting the suggestion that open source is naturally superior to closed source development. Just because it is your personal favourite doesn't mean it's better. By the same token you can compare Japanese and American manufactured cars and spout off that one is inherently better than another. The fact that you and another dude had the same kneejerk reaction just makes me sad. Now I realize how many people sit back and believe the FUD open source developers use against the FUD of closed source developers. Pot, kettle, black.

      --
      I'm a loner Dottie, a Rebel.
    8. Re:darwinism at work in open source? by Karl+Cocknozzle · · Score: 1

      See, I don't think open source is perfect either, and I didn't really say it was. Personally, I think all software would be a lot better if both models acknowledged the other's merits. Microsoft could learn a lot from Mozilla.org. (Certainly the opposite is also true.)

      If you consider my response knee-jerk (I thought I made a pretty reasonable argument), my guess would be because you have more Microsoft stock in your portfolio than I have in mine (none).

      --
      Who did what now?
  109. I'd be DAMNED worried by fobbman · · Score: 3, Funny

    Is the Unix Community Worried About Worms?

    If some of you hardcore *nix users would take showers more often than major holidays this wouldn't be an issue.

    Those of us who have to sit in stuffy cubicles within a 10' radius of you thank you for your consideration of this matter.

    1. Re:I'd be DAMNED worried by funwithBSD · · Score: 1

      It is not that they don't take showers, it is the food left in their beards.

      --
      Never answer an anonymous letter. - Yogi Berra
  110. Happened by Washizu · · Score: 1

    No one runs *nix as root.

    Unless you have root, you can't do much damage to a system.

    It's impossible to get root on a *nix system without permission, because it is designed that way.


    You don't need to be running as root for worms to propogate themselves. One of the first worms ran amok through *nix machines in the early 90's, and was written by Robert Morris Jr. (son of Robert Morris Sr. at the NSA).

    If you haven't read the Cuckoo's Egg by Cliff Stoll, you should. Not much about worms, but the last chapter deals with the one I mentioned above.

    --
    OddManIn: A Game of guns and game theory.
  111. Order of worm propagation by baxissimo · · Score: 1
    > (Worm propagation is one of those n squared problems).

    Actually I think it's one of those e^n problems. It's exponential, not polynomial.

    1. Re:Order of worm propagation by Anonymous Coward · · Score: 0

      Why e? It's O(k^n) for any constant k > 1. But either way, the story poster is a NUMBNUTS!

  112. RTM - NOT the first worm... by Zwack · · Score: 2

    Despite having seen it stated several times here, the RTM internet worm of 1988 was NOT the first worm. It wasn't even the first worm to crash machines, or the first network distributed attack...

    In 1980 Xerox Parc published a paper called 'Notes on the "Worm" Programs -- Some Early Experience with a Distributed Computation' by John F. Shoch and Jon A. Hupp. This describes some WORM programs that were written at Xerox PARC and used for useful things. Unfortunately an error in one of their programs caused a lot of dead machines.

    I think that the BITNET christmas card "virus" of December 1987 predates the Morris Worm of 1988. This was more of a trojan than a worm, but when you ran the "card" it mailed itself to everyone it could.

    Neither of these was Unix based.

    Z.

    --
    -- Under/Overrated is meta-moderation, and therefore is Redundant.
  113. Sure. by Anonymous Coward · · Score: 0

    I'd be worried about something like Nimbda. All adbministratorbs are, Cliff.

  114. li0n worm by j0nb0y · · Score: 1

    Are you drunk? The li0n worm hit a lot of linux/unix machines back in january. We're not immune to worms or viruses. We never have been, we never will be. Imho, our security is better than microsoft's, but that does not make us immune to exploits. If you're just realizing this now, you better wake up from your drunken stupor.

    --
    If you had super powers, would you use them for good, or for awesome?
  115. A few points: by larien · · Score: 2
    1. Linux has a greater variety of software. Look at mail servers; we have exim, postfix, qmail and sendmail. A vulnerability in one cannot (easily) be exploited in another. The single largest target is Apache, which is by far the most popular web server software (with good reason; it is of very high quality). However, Apache has had almost no serious security flaws that I can think of; most exploits against Apache have exploited password sniff attacks or poorly secured applications hosted on the system, not targets for worms.
    2. On similar notes, even if linux/Unix takes over the world, there is likely to be a greater diversity of OS versions. At the current time, I can't see linux wiping out Solaris and AIX for a few years; I can see them coexisting and hopefully taking back ground from Windows, however.
    3. Even if linux takes over, wiping out proprietary Unix, there are still likely to be different hardware architectures in use (eg, x86, Itanium, Sledgehammer, SPARC, PPC, S/390) limiting the impact of a worm. By contrast Windows is x86 only (at the current time, although Itanium may come in soonish) which provides easier spreading of worms.
    4. While many MS server programs run as system or equivalent "super-user" type user ID's, many linux programs spend most of their time running as a non-privileged user (eg, apache runs as nobody or www, qmail runs as various uid's). Thus, the effect of an exploit is greatly lessened. The use of tools like chroot can also help lessen any impact (although chroot is not a foolproof solution).
    5. *nix worms have already hit; Solaris had the sadmind worm, linux had lion. They hit for the same reasons Code Red hit; unpatched systems. These had less impact, but it has to be asked whether that was due to lower market share or better security policies of administrators.
    There is the potential for these worms to hit, but I think the general architecture of linux and the diversity in applications should help to lessen the impact of such worms.
    1. Re:A few points: by Graymalkin · · Score: 2

      Are you related to the rest of the retards posting on here today? Your first point is just ludicrous. There is alot of Linux software but there is a ton of Windows software as well. Just like Windows, for every one good program there is a slew of shitty ones. So the number of apps a system has has nothing to do with its quality. Your second point lacks merit because you're comparing an OS originally written for 386 computers to Unicies that are designed to run on massively parallel systems with upwards of 64 processors and countless gigabytes of memory. As for point three, the architecture the system runs has little to do with system specific virii. Linux running on any ISA is going to have the same compiler which compiles and links shit the same way. This says nothing of logic exploits, if the same logic is shared on a bunch of ports the same exploit will exist. As for four, you're just a retard. That's all I can tell you. Windows NT has always had protected memory and support for multiple users. You can run whatever you want as whoever you want. Because you run around as administrator is not anyone else's fault.

      --
      I'm a loner Dottie, a Rebel.
    2. Re:A few points: by Teutates · · Score: 0

      wow retards? Did someone forget to drink their morning cup of happiness?

    3. Re:A few points: by markmoss · · Score: 2

      Do remember that the first Unix was written for the PDP-11. An original IBM PC (8088 4.7MHz) is a powerhouse next to that. I suspect that the first Unix was security-free. It was written for the computer shared by Bell Labs programmers -- any security you could have implemented on that pitiful machine wouldn't have lasted an hour against one of those guys, so it was better to just trust them not to foul their own nests.

      That was in 1971, I think. Unix has come a very long way since then, including many security patches. One advantage it has is that it's 10 years older than DOS/Windows, so more holes have been patched. Another is that it was on multi-user computers from the beginning, while I think MS's first OS for servers (Win NT) first came out in the 90's -- so the unices may have a 20 year lead in thinking about security. And finally, some unices are open sourced, and even the proprietary ones are far more open about the way things work than Windows -- so there have been more friendly eyes looking for holes.

      There used to be mainframe OS's that were designed for security from the ground up. I wonder how those would stack up against the unices and Windoze where security was patched in after the original design was set? I think not so good anymore -- they haven't been exposed to decades of probing...

      C came out of a similar environment at about the same time. Hence all the standard string functions that simply trust the users not to do something that overflows the buffers. Actually checking for overflow ate up too many cycles, so they trusted the users instead. But why are we still using these unsafe functions?

    4. Re:A few points: by Graymalkin · · Score: 2

      Unix is alot less like a true OS and more like a specification. There's the Bell Labs implimentation of Unix as well as the various schools'. Don't be so sure that lots of eyes works to find lots of holes. Alot of people can look at source code but only a handful of people actually understand what they're looking at. Do you think all of the open source zealots on here can do anything more than compile stuff from source? Not really. Systems are only as secure as you design them to be. Security cannot be added as an afterthough, into any system. As for C libraries with security holes in them, it just goes back to the axiom regarding security. It can't be added as an afterthought. You can't just patch libc and have it be secure, you have to write an entirely new library designed from the getgo for security. Since it has yet to make economic sense to do this and break compatibility with everything no one has gone out and done it.

      --
      I'm a loner Dottie, a Rebel.
    5. Re:A few points: by larien · · Score: 2
      Much as I'd rather not rise to this, I think certain points have to be made.

      "There is a tons of Windows software as well". How many Windows sites actually run anything other than IIS/Exchange/Outlook? I'm pretty sure it's a minority (<10%?), while there aren't any linux programs with as great a market share under linux (except Apache as I said). In any event, I said nothing about quality; a worm relies on homogeneous systems to operate, so variety lowers the infection rate of the worm.

      I wasn't comparing Unix to linux in any way, merely stating that linux is likely to coexist with versions of Unix which increases variety and lowers the impact of a worm.

      Architecture: see above. Ok, it's probably possible to write the code so it can operate on multiple ISA's, but that's extra work and in any event, some ISA's handle stacks in different ways, so there's the potential that buffer overflows won't work in the same way. Also, Sparc CPU's (possibly only sun4u) have protected stack; set a kernel parameter and buffer overflows can be limited.

      Yes, Windows NT has had protected memory and support for multiple users. However, how many IIS sites run as anything other than system? Does IIS even work as an unprivileged user? Compare this with qmail & apache which by default install as an unprivileged user.

  116. It's mostly about motive by Zero__Kelvin · · Score: 1


    The reason that there are many more worms and virii written for Windows than Linux, aside from the easy target Windows makes, is one of motive. Nerds like us refer to Bill Gates as 'the borg' and Linus Torvalds as a 'benevolent dictator.' The nomenclature speaks for itself really. Linus good. Bill Gates evil. That's the mindset of most people competant enough to write worms in the first place, so is it any great surprise whom they target?

    --
    Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    1. Re:It's mostly about motive by Anonymous Coward · · Score: 0

      Umm, VBA is not available in linux, how in the fuck could I write a worm in linux. Obvious Microsoftie

    2. Re:It's mostly about motive by ealar+dlanvuli · · Score: 1

      erm you could write wurms in machine code if you wanted but the fact that a worthless scripting language is capable of attacking a industry grade server in the windows world is kinda scary

      --
      I live in a giant bucket.
  117. There's another side to this... by CodeShark · · Score: 1
    ..which is definitely attributable to M$.

    About the time the "I Love You" virus got loose, I had to upgrade a client's machine to Windows 98 for a particular consulting job. As you may or may not know, Win98 had a bad idea known as the WSC ("Windows Scripting Component" )['xcuse me if I am not remembering the name right, btw] installed and turned on by default. Like a good sys admin concerned with security, I had disabled the WSC and thus when most of the Outlook attacking virii came by, the client was safe.

    That's not the trouble, however.... About a year later I had to install another M$ tool on that system that isn't even directly related to Internet usage... and without alerting me or giving me the option to stop it, the damn installer updated the WSC and turned it back on -- essentially opening up that workstation to attack. Which translates to the fact that some M$ updates are insalling what amounts to a back-door on unwary user's systems.

    Fortunately a client noticed something different on one of the app tool screens, which led us to discovering the reactivation of the WSC. Net result: one less client on a MS-based workstation, one sys admin even more committed to an M$ free world.

    --
    ...Open Source isn't the only answer -- but it's almost always a better value than the alternatives...
  118. viva debian! by gmarceau · · Score: 1
    The best thing preventing worms on linux is :

    sudo apt-get update && sudo apt-get update

    --
    This post was compiled with `% gec -O`. email me if you need the sources
  119. It's been done by Anonymous Coward · · Score: 0
    This is not only possible, but in fact when I first read about Code Red I figured it had been hacked together by someone who had seen an existing *nix worm.

    I saw such a worm which had grabbed root on a Chinese box running an old, old unpatched Sun OS and came in two parts.

    1. Part 1 scanned hosts in the .cn domain for boxes vulnerable to a range of common *nix exploits and when it got a hit propagated itself to the exposed box, wiped the logs and got to work
    2. Part 2 scanned hosts in the .com domain looking for vulnerable boxes (both Win and *nix) and when it got a hit replaced the top level html page with an anti-us message "f*ck USA goverment"

    Few things:

    The worm was written in really lame Perl (fantastically verbose) so the coder was no genius. Just needed to find unpatched boxes.

    From the comments in the code, I doubt the creator was Chinese, which in turn left me wondering whether there ever was a real Chinese Hack attack

  120. How are worms even possible today? (C and intel) by patniemeyer · · Score: 1

    There should be two layers of protection between us and this phenomenon -someone tell me where I'm wrong.

    First - every one of these exploits presumably overflows a C language buffer in some variation of read(). Why does C allow this? Why don't we build a better libc to fix this?

    Second - Intel chips since the 286 have included domain memory management - Memory segments are supposed to be classified as DATA,STACK,TEXT, etc. How is it possible for an app to write to TEXT? Shouldn't the worst that the broken libc is able to do be to crash the app? Why don't OSs use this feature?

    Please someone tell me how worms are possible today...

    Pat Niemeyer,
    pat@pat.net

  121. Is the Unix community Worried About Worms? by totallygeek · · Score: 2, Insightful
    no

  122. hybrid vigor by hugg · · Score: 2

    I think one of the reasons that Linux/BSD/etc are more resiliant than MS OS's is that there is much more diversity in the open-source gene pool. There are so many Linux distros, BSD variants, installation options, etc. that a worm might have a hard time propogating for very long, due to the high variablity among servers.

    MS OS's, on the other hand, install to almost exactly the same configuration every time, and users don't usually bother to change many options. And there are only a handful of MS OS's, compared to open-source land.

    In the wild, hybrids seem to be more resistant to disease, more adaptable, and generally hardier. Linux/BSD are mutts.

  123. There are more anti MS Linux Zealots than anti LIN by t0qer · · Score: 1

    I'll probably get moderated to oblivion but what the hell.

    Reason why there are so many exploits for windows is due to the high # of linux zealots out to prove it's a big POS.

    If Bill Gates one day told his staff ,"Lets all focus on discredeting the linux O/S by revealing every exploit we can find for it"

    Well this is what linux zealots have done to MS for years. Do you realize what kind of chaos the linux community has caused for the average IT guy?

    Case in point, the nimba virus. I spent the better half of my day cleaning it from a friends machine. It was based on code red, which I think was american in origin. Yet the terrorist took the source code, did a few changes and released it. Had there not been 20,000 linux zealots out there looking for the exploit in the first place, none of this ever would have happened.

    Just consider your penguin lovin butts lucky up until now, one of these days some MS zealots are gonna do to you what you've been doing to 90% of the computer using world.

    Being smart is not a license to cause destruction.

    --toq

  124. Worm propogation is exponential by Brighten · · Score: 2
    Worm propagation is one of those n squared problems
    Actually it's one of those exponential problems. If we start with one infected system and every infected computer infects n more computers in an hour, then on the tth hour, n^t new systems will be infected. For example, if n = 2, then after 24 hours, then 33,554,431 systems will be infected. Of course, in practice, we run out of uninfected vulnerable systems after a while.
  125. Error by SilentChris · · Score: 2
    "Dispite the difficulties in starting a worm on a Unix"

    Error: Unjustified statement. Requires backup evidence.

  126. smaller marketshare? by wobblie · · Score: 1

    What? Uh, Apache (99% of apache servers are unix) has THREE TIMES the market share that Windows IIS has, and there haven't been any apache worms floating around.

    Q: If someone wanted to bring down web servers, why are they attacking the one with smaller market share?

    A: Because it is a piece of crap and easily cracked

  127. Nimbda? by LinkDJ · · Score: 0

    Nimda backwards is Admin
    Nimbda backwards is Adbmin

  128. better packaging = less vulnerability by patSPLAT · · Score: 1

    A peer of mine is a sys admin for a group of debian machines. Once a week he runs apt to automatically get all the security updates and install them.

    This is a one liner for him. According to him, it will even download an updated ftp package, stop the ftp daemon, install the new package, then restart the daemon -- all while he twiddles his thumbs and thinks about lunch.

    With that kind of automated maintenance, the window between the discovery of an exploit and the patching of the server is quite small.

    Even without the beauty of apt, most unix distros generally have better packaging then windows. Unix was designed to be able to be updated frequently and incrementally (without reboots too!). Because of this I think it will be always easier to apply hotfixes/patches to a unix machine than to a windows machine.

    1. Re:better packaging = less vulnerability by SuiteSisterMary · · Score: 2

      fictional reprint
      A peer of mine is a sys admin for a group of Windows 2002 machines. Once a week AutoWindowsUpdate runs to automatically get all the security updates and install them. This is a check box for him. According to him, it will even download an update to IIS, stop the WebPublishing service, install the update, then restart the service -- all while he twiddles his thumbs and thinks about lunch. With this kind of automation, who knows what kind of holes and backdoors M$ is automatically installing for him, and who knows what data it's sending back? And how does he know that it's not installing a new worm? </fictional reprint> Oh wait, I forgot. It's differnet when Linux does something.

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    2. Re:better packaging = less vulnerability by Trelane · · Score: 1

      Mmm, have you used apt, dselect, or dpkg?

      Basically, on a Debian system, programs are installed in packages that contain default configuration files, information files (man pages and info pages, for example), libraries needed, and programs. Now, you can trust the package or not, but we won't deal with that yet. Let's assume you trust the packages.

      No information on your system is sent to Debian. How? Investigate the process, something you are unable to do in the WindowsUpdate world. The upgrade process as I understand it consists of three major steps: downloading the current package list, downloading the packages that are installed and have changed since the last update, and then installing the downloaded packages. You can find the files it downloads yourself if you go to, for instance http.us.debian.org/debian/dists/stable/main/binary -i386/Packages.gz
      This file is grabbed for every source you list in /etc/apt/sources (I don't have my Debian system handy right now, so I can't verify this), and the results are combined into /etc/lib/dpkg/Available. The old Available file is renamed into Available.old. A quick diff is probably run (or something similar), and the packages that have changed will appear. Don't like my analysis? Think I'm full of it? Then you can get the apt and dpkg source and analyze it yourself. Once you've convinced yourself that it's kosher, then you can compile it and run it until the specs change or a bug becomes too annoying for you. Then you can download the source, analyze, and compile it again. The point is that you *have* the source and can analyze it. Oh, and it's legal for you to reverse-engineer it, too. :)

      Apt and dselect understand a variety of protocols, including http and ftp for getting packages and package information. If you want, you can download the packages manually one by one and install them with a version of dpkg you've inspected yourself. Maybe even altered to make it better for your particular system.

      Naturally, dpkg can ask you questions the package maintainer needs to know in order to get the new configurations in place. This can be automated via switches to apt (or dpkg too, I think). After initial installation, pretty much the questions are "install this new configuration, yes or no?" and you can safely say "no" if your config works fine.

      The point is, you have the source and can check it out if you need. There are other security concerns (how can you trust your mirror?, for instance) but I can't address them now. I have to run. :)

      --

      --
      Given enough personal experience, all stereotypes are shallow.
    3. Re:better packaging = less vulnerability by SuiteSisterMary · · Score: 2

      Yes, I know all of these points. I also know that any sys admin worth his salt would never use one. A real sys admin would have a test box, preferably a test lab, and would test each and every patch before ever DREAMING of putting it in a production envrionment. A real sys admin would also, even after doing said testing, never install off of a third party server. Too untrustworthy. What I was attempting to point out was that if Microsoft did the exact same thing, and I mean EXACTLY, /. would be up in arms. I'll also point out that I highly doubt that even 95 percent of the Linux User community could competently 'check [the source] out if need be.' There's a big leap between hello world, understanding c/c++ and understanding whatever networking protocol is at hand.

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    4. Re:better packaging = less vulnerability by KodaK · · Score: 2

      A real sys admin would have a test box, preferably a test lab...

      A real sysadmin has to deal with budgets, and can't buy jack. A real sysadmin will then play BOFH and utter the phrases: "Oh, I'm sorry, your files were wiped out, that's too bad. Here, hold this cable, Mr. Boss. Oh, well, I guess had I a couple of test boxes I would have known not to plug a Cat 5 patch directly into 110VAC. Sorry."

      Ahem. Sorry for the lapse into fantasy, go on about your business.

      --
      --J(K) DOS is like Unix in exactly the same way that a pinto is like an aircraft carrier.
    5. Re:better packaging = less vulnerability by SuiteSisterMary · · Score: 2

      Exactly! And through such time-honored methods, a real sysadmin would GET his test boxes! At the very least, a real sysadmin would put all of the pros and cons into an email to somebody with Authorith, and get a cya email back. :-)

      --
      Vintage computer games and RPG books available. Email me if you're interested.
  129. Ways to avoid the pitfalls by Ulwarth · · Score: 5, Informative
    You can't force users to stay up to date with security patches or even know anything at all about security. But there are things that OS and distribution maintainers can do to make their software more secure out of the box. I realize that many Linux distributions already do some of this stuff, but I don't think any do all of it. And, it applies to any OS, including those written by Microsoft.

    • By default, don't run any services! Windows 98 is more "secure" than Windows NT because it doesn't run services. A machine that is not explictly set up by the admin to be a server has no business running web, ftp, or ssh access.
    • By default, firewall all incoming and outgoing traffic over the public interface. Leave the ports open on private interfaces (192.168.* and 10.0.0.*) so that they can still share files and printers and things on their LAN without frustration. There's no reason to make firewalling an option. If someone wants to run an external server, they need to explicitly punch a hole in the firewall to the outside world. If they want to turn off the firewall completely, they can do so - but doing so should be difficult enough that they have to know what they are doing to do so.
    • Get rid of telnet and rsh. Install them, maybe, but never have them run by default. Instead, give them ssh as a remote login option. Make sure ssh is properly configured (no root logins, no blank password logins).
    • Encourage users to use blank passwords for desktop use, and then make it possible to login in only from the console when your password is blank. This applies to root, too. Since it's convenient, people will do it - and if it's impossible to log in remotely when a user has a blank password, it's secure, too.
    • Authors of server software have to make security a priority from the begining. All user input should be carefully verified with a single, highly paranoid function that clips length and filters out any characters that are not explicitly needed. Keep careful track of "trusted" versus "untrusted" values in the code, possibly going as far to give them special names like untrusted_buf or trusted_url.
    • Disitributions should GET RID of old, clunky, insecure programs such as sendmail (replace with postfix), wuftp (replace with proftpd), inetd (replace with xinetd), etc.

    Following these steps, I think that distributions will be fairly safe from any discovered server vulnerabilities, and probably most client-side ones, as well.

    1. Re:Ways to avoid the pitfalls by frleong · · Score: 1
      By default, don't run any services! Windows 98 is more "secure" than Windows NT because it doesn't run services. A machine that is not explictly set up by the admin to be a server has no business running web, ftp, or ssh access.

      This is FALSE. Win98 supports services just like WinNT and there is a RunServices key in the registry. You probably have never run PWS or SQL Server 7/2000 personal on Win98. Win98 is even poorer in protecting against these attacks.

      --
      ¦ ©® ±
    2. Re:Ways to avoid the pitfalls by Anonymous Coward · · Score: 0
      By default, firewall all incoming and outgoing traffic over the public interface. Leave the ports open on private interfaces (192.168.* and 10.0.0.*) so that they can still share files and printers and things on their LAN without frustration...
      Allowing users to share directories is a very bad idea even inside a LAN.

      Many viruses and worms, including Nimda, already take advantage of open shares to quietly infect other machines on the network, especially ones that export their C: drive for read/write.

      What's especially insidious is that sharing drives for read/write under Windows opens the drive for all users, not only the person who is logged in. All it takes is one laptop halfway across the building to infect your machine!

      Windows viruses are so easy to acquire accidentally that I no longer export my entire Linux home directory as read/write with Samba any more. I only export it read-only, and use a separate "incoming" directory for transferring files to the Linux machine. This way a Windows virus may still trash my "incoming" directory, but not my Linux home directory. :-)

      Ultimately, I think the only way to control the spread of viruses in a LAN of more than a few machines will involve IP filtering individual PCs at the switch level. It's much easier for a sysadmin to make a default rule to "block incoming connections to Windows shares on non-server machines" than to nag users to not share directories.
    3. Re:Ways to avoid the pitfalls by Paranoid · · Score: 1

      * Disitributions should GET RID of old, clunky, insecure programs such as sendmail (replace with postfix), wuftp (replace with proftpd), inetd (replace with xinetd), etc.

      Uhmm... proftpd has plenty of security problems too. In the few cases where I really have no choice but to run an ftpd, I use vsftpd.

      In any case, its vital to keep up with things like bugtraq, look at everything discussed and fix everything that pertains to your boxes... this is made much easier when you've selected your server software with security in mind, but still just as important.

      --
      Paranoid
      Bwaahahahahaa.
    4. Re:Ways to avoid the pitfalls by CentrX · · Score: 1

      These things aren't installed by default, whereas Windows NT has other services installed by default.

      --

      "The price of freedom is eternal vigilance." - Thomas Jefferson
  130. No. by Anonymous Coward · · Score: 0

    Next question.

  131. World domination by johnslater · · Score: 1

    Especially if our goals of taking over the computing world are realized, ...

    Be careful. Putting thoughts like that in writing are what got Bill Gates in trouble.

    No wait, I've just remembered: he got away with it. Never mind.

  132. Lets face it by Anonymous Coward · · Score: 1, Interesting

    To make it impossible for a worm to infect a system you need an architecture to prevent this. Linux never knew any serious viruses because they were blocked by the rights restrictions of the kernel. The new problem is that a worm doesn't need to care about these restrictions. If we look at code red, it just needs to connect to the target in a standart manner (port 80) and already has full controll over the server.
    Lets face it. Linux is as vulnerable as MS products. There is no general way to prevent this. The only way to limit the spreading of worms are more severe rights restrictions. For example only rw rights for the stack(I can`t believe this isn`t possible), restrict the program to modify itself, more options in setting rights...

    1. Re:Lets face it by Anonymous Coward · · Score: 0

      The moderaters here are as dumb as the users. Hmmm I gues we all knew that.

  133. Market share by GuidoJ · · Score: 1

    Seriously, isn't this exactly why Linux should NOT conquer the desktop? At least this way we know where most worms are heading for (and we know we're relatively safe).

  134. viruses by dollargonzo · · Score: 1

    well, a lot of the problem rests in the fact (for viruses), a person has to click a link in their email which starts up a given program that uses the particular file type. In windows, ppl click on links, regardless of the fact that they are files or not, automatically: the rule is: if it is highlighted, CLICK IT! The difference with *nix systems, is that most file types are not necesarily associated with a given program, and links in emails (to files) need to be saved in order to viewed... Also, when a lot of viruses check address books, in winbl0ws it is standard, and in *nix it is not, and therefore harder to access. finally, files on winbl0ws contain the macros for a given progam, and are equivalent to executables. That is not that case for files for *nix: you cant run them from a browser!

    --
    BSD is for people who love UNIX. Linux is for those who hate Microsoft.
  135. Audit code like OpenBSD by Leimy · · Score: 1

    OpenBSD strives to prevent holes in the first place before releases. If the linux development cycle would strive to make more "stable" stable releases than the ones that come out now this could be a much smaller concern. Linux's bazaar style development of "release early release often" has major weaknesses in the "Are you sure all the holes are plugged? department".

  136. Stackguard and Immunix by Karl+J.+Smith · · Score: 1

    Buffer overflows, printf overflows and the like are a systematic problem. Rather than trying to fix each instance (which is still a good idea), there's an additional safety net in the form of the StackGuard compiler, and the Immunix GNU/Linux distribution. It fixes the problem systematically by checking for stack smashing.

    http://www.immunix.org

    The ISO images are mirrored at ibiblio.org

    I really wish that Red Hat would buy them, fund them, or incorporate their changes.

    1. Re:Stackguard and Immunix by shani · · Score: 1

      Yeah, but your heap is still fair game. Immunix isn't as good a solution as a well-designed secure distro, like Trustix.

  137. Lessons Learned: by Nater · · Score: 1

    1) Install (patches|updates|hotfixes) immediately. Preferrably, run a tool that handles this task semi-automatically, or if you're brave, completely automatically.

    2) Don't run servers as (root|Administrator|God). Create an account for each server and run it as that user. However, have root own the binaries, configs, docs, and sundry associated with the server. Distributors should handle this.

    3) [For distributors] Don't turn things on by default. People won't realize they're running them. If they want it, they'll turn it on themselves.

    --

    I like to play children's songs in minor keys.
    "We're all sons of bitches now." --J. Robert Oppenheimer

  138. Open source. by Penguinoflight · · Score: 1

    That's one of the biggest advantages of open source, if there's an exploit, ANYONE can find it. If there's a problem, ANYONE can fix it. Also the much more organized way of doing things on Linux, and the lack of marketing propaganda (Microsoft would rather make more money than be secure), really keeps worms from going very far on Linux. Plus with tools like apt-get and autoslack (slackware's distribution upgrader), Things are much easier to upgrade on a large scale.

    --
    "And we have seen and do testify that the Father sent the Son to be the Savior of the World"
    1 John 4:14
  139. It's Hopeless by Anonymous Coward · · Score: 0

    Shut her down Taco man, it's all noise here now.

  140. Beneficial Worms by Anonymous Coward · · Score: 0

    Worms are not always a bad thing for either *NIX or Windows systems. See for example, this link

  141. Open source Evolves, doesn't 'Grow'... by bcarlson · · Score: 1

    I don't really know how to state what I'm thinking, more than saying... if an open source program is needed, but is not being built correctly(i.e. potentially dangerous code from lazy programmers), anyone can take the code, and improve upon it. It's not re-writing the whole thing, it's taking the good, throwing the bad, and Evolving the program.

    Closed source programs/OS's tend to Grow the program. Building perhaps good code, on top of poor code. Noone has the time/opportunity to spend a few days cleaning, it's all about the bottom line here.

    ...of course, I've been wrong before.

    --

    "...I'll need guns" --Chow Yun-Fat in 'Replacement Killers'
  142. Windows update isn't very good. by slightly_kooky · · Score: 1

    When I used to boot my box to windows (which I haven't done for a while) I used to run the windows update program occasionally, but it always seemed to want to download megabytes and megabytes of stuff.

    Whereas, with debian, I feel quite happy doing apt-get update; apt-get upgrade every so often. And the update downloads never seem excessively large.

    1. Re:Windows update isn't very good. by Genom · · Score: 2

      Heh...leave it alone for a month or so (because it's running so well, you don't bother to think about upgrading), and have that be a month with a lot of changes to GNOME/KDE (assuming you're one of the folks who enjoys one, or both of those) -- THEN you'll see some big download sizes.

      BUt you're generally right. Incremental updates to Debian are fairly small - I generally don't see more than 500k-1meg per session - more if I leave it longer (and MUCH larger in the above circumstance of both GNOME and KDE being upgraded!).

    2. Re:Windows update isn't very good. by Psychic_3one3 · · Score: 1

      You're forgetting the biggest problem with Windows Update - it automagically checks your system for holes, downloads a self-extracting .exe patch to a temp folder, runs it, and deletes it.



      This is fine if you never have to reinstall Windows (which I seem to do every few months). MS used to have a "corporate downloads" page with all the patches as plain .exes to download manually (for sysadmins to download the patch once and install it on all their computers), so I used WinUpdate to check what I needed, then went to the corporate page to actually get them. That way I could put them on a CD with my backups and have a reasonably up-to-date Windows install just from the Windows CD and my backup CD, without needing to re-download everything. Unfortunately, a few months after I discovered it, MS stopped updating the corporate page. :-(

      --
      Give a man a fish and you feed him for a day - unless he's on IRC, in which case he'll just slap you with it.
  143. You forgot the most importan reason... by Anonymous Coward · · Score: 0

    Most people using a *NIX machine are not doing so as the root user!

    Anytime you are on a Win9x machine, and most of the time you are on a home WinNT/2k/XP machine - you are logged in as root!

    This leads to many exploits from the inside that couldn't happen to a *NIX machine with regular users.

    I think this is *NIX's strongest security point.

    Fried

  144. A couple of thoughts by sup4hleet · · Score: 1

    STRENGTH IN DIVERSITY!

    Linux runs on more architechtures than any other OS. Granted most folks run on an x86 but my box that faces the world is a ppc. Obviosly binaries compiled for the masses won't get too far on my server. And no worm coder in their right mind would compile the binaries for ppc linux thanks to the N^2 problem. If you run linux on a SGI Octane, Indy, Indigo; Sun Sparc, UltraSparc, 3/60; Mac G3/G4/PPC, se/30, 68040; DEC Alpha, cisco 2501, IBM zSeries whatever you are helping to thwart the threat of a linux worm.

    Something else you can do is run Labrea . I just started playing with it and it's the coolest white hat security program I've seen. Not only will it slow the spead of any worm that scans subnets, but it will also mess with any script kiddies scanning you IP blocks. Take a look at it especially if lots of folks in you shop run II$.

  145. One of the principles of Computer Science by sup4hleet · · Score: 1

    "Build a system even an idiot can use and only an idiot would want to use it."

  146. Never a better time to be a girl by Graymalkin · · Score: 2

    I really love the "my answer to a Linux exploit is apt-get update" posts. Nothing like trusting a completely automated process to solve all of your problems. All it would take is a nice little bit of malicious code in some header to fuck a bunch of people over. If you're not going to review the code before you install it why the fuck are you so anal about using open source software?

    --
    I'm a loner Dottie, a Rebel.
    1. Re:Never a better time to be a girl by Raven667 · · Score: 2

      Many deb packages, prolly including the ones on security.debian.org are GPG signed. You can get the Debian project's keyring, verify it and then know that the update you are getting is legit.

      --
      -- Remember: Wherever you go, there you are!
  147. "UNIX" vs. the monoculture by mrjinks · · Score: 1

    The article asked about guarding against worms in principle. Diversity is, in principle, more healthy than monoculture, specifically in the area of resistance to infection.

    As other posts have mentioned, there are several worms currently active in the world of UNIX. They don't make the kind of news that Windows worms make because today's UNIX world is not a monoculture. If you find a vulnerability in a Windows system, chances are very good that the next Windows system you find will have the same vulnerability. That's not true when you substitute "UNIX" for Windows, or "Linux", or "Red Hat", or even "Red Hat N.M".

    The same vulnerability will sometimes exist across Unices, but writing an automated process that successfully jumps from one flavor of UNIX to another is still tough. You have to either know in advance what kind of system you're infecting, or write your code so that it can run just about anywhere (hard to imagine much beyond a basic Bourne shell script that will do so reliably, and even then...).

    Yet another strike in favor of open, diverse methods as opposed to closed, monolithic ones. Sure it's confusing sometimes, but fortunately it's even more confusing for the bad guys and their evil robots.

  148. Avoiding worms by using Enterprise Java Beans by Anonymous Coward · · Score: 0

    Here is how Rickard Oberg, creator of JBoss, avoids worms through use of EJBs.

  149. Audit the code! by rice_burners_suck · · Score: 1

    The best way to avoid becoming a worm-hosting platform is to use good design and coding practices and to audit existing and new code (OpenBSD-style).

    I spend countless hours studying others' code in the evenings. Although I don't consider myself an auditor, I like to examine basic and often-overlooked things like array and pointer usage. Most of the "bugs" I uncover are very subtle and usually don't affect the operation of the software at all (though they might as one small step in a complex, deliberate attack). An interesting side effect to this boring work is that I sometimes find faster or shorter ways to do things.

    IMO, this kind of work is ideal for newbies who want to get involved but aren't skilled hackers yet. While many of us who code every day like to "read" code quickly, newbies must actually concentrate on understanding the significance of each character.

    An even better way to audit is to explain some piece of code to an outsider, perhaps a nonprogrammer, line-by-line. They'll likely ask you some stupid questions, but you'll be surprised how many subtle bugs this can uncover that you'd never find otherwise. Oh yeah, and if you have a girlfriend who wonders WTF you do in front of that comp all night, this is one way to bring her closer to you. :-)

  150. Is the Unix Community Worried About Worms? by Muggs+McGinnis · · Score: 1

    Regarding protecting the Linux community from known worms, virii, etc:

    Might it be cost-effective for the Linux community to maintain a site which one could invoke to probe one's own system? Knowledgeable and conscientious (and trustworthy) Linux hackers could maintain an up-to-date array of automated exploits of known security problems.

    This seems to me to be technically non-trivial but still quite possible.

    The admin of any Linux system could invoke the system and then receive a report of the results... maybe the report could include suggested patches and system configuration changes.

  151. Tarpit - May not work next time. by Midnight+Ryder · · Score: 2

    maybe that should be a standard service? add the ports exploited to tarpit.rc ..


    of course that wouldn't solve much but it would be something to start with.


    You are right - next time, the worm author might do something different just to make sure LaBrea isn't nearly as effective. For instance, by keeping track of how long it's taken to do it's job, the worm may just abort the thread if it takes, say, 20 seconds to send over part one of the exploit. LaBrea becomes a small slowdown then.


    There's not a 'real' answer to stoping worms and the sort, except for administrator vigilance. No matter what OS you use as a server platform (or a mix of things, like my network), ya gotta be quick with the patches and vigilant with security.


    As for reversing attacks, etc - there's some severe problems there. You are attacking someone else's hardware - even if the script kiddie may be controling it, they may be on someone else's machine doing it remotely. screw up that person's box, and you might have a problem. (Of course, there's other ethical issues here - I'd really like to just view it all as 'self defense' when you throw an attack back at an attacker online. Unluckly, there's no real presidence for that, I'm not sure there should be!)

    --

    Davis Ray Sickmon, Jr - looking for something to read? Check out my three free novels at MidnightRyder.org

  152. *Could* it happen? It alread has happened!! by FatHogByTheAss · · Score: 1

    Good lord we're myopic. One of the first internet worms that ever got famous was the Morris worm, released in 1988. It attacked SunOS and VAX/VMS boxen.

    The reason MS is struggling with it now is because the *nix folks have had about 15 years to work this problem and close the loopholes. We know what to look for.

    --

    --
    You sure got a purty mouth...

  153. Why not as likely... by Anonymous Coward · · Score: 0

    The possibilities of some odd hole in FreeBSD or Linux are there, but both do inheret the legacy of being hacked on and secured for close to 30 years that Unix already has.

    Remember the Morris Worm? That was Unix-based.

    Unix-based systems inheret MUCH more knowledge about network security issues than Windows has. I've seen too many comments on security holes in Windows by Unix systems people to the like of, "we stopped doing/fixed those things X years ago", where X is a decent integer (i.e., 1-20).

  154. Auto-update / auto-patching BAD!!! by Midnight+Ryder · · Score: 2

    Or any other form of auto-updater. Remember, Code Red and Nimda used holes that were patched months ago.


    No way - this is a very bad solution for security. While at first this would seem to be an absolutely good idea, in reality there's a number of really nasty security problems here.


    First, it convinces you to be lax about security. I mean, if the Auto-updater is handling the job, you probably won't check it out too closely since it's not nessisary. But with patches sometimes comes new holes, and new procedures for properly securing a box. These are jobs that require human intervention.


    Second, a new class of exploit comes along - using whatever proceedure you can make work, upload a new patch to the ftp server with some less than obvious holes in it. Sure, someone is going to spot it - maybe hours, maybe a couple of days, but it WILL get spotted. As admin, will you know if your box was one that grabbed the bad stuff? (Note, I said upload it to the ftp server, that's not the only exploit - various redirection techniques could be used too.) If tons of people moved to the auto-update idea, there'd be the potential for a lot of exploited boxen quickly.


    And third, there's the issue of reviewing patches / updates. Sure, lots of people have viewed them. If it's security related, you should be viewing them too, or at minimum the 'readme' or equivalant.


    Fourth, what update time are you planning? Once a month? Once a week? Daily? If it's less than daily, then you've got a problem - of you do grab a buggy version, that gives someone time to attack. And if it's a week before you check again, that means they've got pleanty of time to use your machine as a base to launch more attacks from. Plus, once they have the machine, you may only THINK you are still doing updates ;-) (It's always better from the attacker's standpoint to make things seem just fine and dandy :-P )


    I'm sure there's a lot more that could be added to this list - this is just the problems off the top of my head. But those problems alone are enough to really screw things up.

    --

    Davis Ray Sickmon, Jr - looking for something to read? Check out my three free novels at MidnightRyder.org

    1. Re:Auto-update / auto-patching BAD!!! by Anonymous Coward · · Score: 0

      Patches can be tested so that the odds of them breaking is low.

      Patches can be MD5'ed / GPG'ed or whatever floats your boat.

      As for the scenario that someone breaks into the auto-updater main-server, well, there is something called IDS, it's just usually overkill for the end user.

      As far as the patches go, why not have them email the relevant info to the computer user? Sure, most ppl will ignore them, but you never know, ppl read email.

      I'll admit there's a point of failure (the main-server attack idea) but at least that'd be easier to watch..

  155. Linux has plenty of resistance by Philbert+Desenex · · Score: 2

    I sincerely doubt we'd seem a very infectious worm like NIMDA even if Linux were a very common OS. A NIMDA style worm that propates via email clients and web servers faces a bigger uphill battle in the Linux world than in the IIS world. For starters, there are way more semi-incompatible Linux distributions floating around - it wouldn't be uncommon to find a RH 6.x server would it? There's more variation in web servers, too: Apache, WN, thttpd and others all have a presence. That means that the web server vector has barriers to propagation, one buffer overflow won't cause every web server to become a propagation vector. One IIS buffer overflow cause the Code Red worm. There is more hardware variation: Linux runs on x86, SPARC, Mips and Alpha CPUs. Shellcode to run on all 4 architectures would be difficult if not impossible. There are *vastly* more email clients in common use in the Linux world than in the Windows world: mailx, pine, elm, mutt, Netscape Communicator, balsa (?), etc etc. These various email clients don't share a common scripting language, address book, or even a common format for saved mail. Most if not all of them don't "launch" executable attachments. This would lend resistance to the Linux population.

    In short, the monoculture of MSFT products (IIS, Outlook, Win32 and x86) is probably at fault for the Code Red, SirCam and NIMDA problem, not mere popularity.

  156. (OT) Re:Learning from Code Red? by First+Person · · Score: 1

    Then use ATL's windowing support instead.

    <sarcasm>Yes, I've always preferred highly macro based toolkits making extensive use of templated classes and multiple inheritance. The result is so easy to debug and read!</sarcasm>

    ATL has some things going for it when you compare it to MFC. I'm just not sure that's the best benchmark.

    --
    Given one hour to live, the student replied: "I'd spend it with professor FP who can make an hour seem like a lifetime."
  157. Windows: Fisher-Price of the IT World? by Anonymous Coward · · Score: 0


    Windows is the easiest place to start, and gives people a touchy-feely familiarity to starting out in Internet services.

    But, professionals want more. The big boys don't use Windows, at least not in a high-exposure critical-service sense. Professionals tend to choose tools which can be configured more securely, and more dependably. Professionals also tend to know how to set up and take care of their servers.

    So, Windows is that learning step for many would-be IT/IS admins, similarly to how Fisher-Price is great provider of learning tools for child development. But, to measure comparitive market share of Windows against Unix-type systems is like comparing the market share of Fisher-Price to Volvo. Are they really in the same category?

    That said, it isn't surprising that Windows is both an easy target and a 'soft' target for worm/virus attacks. The impact, well, isn't huge, though. If someone figured out how to compromise Unix machines on the same order, THEN you'd be feeling the effect as REAL services started to fail (e.g. telecommunications, banking services, etc.).

    --Phil

  158. *NEED*? by Anonymous Coward · · Score: 0

    (God I hate having to defend Microsoft!)

    Then don't.

    Properly configured, IIS runs as a user other than the administrator

    Ahh, OK. Now, what do you define as properly configured? Default installation? Don't think so. The fact that you can make it secure does not mean that it is secure by default, which was the original poster's point.

    This is ones step ahead of how most Apache installations are run.

    Sorry, your qualifier makes this an idiotic statement. Properly configured, Apache will run scripts as another user as well.

  159. Here's what I would do... by chmod007 · · Score: 1

    Incoming_Worm > /dev/null

  160. No. by ffatTony · · Score: 2

    A worm that overpowers apache and executes code on my machine as user 'nobody' (The user my apache runs as) really doesn't concern me. I suppose it could delete most of my /tmp partition.

  161. Not that argument again... by krogoth · · Score: 1

    "The only thing stopping it these days is Linux's smaller marketshare. (Worm propagation is one of those n squared problems)"

    What this coward means is that the only thing stopping apache from having a major server-side infection is the fact that it's used twice as much as IIS. Sure, a client/server worm would have a larger target in Windows, but all the IIS server worms could have gotten twice the serverspace if they used an apache hole. Of course, some day a cross-platform worm will come out and then we could be screwed :)

    --

    They that quote Benjamin Franklin on liberty and safety deserve neither.
  162. Brought down the entire USA by peter303 · · Score: 2

    Most internet connected computers when hosed
    in 1988 during the Morris worm. But it was
    mostly just universities and few military.

  163. #4 == BAD idea, esp. on NT by Anonymous Coward · · Score: 0
    Encourage users to use blank passwords for desktop use, and then make it possible to login in only from the console when your password is blank. This applies to root, too. Since it's convenient, people will do it - and if it's impossible to log in remotely when a user has a blank password, it's secure, too.

    On NT, a blank password is perfectly valid for remote login. A better idea would be to enforce strong passwords via group policy objects.

  164. Attack of the Anti-Virus Astroturfers!!! by Anonymous Coward · · Score: 0

    >much. After all, the concept of a worm similar to Code Red or Nimda >could just as easily strike Linux ... it's as easy as finding a known >hole and writing a program that exploits it, scans for more hosts and >repeats. The only thing stopping it these days is Linux's smaller >marketshare. (Worm propagation is one of those n squared problems). >Especially if our goals of taking over the computing world are >realized, Linux can and will be a prime target for the worm writers. > > Where do *MORONS* like this guy come from?!? Shouldn't he be busy re-infecting the Windows PC he's using by clicking on a attachment or something? It's clear he knows nothing about Linux,BSD or Unix, nor how programs work/interact with each other under these OS's. If he did,he wouldn't have bothered posting nonsense about how "worm similar to Code Red or Nimda could just as easily strike Linux..." What a load of bullshit.

  165. Marketshare doesn't matter by Philbert+Desenex · · Score: 2

    That's right: marketshare doesn't matter. And here, I'm taking "marketshare" to mean either (a) the number of servers sold or (b) the number of servers running.

    The reason why marketshare doesn't matter: every server connected to a TCP/IP network is "touching" every other server connected to that network. Marketshare has no bearing on which servers can possibly infect which other servers in a population, only connectivity does. Essentially, the "population" of unix servers on the internet all "touch" one another, just like the population of all IIS servers "touch" one another.

    That said, it hasn't really been a banner year for Linux/Unix/BSD worms. We've seen adore, l1on, cheese, ramen, sadmind/IIS, lpdw0rm, and x.c. Absolutely none of these worms ripped through the Linux/Unix/Solaris/BSD population. This is indisputable. The question is why does one population have resistance, while the other doesn't? I think the answer is diversity on four levels:

    • CPU architecture. Sure, Linux/Unix/etc boxes are far and away x86-based, but having a sprinkling of SPARC, Alpha, Mips and PPC probably makes a difference - no single shellcode or exploit covers all architectures.
    • OS architecture. Instruction-level calling sequences probably prevent a "universal" shellcode from working on all OSes that a given CPU architecture runs.
    • Web server variety. Sure, Apache dominates, but WN, iPlanet and thttpd have a presence.
    • Userland software variety. A huge variety of email clients that don't share a common scripting language or address book format keeps NIMDA and SirCam like things from happening.
  166. Lowley the worm by nld2thx · · Score: 1

    So long as Lowley's good character is not compromised by some prankster, I will sleep easy.
    (Sorry to those whose youth literature was empty without Lowley the Worm's presence).

  167. Assumption is the mother of all f**kups. by Dog+and+Pony · · Score: 1

    And that is what will hurt linux users the most when the first well-written worm arrives in a world with enough linux boxes.

    Since so many assumes it is so safe, the suprise will shake the foundation hard, I think.

    On the other hand, with the non-trusting environment (in a good way), it is hard to imagine any great damage done... and well, that is my point I guess.

    And don't trust that every Linux user is a nerd, professional or interested enough. For the first thing it is slowly hitting the average guy with the red hats and whatnot. And also a lot of companies switch to Linux for obvious reasons, but they still have the same morons or worse trying to administrate the boxes. Lots of hosting companies run Linux because it sounds good and it has a quality ring to it - which is true - but they don't know sh*t about the system, and in many cases they just want to grab the money.

    I think that many/most of them are alright though - so far...

  168. you should be worried by corbosman · · Score: 1

    The Linux community and any other unix community for that matter should be worried. Not necessarily for worms or virusses, but for the problems they cause even when they hit microsoft boxes.

    We have had some pretty mild worms sofar. Wait till a really bad one hits and all our linux, freebsd, sun, whatever boxes come to a grinding halt because of server load, or network load, or...

    We actually need to start planning infrastructure dimensions with worm, virusses and ddos attacks in the back of your mind. Dont plan for a 50% peak, plan for a 500% peak..

    Cor

  169. Re:Never a better time to be a girl (?) by dvdeug · · Score: 2

    Because somebody can. I can blindly trust some anonymous person somewhere who knows that I can't check him; or I can trust a fellow developer, who will get expelled from Debian if he tried to "fuck a bunch of people over" (i.e. accountability.) At least 3 or 4 people see any change that goes into any major program, and any number of people can look at the code, at any time. If you put a back door in, you will be found out, sooner or later, and people will know who did it.

  170. Re:You know it's a male oriented society when... by Anonymous Coward · · Score: 0

    You forgot quotes around "products".

  171. Uninformed babbling by /ASCII · · Score: 1
    The writer of this story doesn't know what he's talking about. The number of worms proportional to n squared. Apache has 60% marketshare, IIS has 30%, that means that Apache must have about 4 times as many worms as IIS. Moron.

    Most of the scriptkiddies probably use Win9X, and AFAIK IIS hates everything but NT kernels, so it should be much easier to get Apache than IIS to run under Win9X. Ease of access is not the reason either.

    What's left? I'd venture two guesses:
    1. Hacking IIS means sticking it up to the man, which is COOL.
    2. IIS is a bloated piece of crap

    --
    Try out fish, the friendly interactive shell.
  172. Re:With RMS around by Anonymous Coward · · Score: 0

    Good question! I'm sure somebody will supply you with the answer some day!

  173. Worried? by NilObject · · Score: 1

    Lets see... Using UNIX... And... My biggest worries are:

    * Did I bring coke for lunch today?
    * Where are my glasses?
    * I have the latest distros right?

    So no, I'm not. But the NT admin in the cubicle over is pissing his panties.

    I love UNIX.

  174. I would rather ask: by Anonymous Coward · · Score: 0

    Is the worms community worried about penguins?

  175. maintain focus by Anonymous Coward · · Score: 0
    The most effective way to reduce the severity of worms if to continue to design with security as one of the primary goals. When Microsoft created COM, and some of the other technologies that are rutinely exploited by worms, security was not there primary (or even close) design goal.

    In the last couple years, Microsoft has been starting to get the idea that security is important. As I understand it, COM+ has many more features dealing with security than COM does. Unfortunately there is a massive installed base of COM applications that will take years to replace.


    As long as the Open Source world continues to maintain focus as to what is really important, and not get lazy, then those projects will continue to be secure and powerful.


    hgh

  176. Heterogeneity in OSes by Wise+Dragon · · Score: 1

    What these worms, Code Red, Code Blue, and now Nimda REALLY underscore for me is the value of having a heterogeneous operating environment. It's just not good practice to run entirely one OS/web server/email client. At least different operating environments will have DIFFERENT flaws, so when one of these worms goes around, at least somebody can still get work done.

    Not that I really get any work done :)

  177. why good old unix is safer than windows by Anonymous Coward · · Score: 0

    The people who admin Unix boxes tend to know more about services/permisions/vulnerabilities etc...,
    because Unix has a more expanded history in terms of hacking. Unix/Linux is more a real
    network operating system than NT/2000 what I rather call a operating system with full network support.
    A Unix machine setup by a unknowable admin is actually more dangerous than a default setup NT machine,
    because a knowable hacker hide his presence, and download/compile/install any software without any user
    intervention at the machine (by example: it's possible to download any software using a perl ftp script)

    1:- Windows has the largest footprint, so it attracts more viri/worm editors. Linux is becoming more popular so
    it evident is will attract more worm by time (Given the example the Ramen, Li0n worm, more worm are to be expected)

    2:- Windows has more integrated features is often pointed as the reason behind those worms,
    but actually Unix has more features that can potentially be misused. Unix has not (jet?) had such dissasters as Code Red, Minda worm.
    The reason for this: there are more diversed key applications in Unix each maintained by it's own teams versus The microsoft way where
    everything is integrated in such a way, that every application can have access to the same tools/features in the os.
    Thereby a lot of vulnerabilities affect Windows in a general sense (Let's take the infamous MDAC vulnerability,
    first found in the Access/ODBC Office suite, was shortly after found also to affect IIS), than Unix vulnerabilities

    3:- Most services in Windows run as localsystem which is actually full system access. The inability to change this without breaking Windows,
    make Windowa rather insecure. An example is the Code Red worm, which exploits the IIS service before the service execute itself as IUSR.
    The concept of a Sandbox/Virtual/Chrooted environement almost unknown in NT/2000.

    4:- A lot of services depend on other services, thereby making it difficult to turn down unsafe services. I think in this case on
    disabling network bindings, causing to disable Net Logon, Workstation, and some other services. Also turning RPC services off is not easy,
    and I've actually been forced to reinstall Windows 2000, because I couldn't start several services again in Windows 2000. Microsoft did't
    document these services/dependencies/ports that these use very well, and modifying those setting can affect other services like browsing
    doesn't work anymore, cut and paste gone etc...

    5:- several services run on SMB ports: authentication, filetransfert, browsing, domain replication, etc... Thereby making it difficult to
    filter on ports. Microsoft is tending to lay security depend on the applicationlevel than on lower levels. The problem is when the
    applicationlevel fails there's any lower level security possibility to protect your network. NT is in operating system permission
    design good and better than Unix, but only on the system level, not on the network level.

  178. mod this parent up by G00F · · Score: 1

    Not sure if anyone else already mentioned this, but it's a good point.

    We need to form sites with more than ms bashing and howtos. This would be a really good for showing what we, the open source cominity, is about.

    Even more, it would be smart for say, Red Hat, to develpo such a system. Offer some of it for free, such as portscanning/version checking, but offer more in a pay service, automatic upgrades withc prompts, offer other solutions, programs that run in cron to automaticaly test the system, check compoments vs Red Hats database (file size, version, bug info, etc).

    --
    The spirit of resistance to government is so valuable on certain occasions that I wish it to be always kept alive
  179. Worms ARE a Linux thing, and they're rampant by Nailer · · Score: 2

    Hasn't anyone ever heard of...

    l10n

    Adore

    Ramen


    Et al? These things are rampant and generally attack older Bind, lrpng, or wuftpd (Damn those rappers and their shitty FTP server!). Run up2date or whatever your distro uses and you won't get them. Just like running Windows update on an IIS box, really...

    1. Re:Worms ARE a Linux thing, and they're rampant by Nater · · Score: 2

      And don't forget...

      Cheese

      ...the friendly worm.

      --

      I like to play children's songs in minor keys.
      "We're all sons of bitches now." --J. Robert Oppenheimer

  180. Marketshare by Raven667 · · Score: 2
    The only thing stopping it these days is Linux's smaller marketshare. (Worm propagation is one of those n squared problems).

    That doesn't make the slightest bit of sense. Apache has 2 or 3 times the marketshare that IIS (including derivitives like PWS) has. An Apache exploit comperable to the IIS one would rip through the network like fire and could easily take down the majority of servers. One of the reasons that this hasn't happened is that Apache was coded far more carefully than IIS. Annother important reason is that Apache servers are not a monoculture. Apache runs on many different CPU arch's and many different OS's preventing the "One True Shellcode" from working (not that a worm coulnd't have a library of shellcode for many different platforms) Permissions on UNIX hosts tend to be slightly more sane out of the box as well, not great but better than the competition.

    There have been several RedHat (not Linux or Unix in general) worms recently, but they just weren't that obnoxious (not that there weren't quite a few fire-and-forget RH6.x boxen around). RedHat isn't making the same mistakes again, RH7.x doens't turn on every installed service by default and optionally can setup firewalling rules that protect your machine from attack. Mandrake has a "make secure" button that does a pretty good job of locking a machine down and distro's like Debian try to err on the side of security whenever possible.

    I'm rambling but Unix servser are generally more hostile to attacking worms than other environments. Any monkey can setup an IIS server but the results tend to be slipshod. Any monkey can setup an Apache server as well but the results tend to fair better when exposed to the open cesspool of the Internet.

    Blargh

    --
    -- Remember: Wherever you go, there you are!
  181. Fear by slayven · · Score: 1

    it's easier to damage a windoze machine and remain unrecognized. you start an attack from a computer, that can be easily traced back to the attacker, so you have to infect a couple of server before anyone realizes, that you did something nasty.

    linux servers have plenty of logfiles and almost every administrator knows how to deal with them.

    maybe they don't know how to write linux-worms - but even if they do, they are afraid of beeing traced back.

  182. Linux and WinNT/2K/XP by Peaker · · Score: 1

    Linux and WinNT/2K/XP have pretty much the same security models.

    That model is the ACL (Access Control Lists) model. No, I don't mean that in the NT sense, but the more general sense, of attaching some user permission data on every object.
    This model is a failure on the Windows platform, and what many *nix users fail to realize - is that it is a failure on the *nix platform as well.
    This model is far from the principle of least prievelege, and code gets a LOT more privelege than it needs. Even the restrictions that are placed on programs are placed in fail-open ways using chains of error-prone conditionals, and often by the program itself, and it may fail to do so.

    What is the alternative, you ask?

    Pure capability systems. Mathematically provable systems that do NOT attach user lists to objects, and do NOT use error-prone if-conditional chains.
    Such systems allow implementing the principle of least privelege, they allow fail-close restriction of code, by handing it the exact capabilities it needs to run.

    Such systems also allow more fine-grained, more flexible security, AND with higher-performance, and more simplicity. They do all these WITHOUT having to trust the webserver or MP3 player software to place constraints on itself properly, and WITHOUT requiring a security-killer thing like a super-user for standard system operation.

    How do capability systems do all these great things, you ask? Well - they are simply a much smarter way for systems to operate. Instead of each process having a large set of actions it can request the OS to take, each process holds a set of 'capabilities' (Think of them as open file descriptors that are never actually open()'d or close()'d). Such capabilities represent access to a specific object. In order to communicate with another process, you need to hold a capability to talk with that process. If that capability includes the right to send capabilities as well, it means you can hand your capabilities to that other process, too. In order to play sound, you need a capability to write to the sound device.

    All of this is simply implemented as method calls on the capability object, much like a file descriptor. Some capabilities are implemented by the kernel, some by other processes, implemeting high-level objects. The important thing about capabilities is that they are a necessary and sufficient condition to access an object.

    Capabilities provide for fine-granulity highly-flexible high-performance (the only test is that a capability is valid) security systems that are not only much more flexible, and faster, but are also PROVABLY MORE SECURE than ACL systems, and are much more powerful, and even simpler to implement correctly (consider the tests needing to take place, compared to the *nix way of the chained if conditionals required to see if a process is not restricted from some resource access).

    In summary, as long as we all use ACL systems, be those Windows or *nix, we should fear worms, viruses, and other security hazards.
    When pure capability systems get the attention they deserve, and we as users get running systems, we will be able to lay our eyes off bugtraq, and remove worry from our sysadmin heart :)

  183. Does anyone remember by Anonymous Coward · · Score: 0

    Does anyone remember an internet worm approx 1993 that took down the whole net?

    Thanks,
    LB

  184. are you people really missing the big picture? by Anonymous Coward · · Score: 0

    The number of users an operating system can obtain is finite. Each operating system can choose from the same pool of users. I see people saying 'yeah, but unix admins are geeks, they generally keep their machines patched'. At the moment, yes thats true for the most part. Once those windows admins (if at all) decide to switch, I can guarantee you they will neglect their machines just as much as they do now. Then *poof* some worm is rocking the internet just like nimda and code red, but this time its not because of microsoft.

  185. no by I_redwolf · · Score: 1

    I'm not worried. Apache runs as user "www" on my machine. User www doesn't have access to anything not even the apache bins or logs or anything else for that matter.. It's a standard apache installation at that. The misconception that this could happen on a unix clone type of system is quite laughable nowadays. It's even more laughable on a system like openbsd, freebsd, linux, netbsd, basically all of them.

    However, it's possible but the way the worm would have to be written and executed would only work on some systems and then you'd have to have someone dumber than dirt to exploit it in some non-standard, weird condition that a dumb user wouldn't be able to create such a condition if they tried. The reason you don't see any major Unix worms is simply because the effort involved and the payoff; ie: having your worm spread over internet isn't worth it. Your worm will probably affect very few machines if any at all.

    It's not about market share because Unix has always had the major market share on servers and on the desktop front I really wish people would stop fighting for such a thing, the software just isn't there yet. Unix on desktops is a new thing.

  186. Short Term Memory Loss by Doktor+Memory · · Score: 1

    Hello? Ramen? 1i0n? Adore? Sound familiar?

    Thank you. I was beginning to think that I was the only person here who still had a functioning long-term memory.

    The linux world has just as much of a worm problem as the win32 world. Maybe even more: after all, your average installation of win2k or winME doesn't run IIS (or many net-listening daemons at all), whereas every official release of redhat ever made is trivially rootable out of the box in its default installation.

    The lesson I learned the hard way from 1i0n: don't run sendmail. (Use postfix or qmail.) Don't run BIND. (Use djbdns or, um...something.) And whatever you do, never allow a "UUNet Certified Firewall Engineer" to configure and install your Checkpoint FW-1. And yes, virginia, there are such things as linux worms, and restoring 1,825 different index.html files from your backup tapes is a lousy way to spend a saturday afternoon.

    --

    News for Nerds. Stuff that Matters? Like hell.

  187. Re:There are more anti MS Linux Zealots than anti by Anonymous Coward · · Score: 0

    LIKE I SAID BEFORE, VBA IS NOT FUCKING AVAILABLE UNDER LINUX. Its windows people doing it to themselves fool. They kill their own.

  188. You guys just don't get it by Dacmot · · Score: 1

    Reasons why Unix Operating System rarely get attacked (note: none of these mention unix being invulnerable)

    1. File Permissions. On windows anyone can install software. Try doing that in other places then /home/$u when you're not root in Unix. Quite a bit harder.

    2. User friendliness. Even though the unix command line is generally easier to use than DOS, it's still not very welcoming. Or try telling a BDU (Brain Dead User) that ed, the standard editor, is better than M$-Word. 24 bytes program baby!

    3. Respect and Time. Respect because most Unix users won't try to hack another's machine. If they do, they'll notify the user and the developper for who's software they found a hole in. Time because it takes less time to hack in a windows box than a unix one so why bother... we're all lazy :o)

  189. A *real* use for viruses and worms... by Anonymous Coward · · Score: 0

    Why don't the same people who waste their talent attacking domestic web sites use their energy to attack Islamic web sites? You can still prove your talent and do the world a favor at the same time! Show those Islamic fucks a thing or two.

  190. Preditors by Delor · · Score: 1

    Just a few thoughts..

    I think that these worms are doing some things that no-one has touched on yet... in a more abstract sense.

    1)Firstly they are keeping microsoft software at the top of the news in just about every country where it counts.. (Can you say mindshare?).

    2)They are testing the software. In biological terms... an organism has to out evolve its preditors... or it gets wiped out. So far microsoft is winning.

    3)They are testing the infrastucture and personel. Quite a few systems admins in microsoft shops will be getting a lot of disaster managment experience out of this. And I am sure they will be getting to know the inner working and configuration options a lot better.

    Linux could learn a lot from this.

    As I see it... the organism with the most potential preditors is going to be the strongest!
    Where is the stable of linux viruses?
    Obviously there are reasons.. lack of market share being a major one...

    So here are a few ideas for linux...

    Rather than closing linux up and putting more firewalls inplace... open it up and allow any weak software to be exploited...

    Start competitions to write Linux viruses

    Remember .. free testing by serious geeks!

    Start a page where all the distros are rated for their tolerance to virus and worm attack.

    Build a server that runs every know virus for linux and set it so people can submit their box to it for testing... Should make sure all the older software is replaced and patched!

    We have to remember that the internet and any network in general must be considered a hostile place... there is no point building a firewall between the company intranet and the "wild" internet. Then pretending you can trust everyone inside the firewall and thus relaxing your standards...
    Firewalls are a red herring!
    If there are no disaster management procdures and no regular testing of both system and personel... you are kidding yourself.

    So think about some of the value in using worms and viri as a system test tool... shame there are more for windows than linux isnt it.

    But most of all make the system stronger!

    --
    "... every time I open my mouth some of my stupid escapes!"
    1. Re:Preditors by I_redwolf · · Score: 1

      That analogy does not work; The organism with the most potentional predators in any enviroment makes itself immune or dies off. Unix is pretty much immune to such things already thats why you don't see as much worms, virii etc. So a flu for windows is a sneeze for Unix. You should read more about what you are talking about, I'd recommend a book by "Laurie Garett" on future biological organisms that will keep trying to kill off the human race. AIDS just didn't pop up.. it was a virus spawned by nature that can effectively kill us. We are behind the 8 ball now so mother nature is pretty much in the lead.

  191. But here is one good point, by Anonymous Coward · · Score: 0

    I don't have to reboot my new Linux (or OpenBSD or FreeBSD) servers to patch them.

    Building out a new and cleanly installed NT/Win2000 server can take upwards of 15-20 reboots just to get to a stable platform to begin working with.

    To apply three hypothetical Linux patches in one day, six hours apart, would take less than 5 minutes total time and require no reboots. NT would require probably 20 minutes (if local to server) and **three reboots**. That gets old.

  192. PLEASE by Anonymous Coward · · Score: 0

    Please don't say "UNIX" and then put the linux penguin up next to it. That's almost as pathetic and misleading as "(small print)red hat (huge print)LINUX 9.0".

  193. Did everyone forget about Sadmind by twolfe · · Score: 1

    ...Or is it just that people don't count Solaris as Unix? Sadmind spread itself by scanning for a known vuln, just as Code Red did. It just happened to also attack IIS servers.

  194. It's bound to happen! by Jill+Bates · · Score: 1

    One day, Linux desktop is everywhere, Mr. John Doe, being one of the billions happy Linux user, used kdesu to install a very popular game sent from his good friend Bob, called "Shoot ya boss!". Apparently, this game is just what it says but underneath, besides providing entertainment to our dear John, it will also go through all the files in John's Linux desktop for every email address it could find, then assuming John's identity, send to some of those emails containing a copy of this game with a sincere message, and the others a random copy of John's collection of files asking for "advice". As it happened, the game also is setuid root and starting sniffing John's (and probably now many other victims') network for anything interesting, and of course, a backOrfice is also installed for the sake of convinience...

    Who dares to say this *won't* happen?

  195. File permissions will not work unless by Jill+Bates · · Score: 1

    Unless users stop using the root account or equivalent as their user account.

    Why? Traditionally, PC platform allows users to change the system, applications settings at will, including installing and uninstalling masses of applications and gadgets. *IF* Linux/Un*x are to be their next desktop, then one day, I believe, the above criteria must be matched, or will be made to match, by the user.

    You'll see the problem is if you are to allow the user such as freedom, then virii/worm infection are bound to be happened, even with decent security protection *available* on every Linux/Un*x boxes - If security gets in the way of letting people doing what they want to do, people are just going to turn it off for good.

  196. Blank passwords? by kimihia · · Score: 1
    Encourage users to use blank passwords for desktop use, and then make it possible to login in only from the console when your password is blank. This applies to root, too. Since it's convenient, people will do it - and if it's impossible to log in remotely when a user has a blank password, it's secure, too.

    Can you expand on this anymore? I don't understand your logic at all.

    If someone wants a remote root shell on my machine they'll need to have root's private SSH key. Even if they know the password is "hottomatosoup".

  197. history of worms in unix-type systems by winterlion · · Score: 1
    Be aware that the height of worms in the unix
    systems was in the 80s... there's a lot higher
    eye on this form of hole in most mail systems
    under linux. Sure a weakness could creep into
    a popular system like sendmail (and has before)
    but personal observation suggests that any kind of
    wide-reaching worm is less likely to affect the
    somewhat heterogeneous linux market...


    What linux (and similar systems) lack actually is
    the "aggressively 'intelligent'" approach to email such as exchange uses - runnable scripts within email tend to be limited...

    1. Re:history of worms in unix-type systems by I_redwolf · · Score: 1

      Running scripts in email is a dumb approach to email. People read email it's a text message.. you send a text message to another person and they read it. How scripts fit into that equation is a mystery to me.

  198. There are unix "worms" by Ryan+Amos · · Score: 1

    I've been hit by a "worm" under Linux. Basically, it was less a worm and more just an automated exploit system. The program would scan boxen for an older bind exploit, and if found, would gain entry, backdoor the box, install itself (and the necessary trojan rootkit) and start scanning some more. It was hardly intelligent (just a shell script and some script kiddie sploits) but it worked.

    The reason these aren't as prevalant under Unix is the fact that it's hard to push a precompiled binary when there are so many flavors/architectures of unix. Under windows, a single hacked DLL will work on all x86 Windows boxen (which a vast majority NT boxes are) where under Unix you have Linux, *BSD, Solaris, AIX, HP/UX, etc, most of which run on several different architectures which are not binary compatible. You can't even rely on shell scripts or perl because you would need the right versions, etc. The lack of solid standards under Unix, while a curse at times, is in this case a blessing.

  199. Single rock-solid point of failure by roystgnr · · Score: 2

    In any auto-update system, there is a single point of failure... but it is not the server that hosts the update packages, it is the computer that signs the packages! If you compromise the file server, you can destory the signed packages, but you cannot insert your own malicious packages without compromising the computer with your OS provider's public key.

    And this signing computer can be ultra secure. It doesn't have to be on the network at all; a CD writer would be sufficient. It doesn't have to be running an architecture or operating system remotely related to anything else, just something capable of running GPG. You could have it loaded to the brim with intrusion detection software, you could have the entire OS on read-only media, you could do all sorts of things that just can't be done on all the random computers out on people's desks.

    Auto-updating does introduce the possibility that a malicious employee could introduce trojan packages... but they could be doing that right now, just as easily, just a little more infrequently. "seineew era sreenigne epacsteN", anyone?

  200. Virus/Worm writers are smarter than that... by sheldon · · Score: 2

    Nimda was sort of a best practices of Virus/Worm writing, because it had the behavior of both.

    It would infect executables, or web files. It could spread by the infected executables on shares, or by people browsing to infected web servers using old versions of IE. It also tried to scan the network looking for vulnerable IIS servers, as well as trying to email itself the same way Sircam did.(i.e. it included an SMTP piece)

    The point is that it was written to try multiple vectors of attack, such that it's chances of finding a vulnerable machine were much higher.

    The only thing that slowed it was that the Code Red incident had caused many, if not most, people to install the latest patches on their machines.

    Another example, the sadmind worm effected both IIS and Solaris boxes.

    I guess the point is, try to build diversity and the world just builds a better worm/virus writer.

    P.S. The cluefulness of the general Linux administrator is actually pretty low as it tends to be primarily popular with inexperienced college students.

    It also doesn't take much work at all to effectively admin an NT box. But most NT admins also have other priorities put upon them by their corporate bureaucracies.

  201. What should a person do about something? by GreyFauk · · Score: 1

    I've discovered a potential security hole
    that exists in about 45% of all linux machines.

    It's massive... potentially destructive to linux
    and at this time with the available tools could
    be used to do many many many things to a linux
    distribution.

    Data collection.
    Random destruction.
    Introduction of trojan virii.

    The list goes on.

    I'm actually afraid to say anything because
    it's not an easy fix at all.

    Who do I contact?

    --
    Friends don't let friends buy Compaq's. (Dell/Gateway... same same) You want a good computer? Build it yourself.
  202. worried? yes - about WINDOS worms by Tom · · Score: 1

    I'm very worried. even though I'm using free systems exclusively, I am *still* a victim of the various microsoft worms.

    all of my systems - both online system and the ADSL home machine - are constantly hammered with windos attacks. large parts of the net were noticeably slowed down during the recent worm attacks and at my day job, windos worms take up a considerable share of my time even though we don't use windos for anything serious (some office communication, but all the servers in my department are solaris or Linux).

    I'm very worried that something (the windos OS) can be so widespread AND so vulnerable that even those who don't use it are affected by its unbelievable shortcomings.

    worm authors: in the next one, please include a function that'll shut down the windos machine. put it into the autostart folder. instant internet cleaning. idiot-free net for a week or so. :-)

    --
    Assorted stuff I do sometimes: Lemuria.org
  203. Secure linux systems by dannys42 · · Score: 1

    I've often thought that all daemons/services running on a system should run in their own chroot'd environment when available (not just ftp). Everything from mail to pop to echo.

    Also, every service app (preferabbly all apps period) should be distributed with a list of what system calls it's allowed to perform and what files/directories it's allowed to read/write from/to. Likewise, all distributions should be based off of NSA's SecureLinux to take advantage of this list.

    On a semi-related note, I'd even like to see a system where the entire chrooted environment is encrypted. Only services allowed to access these directories are given the secretkeys/tokens (maybe something kerberos-like) that allow them to read/write to these diretories. This would allow for systems where even the system administrator may not be trusted by users (to the extent that the sysadmin didn't modify the kernel, anyway).... for example if the secret key for a user's home directory is their password... then only the user, when he logs in, will be able to decode his files.

    All this of course isn't a replacement for good programming practices. But I think it's a good failsafe, in case the usual measures don't stop the bad programs.

  204. Here's how by Walles · · Score: 1
    I like to be notified about updates, but I want to install them myself. To achieve this I've put the following script in /etc/cron.daily:

    #!/bin/sh

    # Keep the apt cache current
    apt-get update > /dev/null

    # Update the dselect cache from the apt cache
    TEMPFILE=`mktemp /tmp/apt-update.XXXXXX`
    apt-cache dumpavail > $TEMPFILE
    dpkg --update-avail $TEMPFILE
    rm $TEMPFILE

    # Remind admin to keep the system current
    apt-get dist-upgrade -u --trivial-only

    The possible downside of this script is that you'll get notified whether there are any updates available or not. I think that's good (I like getting informed about that the script is still working), but others may not like this.

    Cheers //Johan

    --
    Installed the Bubblemon yet?
  205. multiple worms of similar type would be impossible by bwhalen · · Score: 1

    Given the open source community's focus on fixing discovered problems, quality, and the like, I am really not worried about worms/virii. Hacks/attacks of services, those I sweat a little more..

    --
    Where do you want to be, What are you doing to get there.
  206. We already have had those by Anonymous Coward · · Score: 0

    In the 70s, the Morris worm, remember.

    But, unlike Microsoft, we learned. There haven't been because we've realized that security is not point-and-click but actually takes brains to implement.

  207. RSBAC by 21mhz · · Score: 1

    There is the very cool Rule-Set Based Access Control System, which allows you to erect any access control model you can think of (and write a module for, if it's really custom).

    --
    My exception safety is -fno-exceptions.
  208. Re:It's trivially simple to protect against... by shani · · Score: 1
    It may seem trivial problem, but it is actually very hard to solve in practice. The C string API is simply poorly designed -- it is way too easy to mess up. It's not a matter negligence, people are human and make mistakes; thinking good programmers are exempt is pure hubris.

    And beyond the problems with the C API, buffer overflows or other related memory problems are possible if a coder makes any mistakes concerning pointer arithmetic, array sizes, printf()-style formatting, sign mismatch on arithmetic, etc, etc.

    The fact is that C is just not a good language for writing secure applications (or indeed, most any applications, IMHO).

    Nevertheless, until a mature alternative is available (probably Java, although it is only a marginal improvement), secure applications must be written in C, because while C does not provide you any help in terms of reliability or security, it is at least possible to insure that your application is safe if you are willing to expend the effort in design and follow the current best common practices for writing secure applications.

    Please do use chroot(), setuid(), and drop permissions though. ;)

  209. Uh, there weren't no Windows servers back then by leonbrooks · · Score: 2
    And no MS-DOS to speak of connected to the 'net. One of the few epidemics that Microsoft weren't to blame for. (-:

    I guess disconnecting every Unix box from the net would solve the problem in that very few Unix boxes would get worms. Of course, not having a working internet anymore could be a bit of a handicap, sort of takes the sting out of not being able to connect to it...

    --
    Got time? Spend some of it coding or testing
  210. One-shot self-defense ``worms'' already exist by leonbrooks · · Score: 2
    What I think would be interesting, is a Linux worm that used a security hole to get into a box

    I've seen several reactive programs on FreshMeat which respond in various ways to attacks like CodeRed (finding and emailing the administrator is typical), and similar PHP packages released through various sites.

    I've also seen several which fight back (note the lack of URLs at this point) and one system which uses spare machines to absorb TCP connects from infected hosts and keep them alive to gobble up sockets on the attacker and lock down the attacking threads.

    It wouldn't be a big step from there to send back a payload which locks down the attacker, which then waits to be attacked so it can respond in turn.

    --
    Got time? Spend some of it coding or testing
  211. Lurn to rite. by sfled · · Score: 1

    I work as web dev. & sys admin. at a magazine publishing house. Before I run any content on the site I send it to an editor. Hey, the grammar,syntax, spelling and style are important whether you're writing for silicon or carbon based interpreters.

    --
    I'm not really a web designer, I just play one on the Internet.
  212. Re:There are more anti MS Linux Zealots than anti by Anonymous Coward · · Score: 0

    Well you seem to have a great deal of knowledge as to the origin of all of the windows exploits. You must be a 'real' expert. Consider this, as tech support for a major Canadian ISP, I daily talk to people with infected IIS machines, they have NO CLUE what IIS is or if they are running it. Should they be running Win2K or NT probably not. Should IIS be running by default on their machines? definitly not!!

    Code Red and Nimda are easy exploits because Microsoft does little to provide security in their OS's or any of their work. MS focuses far too much on glitter & glamour.

    Your 'Case In Point' itself further goes to show the ineptitude of MS with repsect to security. _IF_ Nimda (which appears to be) is a slightly modified version of Code Red, then what did MS do with their 'patch' obviously not much. If MS gave half a damn about security Nimda would NEVER had existed.

    If you spent half a day 'cleaning' your friends machine, did you spend even half a minute teaching them about security of their now 'clean' machine? Is it still running IIS? Did they even know it was running? Why if they are not competant enough to clean their own machine are they using W2K? Did you 'give' them a copy to try out? Do they still open executable e-mail attachments? Is Windows Scripting host still available to Outlook or Outlook Express? After cleaning their machine did you then visit 'Windows Update' to apply other neglected security patches? If you are acting as sysadmin for them now, were you then a negligent sysadmin prior to their system being infected?

    You might consider how revealing your comments can be about your own level of intelligence, before posting.

  213. inetd by CentrX · · Score: 1

    What's old, clunky, and insecure about inetd?

    --

    "The price of freedom is eternal vigilance." - Thomas Jefferson
  214. Re:There are more anti MS Linux Zealots than anti by t0qer · · Score: 1

    2 comments you made really stuck out.

    >>Why if they are not competant enough to clean their own machine are they using W2K?

    First off, mr. phone jockey, this friend is a med student, not a CS student. Tell you what, next time your bleeding from the gut, just ask one of your tech support buddies to fix you up.

    >>You might consider how revealing your comments can be about your own level of intelligence, before posting.

    You might consider what shame you bring down on your country by leading into the canuck stereotype of "All canucks are egotistical assholes"

    Actually, a Kids in the Hall skit said it best, "Without your queen, your just americans" I think you hit your head one too many times with a hockey stick you hosehead.

    Anyways, slashdot is a democracy, and protected by free speech, we're supposed to comment on articles, and each others post. Not throw personal insults at one another.

    --toq