{"id":263,"date":"2008-01-13T18:48:18","date_gmt":"2008-01-13T17:48:18","guid":{"rendered":"http:\/\/www.nivas.hr\/blog\/2008\/01\/13\/biohazard-outbreak-of-wintemsexe-28-hours-later-how-to-get-rid-of-a-virus-if-you-cant-boot-to-safe-mode-and-your-computer-keeps-deleting-anti-virus-software\/"},"modified":"2008-01-19T12:31:42","modified_gmt":"2008-01-19T11:31:42","slug":"biohazard-outbreak-of-wintemsexe-28-hours-later-how-to-get-rid-of-a-virus-if-you-cant-boot-to-safe-mode-and-your-computer-keeps-deleting-anti-virus-software","status":"publish","type":"post","link":"https:\/\/www.nivas.hr\/blog\/2008\/01\/13\/biohazard-outbreak-of-wintemsexe-28-hours-later-how-to-get-rid-of-a-virus-if-you-cant-boot-to-safe-mode-and-your-computer-keeps-deleting-anti-virus-software\/","title":{"rendered":"Biohazard outbreak of wintems.exe &#8211; 28 hours later (how to get rid of a virus if you can&#8217;t boot to safe mode and your computer keeps deleting anti virus software)"},"content":{"rendered":"<p><img src=\"\/blog\/wp-content\/photos\/g-virus-mutation-200.gif\" alt=\"mutated alien virus\" align=\"right\" \/><\/p>\n<p><em>Winter season is among other things, also well known for flues, colds, sore throats and people being sick in general. Some of my team members have been struck down by some nasty mutated flue and are now on antibiotics. I was successfully winning the fight with alien mutation by eating abnormal quantities of vitamin C&#8230;. and until yesterday I though I got away!<\/em><\/p>\n<p>Yesterday I came to the office around 4pm, and it was like any other Saturday in the office. Everybody was here &#8211; working as usual. :) I booted up my xp and started to checkout latest version of project on which I had to work. While I was reading my emails I noticed that half of my programs didn&#8217;t start up normally (chameleon clock, <a href=\"http:\/\/www.eset.com\/\">NOD32<\/a>, <a href=\"http:\/\/www.safer-networking.org\/\">SpyBot<\/a>&#8230;). I thought this was pretty strange because I tend to keep my xp in good condition (or at least better than what rest of my crew does). I tried starting nod32 manually, but&#8230; nod32.exe was gone. The same was with the SpybotSD.exe. Strange shit&#8230; I don&#8217;t remember uninstalling them, and especially not deleting just exe files. So that got me little worried, because everybody knows that running xp without antivirus is like keeping your front door open and leaving for long vacation. <\/p>\n<p>First thing I tried was starting <a href=\"http:\/\/www.ccleaner.com\/\">CCleaner<\/a> (which luckily didn&#8217;t get deleted), and to my big surprise &#8211; upon starting CCleaner just exited. Then I tried reinstalling Nod32 and SpyBot, but no luck aether. Setup in both cases went 95% of its way, and just when setup needed to copy .exe&#8217;s, I got error stating that &#8220;setup was unable to write to file&#8230;&#8221; program executable files (!?). I tried deleting unknown running processes, and one process got my immediate attention &#8211; I couldn&#8217;t delete process wintems.exe &#8211; Access denied! BAH!! It sounded like I got infected big time. I deleted all processes (my xp was running using 120 mb of ram)  but I still couldn&#8217;t install any anti virus. To make things worse I was unable to find any reference to wintems.exe nor in my file system nor my registry. Weird shit! Next stop &#8211; safe mode!<\/p>\n<p>As you could foresee from this post subject, my trip to safe mode land didn&#8217;t last long. I was unable to boot to any kind of safe mode. BOSD just keep blowing in my face (without any explanation, dysfunctional dll names etc.). OMG!! WHY ME?! OH, WHHHY! Anyways, when I got back to &#8220;normal mode&#8221;, I tried installing every single freeware antivirus and trojan hunter I could get my hands on. Every single one of them got deleted momentarily by this strange phenomenon. Everyone except <a href=\"http:\/\/spywarenuker.software-phile.com\/\">Spyware Nuker XP<\/a> which helped me to put some light on this conundrum. <\/p>\n<p>As it turned out by Spyware Nuker scan, I was infected with Trojan.Mitglieder also known as: <a href=\"http:\/\/www.symantec.com\/security_response\/writeup.jsp?docid=2006-021112-3313-99&#038;tabid=2\">W32.Beagle.DP<\/a>, <a href=\"http:\/\/www.symantec.com\/security_response\/writeup.jsp?docid=2005-061215-3130-99&#038;tabid=2\">Trojan.Mitglieder.Q<\/a>, <a href=\"http:\/\/www.viruslist.com\/en\/viruses\/encyclopedia?virusid=115851\">Trojan-Downloader.Win32.Bagle.aj<\/a>. The reference to stated names and technical reference, I found several hours later. Nuker told me only that it&#8217;s Mitglieder and that he is being started from HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run:german.exe . However, I couldn&#8217;t see that registry entry from regedit, so I couldn&#8217;t do anything about it. Other references also stated the exact location of wintems.exe, but I couldn&#8217;t see that file, nor delete it (delete however gave some bizarre error message, and not &#8211; file not found.).<\/p>\n<p>Since I was unable to boot to safe mode to get rid of the bastard from there, I used only option available &#8211; boot from xp boot disc and repair from command line. From there I was able to delete wintems.exe conveniently located at %system% folder. I rebooted and tried reinstalling antivirus. The same error as before popped up. The wintems.exe was gone from process list, but as I suspected, virus was buried somewhere between drivers and system services. <\/p>\n<p>Luck has left the guycalledseven&#8217;s town. I had tons of work to do for our project, I couldn&#8217;t boot to safe mode, I was unable to install anything that could locate infected files&#8230; I was near the point of no return &#8211; xp reinstall. <\/p>\n<p>Luckily, one of trial anti virus software I tried was BitDefender, whose installer (after he detected error while writting to bdagent.exe) suggested me to run <a href=\"http:\/\/www.bitdefender.com\/scan8\/ie.html\">free online antivirus scan<\/a> (IE ActiveX). Virus I had was unable to detect online virus scanners!! Woohoo! :) Scan lasted for several hours and after it completed I got exact locations and virus names of infected files. Just to be on the safe side, I also ran Kaspersky online virus scanner too. I got tons of different viruses inside &#8220;%system%\\drivers\\down\\&#8221; folder  (101343.exe &#8211; Trojan-Downloader.Win32.Bagle.ho, 104937.exe &#8211; Email-Worm.Win32.Bagle.of, 4858953.exe &#8211; Trojan.Win32.Pakes.bwy). Then I realized what am I fighting against &#8211; a root kit. Bastard originally came to my system packed into JPG files (I found them inside Internet Explorer cache folders), after installing him self deep into the system he replaced NTXXX functions with pointers to his evil root kit code (NTCreateFile, NTEnumerateKey, NTEnumerateValueKey, NTQueryKey, NTQueryDirectoryFile, NTQuerySystemInformation). Pretty ingenious piece of work if I might say.<\/p>\n<p>By time I found out what I had on my system, I already left office. Thank God to Remote Terminal Client, otherwise I would lost and Sunday too. As I said I was connected remotely from my home to my xp in the office, so booting from xp boot cd was not an option (although I know you can do that with Ubuntu). Instead I tried downloading few anti root kit software\u2019s (which were luckily free). Since they all had shitty installers many of them failed, and their exe&#8217;s got deleted. Cmon, how hard can it be to detect if another process is messing with anti root kit installer?? However, guys from AVG know their viruses. <a href=\"http:\/\/www.grisoft.com\/doc\/download-free-anti-rootkit\/us\/crp\/0\">AVG Anti-Rootkit Free<\/a> was able to install, and upon rebooting he installed him self before the virus could get control over the system again. Around 3am I finally got rid of wintems.exe for good. Now when my system was clean, I could again install anti virus. But, which one? NOD32 again? I don&#8217;t think so. :)<\/p>\n<p>I don&#8217;t believe much to antivirus reviews found on the net, and so far I was pretty unhappy with everyone I tried. That would be: NOD32 (far the worst, didn&#8217;t detected anything, and I already god infected couple of times this year), Symantec (bah), McAffee, AVG, Kaspersky (when I was running Kaspersky I got infected with something that has forbidden me to log in to the system &#8211; luckily I left Remote Registry service running so I could connect from remote computer and fix this), and last but not least &#8211; BlackIce Defender + Trend Micro. Some years ago, when I had those two installed, I barely survived that virus outbreak. The virus was actually exploit for BlackIce which randomly screwed with sectors on my HDD&#8217;s so I lost almost 50% of all my files.<\/p>\n<p>All that being said, I didn&#8217;t want to go back to any of those I got screwed with once. Since online BitDefender helped me to identify problem this time (and NOD32 didn&#8217;t warn me at all), I decided to go for 30 day trial of BitDefender Antivirus 2008 (not so long ago, <a href=\"http:\/\/www.pcworld.com\/article\/124475-1\/article.html\">he got some good ratings<\/a> &#8211; no matter because I don&#8217;t believe them). I left it to run over night and this morning (9 hours and 5.000.000 files later), he found and removed cca 50 viruses (from emails mostly). BitDefender is now running on highest security setting, and he is really processor hungry. I don&#8217;t know if I will be able to live with that on day to day basis, but 10 hours I spent removing W32.Beagle is something I don&#8217;t want to repeat any time soon. :)<\/p>\n<p><strong>A friendly word of advice for all of you running web servers (especially Windows IIS), and running sites with user uploadable content &#8211; INSTALL ANTI VIRUS SOFTWARE! We have it on our unix machines, and they alone can&#8217;t get infected, but can detect if malicious user uploaded avatar picture containing a virus inside. <\/strong><\/p>\n<p><strong>update:<\/strong> it seems that somebody else got infected <a href=\"http:\/\/www.siusic.com\/wphchen\/hard-to-kill-malware-wintems-exe-and-hldrrr-exe-143.html\">with the same disease<\/a>. I hear you bro. :)<\/p>\n<p><strong>update (19-02-2008):<\/strong> Would you believe me if I would tell you that I got infected again??? :) Well I did. This Tuesday. Again. This time, I got BitDefender running on maximum settings, and he only warned me when he detected that wintems.exe want to write him self to the registry. I didn&#8217;t allow him, but it was already too late. Bagle installed him self as a hidden service, as a driver, put stuff in registry, copied 100 viruses in \/system32\/drivers\/down\/ folder (various versions of Bagle), and he also infected some of my programs that I had in usual windows startup (lexmark printer driver). I think I could outsmart him this time, and just run AVG Root Kit, but that didn&#8217;t help. I had to install Spyware Killer again (he delted hidden registry keys) and I had to start online virus scanner (bitdefender again), and 10 hours later, after bitdefender deleted all infected files (printer driver), only then I could start AVG Root Kit. The virus was gone again&#8230; But for how long? :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Winter season is among other things, also well known for flues, colds, sore throats and people being sick in general. Some of my team members have been struck down by some nasty mutated flue and are now on antibiotics. I was successfully winning the fight with alien mutation by eating abnormal quantities of vitamin C&#8230;&#8230;.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts\/263"}],"collection":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":0,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}