Slashdot Log In
How Encrypted Binaries Work In Mac OS X
Posted by
ScuttleMonkey
on Mon Oct 30, 2006 06:13 PM
from the under-the-hood dept.
from the under-the-hood dept.
An anonymous reader writes "By now we know that OS X uses encrypted binaries for some critical apps like Dock, Finder and LoginWindow. Amit Singh explains the implementation of this protection scheme which makes use of the AES crypto algorithm and a special memory pager in Mach. The so called Do Not Steal Mac OS X (DSMOS) kernel extension helps along the way by decrypting things for the special pager when apps get executed. A funny thing is that if you print the pointer at address 0xFFFF1600 in your own app you get as output Apple's karma poem for crackers! According to the article there are 8 protected binaries in OSX including Rosetta and Spotlight meta data demon. Interestingly Apple's window server is NOT one of those."
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.
It sure was simpler back in the day! (Score:5, Interesting)
http://www.folklore.org/StoryView.py?project=Maci
History repeating!
Re: (Score:3, Insightful)
One reason not to encrypt the windowing system (Score:3, Informative)
Re:One reason not to encrypt the windowing system (Score:5, Informative)
Originally, developers could inject their own menus into it if they figured out Apple's undocumented API for it. However, Apple shut that down (in 10.2, I think) since an unstable menu would destabilize all of Apple's menus. They're all run in the same address space, presumably to allow Apple to cut some corners in their command-drag reordering system. After 10.2, some developers hacked it to allow them to inject other menus into it. Maybe that's what Apple is trying to stop.
Even so, it's a really odd pick for encryption.
Parent
Re: (Score:2)
I suspect the reason is because according to the article all encrypted apps are locked into memory and unswappable. If an attempt somehow manages to be made to page part of one out the system panics. Talk about a major reason NOT to want those versions of the binaries on one's system.....
Notice though how this Apple fan manages to describe all of the details except how to remove the crap. T
Re: (Score:3, Insightful)
The DSMOS extension, by definition, can't itself be encrypted so why didn't he run dump of it and either extract the key or confirm IntelMacs are using TCPA hardware so the wailing can begin?
Maybe because of this little bit of text which is in both the binary and two copies of a file called LICENSE:
whoa, people still like Apple? (Score:2, Insightful)
Actually, I *didn't* know that. I'm not going to "steal" the OS, why is Apple hiding parts of it from me? What else is hiding in there?
Apple seems to be very slowly turning evil again. *sigh*
Typo? (Score:2, Funny)
DSMOS - Do Steal Mac OS?
DRM binaries eliminate competition (Score:3, Interesting)
and would I guess that they are planning to, but letting Apple pull it first, as Apple can get away with it.
Microsoft: "Apple used DRM music first, so locking everyone into our music player with DRM/Encrypted-Music is no worse".
Microsoft: "Apple used DRM binaries first, so locking everyone into our OS and Applications with DRM/Encrypted-Binaries is no worse".
Ethical way to dump Apple's hardware requirements? (Score:3, Interesting)
How about buying a Thinkpad and a Mac mini Core Duo, destroying the mini, and running that licensed copy of OS X on the Thinkpad?
Probably still illegal, but should be on firm ethical ground. Apple got their money, and I'm not running the OS on two machines.
Is this really a "feature"? (Score:3, Interesting)
I think Linux does the same thing, although I haven't checked. Somehow, this just feels wrong to me. If it's not a valid binary, and doesn't start with #!, why not just fail? Why keep trying?
Re: (Score:2)
What you see here is obfuscation.
Re:Signed binaries = good, encrypted binaries = ba (Score:2)
Re: (Score:3, Insightful)
OSX is denying the user one of the fundamental Freedoms. Although it is not the worst offender (*cough microsoft cough*) it is moving in the same direction as Vista. The user is not fully in control of the computer system. There are parts of the computer system about which the user is not permitted to know.
Re:Signed binaries = good, encrypted binaries = ba (Score:4, Insightful)
Uh, it might be a "fundamental Freedom" if you had a "fundamental Right" of some sort to do as you wish with other people's IP. Unfortunately, you don't. A significant number of people make a good living for themselves and their families working for companies that, while being very understanding and supportive of the free software movement in its proper place, gain competitive advantage over their peers by employing the best intellectual talent to solve problems with technological solutions that if copied would eliminate any sort of advantage that company may have in solving a certain problem.
Parent
Re:Signed binaries = good, encrypted binaries = ba (Score:5, Insightful)
When I purchase a car, the car is my property. Honda is not trampling on my liberties by not giving me all the CAD files and whatnot that were used to make my car.
Parent
Re: (Score:3, Insightful)
Full-quoting because it was inappropriately downmodded (and it saved me having to think enough to type essentially the same thing).
anoncow:What he said. :)
Re: (Score:3, Interesting)
It's worth pointing out that reverse engineering and disassembling/decompiling are not the same thing. The latter might be useful for helping with the former, but the law doesn't say that anybody is required to make sure reverse engineering will be easy. It just says that that you're allowed to do it for various reasons. Nor do I think anyone has an ethical responsibility to make reverse engineering easy. In fact, if you're looking to reverse engineer something it's p
Re: (Score:3, Insightful)
Probably. The problem here is that, whether we like it or not, software is sold as a licence rather than as a product. I'd personally expect EULAs to stand up in court simply because there'd be legal and financial pressure upon them to do so; at the moment, they're just "expected" to be valid.
I don't think contracts are going to leave, though. If EULAs are found to be invalid, it'll just change the way that they are distributed to something that's more legally sound, and very little else.
Underhanded? Prob
Re: (Score:2)
What MacOS X does, is try to start the application. If it's encrypted, it's decrypted as part of the load process into memory. If not, well, it's not. I'm certain you can replace OS X's encrypted binaries with unencrypted ones of equivalent functio
Re: (Score:3, Insightful)
Re: (Score:3, Interesting)
How hard is reverse engineering? (Score:2)
Just wondering. How easy is it to reverse-engineer a massive closed-source piece of software (like, say, MS Windows)?
Such a reverse-engineering job would be of obvious commercial interest (especially to parties who work in countries with lax regulatory regimes), so there is an obvious incentive to do it.
However, my "armchair" estimation is that it is nearly impossible, since there exist parts of the world with large numbers of skill
Re: (Score:2)
Re: (Score:3, Informative)
Trivial ... just takes time to "re-code" it ... a lot of time ... check out http://www.winehq.com/ [winehq.com] who are in fact reverse engineering Windows.
Why reverse engineer when you can just print copies? There's
Re: (Score:2)
You would never use RE to write a windows clone.. it is, indeed, just too large. Reverse engineering is better used to solve specific tasks.
You could use reverse engineering to find details on things in windows, like codecs, file formats, protocols, etc.
For example, I used reverse engineering to discover the iTMS AES key. It took about an hour to find and step through the relevant code to discover out how it is generated (it's not st
Re: (Score:3, Informative)
I'm not interested in re-selling the proprietary solution. I'm interested in selling detailed information about the proprietary solution.
Reverse engineering makes security holes more obvious (does it not? Otherwise, how do hackers find security holes?). This is of obvious interest to "industrial" crackers -- the ones who harness large botnets and sell them to the highest bidder.
why bother? (Score:4, Interesting)
Parent
It's easy to make up freedom definitions (Score:2)
I want to be free!" - Frank Zappa, "Teenage Wind"
Re:Signed binaries = good, encrypted binaries = ba (Score:3, Interesting)
I think a patent was just filed for this kind of technology.
Re:Signed binaries = good, encrypted binaries = ba (Score:4, Insightful)
Parent
Re: (Score:3, Interesting)
Re: (Score:3, Informative)
Correction: Apple LICENSED technology from Xerox, and develeoped the GUI far beyond what Xerox had done.
-jcr
Re: (Score:3, Informative)
Re: (Score:2)
I know... I shouldn't feed trolls.... Maybe I should have taken offense at the insinuation that all GNU freaks have beards (including the women) instead....
Re:Oh look, we can scramble a binary. (Score:5, Funny)
"And I'm a Mac. My insides are all scrambled up. It protects me from dangerous crackers."
"All scrambled up?"
"Yep, that's right, my most important parts are very heavily scrambled."
"Does it hurt when you poop?"
"like you wouldn't believe"
Parent
Re:Oh look, we can scramble a binary. (Score:4, Funny)
Parent
Re: (Score:3, Interesting)
Re: (Score:3, Insightful)
Re: (Score:3, Insightful)
And if you are not an Apple hardware buyer, then they don't want you as a potential customer anyway.
Re: (Score:3, Funny)
I'm running 10.2.8 - quite old. Printing 0xFFFF1600 as a string with printf causes a seg. fault on my box.
well that's one hell of an Easter egg!
Re: (Score:2)
Same here, version 10.3.9.
Re:Love mac - hate some of the choices (Score:4, Interesting)
"Critical real estate on the menu bar"? Exactly how big is your Spotlight icon? Mine is less than half the size of my little fingernail on my 12" iBook, as big across as the menu bar is thick. I hardly call that "critical" but if that's your opinion, then so be it.
Parent
Re: (Score:3, Interesting)
The grandparent poster is aware of this, and would apparently like to populate it with something that they would utilize more than spotlight. Frankly, I agree, as I tend to key command to spotlight anyhow, then always bring up the window because I want to see the file path, not open the file.
Now, so that you understand why it is infinitely large:
Close your eyes. Move your mouse to the top and right. Give it
Re:That poem is scary.. (Score:4, Insightful)
Say Chevy offers Radiohead $1 Million to use one of their recordings in a stupid truck ad, and Radiohead refuses. By your logic, Chevy should then have the right to use the recording anyway, because since Radiohead refused to sell them the song they're not losing any money.
You may think it's right, but hundreds of years of copyright law would disagree.
Parent
Re: (Score:3, Insightful)
Re:That poem is scary.. (Score:4, Informative)
Parent
They don't always even have to take cash. (Score:3, Insightful)
I'm calling shenanigans on this. (Unless you're located in some dollar-using country besides the U.S., in which case I think you're an idiot for not making that more clear, since you had to know it would be assumed.)
The right of a vendor to refuse sale to any person, excepting a few prescribed categories (e.g. racial discrimination) has been long estab
Your morals are crap. (Score:4, Insightful)
Nice strawman. Because we all know, any attempt to control my property is equivalent to trying to starve a poor black family.
Your razor blade argument is equally crap. Those blades belong to the store owner. I don't care what you thought, you have no moral or legal right to steal more blades or to force him to give them to you. End of story. Irrefutable.
If you don't like it, shop somewhere else.
Parent
Apparently the pages are actually encrypted (Score:3, Interesting)
So, I'm not sure what this actually accomplishes - I mean, it prevents you from easily disassembling binary, but how does it prevent you from running on non-Apple hardware?
Maybe the key is physically burned on some chip in the hardware?