TechRepublic : A ZDNet Tech Community

IT Security

Host: Chad Perrin
Contact

We all knew it was going to happen sooner or later. So it’s no surprise that Twitter is under attack. The important thing now is knowing what to do about it.

——————————————————————————————————————-

Twitter came of age during the weekend of 11 April 2009. Like any new IT technology, it was just was a matter of time before someone decided to look under the hood and see how the application could be debased. The compromise is a story with a different twist though, kind of like Twitter itself.

StalkDaily/Mikeyy worm

Mike Mooney, a 17 year old teenager started the ball rolling. After finding a Cross-Site Scripting (XSS) vulnerability in the Twitter application, he altered the code on four Twitter accounts to leverage the new found vulnerability.

Once set up, it was just a matter of waiting, kind of like fishing. Finally someone viewed the profile Web page belonging to one of his Twitter accounts and through the magic of a drive-by dropper proudly became the first victim. Finding more victims got lot easier after that as the worm started propagating using the following steps:

  1. Each newly-infected Twitter application starts sending unauthorized Twitter messages (tweets) with malicious links to all available contacts found in the compromised Twitter account.
  2. The flagged Twitter users start receiving tweets from a supposedly trusted contact (social engineering part).
  3. The tweet asks them to check out a micro-blogging service called StalkDaily.com (hence the worm’s name).
  4. As soon as the link is clicked, the Twitter application on that computer becomes infected with the worm.

It’s easy to see how the number of victims grows rapidly. Especially if some of the initially infected Twitter accounts have large contact lists.

To make matters worse, users who haven’t received a malicious tweet can also become infected just by looking at a compromised Twitter profile page. For those so inclined, Damon Cortesi has posted a blog that takes an in-depth look at how the worm works.

Several strains

The explanation I gave above is the generic overview as there are at least four versions that have surfaced, each exhibiting slightly different social engineering techniques. To Twitter’s credit, they have been able to remove the problem each time, but the underlying Twitter application still appears to be vulnerable to XSS attacks.

How to remove

Even though the developers at Twitter have somewhat rectified the problem, there are still the infected profiles. So, I’ve looked around and found removal instructions for both the StalkDaily and Mikeyy variants of the worm on the Twittercism Web site:

  1. In your browser, clear your cache and empty all of your cookies. (This can be found in your settings.)
  2. Log out of TweetDeck or any external applications you are using.
  3. Check the URL and location areas of your profile (in Settings/Account on Twitter.com) for evidence of any malicious scripts. It’ll be obvious - something you haven’t added to these areas yourself. If you find anything, remove it.
  4. On Twitter.com, change your password.
  5. Log back in.
  6. Go back and delete any tweets sent by you recommending StalkDaily. This is important.
  7. Report @stalkdaily in a tweet to Twitter’s @spam account as follows: @spam @stalkdaily.

How to prevent this

Twittercism also has an excellent blog post that talks about how to prevent worms like StalkDaily and Mikeyy from infecting your Twitter profile. I’d thought I’d share a few of the more important points:

  • Use A Twitter Client. It appears that the infection takes place while visiting the profile page, which is easy to do when using the Twitter Web interface. To avoid accidentally opening profiles use a Twitter client like TweetDeck.
  • Avoid Visiting User Profiles On Twitter.com. This refers to active links that are advertised in Tweets or e-mail alerts about new followers.
  • Be Wary About Clicking On Shortened URLs. I’ve referred to this before in my article “URL Shortening: Yet another security risk” and it’s becoming even more of a problem.

Another big help in fighting this worm as well as other malware is to turn JavaScript off. That may not be possible for many though. If not, I’d recommend using FireFox with the NoScript add on.

Next step

Since XSS vulnerabilities are a big part of this problem, I wanted to point out a recent article by Brian Krebs of the Washington Post, “Creating a Public Nuisance with Insecure Web Sites,” where he discusses issues surrounding XSS and hints at what the nasty types are trying to capitalize on:

“XSS bugs can even be used to power Web-based worms. This past week, a series of worms took advantage of XSS flaws on micro-blogging site Twitter.com to annoy and frighten thousands of Twitterers. While the worms were otherwise harmless, rogue anti-virus vendors have begun seizing on public interest in the outbreaks by gaming search engine results to send curious searchers to booby-trapped sites that try to foist worthless and invasive software.”

Google search promotes malware

TrendLabs verified what Brian was trying to point out in one of their e-mail alerts. The message is simply this:

“Cyber criminals are taking advantage of the public’s interest and high media coverage of the incident to spread malicious links. Among the top ten search results in Google for “Twitter worm” and “Mikeyy,” the name of 17-year-old author of the said worm, is a link that connects the user to a malicious URL that download malware into his/her system. The link in the result connects to a URL detected as HTML_DLOADR.NIC. The said URL is inaccessible as of this writing, but analysis reveals that it loads a JavaScript which is detected as JS_DLOADR.NIB

Final thoughts

It seems that the Twitter worms themselves were relatively benign. What’s obviously not benign is using Web sites touting the cure to hide real malware. Sadly it’s an effective propagation method that takes advantage of users who are already having computer problems. My article, “Minimize risk when downloading from the Internet” triggered a lot of  discussion about this subject, with members presenting many good ideas for avoiding this type of scam.

TechRepublic’s IT Security e-mail newsletter (delivered every Tuesday) is a great way to keep on top of security issues related to Information Technology. Please make sure to sign up.

Michael KassnerMichael Kassner has been involved with with IT for over 30 years. Currently a systems administrator for an international corporation and security consultant with MKassner Net. Read his profile or Twitter at MKassnerNet.

Print/View all Posts Comments on this blog

Twitter is under attack Michael Kassner | 04/21/09
Is it fixed? Tink! | 04/28/09
oh Doh!! Tink! | 04/28/09
What browser Michael Kassner | 04/28/09
Thanks Tink! | 04/29/09
TweeDeck will give you Michael Kassner | 04/29/09
I knew boxfiddler | 04/21/09
Twitter is great Michael Kassner | 04/21/09
I do have to admit to some curiosity. boxfiddler | 04/21/09
It's like RSS on speed Michael Kassner | 04/21/09
Love the analogy! gadgetgirl | 04/21/09
Sorry you are sick Michael Kassner | 04/21/09
Nothing in it for me NickNielsen | 04/23/09
I tend to agree, if Michael Kassner | 04/23/09
That partially confirms my earlier theory. Palmetto | 04/24/09
If you are Michael Kassner | 04/24/09
Equipment and circumstances both matter in this case NickNielsen | 04/25/09
Ummm. boxfiddler | 04/25/09
You boxfiddler | 04/25/09
Not for loosers ? highlander718 | 04/24/09
Kinda like this one? Palmetto | 04/24/09
not quite like this one highlander718 | 04/24/09
Wrong perspective Michael Kassner | 04/25/09
Respectfuly disagree highlander718 | 04/26/09
Look at it differently Michael Kassner | 04/27/09
Sounds like the perfect medium for a Defcon 3... JCitizen | 04/28/09
If Pakistan doesn't santeewelding | 04/28/09
I work a lot. Photogenic Memory | 04/25/09
Here, here!.. JCitizen | 04/25/09
Insensitive and inflaming ? highlander718 | 04/26/09
I thought this explains twitter rather well highlander718 | 04/26/09
Maybe to some Michael Kassner | 04/27/09
I live in the most south-westerly town in America. Photogenic Memory | 04/27/09
It is disconcerting Michael Kassner | 04/28/09
RE: Twitter: Under attack dpbakeril | 04/21/09
Easy to point fingers. RIP-1241 | 04/21/09
I think Michael Kassner | 04/21/09
How to manage a million new users a month is child's play compared Palmetto | 04/21/09
Well, Michael Kassner | 04/21/09
"What you mean 'us', white man?" Palmetto | 04/21/09
Perchance Michael Kassner | 04/21/09
Yes; cookies disabled. Palmetto | 04/21/09
I had no doubt Michael Kassner | 04/21/09
They sell your personal info Photogenic Memory | 04/23/09
It's out there Michael Kassner | 04/23/09
They're no different from 'traditional' companies Palmetto | 04/23/09
Good point Michael Kassner | 04/23/09
Same here!... (NT) JCitizen | 04/23/09
It's a problem Michael Kassner | 04/21/09
Ashton Kutcher did it! Photogenic Memory | 04/21/09
Twitter seems Michael Kassner | 04/21/09
Thanks for the opinion. Photogenic Memory | 04/22/09
I appreciate Michael Kassner | 04/22/09
Saw the story yesterday Tink! | 04/21/09
It's hard Michael Kassner | 04/21/09
I do? Palmetto | 04/21/09
It's more granular Michael Kassner | 04/21/09
I'm not sure what you mean by 'granular'. Palmetto | 04/21/09
Filters Michael Kassner | 04/22/09
But how did you find them in the first place? EDITED. Palmetto | 04/22/09
To answer Michael Kassner | 04/22/09
Two problems Palmetto | 04/22/09
An example Michael Kassner | 04/22/09
Hmmm. boxfiddler | 04/23/09
Sounds good Michael Kassner | 04/24/09
Bored? boxfiddler | 04/24/09
I like that Michael Kassner | 04/24/09
Drats! santeewelding | 04/21/09
Keep us posted Palmetto | 04/21/09
My social site seems to be pretty well locked down... JCitizen | 04/21/09
I have to ask Michael Kassner | 04/21/09
Always have... JCitizen | 04/21/09
You do that Michael Kassner | 04/21/09
I should have mentioned... JCitizen | 04/22/09
Sure Michael Kassner | 04/23/09
yes, TR has had its share of XSS vulnerabilities techrepublic.com.com@... | 04/22/09
Is that why the Tre! pops up over there? JCitizen | 04/22/09
Some corrections to your story techrepublic.com.com@... | 04/21/09
Other than Michael Kassner | 04/21/09
Is there any impact besides propagating itself? Palmetto | 04/21/09
The actual Twitter worms Michael Kassner | 04/22/09
more specifics techrepublic.com.com@... | 04/22/09
Thanks for #4. Palmetto | 04/22/09
Thank you Michael Kassner | 04/22/09
Are these twitter apps just BHOs or what's the deal?... JCitizen | 04/21/09
Not sure Michael Kassner | 04/21/09
I'm not making fun of Twitter.. JCitizen | 04/23/09
It is Michael Kassner | 04/23/09
Smart phones rule... JCitizen | 04/23/09
I agree Michael Kassner | 04/23/09
I saw something.. JCitizen | 04/24/09
That's okay, that's why I'm here! :D Palmetto | 04/23/09
:^0 ...(nt) JCitizen | 04/23/09
Stop Identity Theft Michael Kassner | 05/02/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



IT Professional's Guide to Policies and Procedures, Third Ed
Whether you're creating policies for management, training, personnel, support, privacy, Internet/e-mail usage, security, or inventory, you'll meet the needs of your entire enterprise with this one download!
Buy Now
500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now

SmartPlanet

Click Here