Slashdot Log In
How Encrypted Binaries Work In Mac OS X
Posted by
ScuttleMonkey
on Mon Oct 30, 2006 07: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!
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: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:
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".
why bother? (Score:4, Interesting)
Parent
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, Insightful)
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: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.
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: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: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: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
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