Slashdot Log In
Apple Adds Memory Randomization To Leopard
Posted by
kdawson
on Thu Oct 18, 2007 07:37 AM
from the shuffling-the-wormholes dept.
from the shuffling-the-wormholes dept.
.mack notes a ZDNet blog outlining some of the security features added to OSX Leopard (10.5). Here's Apple's brief description of all 11 new security features. "Apple has announced plans to add code-scrambling diversity to Mac OS X Leopard, a move aimed at making the operating system more resilient to virus and worm attacks. The security technology, known as ASLR (address space layout randomization), randomly arranges the positions of key data areas to prevent malware authors from predicting target addresses. Another new feature coming in Leopard is Sandboxing (systrace), which limits an application's access to the system by enforcing access policies for system calls."
Related Stories
Submission: Apple Adds Memory Randomization (ALSR) to Leopard by Anonymous Coward
[+]
A Closer Look At Apple Leopard Security 267 comments
Last week we discussed some of the security features coming in Leopard. This article goes into more depth on OS X 10.5 security — probably as much technical detail as we're going to get until the folks who know come out from under their NDAs on Friday. The writer argues that Apple's new Time Machine automatic backup should be considered a security feature. "Overall, Mac OS X 10.5 Leopard is perhaps the most significant update in the history of Mac OS X — perhaps in the history of Apple — from a security standpoint. It marks a shift from basing Macintosh security on hard outside walls to building more resiliency and survivability into the core operating system."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Woo! (Score:4, Funny)
Re:Woo! (Score:5, Insightful)
Hehe, you were modded +5 Funny, but if it was the other way around:
"Vista is finally catching up with BSD, Linux and OSX!"
You would be modded +5 Insightful... Where are the scores of Microsoft fanboys bashing Apple, damn it!
Parent
Re: (Score:3, Interesting)
Then I'll put it on in a drawer.
Then I'll download the ISO of the version I'll install on my PC.
And I'll be a happy Apple customer
(I'm NOT going to buy a Mac unless I win the lottery or something. But I can spend $139 on the company that's produced the best OS for my use.)
Re: (Score:3, Insightful)
Re:Woo! (Score:4, Funny)
or to decide that it's good enough to use but not worth his money - maybe he'll spend a few hours learning what's new and consider himself even with Apple after they forced him to 'waste his precious time'.
Parent
Re:Woo! (Score:5, Informative)
True. In order to license the codecs and software needed to play DVDs legally a DVD Player has to honor the DVD player spec, which means honoring the stupid "operation not allowed" messages embedded in the DVDs.
Parent
Re:Woo! (Score:5, Informative)
Parent
Re: (Score:3, Informative)
Were you born yesterday? Seems you know absolutely nothing about OS X.
# Tagging Downloaded Applications Protect yourself from potential threats. Any application downloaded to your Mac is tagged. Before it runs for the first time, the system asks for your consent -- telling you when it was downloaded, what application was used to download it, and, if applicable, what URL it came from.
This was introduced by Microsoft in Windows XP SP2
# Application-Based Firewall Gain more control over the built-in firewall. Specify the behavior of specific applications to either allow or block incoming connections.
You guessed it; Microsoft, SP2 (it was available in third party firewalls before then of course)
# Library Randomization Defend against attackers with no effort at all. One of the most common security breaches occurs when a hacker's code calls a known memory address to have a system function execute malicious code. Leopard frustrates this plan by relocating system libraries to one of several thousand possible randomly assigned addresses.
As the GP said, this has been in lots of OSes for a long time, including Windows Vista.
# Signed Applications Feel safe with your applications. A digital signature on an application verifies its identity and ensures its integrity. All applications shipped with Leopard are signed by Apple, and third-party software developers can also sign their applications.
Again, Microsoft, SP2.
I'm guessing "Well, good ideas should be shared around and used by all kinds of companies", and I agree; but why does it apply to Microsoft security and other internal OS technologies, and workspaces, etc, and not stuff Apple makes?
Re:Woo! (Score:4, Interesting)
Parent
Re: (Score:3, Insightful)
Re: (Score:3, Informative)
File system snapshotting?
With the genius that Microsoft shows for marketing, they called the feature "Volume Shadow Copy". Steve Jobs foolishly called it "Time Machine". Everyone knows you want to label interesting features with unwieldy acronyms.
(that's sarcasm). http://en.wikipedia.org/wiki/Shadow_Copy [wikipedia.org] And yes, it's avai
Re:Woo! (Score:5, Informative)
Parent
Re: (Score:3)
ASLR is not present in XP. Sandboxing.. that is vaguely defined in the article/summary.
All OS-es in the world make use of *some* sandboxing on the hardware level, ring-0, ring-1 etc.
Also all OS-es have privilege implementation (file system privileges, etc.), including pre-Leopard OSX.
But I think Leopard implements something more granular. Windows 7 is also said to run all Win32 code in more pronounced and more granular sandbox than before (which means it'
Re:Woo! (Score:5, Informative)
Nice to hear those Microsoft people are about to catch up with the Java sandbox model from 1997
Parent
Re: (Score:3, Informative)
Of course, both of these statements are wrong. Lisp machines had finer grained authority management, as did earlier capability hardware (tagging down to the word level); we're talking technology from the 70s and 80s here which can surpass the capabilities of new millennium technology.
Typed Assembl
Re: (Score:3, Interesting)
Unfortunately I have yet to see the 'granularity' in
I think the point of a future Windows and
Re:Woo! (Score:5, Funny)
Parent
Re: (Score:3, Funny)
After an old joke about the EU, sorry.
Come to think of it... (Score:4, Funny)
Parent
obligitary troll (Score:4, Funny)
Cool, but even better... (Score:5, Interesting)
From the changelog [apple.com]:
It sounds like a high-level player finally decided to take on Exchange. My biggest questions: are there Windows programs that support these features via CalDAV, and is there a CalDAV server in FreeBSD's ports?
Re: (Score:3, Informative)
It looks like there are a handful of Windows apps [osafoundation.org] that support CalDAV at this time. Since it's an open standard, it shouldn't be long before more calendar apps support it. As for the server, this [wikipedia.org] is what I could find with a 10 second search. Looks promising, too.
Re:Cool, but even better... (Score:5, Informative)
Also, the calendar server that is used in Leopard is nothing more than the open-source Darwin calendar server at http://trac.calendarserver.org/projects/calendarserver [calendarserver.org]
So, although nothing exists in ports that I can find you can run the Darwin calendar server on FreeBSD.
Parent
Re: (Score:3, Interesting)
Also according to http://www.appleinsider.com/articles/07/10/18/study_iphone_already_nibbling_away_at_motorolas_dominance.html [appleinsider.com]
Even Windows does this (Score:5, Informative)
Re:Even Windows does this (Score:4, Insightful)
Just look at the U.S. election this year. Everyone and their brother loves Colbert because he is cool and hip and represents a stick in the eye to every other goddamned POLITICIAN out there who can't help but pander to big money and special interest groups. But come election day, it ain't OSX you're putting on your servers.
Know what I mean?
Parent
Re:Even Windows does this (Score:5, Funny)
Parent
Re:Even Windows does this (Score:5, Informative)
From your Wikipedia link:
Since that release was made on 2007-02-05, you could more accurately say that "Linux, of course, has been doing it for months". OpenBSD didn't even really get a strong version of it until 3.8 [openbsd.org], and that wasn't quite 2 years ago. It sounds like Windows had problems [zdnet.com] with it as recently as February 2007, but maybe that's fixed now.
This is still fairly cutting-edge stuff. It's not like they just now implemented memory protection for the first time.
Parent
Re: (Score:3, Informative)
Re: (Score:3, Insightful)
I'll give you that, but PaX was never accepted into the mainline kernel. That's what I was using as my criterion for "supported by Linux".
These are just bandaids (Score:4, Insightful)
There is just no way to do this in software. The future is going to be implementing these types of features in well proven hardware. Things like the no-execute bit, virtualization extensions and such are steps in the right direction but eventually I think we will see some really good security measures put into hardware.
Re:These are just bandaids (Score:5, Informative)
You know why we don't do all that in hardware in PCs? Because it requires a huge amount of silicon. Sure, it's great. You learn good programming practices, because you can't get away with slipping even a little. But it costs a lot, gets hot, and goes slow. PCs are meant to be a good enough and cheap enough solution - not necessarily the best solution.
Parent
Re:These are just bandaids (Score:4, Insightful)
99% of security is bandaid and "obscurity" under cover. Even cryptography with large prime numbers is just obscurity: they give you the number and if you could factor is quickly, you can break it. You just can't break it quickly yet.
Still though, it's the nature of the beast. It's in uphill battle with the hackers. Tech gets sophisticated, hackers get sophisticated, tech gets more sophisticated... It's evolution in a way.
There are very few security concepts which aren't "bandaids", for example privilege levels are such a security measure, and still, most apps that take advantage of this have a bunch of "bandaids" in them to avoid privilege escalation situations.
ASLR is a practical approach to easily calling known adresses after buffer overflow exploit. If all apps in existence made proper use of the no-execute bit and made sure not to overrun buffers in the first place, ASLR could've been useless.
OS designers though meet a world with imperfect apps, and their task is to improve security in this *existing* situation. They do good.
Parent
Trend (Score:5, Funny)
Sandboxing != Systrace (Score:5, Informative)
Another new feature coming in Leopard is Sandboxing (systrace), which limits an application's access to the system by enforcing access policies for system calls
Folks,
Just FYI, the sandboxing in Leopard is not systrace. Systrace is vulnerable to race conditions -- see Robert Watson's paper "Exploiting Concurrency Vulnerabilities in System Call Wrappers" [lightbluetouchpaper.org]. I asked him about this at WWDC, and he told me that Leopard's sandboxing is based on a different technology and is not vulnerable to the same attacks.
--Paul
Windows had this around 1998 (Score:3)
ASLR (Score:3, Funny)
Re:Leopard? (Score:5, Funny)
To give you closeted folk an excuse to talk about your feelings in public.
Parent
Simple. (Score:5, Funny)
Because the Macintosh is the Gay Computer [shelleytherepublican.com].
Parent
Re: (Score:3, Funny)
Re: (Score:3, Funny)
I think this one is even better.
Microsoft4Life | October 13, 2006 at 3:34 am | Permalink
Having never used an iMac, eMac or any other apple computer ever in my life i can truly say they suck. Shelley is just the only one brave enough to enlighten you people and what do you do? Criticize all the way?
Why dos the mac mouse have only one button? Because they are made for islamic terorist that lost most of their fingers in accidents trying to assemble bombs. How could they rightclick on normal mice when they are
Re:Pre-Binding? (Score:4, Informative)
It's still a bandaid though, just as it is in every other OS that's implemented it (pretty much everything OTHER than OS X has a form of this already).
Parent
Re: (Score:3, Insightful)
Actually, I'd tend to view it as just one of a series of preventative measures that one takes in order to KEEP from getting sick. A band-aid is something you throw on AFTER you've been cut up.
And yes, we probably could do more, but not until people are willing to take a minor hit in performance in exchange for hardened security features and layers. Linux in particular tends to erupt in flame wars over just a 0.12% increase/decrease in scheduler performance. And Window's folk
crash logs (was Re:ASLR == Windows Feature...) (Score:5, Interesting)
2006:
Quark XPress: 207 crashes (as many as 9 per day)
Adobe Illustrator: 25
InDesign: 35
PhotoShop: 15
Acrobat: 65
Microsoft Word: 23
Macromedia FreeHand: 9
Mac OS X: 14 (this includes Mac OS X apps like Mail.app and Safari.app)
The totals for this year are a bit more reasonable --- Quark XPress v6.5: 26, v7: 46 (I had to move the afore-mentioned journal over to Quark 7 after a re-design and that involved a new set of things to work-around) --- but I find Mac OS X overall reliable and workable as an environment (thought not as nice, consistent and synergistic as NeXTstep).
William
Parent
Re:ASLR == Windows Feature Since 3.1 (Score:4, Interesting)
Then there's the spinning beachball of death crashes which are a sore point with me.. they happen every time it decides it can't access a network resource* and the only way out is to pull the power cord (since if finder is dead you can't even power off or run the kill application). Got rather sick of doing that last night...
* Which happens rather a lot if you decide to use NFS. NFS under Tiger is broken on intel macs but works OK on ppc macs.. same OS version (allegedly), same NFS share, even the same damned cables.. different result every time.
Parent
Re: (Score:3, Informative)
I've never had any problems plugging a Firewire driving into a Mac. Sure that something's not dodgy at your end?
Re:ASLR == Windows Feature Since 3.1 (Score:5, Informative)
Also, if applications are "just vanishing" on launch, you may have disabled the little popup that tells you the 'application quit, wrote a crash log, and would you like to reopen it?'
Parent
Re:ASLR == Windows Feature Since 3.1 (Score:4, Informative)
Huh? When most Mac apps crash it produces that "The Application [ApplicationName] has quit unexpectedly" crashlog dialog box, where it shows you a trace and you can choose to type a friendly little note in and send it away to Apple. this thing [wikipedia.org].
I don't see it that frequently but I did find a pattern of actions that would repeatedly crash Aperture the other day, and it popped that thing up every time.
Don't know whether it only comes up for Apple applications or what (I don't think so; I remember getting it a few times when Vuescan crashed). Maybe it only comes up as a result of some types of faults, and not all of the fatal ones. But it seems to work fairly well for me.
Parent
Re:Why? (Score:5, Insightful)
Yes, it's just like that, except you have millions of doors, and a intruder can only try to open one door per night, and the unlocked door changes randomly every night.
"People really need to stop adding these kinds of things that increase complexity and do not address the real issue, which in this case is access to the memory space of another application without some sort of credential or approval. When the real problem is addressed, this overly complex and fundamentally useless random memory address layout 'feature' will be left in to cause bugs and complexity forever."
This has nothing to do with access to the memory space of another application.
Parent
Re:I hope they let you disable this junk. (Score:5, Insightful)
Parent