Removing Winlogon Virus

Introduction

Winlogon.exe has become a favorite program for worm/virus writers to hide there payloads.

Winlogon is the program responsible for user authentication in windows. This is the program that is responsible for showing you the windows logon dialog box.

Here are some reasons why virus writes love to hide there worms in winlogon.exe:
  1. It’s an essential system process, so most people wont suspect that winlogon is the culprit.
  2. It’s not easy to kill winlogon.exe. And even if you do manage to kill the process, your machine will instantly crash, and will show you the blue screen.
Today we are going to discuss about removing winlogon virus, without shutting down the computer or using any kind of bootable disk.

Tools required
  1. Sysinternals Process Explorer
  2. Replacement File explorer like FreeCommander( optional )
Detection

The process is pretty easy actually. We are going to use Process explorer to list the DLLs loaded in winlogon.exe. You will see a list of DLLs that are currently loaded in winlogon.exe.

Most of the valid DLLs will have proper description and company name. But if you are able to see some DLL with no description, no company name and some strange name, then its most probably a worm.

In order to make sure that this DLL is indeed a malware, we can double click the DLL name and check the strings within the DLLs.

See if there are some suspicious strings within the DLL. Strings like “worm”, “password”, or name of some suspicious website are sure shot indications that it is indeed a malware.

To be extra sure, you can search the Internet for the name of the DLL to make sure that the DLL in indeed malware.

8-25-2008 5-20-09 PMNote: Click on screenshot for full size image.

Removal

Virus writer truly love hiding there malware withing winlogon, because in order to remove the malware, you will have to kill winlogon, which is not an easy task for most user.

However, you can follow these steps to kill winlogon and delete the malware:

Preparation

- It’s not possible to kill winlogon.exe usng windows task manager. So we are going to use excellent tool “Sysinternals Process Explorer” to kill winlogon.exe.

- Since this tutorial is for common computer users, I will not explain about deleting the malware using command prompt.You can download the excellent file explorer called “FreeCommander” to browse through the filesystem and delete the malware.Using FreeCommander is a lot easier than using the Command Prompt.

Procedure

1. Run FreeCommander so that we can browse and delete files.

2. Start Process Explorer and then kill Explorer.exe using it. We are killing explorer.exe because most of the time, explorer.exe is also infected. So we are killing it just to be sure…

3. Now its time to kill winlogon.exe. The process is pretty simple actually. All we have to do is, before killing winlogon.exe, we have to kill Smss.exe.

We have to do this because Smss.exe process monitors winlogon.exe and will shutdown the machine if it finds that winlogon is not running.

After killing Smss.exe, you can safely kill winlogon.exe.

4. After winlogon is gone, you can safely delete the malware. Since you have already killed explorer, you can use FreeCommander to browse the filesystem and delete the malware.

8-25-2008 5-24-18 PM


Thats it. You have now safely removed the malware from your system, without using any kind of bootable disk ;)

Please support this article by digging and stumbling it.

Digg!

StumbleUpon It!

51 Responses to “Removing Winlogon Virus”

  1. Ron Stampey Says:

    This was the best advice I’ve found so far. Your tip worked for me on the very first try. Thanks!!!

  2. dx Says:

    thanks for the tips

  3. Dr. Max Rusky Says:

    I have the PEPATCH in my machine back in my office in Louisiana.

    So I must fix it remotely.

    For some reason AVG is no longer installed on that computer, and when I install AVG it does an automatic remove or move to vault against the winlogon which prevents a reboot (an endless loop starts). So far, I can reboot with restore, but that removes AVG for the next time, and I still don’t deal definitively with the virus.

    So here is as I understand it before trying to fix my computer back home.

    1.Download both process explorer
    and Free Commander

    2.Use process explorer to locate winlogon.exe and then in lower pane view the DLL’s

    3.check out the dll’s and find the offenders.

    4.use process explorer to kill processes in this order:
    a) Explorer.exe
    b) Smss.exe
    c) Winlogon.exe

    5.Use Free Commander to Kill the offending dll’s

    Now my questions are

    1) Before I restart can I then install AVG and let it run its first scan for viruses and malware in which it auto deletes or removes to vault infected viruses? Then restart.

    2)Or should I restart and install avg after restarting?

    It would seem the 1st would be the best course, in case winlogon would get reinfected on start up.

    what can I do to safeguard that if the wrong dll is removed and I won’t be able to reboot?

    Thanks for the help on this!

  4. surya narayan singh Says:

    Hello MAX,

    You can definately run AVG agfter deleting the offending DLL from your machine. If AVG has got a signature for the offending DLL, it will delete the DLL automatically.

    However, I have seen that some programs will not function normally after killing winlogon. If you are able to run AVG properly after killing winlogon, then go ahead and do a scan.

    “what can I do to safeguard that if the wrong dll is removed and I won’t be able to reboot?”

    Not much actually. If you somehow delete the wrong DLL, you wont be able to boot normally. Just take a look at the strings inside the suspect DLL and see if’s got suspicious strings.

    Thats the sure shot way to detect the malware.

    Please let me know if you have got any problem. I reply to all the comments :)

  5. Pavan Kumar Says:

    Yep, a nice tutorial… good one…. Stumbled…

  6. Manjunath Says:

    Thanks for leaving a comment in my blog…….. ya winlogon virus is pretty tough to kill last time i wrote a program in C# to kill the virus as virus programmer was so intelligent his code was not allowing to run processes like hijackthis,avenger, process explorer and almost all the virus removal tools and it was updating all the registry entries in winlogon and runonce very frequently………….. atlast i wrote a multithreaded registry editing program in C# which was changing the virus dll path to some junk file more frequently than the malware itself and force rebooted system and that solved my problem……….

    any way my job would have been much more simpler if i got this tip at that time ;)

    Cheers,
    Manjunath
    http://probedeep.blogspot.com/

  7. surya narayan singh Says:

    Hello manjunath jee,

    Well most worm writers are not that smart. You can easily change the name of Process Explorer to some other string. You can use Ultra Edit or some other nice hex editor in order change the string.

    For example, change the string “Process Explorer” to “Krocess Kxplorer”. Just make sure that the length of the string matches.

    Most bums just check the window title and kill the program. This is an easy way to bypass this kind of studpid protections :)

    I used to crack programs using FileMonitor, and some programs used to kill FileMonitor by searching for window title. So i used to change the string File Monitor in File Monitor executable using UltraEdit. That used to do the trick ;)

  8. Manjunath Says:

    yup!!! i did that toooo :) i renamed hijack this to names such as pingpong and process explorer to alaram etc but nothing worked? the malware/worm was very smart indeed i dont know how it was recognizing the malware removal tools even though i renamed it…….

  9. surya narayan singh Says:

    Manjunath jee,

    I meant that you have to change every string “inside the executable”. Changing the name of the executable wont do any good.

    Open the executable using some hex editor like UltraEdit and then search and replace the string “Process Explorer” inside the executable.

    Just make sure that the string length are same.

  10. Sunieet Says:

    hey…

    Ur steps worked like a charm……….. THNX A LOT!!!!!!!!!!!!!!!11

  11. suneet Says:

    thnx buddy…. ur steps worked like a charm…………

    THNX a lot!!!!!!!!!!!!!

  12. Yahelll Says:

    Hello! How do I change the ’string’ inside the Process Explorer? I opened it in Ultraedit but all I see is millions of numbers&letters.

    I can’t turn of the computer from the start menu, the Task Manager is disabled and also Regedit, Safe Mode, Hijackthis, Process Explorer and even some websites. So I think I have the same problem here.

    Could anyone please explain to me how to use this Ultraedit so I can try the solution above.

    Thank you

  13. James Says:

    You quite obviously spent a lot of time writing this article, so why not run it through a spell-checker, and then proof read it to remove your poor grammar? It just jumps out from the page.

  14. surya narayan singh Says:

    Yahell:

    Just open the executable in Ultraedit and then click on Search Menu:

    Search > Replace

    Now you can replace any string inside the executable. Just make sure that you have checked “Find ASCII” checkbox to replace only ascii strings.

    Ultraedit is a really powerfull hex editor and you can do a lot more than just replacing the strings.

    James:

    thanks for your comment, I will spellchek the article … :)

    And all those Grammer Nazis out there: you are free to pin point the mistakes ;)

  15. BEST YET Says:

    OK
    GET LINUX
    DONE

    PROBLEM SOLVED

    NEED WINDOWS

    its called vmware brotha!!!
    \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nn\n\n\

  16. surya narayan singh Says:

    User vmware to run windows …so that my new PC behaves like a 386 ?? Virtualization layer indrocuses a LOT of overhead. No matter what VMWare says, and no matter how many vitual drivers you use in your virtual machine, your virtual machine machine will be _ALWAYS_ slow that your bare naked machine.

    And besides … I dont even want to touch Linux. Unix machines still have a lot of things that need improvement. Printing, X-window system , a good and coherent desktop evnironment …and the list goes on.

    If you want to have your daily dose of kernel programming, you can still do that on windows. Just download the DDK and head to ntdev. You will find lots of smart people there to interact with.

    But please…. dont thing that we “common” people are goint to shift to Linux or any other *nix variant just because it’s cool.

    Linux aint cool and it will never be :)

  17. Martin Says:

    Hi, I have a problem with winlogon.exe
    computer works fine, but when I try to shut it down, if show me that windows are closing, and few seconds before I can hear the harddisk is turn off, it show a blue screen with the message: c000021a
    critical system fault, in winlogon on the adress 000….. ??? (don’t know) system halted.
    And computer is still not turn off, after I turn off manually.
    Next time I can start normally, laptop works fine, until the turn off.
    Can you give me an advice?
    I have tried to instal recovery console, then exchange the winlogon.exe another one from other comp (doesn’t work), and I don’t want to reinstal windows because some aplication are unique for me….
    Thanks a lot Martin.

  18. surya narayan singh Says:

    Hello martin,

    It seems that some critical system files on your system are messed up or deleted accidentaly.

    This may be due to :

    1. Some antivirus/anitspyware deleting some critical system files while removing the malware.

    2. Due to hard disk crash. Check if you have found.000 found.001 ….etc named folders on your hard disk. If it does, then chkdsk has moved some system files to these folders during scanning process.

    3. Sometimes strange GINA DLLs may also cause problems. Some wireless drives like Atheros may install additional authentication DLLs that may cause problem with SP3. However, this is very rare, as most of the time, drivers are not the problem.

    Your options:

    1. Try pressing F8 during sytem boot and then choose the “Last known good configuration”. If you are lucky, and have a good system restore point, then you will no problem. However, if you are not lucky and you dont have good system restore point then carry on to step 2.

    2. Boot using windows installation CD and choose the repair option to repair your current windows installation. This option will just replace the system files and all your programs will be safe. You wont have to reinstall them

    Good luck. It’s not a big problem, and you can solve it pretty easily.

  19. sn says » October 2008’s 10 Most Popular Posts Says:

    [...] 1.Removing-winlogon-virus: [...]

  20. horusiii Says:

    thanks for the tip … I had ddccvlfe.dll on my machine and it was in winlogon, explorer, and cli.exe … for some reason it was firing off two versions of cli.exe

    had to kill all three … but it worked after that

    Thanks!

    Horus

  21. BradDV Says:

    I would love to try out some of this stuff, but my pc has started to loop reboot. I found that I had a winlOgon.exe virus as notified by “RemoveIT” spyware software. So I downloaded AVG, installed. It was running a check, the virus came up in the box etc. Next thing the pc just started rebooting, it goes into the blue XP user screen for a few moments, and then reboots again.

    What now, could comeone please give me some advice?

    Brad

  22. NF Says:

    Hi. i`ve got a Vundo in my laptop and i was wondering if I can follow the steps in the article. Thanks!!!!

  23. Jonas Hammarberg Says:

    Thank you, solved it for me:)

  24. Dik Says:

    Many, many thanks for your clear instructions which have helped me get rid of Vundo (identified but not deleted by McAfee)

  25. nuguy47 Says:

    This one has me stumped. Something is causing the browser to open and when it’s ope all it does is go to the home page. If you go to another page all it does is reload the home page.

    Multiple browser windows keep opening. When you rename or delete the brower program you get an unsigned error message saying ‘Application can’t be found’.

    I wiped out the disk drive and loaded windows and it’s still there. I wiped out the drive multiple times and used different CD sources of XP and they all come up the same. I used Partition Magic to wipe out a little 8 Gb partition I thought this critter might be hiding in. Always the same results.

    When XP starts up it tries to go online. I was able to open Explorer before it happened once and the right pane in explorer went to the default MSN home page.

    The only place I think this thing can be hiding is in the Bios but the floppy drive no longer works so I can’t flash it using the Dell update.

    When I use your technique, all dlls associated with Winlogon are signed as Microsoft.

    I took me two days to isolate this thing to explorer being triggered by Winlogon. As soon as I open an Explorer window it starts trying to fire up IE again.

    At least XP Pro lets you delete IE. XP Home automatically restores it.

    Any ideas would be most appreciated. I have just the basic XP Pro install while I’m trying to find this bug. Could it really be hiding in the bios and reinstalling itself that way?

    Thanks

  26. surya narayan singh Says:

    hello nuguy47,

    It’s very easy to see which program is running the browser using Process Explorer. It’s tree view will help you locate the exact program thats running the browser.

    If process explorer indicates that winlogon is runnig the browser, then there’s definately some worm loaded inside winlogon.

    Try scanning using some free antivirus and follow the steps above to remove the worm.

    if you need any more help then just let me know :D

  27. Nuguy47 Says:

    How is the bug still there when I:
    a) wiped the hdd each time using a DES approved program before I
    b) reloaded windows multiple times from different source disks (3 different)
    c) don’t have any unsigned dlls under winlogon (they all say Microsoft)

    Malwarebytes found a winlogon virus and removed it.

    What next?

    Thanks in advance for your helf.

  28. y2cj3600 Says:

    hey i have this nasty lil bug on my computer. it’s been here the last few days. i’ve tried every antisoftware u can think of everything from avast, to vundofix. and still cant get it off.

    i believe it to be a vundo. when i do hijackthis the same file keeps coming back everytime i delete it. the winlogon file kept showing up to be infected as well.

    i know bugs can get into winlogon so i did a search on my computer for it and 4 winlogons came up. one of them was in my system32 folder which i know is the real one but what about the others.

    i was just going to delete the others but peeps started yelling at me saying dont delete them or my computer wont work. so after someone sent me to this site i downloaded the two tools u said but before i try them i am a lil scared i might mess my computer up cuz i never used these two programs.

    but a quick question, after i kill a program how do i turn it back on.

    like u say to kill explorer, then smss, then winlogon but after i do that how do i turn them back on. i practiced 1st and turned off yahoo but once i did i didnt know how to turn it back on.

    and with the free commander tool how do i browse. also no tray shows up at the bottom of my process explorer. sorry for the long reply i just like to be detailed.

  29. sn says » December 2008’s 10 Most Popular Posts: Says:

    [...] 1.Removing-winlogon-virus: [...]

  30. allen Says:

    hi, thanks for this post, it has helped me to get rid of a vundo trojan that was making life miserable for me.

  31. Alej Says:

    This advice rocks. I was going nuts trying to remove a dll from my system.

  32. sn says » January 2009’s 10 Most Popular Posts Says:

    [...] 1.Removing-winlogon-virus: [...]

  33. Tater Says:

    Great tips, but I’m still having a problem. This bug has pretty much disabled most fixes from even running. Although I have removed the ransomeware spywareguard 2008, there is still a dll running in the winlogon.exe.

    Had to use the ultraedit.exe to help process explorer run which worked…kind of. If I click on the threads tab on winlogon.exe, the program crashes to desktop. Same thing happens when I try to kill explorer. Not sure where to go from here.

  34. sn says » Fabruary 2009’s 10 Most Popular Posts Says:

    [...] 1,removing-winlogon-virus: [...]

  35. KD Says:

    UMMM I wanted to delete the virus… and now my computer is all out of whack and the colors and toolbars are different???

  36. Bruce Kitchell Says:

    Your tip was right on target. I spent 5 hours trying to figure out how to delete the dll being held open by winlogon. I knew that killing the winlogon process would crash the machine but I did NOT know that killing smss process would allow me to kill winlogon without a crash. Thanks so much for sharing this tip to the tech world.

  37. sands Says:

    hi. i did the following steps and deleted winlogon.exe. the problem now is, when i restarted my pc, it just gives me the bluescreen and a system fatal error. help pls. how do i restore to at least save my files.

  38. surya narayan singh Says:

    dear sands,

    You dont have to delete “winlogon.exe”. You have to delete the virus or worm that loads itself into winlogon.exe.

    Winlogon is the name of the process that manages the login. So when you boot your machine, this process is responsible for showing you the login dialog.

    Without this progam, your machine wont boot.

    Here’s what you can do to restore the original winlogon file. Get hold of the windows xp installation cd and then restore the windows operating system.

    And then read the instructions given above carefully. If you are unsure about this whole thing, then please get someone experienced who can help you out.

  39. sands Says:

    hi thanks for the reply. i guess i messed up. how do i get to backup my files then before restoring when i cant login to windows.

  40. surya narayan singh Says:

    the safest, and probably the easiest way to backup your files is to take out your hard disk and use your friends machine to copy all the important stuff on some other disk.

    after that, you can try reapairing windows. Thats pretty easy. Just boot from windows installation cd and then choose the option to repair existing installation ( it will ask you to press the button R ).

    choose the drive on which windows is installed, and then it will fix everything automatically.

    hope that helps :D

  41. sands Says:

    hi. if i choose repair will it delete the files in the computer?

  42. surya narayan singh Says:

    nope. but if you have never done it, please google for “windows repair” and you will find some helpful information

    http://www.google.com/search?client=opera&rls=en&q=windows+repair&sourceid=opera&ie=utf-8&oe=utf-8

  43. sands Says:

    thanks so much surya. :-)

  44. tainted Says:

    Hi and thx for great tips. :) My problem is this: While trying to kill smss.exe, I get No access. and im logged in as admin yeah.. ;( guess the coding in the virus is abit ahead of me. What shud I do?

  45. surya narayan singh Says:

    are you using process explorer to kill it ?

    You cannot use normal task manager to kill it. Process manager loads a driver which can kill the process from kernel space :)

    Try terminating it with process explorer, should work.

  46. n0risc Says:

    I can’t even get into safe mode anymore, keeps rebooting. Is there a way to kill this from Winternals Commander, from the BART PE pre-install enviro disk, or even loading the registry hive in Total Commander and hacking the registry to find this malware? I was able to locate a weird .dll, ndcxqwynk.dll.

    I was able to delete this .dll and it took care of the winlogon.exe cpu hogging.. Thanks for this thread. Helped considerably.

  47. sn says » Hot laptops can damage your health Says:

    [...] minutes. If you always work at a desk or table, this may be all you ever notice, but if you use a laptop on your lap, you could be outing your health at [...]

  48. Ced Says:

    I have a virus contracted from a torrent file. Just so happens my antivirus program lapsed and let it in. My spybot notifications are telling me about registry changes attempted to winlogon and TASKMAN. I can’t boot in normal mode, it seems that whatever this virus is, is systematically corrupting all of my files and i can’t open any of my programs (specifically antivirus and anti-spyware/malware) without renaming the .exe extension to .bat or something like that. Sometimes that doesn’t even work. I can’t get online in normal or safe mode, so as of now i’m grabbing programs from other computers and putting them on a flash drive and running them on my pc through that. I tried the steps above in safe mode, but after deleting the first two in process explorer, and then tryiing to delete the winlogon.exe process, it goes black screen with the flashing underscore in the top left corner. I ran malwarebytes and spybot who both found about 8 trojans and removed them, but my machine is still doing the same things. i’ve been at it for about 2 days now, the only progress i’ve made is removing a few trojans and actually getting some of my programs to work. I need help! Any suggestions?

  49. Ced Says:

    Also, i cannot restore my computer to any previous point because apparently the files needed for that process are either corrupted or unable to be found

  50. Erik Says:

    Thanks for the guide. But how can I find the malware after I have killed Winlogon.exe? Please help

  51. kc baba Says:

    Great thanks , it’s working, many-many thanks………………..

Leave a Reply

Spam Protection by WP-SpamFree