-
New Labs report
Read more how the Zeus trojan has been updated to undermine tracking and detection -
FFIEC guidance
How TrustDefender helps -
TD Pro for Mac
TrustDefender launches TrustDefender Pro for Mac to protect MacOS X users from a growing list of online threats. -
Safety of online business
TrustDefender helps to secure the future of e-commerce. -
New Security Management
Increasing company's preparedness for online fraudulent activity. -
TrustDefender enters next phase of growth
Find out more. -
Myth vs Reality
Apple's approach to defeating malware attacks. Myths vs reality. -
TrustDefender Predictions
The year of malware attacks. -
HTML and JavaScript injection
In-depth analysis into how the malware infiltrates websites and the details of its operation. -
eCrime Summit Abu Dhabi
TrustDefender continues its drive into the Middle East market exhibiting at eCrime Summit Abu Dhabi. -
Matt Sheehan
TrustDefender appoints Matthew Sheehan to drive aggressive sales growth strategy in Australia and New Zealand -
InfoSight Partnership
TrustDefender partners with InfoSight, Inc., to address need for effective online transaction security in the US -
GBM Partnership
TrustDefender and Gulf Business Machines (GBM) have announced their joint partnership. -
Gozi Trojan
TrustDefender Labs report has alarmingly discovered another variant of the Gozi Trojan with a 0% detection rate. -
Tim Thompson
TrustDefender appoints security and technology industry expert, Tim Thompson to lead Sales and Operations. -
Urgent Announcement
TrustDefender not associated with rogue AV software that is being distributed under the same name. -
The New Zeus
TrustDefender reveals true threat of new Trojan Carberp– the new Zeus! -
GITEX Technology Week
Showcasing their unique risk-based online transaction security solution at GITEX Technology Week in Dubai. -
25th Anniversary
Leading security expert Andreas Baumhof to speak at 25th Anniversary of Security 2010 Conference. -
Las Vegas Credit Union Conference
Showcasing the world’s first real-time customer endpoint risk assessment and protection for online transactions in Las Vegas. -
New Vice President
Alex Shipp appointed Vice President of Advanced Threat Research at TrustDefender -
Secure Online Identities
TrustDefender comments on the US Government’s draft plan to secure online identities. -
National Cyber Security Week 2010
TrustDefender supports National Cyber Security Week 2010 and encourages Australians to take responsibility for online security. -
Trust Defender raises $16m
TrustDefender bringing it's ‘revolutionary real-time risk based online transaction security solutions’ to a market... -
Growing Operations
TrustDefender announces North American operations led by Joseph McGrath
MacDefender - or how to Apples Malware protection is tested in real-world
Written by Nick Blievers Friday, 03 June 2011 00:33

Another day, another security update… or is it? Apple has just released another security update for 10.6.7, Security Update 2011-003. What’s interesting about this update, is that it addresses one of the issues we raised in our earlier labs report.
But wait, let’s back up a bit, what are we talking about here? Apple included some rudimentary malware protection in MacOSX not so long ago (which we wrote about here), and in recent weeks, it has met with its first real challenge. There has been a spate of news articles talking about the “MacDefender” family of Trojans, so I wont go into much detail here, suffice to say it’s a reasonably straight forward Trojan that uses social engineering to trick the users into installing it, and then proceeds to try and extort money out of the user through the purchase of a fake “anti-virus solution”. Apple’s response to this has been to issue “Security Update 2011-003”, which we will look at in this brief report.
The changelog for this update (http://support.apple.com/kb/HT4657) sums up the three changes quite nicely:
- Definition added for MacDefender
- Automatically update the known malware definitions
- Remove the MacDefender malware if detected
Of these, #3 isn’t very interesting; it’s a one-off, at update time check. But the other two could be interesting, so lets take a look. Checking the XProtect.plist file, we can see there are several new entries:
- OSX.OpinionSpy
- OSX.MacDefender.A
- OSX.MacDefender.B
- OSX.MacDefender.C
There isn’t anything new or particularly interesting with these definitions. The MacDefender entries are looking for installer or meta-installer packages matching certain signatures, in a method we have discussed previously. Still, its nice to see some updated definitions… which brings us to #2.
Apple’s documentation again (http://support.apple.com/kb/HT4651) does a nice job of explaining what this means from a user’s point of view. In short, we have a background daemon running that has a single related UI element, named a fairly innocuous “Automatically update safe downloads list”:
From a technical point of view, what does this mean? Well, we have a few extra elements of what Apple calls simply “File Quarantine” in its changelog. First, we now have XProtect.meta.plist:
Which shows the last time the definition update daemon ran.
The second, and more interesting part, is the daemon mentioned above, XProtectUpdater. Launchd handles the scheduling, and we see that an update is attempted every 86400 seconds (24 hours):
One thing that is curious with this update system, is that if the RunAtLoad fails, for example if your system is slow coming up and the network isn’t online when the updater runs, you may be unprotected for some period of time. For example, when I started my Mac Pro this morning, I saw this log entry:
XProtectUpdater[40]: NSURLConnection error: Error Domain=NSURLErrorDomain Code=-1009 UserInfo=0x102600690 "This computer’s Internet connection appears to be offline." Underlying Error=(Error Domain=kCFErrorDomainCFNetwork Code=-1009 UserInfo=0x102605320 "This computer’s Internet connection appears to be offline.")
Given there is no mechanism to retry until the timer interval is exhausted, if I shut my system down each night, its possible my definition would never get updated (at least until the next time a system update was performed). Note that this system is connected to a network via a cable, and it was simply the boot process ordering which caused this failure.
Aside from this issue, the updater appears simple and lightweight. It checks the configuration switch, and if a new definition is available. The definition is signed to avoid any issues with spoofing. A true unix-style tool!
Now, back to my original point. It’s nice to see that Apple has addressed one of the issues we raised in our earlier report. Any malware protection based on definitions lives and dies by its ability to update, and therefore respond quickly to new threats. Apple’s new updater tool fills this void nicely. Lets hope that Apple continue to evolve their “File Quarantine” tool, as the bad guys have been rapidly improving their MacOSX malware. Since the initial release of this update, a new version of MacDefender that wasn’t detected has been released, and caused the extra (OSX.MacDefender.C) definition to be added. And so the race begins.
UPDATE: It seems that the bad guys have figured out very quickly how to get around the signature based detection (see http://www.theregister.co.uk/2011/06/01/mac_osx_scareware_evasion/). This was actually an issue we raised in the private in-depth report from here)





Comments