On BNET: 5 classic computer pranks
BNET Business Network:
BNET
TechRepublic
ZDNet

June 23rd, 2008

How Snow Leopard can save Mac OS X from malware attacks

Posted by Ryan Naraine @ 4:49 pm

Categories: Apple, Arbitrary Code Execution, Browsers, Complex Attacks, Exploit code, Kernel-level Exploits, Patch Watch, Viruses and Worms, Vulnerability research

Tags: Apple Macintosh, Vulnerability, Malware, Attack, Apple Mac OS X, Apple Mac OS, Spyware, Adware & Malware, Desktops, Cyberthreats, Security

Flash attack may as well have been zero-day Guest Editorial by Dino Dai Zovi

As reported by Intego and Matasano Security, a new local privilege escalation vulnerability has been found that gives local root access on Mac OS X Tiger and Leopard.

While Intego calls this a critical vulnerability, I’m mostly with Matasano’s Thomas Ptacek on this one where I am saying this vulnerability is not nearly that serious.  For one, it only works when it is run as the user who is logged into the console.  This means that no Mac OS X servers are affected by this, but it can allow a Web exploit or Trojan horse to gain root access without the user’s knowledge or permission.  Also while root access is pretty serious, it is not necessary in order for the malware to do bad things to your system (i.e. install itself to run automatically, backdoor Safari, etc.)  So I will dub this a serious, but not critical, vulnerability.

Perhaps the most interesting fact about this vulnerability is where it came from: a thread (from Google cache because the forums seem to be down now) on the forums at Mac Shadows, a Mac underground site.  The aforementioned thread was discussing how to build AppleScript-based Trojans until “callmenames” discovered the vulnerability and the discussion moved towards the vulnerability and ensuing news and attention.  And at the time of writing, the forums on the site have been taken offline.

The big question on everyone’s mind is when malware will begin to seriously affect Mac OS X and what will happen when it does.  As for when, I am betting that it completely depends on market share, as per Adam O’Donnell’s game theoretic analysis.  As for how bad, that will all depend on Snow Leopard: when it will ship, how it will improve Mac OS X security, and how many users will install it.

Snow Leopard will hopefully raise the bar for Mac OS X as much as Vista did for Windows.  Of course it won’t stop all security attacks, but it should make exploiting them beyond the reach of most attackers.  I’d personally like to see the following improvements:

  • Real ASLR (address space layout randomization).  Library randomization with dyld loaded at a fixed location just doesn’t cut it.
  • Full use of hardware-enforced Non-eXecutable memory (NX).  Currently, only the stack segments are enforced to be non-executable.  Welcome to the new millennium where buffer overflows aren’t only on the stack.
  • Default 64-bit native execution for any security-sensitive processes.  I don’t particularly care that it may waste 5% more memory and a little bit of speed, I want Safari, Mail.app and just about everything else that has security exposure to run as a 64-bit process.  Simply because function arguments are passed in registers rather than on the stack, this makes working around ASLR and NX damn near impossible for many exploits.
  • Sandbox policies for Safari, Mail.app, and third-party applications.  Code execution vulnerabilities aren’t the only kind of vulnerabilities and good sandbox policies for security-exposed applications can help mitigate the exploitation of code execution and other vulnerabilities in these applications.  I love the scheme-based policies, by the way.
  • Mandatory code signing for any kernel extensions.  I don’t want to have to worry about kernel rootkits, hyperjacking, or malware infecting existing kernel drivers on disk.  Most kernel extensions are from Apple anyway and for the few common 3rd party ones, they should be required to get a code signing certificate.

[ SEE: Memory randomization (ASLR) coming to Mac OS X Leopard ]

I’m hoping that Snow Leopard ships before we see too much Mac malware, fixes all of the above, and that it is a free upgrade.  Yes, I know that’s unlikely, but users will not pay money for security features.  When users don’t upgrade and are subjected to malware, Apple may still get a bad rap for it.

* Dino Dai Zovi is an information security professional, researcher, and author.  He is perhaps best known in the security and Mac communities for discovering the vulnerability and writing the exploit to win the first PWN2OWN contest at CanSecWest 2007.  He publishes the Trail of Bits blog and can also be found on Twitter.

Ryan NaraineRyan Naraine is a journalist and security evangelist at Kaspersky Lab. He manages Threatpost.com, a security news portal. Here is Ryan's full profile and disclosure of his industry affiliations.


Email Ryan Naraine

For daily updates on Ryan's activities, follow him on Twitter.

Subscribe to Zero Day via Email alerts or RSS.

  • Talkback
  • Most Recent of 91 Talkback(s)
Re: What hyperbole!
And yes, there have been root kits and other Trojans for the Mac, but you have to be physically at a machine to "infect" it. It would be easier to log in as "guest".
>>>>Looks like somebody ... (Read the rest)
Posted by: santuccie Posted on: 06/19/09 You are currently: a Guest | | Terms of Use
Brilliant  nmcfeters | 06/23/08
Snow leopard seems the exact copy of Vista security features  qmlscycrajg | 06/24/08
Because the authors wish list extends it  Richard Flude | 06/24/08
Re-engineering  LiquidLearner | 06/24/08
...  snberk203 | 06/24/08
I suppose...  LiquidLearner | 06/24/08
...  snberk341 | 06/24/08
Yawn -- Wake me when...  arminw | 06/25/08
Not quite  alanrr | 06/25/08
What hyperbole!  pritchet1 | 06/25/08
Not quite is right...  techconc | 06/27/08
Re: What hyperbole!  santuccie | 06/19/09
Maybe, but  notsofast | 06/25/08
How the hell do you know?   | 06/24/08
Liquid Learner = NonZealot?  edward.arnold@... | 06/24/08
You're using the same arguments  LiquidLearner | 06/24/08
It's being re-engineered for it's poor security. NOT!  vulpine@... | 06/26/08
Yes agreed  nmcfeters | 06/24/08
RE: How Snow Leopard can save Mac OS X from malware attacks  JustinCarmony | 06/24/08
So are there millions...  arminw | 06/25/08
Non linear relationships don't exist?  NonZealot | 06/25/08
No infected Macs  fox.kenji | 06/25/08
Just Plain Weak Thinking  PMC-CON | 06/25/08
You didn't answer the question  notsofast | 06/25/08
The answer  frgough | 06/27/08
" There exist many relationships where a critical mass must be reached..."  bmerc | 06/26/08
Can you say with 100% certainty...  vulpine@... | 06/26/08
It's complete hersay....  JoeMama_z | 12/01/08
A non-linear step function...  arminw | 06/27/08
I'm just wondering....  23Tracy | 04/17/09
Love reading the comedy on ZDNet  KaplanMike | 06/24/08
You're right  LiquidLearner | 06/24/08
Microsoft defenders always...  arminw | 06/25/08
Poor Apple Software = QuickTime  PMC-CON | 06/25/08
QUickTome patched often???  23Tracy | 05/23/09
And how are you different?  notsofast | 06/25/08
Failed argument already debunked. Try again.  bmerc | 06/26/08
Again you're wrong, LL (or should I say, NZ)  vulpine@... | 06/26/08
Wow, quite the feat!!  NonZealot | 06/24/08
LOL @ NonZealot  fox.kenji | 06/25/08
Care to tell me what I did to stay safe?  NonZealot | 06/25/08
How you did it.  pritchet1 | 06/25/08
Say no more  NonZealot | 06/25/08
Are you joking?  notsofast | 06/25/08
well one thing's for sure  bmerc | 06/26/08
And So ... Do You Patch QuickTime?  PMC-CON | 06/25/08
"Because there are no exploits possible, ..."  vulpine@... | 06/26/08
"...proves that dumb people will get infected no matter the OS..."  vulpine@... | 06/26/08
2 things protected me  NonZealot | 06/26/08
Way to go NZ!!!  ∞Dilemma | 06/30/08
Keep laughing!!  NonZealot | 06/30/08
Good one, NZ  vulpine@... | 07/01/08
I accept your first correction, NZ...  vulpine@... | 07/01/08
Something to consider...  ExCorpGuy | 01/30/09
There was just a Mac sploit posted  nmcfeters | 06/24/08
I'm still puzzled as to why the author...  zkiwi | 06/25/08
It needs saving because...  nmcfeters | 06/25/08
recent exploit at pone-to-own  tech_walker | 06/25/08
Some good points  nmcfeters | 06/25/08
Is your house invulnerable to...  arminw | 06/25/08
No, you're wrong  notsofast | 06/25/08
Bogus argument is bogus  bmerc | 06/26/08
Security on the Comodore 64 is even better tha MAC  ted185@... | 06/25/08
Your claim...  bmerc | 06/26/08
Oh Grow-up...you obviously don't read much...nt  socialism=nowhere | 06/25/08
Re: Love reading the comedy on ZDNet  notsofast | 06/25/08
Attacking the wrong end of the problem...  Resuna | 06/24/08
Vista IE7 Protected Mode  PMC-CON | 06/25/08
RE: How Snow Leopard can save Mac OS X from malware attacks  debohun | 06/24/08
Three dialogs is a little overkill  alaniane@... | 06/24/08
Gee, sounds like you want Vista...  Narg | 06/24/08
RE: How Snow Leopard can save Mac OS X from malware attacks  ceo@... | 06/24/08
What a stupid article  The Rationalist | 06/24/08
WHAT?  nmcfeters | 06/24/08
When is sophistication sophestry?  shis-ka-bob | 06/24/08
Well, rightly so  nmcfeters | 06/25/08
LOL  fox.kenji | 06/25/08
Did You Mean Or Instead of Of?  PMC-CON | 06/25/08
Of course you're right, but  notsofast | 06/25/08
"Just because an OS isn't a target blah blah blah"  bmerc | 06/26/08
come on no OS is perfect if Macs can benefit  tech_walker | 06/25/08
RE: How Snow Leopard can save Mac OS X from malware attacks  bytter | 06/24/08
Won't happend - but I would like to see it run on more than Apple Hardware.  socialism=nowhere | 06/25/08
RE: How Snow Leopard can save Mac OS X from malware attacks  cestrauss | 06/25/08
A major factor in the malware rise is the switch to Intel CPUs.  Joel R | 06/25/08
RE: How Snow Leopard can save Mac OS X from malware attacks  Bdidi5 | 06/25/08
Who knows? Who cares?  richdave | 06/25/08
Message has been deleted.  Intellihence | 06/26/08
RE: How Snow Leopard can save Mac OS X from malware attacks  Steven Fisher | 06/27/08
Signed kernel extensions?  Steven Fisher | 06/27/08
Re: What hyperbole!  santuccie | 06/19/09

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
Click Here

Recent Entries

advertisement

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads