iPhone virus/worm?
2009.11.11 12:42 PM
549 words

TOPIC(S)
iPhone virus/worm?
2009.11.11 12:42 PM

First, I’m testing this blogging app to post entries straight to my site from the iPhone. Hooray for that ;)

So there’s Ecto for the desktop, and this for the iPhone.

Okay, on to the topic.

Just to make things clear; having Rick Astley as a wallpaper is a feature – that’s just full of WIN ;)

Seriously though, in a nutshell; both the actual case and potential dangers it implies, while true, are overrated.

First, it only works on jailbroken phones. Normally, if you are determined enough to jailbreak your iPhone, you should be smart enough to be responsible about it.

This “virus” relies on SSH – which is one of the commonly installed services installed upon jailbreaking. SSH stands for “Secure Shell” – which allows remote shell access to your device. In the case of the “virus,” it does its thing via SSH over WiFi.

Fortunately for us, there are other implications of this as well. The most important of which, is that it will need both WiFi and SSH to be enabled to do be able to do anything meaningful.1 So having one or the other turned off will actually mitigate the issue.

Of course, people will think of just turning SSH off2 … and they’d be right. The only issue is that for some reason… SSH is enabled by default when you have the service installed. This means if you reboot your device, it will turn itself on.3 And forgetting to turn it off is what can ultimately get you.

That’s why as a rule of thumb, you should just change your SSH password regardless if you’re using the service or not.

There’s a third option; which is to uninstall the service altogether. I haven’t tried this nor do I ever intend to. But assuming your [jailbroken] device is still working properly,4 it should now be immune to the “exploit” as well.

But if you ask me, the safest way is to just instal MobileTerminal, run it, type in:

ssh root@localhost

Enter your password. As soon as you’re in with superuser/root priviliges, type passwd and enter your new password (and don’t forget it!)

If you’re asking why developers can’t (or probably won’t) set SSH as disabled by default, the only answer I can think of is because the ability to have remote shell access is extremely nifty for developers. For example, OSX has SSH enabled as well, if for some reason your machine won’t boot or something, chances are you can still access it via SSH – so the really hardcore people who like breaking stuff need that kind of access to recover from a mistake. And we all know how much those developers like tinkering with the iPhone ;)


On an unrelated note; I can’t believe the backtick/grave sign is only available during text entry in the Mail application. I often use it as Markdown syntax when doing code formatting

Good thing I set it as a favorite in ActionMenu’s pasteboard history. Sure as hell beats having to switch to mail just to copy the sign and back to paste it.

    1. This is probably why jailed phones are immune, there’s no SSH available
    2. There is a toggle that can be installed that does just that.
    3. Kinda like the numlock
    4. Which theoretically should be the case. I recall installing SSH after the fact when jailbreaking was still new.

No Responses
Probably Related
456 words
So our choir’s leaving for Pangasinan tomorrow, and my GF’s retreat started this afternoon. That means I’m stuck doing nothing on a Friday night –…
959 words
It’s been a while since I blogged, the past few weeks have been extremely hectic with the storm, work, etc. that I had been neglecting…
308 words
Mr. Jobs’ words about opening up Mobile OS X to 3rd-party developers: You don’t want your phone to be an open platform, you need it…
1213 words
Before anything else, this is probably just a sourgraping post. Since I can’t get the iPhone anytime soon, I’m trying to rationalize and make myself…
379 words
After years of service (and torture), my XDAII has finally bit the big one. It’s a shame since I really wish it would hold out…
Same day, different year
55 words
Writer Bruce Chatwin recommended numbering each page for use as a reference guide, as described in the Chatwin Insert which can be found inside all…
273 words
Air Compressor I went shopping the other day for an air compressor so I wouldn’t have to borrow one anymore. Suffice to say I was…