Slashdot Mirror


Snow Leopard Missed a Security Opportunity

CWmike writes "Apple missed a golden opportunity to lock down Snow Leopard when it again failed to implement fully a security technology that Microsoft perfected nearly three years ago in Windows Vista, noted Mac researcher Charlie Miller said today. Dubbed ASLR, for address space layout randomization, the technology randomly assigns data to memory to make it tougher for attackers to determine the location of critical operating system functions, and thus makes it harder for them to craft reliable exploits. 'Apple didn't change anything,' said Miller, of Independent Security Evaluators, the co-author of The Mac Hacker's Handbook, and winner of two consecutive 'Pwn2own' hacker contests. 'It's the exact same ASLR as in Leopard, which means it's not very good.'"

74 of 304 comments (clear)

  1. It doesnt matter... by Ontheotherhand · · Score: 4, Funny

    Yeah, but it doesnt matter. everyone knows that apples are immume to viruses and malware. and they look better than ordinary Pcs.

    1. Re:It doesnt matter... by AnalPerfume · · Score: 4, Interesting

      Actually no, they're not. Every Mac has a set list of apps, with a set list of libraries etc. It's a mono culture. Not to mention the fact that Apple are insane about secrecy, so Mac users often don't know if there's a vulnerability even reported to Apple, let alone if Apple are doing anything about it, or when it's due if they are. Notice the common theme of "being subservient to Apple's whims". With Linux anyone can submit the fix, which will then be adopted as needed by all the different distros, and within a couple of days at most it's fixed. Also the fact that Linux is so varied, often an exploit or vulnerability found on one distro may not affect another, or not affect a different DE or WM.

      Let's assume the Mac share is around the same as Linux, both close to 10% which I think ain't too far off. An attacker can plan an attack on something they're guaranteed exists because it comes out the factory that way on every model, identical, with a slow acting vendor so the windows stays open for a while.....or they can plan an attack on a fast moving target that may only affect 30% of machines, and the window of opportunity will be gone within a day of it being noticed.

      Both Mac and Linux users tend not to run any protection software like Windows users NEED just to have their system stay alive till lunchtime, so any infection if successful will likely go unnoticed. Both Mac and Linux users often feel their systems are immune. In the case of Mac users, the people who can afford Macs have money (or at least HAD money before they bought their Mac) so combined with a blind spot for self protection they should be a ripe juicy target. Yet, apart from the odd story like this one which is self inflicted by Apple, it's still rare.

      OSX is UNIX, which is a HUGE advantage over Windows, but the closed Apple mono culture prevents it from being used to it's fullest.

    2. Re:It doesnt matter... by jellomizer · · Score: 2, Insightful

      Most Linux distributions seem to run a good set of Core Applications that are relatively common across the distributions, and many ways a lot of tiny security holes that are not always designed for full security and expecting the security to happen the next level up but they don't necessarily know who that is and what exactly it does as in theory it could be different. So when there is a glitch there is a bunch of finger pointing as there is no mono-culture who is interested in making the overall product better but just one piece of it. So often the security fix doesn't fix the core issue just a stop gap somewhere in the line. And if that module was replaced with an other then it could happen all over again. Also there it little to tell if a security fix will end up failing some other app down the line. So the open source model isn't fool proof either. And that is without the valid argument that it is easier for a hacker to see the code and know where exactly to strike, as Module X wasn't designed to handle such security conserns.

      Lets combine that most people don't update their Linux boxes as quickly as Macs or Windows too. As Linux is a server OS and for the most part it will just kinda sit there in the background without much looking at it and as long it is running things are fine. I have seen Linux Hacked more often then Mac because of that fact. They just kinda do its job and we expect and while it is doing its job we don't check on it. Until it is to late.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    3. Re:It doesnt matter... by techess · · Score: 2, Insightful

      Are you kidding! In my mind Carter is the most remarkable & memorable president ever. Not only did he see a UFO, but he was attacked by a vicious rabbit that swam out to attack him while he was fishing.

      As a president though you are right, Jimmy Carter is the meh of presidents.

      --
      Don't anthropomorphize computers. They *hate* that.
    4. Re:It doesnt matter... by cerberusss · · Score: 4, Insightful

      A big post full of ifs and coulds. But I guess because of the size, it's modded up.

      So when there is a glitch there is a bunch of finger pointing as there is no mono-culture who is interested in making the overall product better but just one piece of it.

      RedHat, Canonical, SuSe, Debian, et cetera have not written all software that make up that distribution, however, their core reason for existing is that they take responsibility for the overall picture.

      So often the security fix doesn't fix the core issue just a stop gap somewhere in the line.

      Care to give examples?

      And if that module was replaced with an other then it could happen all over again.

      Just like other platforms.

      You'll have to do a lot better than that.

      --
      8 of 13 people found this answer helpful. Did you?
    5. Re:It doesnt matter... by brkello · · Score: 3, Informative

      Huh, your post makes it seem like you know what you are talking about but I don't really think you do. There are multiple ways to exploit OS's. Just having privilege escalation doesn't solve every security problem. ASLR is a technique that addresses a specific vulnerability that allows you to get arbitrary code execution. This is just one of many techniques to gain root and ASLR (as far as I know) is the most effective way of addressing this issue. There are some issues with it but it isn't really a performance thing, more of a compatability thing and being used uniformly by the applications.

      Should Apple implement it? If they want to be secure, then yes.

      Quite frankly, Macs are more secure against certain classes of attacks. Making a global statement about it being more secure is wrong, though. Macs enjoy being less of a target since they are a small number of them out there. To think they are safe is pretty naive. The guy has proved multiple times he can hack them without much trouble.

      --
      Support a great indie game: http://www.abaddon360.com
    6. Re:It doesnt matter... by sbeckstead · · Score: 3, Insightful

      Macs enjoy being less of a target since they are a small number of them out there
      This is still a myth, why waste effort on a system that is inherently harder to crack when low hanging MS fruit is still available. Even when Macs make up more of the market it will still not be that big or easy a target. Popularity has very little to do with why a system gets viruses or there would not have been as many viruses for the old Mac systems and there were a shit load of them for OS7, 8 and 9.

    7. Re:It doesnt matter... by AnalPerfume · · Score: 2, Informative

      This is not about being able to install apps, or setting a Mac up to do things. It's about someone with malicious coding intent knowing that by examining ONE Mac and writing their app to exploit a file that came with it, be it a library file, a bug in a config file, or a tweak to something like Safari. They can rely on EVERY Mac having those files installed, configured with the same exploit. Even if you install and use Firefox, do you remove Safari? What about iTunes? Even assuming you do that with the applications, the culture still exists for the stuff under the surface that you can't remove.

      By comparison, if someone finds an exploit in Gnome in Ubuntu, for the short time that the window is open, it may only affect Gnome, but in other distros. It may not affect Fedora because of the way Fedora package Gnome. People who don't use Gnome at all won't be affected at all. If you find an exploit in Firefox on Fedora, it may affect every Fiefox, it may not for the same reasons, the distros package their own, often with their modifications. Those who don't like Firefox don't have it installed and are not affected.

      Updates are going on all the time from both the distribution end and the upstream end which means that there's every chance someone else will spot the exploit you have, and patch it before you can get your malware written and deployed. Linux is a hugely diverse setup, which makes it a small moving target. You're not going to waste your time trying to hit that, specially when it all the development happens in the open.

    8. Re:It doesnt matter... by dave562 · · Score: 2, Informative
      Popularity has very little to do with why a system gets viruses or there would not have been as many viruses for the old Mac systems and there were a shit load of them for OS7, 8 and 9.

      You have to remember that the old OS7, 8 and 9 systems WEREN'T connected to the internet. Also, virus writers in the 1990s were writing their virii in x86 ASM code. The Macintosh computers were running Motorola processors. In this day and age, the people writing serious security exploits are criminals and governments. They want money. They want information. What information is kept on a Mac that anybody cares about? Some InDesign files? Oooooo yeah, there's a real huge market for stolen graphics files. Maybe someone has the OSX equivalent of Quickbooks? Yeah, that's a real gold mine right there. Until OSX is running ERP and financial systems, very few people are going to bother to target it. The payoff simply isn't there.

    9. Re:It doesnt matter... by rainmaestro · · Score: 2, Informative

      Yup, when it comes to servers, the admin is more important than the OS. If the admin knows what he's working with, he can keep even the worst OS more or less secure.

      We had a similar issue at work. Our servers were all working off a group policy that allowed AU. It was set up that way long before I started there. Sure enough, AU took down the mail server one day while forcing a reboot after a patch. Lesson learned.

      The biggest threat to security is an admin who isn't intimately familiar with their systems. We've all been there at least once =)

    10. Re:It doesnt matter... by mjwx · · Score: 3, Insightful

      This is still a myth,

      No it isn't. Malware is big business now and you don't make money by targeting niche markets.

      why waste effort on a system that is inherently harder to crack when low hanging MS fruit is still available. Even when Macs make up more of the market it will still not be that big or easy a target.

      And this is why OS X was the first target to go down at the last two Pwn2Own competitions? Safari too at the last P2O. But as I said, malware and hacking is all about money these days and this is pretty much the only thing keeping Apple safe. Apple commits the same security sins as Microsoft, security through obscurity, encouraging bad user behaviour (no passwords) and go a bit further by denying current vulnerabilities and bugs (MS do issue warnings about known vulnerabilities) then attempt to silence those who speak out.

      The fact that all Mac machines are practically identical means that if an Apple virus is ever released into the wild it will be much easier to infect more machines, it also means that malware authors can target drivers as all Mac hardware will be using similar drivers. The only reason this hasn't been done yet is that no-one will make any money by targeting 3% of the worlds computers. Linux is a bigger target because Linux can be found on many more servers which make for better spam/botnet hosts. In the world of botnets for hire popularity has everything to do with it as the size of a botnet directly relates to the size of the paycheck.

      --
      Calling someone a "hater" only means you can not rationally rebut their argument.
  2. Surely this is only of any use to a hacker if ... by Chrisq · · Score: 4, Insightful

    Surely this is only of any use to a hacker if they manage to run in "ring zero" anyway. Otherwise wouldn't normal page protection stop them. Am I missing something?

  3. This article sucks by datapharmer · · Score: 2, Interesting
    This article reads like a PR release for Vista a couple years late:

    Even so, Miller said, Apple made several moves that did improve Mac OS X 10.6's security. Two that stand out, he said, were its revamp of QuickTime and additions to DEP (data execution prevention), another security feature used in Windows Vista.

    DEP has been around for a long time and has been in XP since at least SP2.

    "[the quicktime rewrite] was really smart, since it's been the source of lots of bugs in the past."

    bugs != security failure (although they can cause one... the bad math issues in excel 2007 aren't particularly exploitable, just annoying)

    --
    Get a web developer
    1. Re:This article sucks by T+Murphy · · Score: 3, Insightful

      To be most objective they have to compare to the newest commercially available Windows version, so they just refer to what Vista has without implying whether it started in Vista or not. If anything, adding "Windows had this feature since XP" would sound more of a MS bias than "Vista has this feature".

    2. Re:This article sucks by BlackSnake112 · · Score: 2, Interesting

      If you are trying to get as much money as possible which would you do:

      A)Write a program to get control of 90%+ of computers in the world

      B)Write a program to get control of 3-5% of the computer in the world

      Why would people trying to make money even go after the smaller amount of computers? Plus a lot of people hate microsoft. Any company that is against mocrosoft they will leave alone.

      By the way, if OSX is so secure why am I rebuilding OSX machines at work since those machines are actively attacking other machine in the network? The user is not a hacker or programmer. OSX has exploits. The easiest way to get them installed is to prompt the OSX user to enter in their password. Which is exactly how these OSX machines got hacked. The user just went to a website, the prompt popped up to enter in their OSX password. The users just entered in their password since "OSX has no virues, OSX is safe". That way of thinking has to stop.

  4. Two week old "news" by Anonymous Coward · · Score: 5, Informative

    The summary alleges Miller said it "today". Except he didn't.

    The article linked to is dated September 14, which means he allegedly said it 2 days ago. Except he didn't.

    He actually said it *two weeks ago* on August 29th.

    Wake up, editors!

  5. He'll stop complaining when... by necro81 · · Score: 4, Insightful
    FTFA:

    Miller said. "Snow Leopard's more secure than Leopard, but it's not as secure as Vista or Windows 7," he said. "When Apple has both [in place], that's when I'll stop complaining about Apple's security."

    Call me a cynic, but I somehow think he, and everyone else that looks at OS security, will still find things to complain about. The tech blog and journalism industry depends on it!

    1. Re:He'll stop complaining when... by Animaether · · Score: 3, Insightful

      Call me a cynic, but I somehow think he, and everyone else that looks at OS security, will still find things to complain about.

      Isn't that human nature? Well, some humans' nature, anyway?

      Such as...
      >> Gates foundation to donate $2.5B to cancer researh
      > BOO! HISS! HE'S JUST USING IT AS A TAX WRITE-OFF AND AS INDIRECT GOOD-WILL FORMING PR FOR M$!!!!!

      *shrug*

      If, in the end, it makes OS X an even better operating system, then I say to the tech blog and journalism industry: complain on.

  6. Justified praise by Chrisq · · Score: 4, Informative
    From Address space layout randomization:

    Microsoft's Windows Vista and Windows Server 2008 have ASLR enabled by default, although only for those executables and dynamic link libraries specifically linked to be ASLR-enabled.[citation needed] This did not include Internet Explorer 7 on Windows Vista prior to Service Pack 1; ASLR and DEP are both disabled for application compatibility purposes. Newer versions, including Internet Explorer 8, enable these protections. A registry setting is available to forcibly enable or disable ASLR for all executables and libraries. The locations of the heap, stack, Process Environment Block, and Thread Environment Block are also randomized. A security whitepaper from Symantec noted that ASLR in 32-bit Windows Vista may not be as robust as expected, and Microsoft has acknowledged a weakness in its implementation.

    It appears that only OpenBDD and some hardened Linuxes (not mainstream distributions) have a complete implementation.

    1. Re:Justified praise by gabebear · · Score: 2, Informative

      Microsoft's does appear to be much better, but hardly perfect...

      The pwn2own article mentions the Win7/IE8 ASLR/DEP vulnerability that was patched before the final version of IE8 was released http://dvlabs.tippingpoint.com/blog/2009/03/27/pwn2own-ie8-exploit-foiled-is-the-browser-finally-secure . Evidently the hack still works if launched from an intranet.

  7. Re:Oops by Anonymous Coward · · Score: 3, Informative


    "Microsoft perfected nearly three years ago"

    OpenBSD has had this for many, many years. Microsoft used the OpenBSD code as a starting point for their own product. Love the BSD license!

  8. Re:Intellectual Property by Anonymous Coward · · Score: 3, Informative

    OpenBSD has been using these techniques a lot longer than Microsoft has, so I suspect that there is not (yet) an issue of patents to be licensed.

  9. It will cost them at some point by MikeRT · · Score: 2, Interesting

    Security researchers and various crackers have been saying for a few years now that OS X hasn't implemented a lot of security features that even Windows has. Each release, OS X gets a little better, but they are relying mainly on people wanting to break Windows more than OS X.

    With snow leopard, they had the perfect opportunity to make a release that focused on performance and security over bells and whistles. It's modestly faster on my MacBook Pro, and I think most users would have gladly paid under $30 for an upgrade that just focuses on the internals to get more out of their system. Since most Macs cost at least $1100, $30 is nothing for an average Mac user.

    1. Re:It will cost them at some point by bhima · · Score: 3, Insightful

      As a long time Mac user, I completely agree with you. I have long thought Apple did not take security seriously or at least did not devote the resources they should on security matters. Worse, I absolutely do not want to go through a decade of painful and annoying security problems (like the windows users went through) before Apple begins to put real effort into security.

      On Snow Leopard, I've told everyone in my family to ignore Snow Leopard until some convenient time after Christmas or so. There's not much in it for regular users and I am not aware of a single application that really leverages the new technology found in Snow Leopard... so there's no rush upgrading.

      Oh... one last thing: Wasn't OpenBSD doing this long before windows?

      --
      Nothing in the world is more dangerous than sincere ignorance and conscientious stupidity.
    2. Re:It will cost them at some point by dkf · · Score: 4, Interesting

      As a long time Mac user, I completely agree with you. I have long thought Apple did not take security seriously or at least did not devote the resources they should on security matters. Worse, I absolutely do not want to go through a decade of painful and annoying security problems (like the windows users went through) before Apple begins to put real effort into security.

      To be fair, Apple have focused much more on the user-facing side of the security problem. There's just much less likelihood of a user installing something bad by accident. Deliberate badness is a problem (always) but by reducing the problem with accidents, real on-the-ground disasters are lessened. (It helps that Mac applications are really directories, and so aren't quite as simple to start from some website by accident, and their filesystem-level metadata that marks downloaded things with where they came from also makes a difference.) Which isn't to say that the other techniques are a bad idea; defense-in-depth is the watchword. But true high-quality security solutions need to address many levels of problems, including both system-level ones and user-facing ones.

      Oh... one last thing: Wasn't OpenBSD doing this long before windows?

      I believe so. It sounds like the sort of thing they'd do...

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
    3. Re:It will cost them at some point by Tom · · Score: 2, Insightful

      Security researchers and various crackers have been saying for a few years now that OS X hasn't implemented a lot of security features that even Windows has.

      I largely tend to think of it as "security buzzwords that even windos has".

      There's a lot of them in the newer releases. But the overall questions we have to ask is whether or not it makes the system more secure. When your machine gets owned, you couldn't care less for the checklist of buzzwordy "security" features that just got bypassed. Your security was compromised, end of story.

      OS X has less of them. Check.
      OS X also doesn't have many of what I'd call necessary things (MAC, RBAC to name just a few. MLS if done right can also add a whole ton of privacy to your security).

      All around, however, I still trust this OS X more than the windos machine next to it. That's because while it lacks some of the bells'n whisles, it does do the basics right that windos still hasn't done right, or has done horribly wrong (UAC, I'm looking at you).

      --
      Assorted stuff I do sometimes: Lemuria.org
    4. Re:It will cost them at some point by 99BottlesOfBeerInMyF · · Score: 2, Insightful

      I have long thought Apple did not take security seriously or at least did not devote the resources they should on security matters.

      There are several parts to this that are interesting. Is Apple slacking off on implementing new security, or are users like you just not learning about the security improvements Apple has made. Do you remember hearing about when Apple's sandboxing made them just about the only vendor to not be vulnerable to a local service exploit a few years back? Have you ever seen a mainstream article mentioning Apple uses sandboxing?

      That said, at last some of Apple obviously pays no attention to security, but that's normal in any large organization. It would be great if Apple would devote more resources to trying to hack their own OS and applications and then lock down those holes. It would be great if Apple would go whole hog with ASLR and sandboxing and handle auto updates for third party apps and smoke test third party apps on OS X and do a lot of others things.

      So here's why I don't worry too much about security for Linux or OS X compared to Windows. It's all in the motivation. Apple is highly motivated to implement security that is good enough so that their average users are happy. Linux developers have the same motivation. No matter ow the security climate changes, they will quickly adapt because if they don't they're going to lose money. It's the same reason I think security on Windows is so problematic. Sure some smart guys there are implementing some cool security ideas, but as a company MS is not very motivated to fix security because it doesn't really lose them money. It's cheaper to provide the appearance of working towards security or to spend money building more ways to lock in their customers and make it hard to switch than it is to actually create security solutions. Because MS is not really competing due to their monopoly position, they will not be forced to provide effective security by the free market.

  10. Re:Surely this is only of any use to a hacker if . by Anonymous Coward · · Score: 5, Informative

    ASLR makes executing code on the stack quite a bit more difficult, regardless of what privileges the program being exploited may have. Also makes calling libaray functions and pretty much anything in RAM far more difficult for a hacker. Page protection doesn't protect against these attacks per se.

  11. Re:Here they come... by Anonymous Coward · · Score: 5, Funny

    I don't even use a MAC

    Then how does your network card work?

  12. Re:Here they come... by Anonymous Coward · · Score: 5, Informative

    1. You identify a system API that has a local escalation vulnerability. These aren't that uncommon and because they cannot be directly exploited remotely they're not generally as high of a priority.

    2. You identify a vulnerability in a service or other application that permits execution of arbitrary code remotely.

    3. You exploit the remotely exploitable vulnerability with a payload that calls into the known mapped address of the system API with a second payload in order to escalate to root and then execute a third payload with those increased privileges to outright p0wn the machine.

  13. Re:Microsoft technology? Really? by drinkypoo · · Score: 4, Informative

    Linux's implementation of ASLR is substantially inferior to Windows Vista/7's, which was covered the FIRST time this guy won the pwn2own contest. However, it is far superior to OSX's, which appears to not really do anything useful, and which appears to have not even changed since it was discovered that OSX ASLR is useless. Please try to keep up, or don't comment. Thank you.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  14. Re:Surely this is only of any use to a hacker if . by oyenstikker · · Score: 4, Insightful

    It does not make it obscure, it makes it unpredictable.

    You may figure out the location of something once, but it will be somewhere else on a different computer, or even on the same computer after a reboot.

    --
    The masses are the crack whores of religion.
  15. Mod parent up by shis-ka-bob · · Score: 3, Interesting

    The parent post's reference to OpenBSD seem spot on to me. See OpenBSD Security Features. This uses a BSD license and is written for a BSD 4.4 derivative (just like OS/X). Why doesn't Apple just adopt the OpenBSD mmap and just close this hole?

    --
    Think global, act loco
    1. Re:Mod parent up by fadir · · Score: 2, Insightful

      Maybe because the OpenBSD implementation is rock solid and really safe - but drags down the performance like a stone?

      There are many neat features (usually security related) in OpenBSD. Sadly it's not as simple as "copying" the implementation when the OS of choice has a different aim than being the most secure one on the planet.
      Don't get me wrong. I like OpenBSD for what it is. But I don't think that you can solve every (possible) security issue by simply following the OpenBSD solution because at the end you run OpenBSD. That's truely safe but very restricted in its usability in certain aspects, especially performance related tasks. It's perfect as a gateway or the like. It sucks on your desktop when you want to run a bit more than lynx and mutt and expect it to spit out some serious 3D stuff.

  16. Re:Microsoft technology? Really? by elrous0 · · Score: 3, Interesting

    Shouldn't you be flattered that MS recognized how useful this was and incorporated it into their own OS? The whole point of open source is that anyone is free to adopt its innovations, after all.

    And seriously, "M$"? Is anyone still using that in 2009?

    --
    SJW: Someone who has run out of real oppression, and has to fake it.
  17. Re:Strange... by Saunalainen · · Score: 3, Insightful

    Since when does ASLR improve performance or reliability?

    To quote TFA: "If someone else is running your machine, it's more unreliable than if you're running it,"

  18. Not at All "Perfected" by Doc+Ruby · · Score: 5, Informative

    technology that Microsoft perfected nearly three years ago

    If there's a phrase that should trigger skepticism, that's it. ASLR isn't "perfect", and has been reported (and confirmed) exploited as recently as 7 months ago:

    March 24, 2009 -

            quote:Internet Explorer 8 "critical" flaw in final version

            Microsoft confirmed that the vulnerability exists in the official release, said Terri Forslof, a researcher at TippingPoint, which sponsored the Pwn2Own contest that challenged competitors to find bugs in either web browsers or mobile devices

            "This is a single-click-and-you're-owned exploit," she told SCMagazineUS.com on Tuesday. "You click a link in an email or simply browse to a website, and your machine is compromised. This meets Microsoft's 'critical' bar [in its vulnerabilities and rating system]."

            The exploit apparently defies Microsoft's DEP (Data Execution Prevention) and ASLR (Address Space Layout Randomization) technologies -- two features added to IE8 to prevent memory corruption vulnerabilities.

            "Once the browser was compromised, we handed over the exploit to Microsoft immediately, on site," Forslof said. "They went back and reproduced it and called to verify that the vulnerability was present. We retested again on the released version of IE8 that went live on the following morning and verified that the vulnerability was in it as well."

    --

    --
    make install -not war

    1. Re:Not at All "Perfected" by vistapwns · · Score: 4, Interesting

      That exploit took advantage of code MS left in the beta version of IE8 that opted out of DEP and ASLR, the RTM IE8 disables that code on the internet zone, and it can be disabled on the intranet zone as well, so it's not much of an issue in the RTM IE8.

      --
      "...I think the Microsoft hatred is a disease." - Linus Torvalds
  19. Am I missing something. by jellomizer · · Score: 2, Insightful

    address space layout randomization
    I though this was a feature in OS X 10.5? Was it not implemented or just not implemented as well as other OS's?
    I remember hearing about it as a feature for 10.5.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    1. Re:Am I missing something. by FelxH · · Score: 2, Informative

      address space layout randomization I though this was a feature in OS X 10.5? Was it not implemented or just not implemented as well as other OS's? I remember hearing about it as a feature for 10.5.

      From TFA:

      Two years ago, Miller and other researchers criticized Apple for releasing Mac OS X 10.5, aka Leopard, with half-baked ASLR that failed to randomize important components of the OS, including the heap, the stack and the dynamic linker, the part of Leopard that links multiple shared libraries for an executable.

  20. already there, and easily patchable by Gothmolly · · Score: 2, Insightful

    So they're at least using some ASLR, which they can patch for later, and they got Snow Leopard out the door earlier rather than later.

    If you're running your business on OSX Server, you didn't immediately go upgrade anyways, so where's the harm, other than early adopters claiming their ASLR isn't as cool as it could be?

    --
    I want to delete my account but Slashdot doesn't allow it.
  21. Re:Here they come... by Dog-Cow · · Score: 2, Funny

    He's obviously still on dial-up.

  22. Re:Let's not let facts get in our way by risinganger · · Score: 2, Informative

    Not that I wish to stop you frothing at the mouth, but I'd recommend viewing one of the posts above yours.

  23. Re:Surely this is only of any use to a hacker if . by Anonymous Coward · · Score: 2, Insightful

    This is the sort of posting that makes me think Slashdot should rename the "Anonymous Coward" account to "Anonymous Idiot." Random selection of addresses is not "obscurity," it's "unpredictability." It's at least as strong as a four-digit bank pin.

  24. Re:Microsoft technology? Really? by Gorbag · · Score: 2, Insightful

    Linux's implementation of ASLR is substantially inferior to Windows Vista/7

    [citation needed]

    --
    -- I speak only for myself
  25. Re:Here they come... by supernova_hq · · Score: 3, Funny

    That's ok, you only missed 2 words...

  26. Re:Oops by supernova_hq · · Score: 3, Informative

    Praise for MS by kdawson.

    There fixed that for you.

  27. Re:Surely this is only of any use to a hacker if . by jellomizer · · Score: 2, Insightful

    Slashdot loves to underestimate "security by obscurity". However it is usually the first line of defense, and it works quite often. It is like locking your door without a deadbolt, It keeps the honest, honest. If it is hard to know how to get in. Then most "hackers" will not be able to get in, until some real hackers actually take their time un-obscuring and getting familiar with the system, and then write an easy script for the script kiddies to take advantage of. However having it obscure could put years of being unhacked. To a system... Sometimes enough for it to be increadibly out of date that when they find a way to get in they no longer want to anymore.

    Now for Windows, OS X and Linux There are a lot of people who have oddly Strong emotions about their Computer Operating System and there are a lot of people who would love to wipe the smug expressions off each other faces so there is a lot of focus of trying to un-obscure their competitors and hack in. However if you are a no-name brand system security threw obscurity could have saved you a lot of money in development and testing and not have a system broken into. Unfortunately this creates a lot of smug developers who think they write secure code because it was never hacked into.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  28. Re:Here they come... by Anonymous Coward · · Score: 2, Funny

    He didn't even spell pwn right. What is the world coming to when people can't even write in l33tsp34k properly?

  29. opted out non ASLR code .. :o by viralMeme · · Score: 2, Interesting

    "That exploit took advantage of code MS left in the beta version of IE8 that opted out of DEP and ASLR, the RTM IE8 disables that code on the internet zone, and it can be disabled on the intranet zone as well, so it's not much of an issue in the RTM IE8"

    An interesting hypothesis. Why would they put opted-out non-DEP and non-ASLR code in IE8. And do you have any verifiable third party citations for the above. Wouldn't a more likely explanation was that MS fixed the vulnerability after the fact.

  30. Silly ASLR by Ancient_Hacker · · Score: 2, Informative

    ASLR is sorta like moving the location of the barn door, while keeping it wide open.

        Hint: The cows can still get out.

    Perhaps the guys at Apple realize this and give ASLR a low priority for implementation.

    Even so, adding ASLR to the Apple OS is something they could do with relative ease-- change the kernel and user-space mallocs() to be less predictable, munge the call stacks tobe less predictable, etc, etc, etc,---- mostly stuff that can be done with 50 lines of code here and there and not too many other places.

    But again, it would be much more efficient to put that effort into closing any open barn doors, rather than painting the open gateways in random colors. Every five seconds.

    1. Re:Silly ASLR by shutdown+-p+now · · Score: 2, Informative

      ASLR is sorta like moving the location of the barn door, while keeping it wide open.

      Yes, which is why you keep the door closed. The point of ASLR is to provide some extra degree of protection in case someone accidentally forgets to close the door. Since it happens every now and then anyway (and, yes, in OS X too), it makes sense to have some additional protection.

      Also, you rather underestimate the effect of ASLR. It makes reusable fire-and-forget exploits of buffer overruns (which are the single most common source of security issues) extremely difficult to write.

    2. Re:Silly ASLR by weicco · · Score: 2, Insightful

      And another thing. To my understanding ASLR one purpose is that when there's a exploitable buffer overrun and it is exploited to call some system function the process goes KAB0000M! Now if you have couple of hundreds these kabooms in your log files you probably start to suspect that something fishy is going on.

      Without ASLR your box gets exploited and you get nothing in the log file.

      --
      You don't know what you don't know.
  31. Re:Let's not let facts get in our way by antifoidulus · · Score: 4, Interesting

    The biggest security problems with Windows still remain, namely that:
    a: compared to it's unix bretheren, Windows still requires administrative privileges for a LOT of common things

    b: Microsoft's reliance on proprietary protocols, many of which have a lot of known and probably even more unknown vulnerabilities.
    c: security policy on Windows has about 0 coherency, making it really hard to properly secure windows and really easy to accidentally miss something/screw something up. Windows security polices are all over the place, in the registry editor, in the windows security center, in the user/computer policy app(which at least as of xp wasn't searchable, so if you were looking for something and you didn't know EXACTLY where to find it you end up having to look through every single freaking policy. Whats worse is that Windows freely mixes client and server policies, even when the machine isn't a server! Most users get so frustrated and just leave everything open.

    I tried to recently secure a Windows XP box after coming from a background of unix(including OS X) and Linux, and I just could not believe how insanely obfuscated Microsoft made everything. What is insanely simple to do in the Unix world takes massive effort to even attempt in the Windows world, if it will even work at all.

    I swear Microsoft makes a lot of this stuff pointlessly complicated just so they can persuade more people to take the MCSE exams.

  32. Re:Let's not let facts get in our way by gtall · · Score: 3, Funny

    I see many more posts complaining about mac fans than I see posts by mac fans. Don't you guys have anything better to do than get emotional about a blob of hardware+software?

  33. Microsoft perfected ASLR ? by viralMeme · · Score: 4, Informative

    "Apple .. failed to implement fully a security technology that Microsoft perfected nearly three years ago in Windows Vista"

    Address space layout randomization is a technique to randomize memory addresses of the base of the code, stack, heap, and libraries. First used by PaX and OpenBSD

  34. Re:Surely this is only of any use to a hacker if . by gcnaddict · · Score: 3, Insightful

    There is no such thing as bugproof code. That's the entire reason for ASLR's existence in the first place.
    Once someone writes an entire fully-functional OS with absolutely no security vulnerabilities (take your stab at it and tell me how that turns out for you), the need for ASLR will vanish... oh wait, no it won't because there'll still be other applications, drivers, etc. from third parties which will be insecure.

    *sigh*

    --
    Viable Slashdot alternatives: https://pipedot.org/ and http://soylentnews.org/
  35. Re:Strange... by TheLink · · Score: 2, Funny

    I daresay some hackers might maintain "their" machine better than the legal owners ;).

    --
  36. Re:Surely this is only of any use to a hacker if . by Sancho · · Score: 2, Informative

    Most Slashdotters don't understand what security is. Security and safety are not synonymous. Obscurity may make you safer, but it does not make you more secure.

  37. Re:Let's not let facts get in our way by segedunum · · Score: 2, Insightful

    compared to it's unix bretheren, Windows still requires administrative privileges for a LOT of common things

    I wouldn't equate Mac OS X as a 'Unix' for a comparison with Windows if I were you. The amount of stuff running setuid on a Mac is a little scary.

  38. OS X Security Reporting by 99BottlesOfBeerInMyF · · Score: 5, Insightful

    I always find articles about OS X security, especially in discussion, painful. First you either have a security expert writing and being translated by a fairly clueless reporter, or you have a clueless reporter writing. In the former case what makes a good article and gets press is usually a security person pointing out weaknesses or flaws in OS X. After all, saying OS X still doesn't have much risk of malware for the average user is like reporting that most GM cars still use gas. It's old info and not news. The other type of article that gets picked up are soft articles about how cool OS X is and how it can't get malware, written for the 90% of the populace that has never used it, but from an uniformed perspective.

    Inevitably when either kind of story goes up on Slashdot we see tons of people who know little or nothing about what security is actually implemented in OS X, spouting off one way or the other, usually emotionally defending their favorite OS.

    So in this case we have a fairly knowledgeable security expert talking about security in OS X. His sentence about ASLR begins, "One major disappointment in the midst of all these security enhancements..." Based upon what reporters have made of his paper, do any of you know what those security enhancements are? Contrast the expert's conclusion:

    While the only true test of security is how effective it is in the real world, on paper it looks like life is now at least a little harder for any potential Mac attackers.

    With the title of article linked to:

    Apple missed security boat with Snow Leopard, says researcher

    That's not to say the article is a filthy lie. It is completely true. Apple did miss the opportunity to improve ASLR for the heap. That's very true and important and disappointing. It's also the only OS X security news most people will hear and that, is misleading. It's not the writer's fault either, they're just writing what's interesting and "news". Writing an article on how Apple's security got moderately better in a number of ways and Macs are still unlikely to have many serious or widespread malware problems going forward for a few years, is not news.

    And Apple is not blameless about what press reaches the public either. Apple is pretty quiet about security features in OS X because they don't like to bring up the topic for the general public, except in very generic ways. Their plan seems to be "tell users the security is cool and good and make sure they know they're unlikely to get viruses, but don't confuse them with details. Experts can read the whitepapers." This leaves out the whole middle portion of the spectrum, not security experts but not completely clueless either.

    It would be nice to have meaningful discussion on some of the OS X security features, but that might be too much to hope for. What do people think about the sandboxing approach and has anyone noticed any particularly surprising sandboxed services in Leopard? The mixed 32-64 bit thing seems like an interesting choice, with 64 bit application development now motivated by artificially restricting access to some new APIs. Since a lot of the security improvements are tied to 64 bit applications and/or 64 bit processors, do people feel this was an attempt to direct developers for security reasons or just to speed the transition for other reasons? What do people think the other heap protection checksums and protections for 64 bit kernels. Will we transition to 64 bit fast enough so that they will be useful? How about the application signing being tied to the application level firewall? It seems like Apple could have made that a default and really motivated developers to use it, but decided to go in baby steps instead. And why in the world has Apple not created a proper application and update manager that extends to third parties? That seems like a no-brainer from a security and usability perspective.

    1. Re:OS X Security Reporting by Trillan · · Score: 2, Interesting

      There's a few significant differences in the "modern" runtime library introduced with Mac OS X 10.5. I believe they've put some effort into making applications running against the modern runtime more resistant to runtime changes.

      But there's a catch: The modern runtime is not binary compatible with applications built to the old runtime. That's no problem for 64-bit apps, where there was nothing compiled against the classic runtime. (10.4 didn't support any 64-bit processes at all, and even the limited hybrid 64-bit processes available built for 10.5 linked to the new runtime.) Apple could have provided the modern runtime to 32-bit apps built specifically to it, a fifth flavor of universal app. But Apple chose to provide the classic runtime to 32-bit apps, and the modern one to 64-bit apps.

      I suspect as long as Mac OS X has to run apps linked to the old runtime, Apple is limited in what they can do under the application. 10.7 will probably drop Rosetta and not be supported on systems with 32-bit processors. But I suspect it will still offer *optional* 32-bit Intel compatibility, which means supporting that classic runtime somehow. 10.8 will finally drop 32-bit Intel, leaving the Mac with only the modern runtime. That's when we'll see interesting stuff start being added.

      That's probably 4-5 years away, though.

      Apple's used the 64-bit transition as an excuse for other things, too. For instance, the 64-bit System Preference runs preference panel plugins in a garbage collected environment.

      So I don't think Apple wants developers to stop shipping fat binaries as much as they want developers to start making their code use the new runtime features. I think Mac OS X is going to get very interesting when the need to run apps linked against the classic runtime goes away.

  39. Re:Surely this is only of any use to a hacker if . by incripshin · · Score: 3, Informative

    Tagging doesn't work for me anymore, so I picked the post with the most use of the word 'obscurity'.

    This is not security through obscurity (STO). STO can always be exploited when you know how the algorithm works. Address space randomization cannot be exploited (immediately). You still have to start the executable maybe hundreds of times before the exploit works. This is easy if it's some short piece of code you've crafted yourself, but with real applications, it's not so simple.

    Imagine a hack where you send some exploit to somebody over IM. If it doesn't work, the IM client *will* crash as it tried to execute some random portion of memory. How are you going to try your exploit at a different address now?

  40. Re:Let's not let facts get in our way by gad_zuki! · · Score: 3, Interesting

    >compared to it's unix bretheren, Windows still requires administrative privileges for a LOT of common things

    Id say this is the one part of Windows MS has been improving. Running as limited user, runas, etc in Vista (especially SP2) and 7 is lightyears ahead of what it was in XP or 2000. Developers are pretty much being told to write software correctly or it just wont run in Vista/7. This is a sea change in how things are done in the Windows world and even today a lot of users without legacy cruft to support run without much hassle from the UAC. Eventually those old pieces of software causing these issues (lets write to c:\temp why not?) will be retired in favor of compliant newer versions.

  41. Re:Let's not let facts get in our way by 99BottlesOfBeerInMyF · · Score: 2, Insightful

    I wouldn't equate Mac OS X as a 'Unix' for a comparison with Windows if I were you. The amount of stuff running setuid on a Mac is a little scary.

    What's interesting is how in the same paper where Miller mentioned the ASLR in Leopard, he also praised Apple for getting rid of a lot of the setuid use.

  42. Re:Microsoft technology? Really? by Sancho · · Score: 3, Insightful

    To be fair, when debating, it's up to the person putting forth the argument to support it.

  43. Re:Surely this is only of any use to a hacker if . by Crayon+Kid · · Score: 2, Insightful

    If all else fails, yeah, you should have done it better, but why should the user suffer for it? Wouldn't you (and him) wish there was one more obstacle that might just trip the hacker? Anything? ASLR is something.

    Computer security (good security) goes for redundancy. You add as much protection as makes sense. You never say 'that layer is perfect, there's no need for another layer' (there's no such thing as perfect). You don't say 'we're not a target' (everybody is, since attacks have been automated). You don't say 'but why would someone do that?' (because they can). These are just dumb excuses from people who STILL DON'T GET IT.

    If you have two extra methods of protection you damn right put them in there, no matter how redundant they seem. Apple put just one, and Miller asks why oh why can't they just put the other one in already?

    To make an analogy, it's like using 3 condoms. Yeah, one should be enough and 2 is already over the top, but when you deal with computers and you have 3 of them, you use 3.

    Or, it's like placing extra guards inside the bank safe. Yeah, there are guards outside, the door is locked, police 30 seconds away and the safe walls are 2 feet thick, of steel and concrete. If all that fails something went terribly wrong. But when you deal with computer security, you still put a guy with a shotgun inside the safe.

    Computers aren't real life. They are a mostly theoretical realm where the slightest possibility, no matter how unpractical, sometimes happens. That's what you plan for, to expect the unexpected.

    --
    i ate crayons when i was a kid and now i have two braincells and the blue ones taste nicer
  44. 10 LET M$ = "Microsoft" by tepples · · Score: 3, Insightful

    And seriously, "M$"? Is anyone still using that in 2009?

    Microsoft's first product was a BASIC interpreter for the Altair computer. In the BASIC implementations common on Altair, Apple II, Commodore 64, and many other 8-bit home computers, names of string variables ended in $. For example:

    10 LET M$ = "Microsoft"
    20 PRINT M$;" licensed its BASIC interpreter to numerous microcomputer makers."
    30 END

    I see the usage of "M$" in posts as analogous to "thank $deity", which alludes to the syntax for naming a variable in Bourne shell, Perl, or PHP. At least to me, it carries a connotation of "the world might have been a better place had Microsoft stuck to its BASIC compiler and not ventured into monopolizing operating system market."

  45. Re:Microsoft technology? Really? by 93+Escort+Wagon · · Score: 2, Insightful

    Don't bother looking up facts for yourself or forming your own counter-argument. Just offer us the glib "citation needed" and we'll take you seriously. Right...

    Counter-argument to what? He was responding to a post that made sweeping statements but contained no supporting facts at all - hence "[citation needed]" was completely appropriate. That post was the equivalent of those TV commercials that say "4 out of 5 doctors say..." - okay, fine, then give us an honest-to-goodness citation or even a link so we can determine the statement's veracity for ourselves.

    --
    #DeleteChrome
  46. Re:Surely this is only of any use to a hacker if . by lordholm · · Score: 2, Interesting

    Executing code on the stack is prevented by the NX bit, it has nothing to do with address space layout. What it does prevent would be something like return to libc attacks and other nice things.

    --
    "Civis Europaeus sum!"
  47. Re:Microsoft technology? Really? by drinkypoo · · Score: 3, Insightful

    The arguments were covered more than exhaustively in the Slashdot discussion which resulted from Charlie Miller pwn2owning the MacBook in two minutes because it was "easiest" of the machines in the competition and I should not have to hold anyone's hand in this case. Asking me to explain something which has been so exhaustively covered here in the past is trolling or it is incompetence but it is nothing else. If someone makes a claim, I will generally make at least a cursory effort to find out if they are right because it is necessary to be informed in order to debate intelligently.

    Of course, it doesn't hurt that TFA is about this very issue. I know this is Slashdot, but come on. I guess you could read this article, it pretty much sums up the argument.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  48. Re:Here they come... by sbeckstead · · Score: 2, Funny

    I use Linux distro disks for spacers under my desk when it wobbles. The AOL disks have rotted away it seems.

  49. Re:Surely this is only of any use to a hacker if . by VertigoAce · · Score: 2, Informative

    In order to "look in the same place", you need to have code that does the looking. The NX bit will prevent arbitrary code from executing on the stack. One way to get around NX is to overrun a buffer and replace the return address of the stack frame with a known function address that does what you want. In order for this to work, you need to know the address in advance of the attack. ASLR makes it difficult to predict this address.

  50. Re:Microsoft technology? Really? by 99BottlesOfBeerInMyF · · Score: 2, Insightful

    Linux's implementation of ASLR is substantially inferior to Windows Vista/7's, which was covered the FIRST time this guy won the pwn2own contest.

    This may be true (in fact my opinion is that most Linux desktop distros ship with only the ASLR in the generic kernel which last I heard was limited) but you still haven't provided any citation for this. You later claim it was somehow a solved question in another Slashdot thread, but don't link to that thread. Google doesn't seem to have much in the way of comparisons either, just a lot of articles on flaws in the Windows implementation and how people bypass it.

    However, it is far superior to OSX's, which appears to not really do anything useful...

    What's really funny is that Charlie Miller has repeatedly complained that Apple's implementation is only good for stopping the most common kind of return to libc exploits and not other kinds of attacks ASLR is useful for. So claiming it is useless is like claiming seatbelts are useless since they don't protect against anything but the most common kind of injuries from car crashes.

    Please try to keep up, or don't comment.

    Keep up with what? Your assertions, half of which you haven't been able to back up and half of which are demonstrably wrong. I don't mind people being assertive, opinionated, arrogant creeps, but if you're going to be one, at least be a competent one.