Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is old news, obviously. It's worth pointing out that as good as the code appeared to these reviewers in 2004, between then and now, Microsoft underwent a sea change in code-level quality control. Windows is now likely to be the best reviewed, most rigidly compliant code shipping on the market:

* Virtually every Microsoft senior developer has been trained on software security

* All shipping code is checked in-house, including some homegrown static analysis tools

* Most shipping products have had line-by-line source code reviews done by at least two different firms (we did some of this work for Vista).

During the Summer of Worms in '03, when Microsoft security lapses were front-page material on CNN, Bill Gates told the press that Microsoft was going to totally overhaul security and code quality. They weren't kidding. Microsoft now outspends everybody on that.

Note: I'm a Mac person.



Amazing how people can only say anything favorable about Microsoft if they hide behind the guise of a competing company. God forbid a PC guy had this opinion.

Up voted none the less.

Note: I'm a Mac and a PC person.


In any topic that arouses people's passions, I find that if I want to say something nice about hated group X, then if I don't identify myself as a non-X, then people dismiss what I say as another one of those "damn X-ers".

It's irrational, yes. But that's human nature for you.

What's surprising, and perhaps sad, is that operating systems have aroused people's passions so intensely that it has become one of those volatile topics, like the canonical religion and politics, that one must treat very carefully, and certainly not bring up at dinner.


What's surprising, and perhaps sad, is that operating systems have aroused people's passions so intensely...

People look to form tribes using whatever brands they can - be they personalities, cars, clothes, or programming languages.


We all want somewhere to belong. The world is a cold, dark place on your own.


If I don't say I'm a Mac person, people say I'm a shill. It's also just the truth --- I don't want to imply I like using Windows (although I like Vista more than I like XP).


To me it wasn't the "Mac person" comment that convinced me of the point. Just the thoughtfulness that was apparent in the post. There was mention of facts, and it obviously wasn't a rant.

Kneejerk "Microsoft rules" or the opposite should be downvoted, even if followed by "I'm a Mac person". I'd like to think that's what would happen as well.


Most shipping products have had line-by-line source code reviews done by at least two different firms (we did some of this work for Vista).

I'm impressed. You probably can't tell me, but just in case... how much do you charge for this?

Considering how many LOC there are in Vista, either you're far cheaper per LOC than I expected, or Microsoft put up a huge amount of money.


If someone ever writes a proposal for you priced by the lines of code, run in the other direction. It's one of the big scams in our industry, the "oh, we'll just scope the project directly off your estimated line count" thing.

Our practice focus is on code-assisted penetration testing; in other words, we'll read your code, but mostly to get a sense of what it does and how it's articulated. Then we'll write software to beat the shit out of it.

The nice thing about this is, projects are scoped by what the code does, and how exposed it is to attack, not by some arbitrary number.

I'd love to talk about the specifics of what we did for this customer, but I'm only able to say "Vista" because Microsoft publicly said we worked on it.


Note that there's a limit. They're not willing to do what ubuntu does for security eg add a repository, remove wga, release analysis tools, etc.


I think you could make that argument but you'd lose. To an extent not well covered in the trade press, a lot of the pain in Vista --- an epic flop --- was due to tradeoffs Microsoft made for security and against end-user happiness.


1) Pissing off users with no choice is one thing. Promoting open source is another.

2) None of the examples I gave go against user happiness, quite the opposite really. If you think something should be painful, you're less likely to notice when you're doing it wrong.


I don't know what you're trying to say here. I'm saying, if your argument is that there's a limit to how far Microsoft will go to ensure system security, and that limit is lower than the limit mainstream Linux will go to, you're likely to lose the argument. I can point to places where Microsoft has surrendered tens of millions of dollars to combat individual C code security flaws.

So let's stipulate that neither of us want to piss off users, neither of us are vouching for Microsoft's long term strategy, and neither of us are arguing against open source. We're not talking about whether you should use Linux or you should use Microsoft.

We're talking about, this is what it looks like when a company redlines security and code quality. Many of us have companies that ship code. It's worth knowing what the ends of the spectrum look like.


But if Microsoft will go to such huge lengths... are they actually more secure than Linux? Or are there lengths that they won't go to, no matter how much they spend?


I'm just going to say that when you slip a major release date for a multi-billion-dollar product by several weeks just to go back through all your code to see if there were any integer overflows that you might have missed, after somebody points out a new code pattern that might lead to them, you've firmly established yourself at one end of the spectrum.

I simply don't believe that any other team, open source or commercial, would do something like this. I've seen too many of both kinds of teams blow off actual documented vulnerabilities to think that they'd hurt their own progress to chase down hypothetical ones.

The rest of the discussion is academic to me. By all means, use Linux. We do for our Rails app. Hooray for open source.


And the process where developers submit their patches to a mailing list and they are reviewed by people above them is what?

A code review.

You can't measure Microsoft's expenses against the expense of developing Linux. Linux was not cheap to make either - just the time is distributed across a lot of books instead of one set.


I'm not even a little bit interested in getting into a religious argument with you, but I will take a moment to point out that the "code review" that a Linux kernel driver patch receives is nothing remotely like a security code review.


You missed my meaning. I was saying there are things microsoft won't do for security. For example adding a repository would get people out of the habit of downloading random software.

But it might be interesting to find out how much companies spend on security in the linux kernel. IBM, for example, is supposed to have spent billions on linux.


Adding a repository wouldn't alter security even a little. If as many people used Linux as use Windows today, we'd have just as much of a problem with Linux malware as we do with Windows malware.


"If as many people used Linux as use Windows today, we'd have just as much of a problem with Linux malware as we do with Windows malware."

I often hear that argument made and yet in the time I've been using Linux (since 1994) the total number of Linux users has increased by many orders of magnitude but I have seen no corresponding increase in the number of security issues. I think that it's because Linux is (much) more secure by design and process but I guess I'll just have to wait until the apocalyptic Xth user moves to Linux and I start having to worry about viruses, malware etc. to see if I'm right or wrong.


I don't understand why this is so hard for people to understand. There's virtually no Mac malware, either! But it is demonstrably trivial to create Mac malware; in fact, it's far easier to do that than to come up with a new Microsoft vulnerability.

The issue here is simple. People will target Linux when it stops being so overwhelmingly profitable to target Windows. We're nowhere near "peak oil" for Windows malware. It is, as Joel Spolsky points out, just economically irrational to target anything other than Windows.

This is the difference between safety and security. You are indeed safer on a Mac, just like you're safer living out in the country, even if your city house has a serious alarm system and bars on the basement windows.


I can't refute your argument any more than you can prove it to be true which is why I said I'll have to wait for the apocalyptic user to arrive. But if you can demonstrate some Linux malware (trivial or otherwise) it would add a lot of weight to your argument :)


You're serious? It's not enough just to point you to Bugtraq?


Exploits aren't malware. Not in the sense we're talking about here, at least.


What's your point? Malware is enabled by vulnerabilities. Nobody is arguing that Linux has lots of malware. Linux is safer than Windows. But it's not more secure.


> Malware is enabled by vulnerabilities.

I'm not so sure about that. Some malware installs itself by exploiting vulnerabilities. (Not all of it, though - there's plenty of Windows malware that gets installed by social-engineering the user.) But, in order to stay installed, most malware depends on other properties of the OS to conceal itself and stay installed. Windows makes this much easier for a programmer than Linux does.


I know that a lot of people say this, but I don't know a single professional security practitioner who --- when push comes to shove --- actually believes it. I'm not being glib or dismissive, but I'm also not going to argue the point anymore.


They're not willing to do what ubuntu does for security eg ... release analysis tools

Data point: Microsoft released a security assessment tool - they even open sourced it (note: title is misleading): http://it.slashdot.org/article.pl?sid=09/03/22/147202


Wow I guess you CAN fix these problems by just throwing enough resources at it and doing it consistently.


I don't know how we convinced ourselves that money couldn't buy software quality.


/Most shipping products have had line-by-line source code reviews done by at least two different firms (we did some of this work for Vista)/

But Vista was more of a fail I guess.

* I'm a GNU/Linux person


In the market, yes. In security, no.


Microsoft is getting over their failures, but not the lame fanboys. It's clear.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: