Welcome Guest. | Log In| Register | Membership Benefits
Dark Reading's CSIsland Weblog
Topics:   SophosLabs Insights

  • Email this page E-mail this page
  • Print this page Print this page
  • Bookmark and Share

How To Clean Up The Duh iPhone Worm


Posted by Graham Cluley, Nov 24, 2009 06:17 AM

The latest iPhone worm is much more malicious than the last one.


Rather than the Ikee worm's trick of changing your wallpaper to a (for some disturbing) image of 1980s pop star Rick Astley, the Duh worm hijacks your jailbroken iPhone, turning it into part of a botnet.

As if that weren't bad enough, the Duh worm can also steal the SMS-based mobile transaction authentication numbers (known as mTANs) used by some banks to authenticate customers' financial transactions.

If a hacker can grab an mTAN from your phone, then he has a window of opportunity to break into your online bank account. The Duh iPhone worm gives him that ability in real-time.

Both Ikee and the Duh worm exploit the default password used by SSH, which is often installed by users after they have jailbroken their iPhones. Sophos researcher Paul Ducklin discovered that Duh changes the password from "alpine" to "ohshit" -- if you didn't know that new password, then hackers would have control of your iPhone, and you would be effectively locked out from cleaning it up.

In a blog post, Ducklin explains how to disinfect iPhones infected with Duh:

To disinfect your iPhone, you should login as root with the password ohshit and remove at least the following files:


/private/var/mobile/home/sshd
/private/var/mobile/home/cydia.tgz
/private/var/mobile/home/inst
/private/var/mobile/home/syslog
/private/var/mobile/home/duh

However, since the directory /private/var/mobile/home does not exist on regular, uninfected iPhones, you may as well remove the entire directory and any subdirectories. Remove the file /etc/rel while you are about it.

The only reason these worms have been able to infect iPhones in the first place, of course, is that the users who chose to jailbreak their iPhones failed to follow the advice to change the default password.

Do yourself a favor -- if you really want to jailbreak your iPhone, then make sure you change the password:

Assuming you are logged in as root, you can use the passwd command, like this:


# passwd
Changing password for root.
New password:
Retype new password:
# passwd mobile
Changing password for mobile.
. . . .

Graham Cluley is senior technology consultant at Sophos, and has been working in the computer security field since the early 1990s. When he's not updating his other blog on the Sophos website, you can find him on Twitter at @gcluley. Special to Dark Reading.

« New Tool For Centralizing Windows Logs | Main | Kudos To F-Response's New IR Tool For Ease Of Use »



Sign up now for the weekly InformationWeek Blog Newsletter.


This is a public forum. United Business Media and its affiliates are not responsible for and do not control what is posted herein. United Business Media makes no warranties or guarantees concerning any advice dispensed by its staff members or readers.

Community standards in this comment area do not permit hate language, excessive profanity, or other patently offensive language. Please be aware that all information posted to this comment area becomes the property of United Business Media LLC and may be edited and republished in print or electronic format as outlined in United Business Media's Terms of Service.

Important Note: This comment area is NOT intended for commercial messages or solicitations of business.




Related Content

Sponsored by:
sponsor logo
Not All Malware Detection Is Created Equal
The internet is now the number-one conduit for infecting users with malware. Sophos detects a new infected web page every few seconds. This white paper outlines the terms you need to know and the steps you should take to stay safe.

How To Protect Your Critical Information Easily
Safeguarding massive amounts of sensitive, confidential data--from legally protected personal information to intellectual property and trade secrets--from malicious attacks and accidental loss is one of IT's biggest challenges. With employees having greater mobility than ever before to work outside the office, the job of protecting data has never been more difficult.

Buyers Guide to Endpoint Protection Platforms
Discover how you can leverage endpoint security and data protection to provide simplified cross-platform security, centralized management, and control of devices, apps, and network access.