Ramnit.A Virus
Wednesday, 18. August 2010 16:06
Wow it has been quite a while since I last posted and life/work/etc… have been crazy. But I wanted to post about a new infection we’re really starting to see take off in the forums.
W32/Ramnit.A – aka Packed.Win32.Krap by Kaspersky or W32/Infector by Avira and others
Analysis
The good news (and I don’t have much of that here) is that it is relatively easy to spot this infection using simple tools.
From a HijackThis log:
F2 – REG:system.ini: UserInit=c:\windows\system32\userinit.exe,,c:\program files\microsoft\desktoplayer.exe
Note the text in bold is appended to the legitimate UserInit key.
O4 – HKCU\..\Run: [{223B6D2D-679B-65F9-E93A-D4F20B56A562}] “C:\Documents and Settings\Administrator\Application Data\Puzyr\umluy.exe”
The file name and folder, along with the CLSID, are randomly named and will help to start this infection up every time the computer is rebooted.
This Malware has been referred to as a “cocktail” infection. There are 3 main components:
Backdoor Trojan: This allows the attacker to have complete control of your system to do with it what they wish.
Rootkit: This component, while not malicious in itself, allows the attacker to hide the presence of Malware and the attackers activity.
File Infector: The viral piece of the infection that infects windows system files such as executables and dll files. Very similar to other infections of this type such as Virut and Sality.
While most times the first 2 components can be identified and removed, the third is very difficult to clean and most experts recommend a complete rebuild of the OS.
Removal
I will give my standard warning and disclaimer here that this information should not be used for removal instructions and is only intended as part of the analysis and testing for informational purposes. Because each infection can differ and the fact that this one allows the remote attackers to install and run pretty much anything they want, infections will vary from system to system and each case should be treated on an individual basis by an expert. As of this writing I have not had complete success in cleaning this and have not seen one cleaned successfully in the forums. The standard advice given with this infection is a complete reformat and re-install of the operating system. Care should be taken when doing this and the following should be observed:
- You should only back up your data such as pictures, music, documents, etc… Do not back up any system files or installers as they may be infected.
- All drives and partitions (including flash drives) should be cleaned. This infection can spread very easily so if backup or other drives are infected, when reconnected they will start the whole process over again. I won’t post the link to protect the guilty, but I saw one thread where the user had to re-install Windows 3 times because they did not follow these instructions.
The sample tested here dropped the infamous TDL3 Rootkit. While more involved tools such as GMER are usually needed to identify it, the usual tell tale signs are Google redirects. One of the most effective and simple to use tools for removal is Kaspersky’s TDSSKiller. They have also recently updated the tool so it is now a simple point and click GUI tool.
So TDL3 and the redirects are gone, but what about the rest?
Here is where it gets difficult. The 04 run key entry and file are removable using some of the more aggressive tools such as Avenger or AVZ, but the Winlogon/UserInit key and desktoplayer.exe file are locked in and will simply be recreated if you are able to remove them. Combofix also will attempt to delete the file but it just comes right back. At this point I have not been able to find a way to remove them from within the OS (and at this point have not observed a thread in the forums where they have) and my next step in the thought process will be to try a PE boot disk with the OTL plugin. This still leaves us with infected system files that may or may not be able to be repaired using one of the boot disks such as DrWeb, Kaspersky, or Avira. Another option may be to run a repair install over the OS. But as of right now my suggestion to anyone I’m helping is the format and reload approach.
I will update later when I get some time to work with the PE tools.
Update:
Using UBDC along with OTL I was able to clean this up. After clearing out the loading points from the registry and removing the files I ran scans with Avira and Kaspersky live boot disks to clean out the infected system and program files. Any .htm or .html files cannot be cleaned and need to be deleted.
You cannot reboot into the live OS after just cleaning with OTL as the infection will just come back. While cleaning this from a PE or boot disk is possible you may need to re-install some programs and it would still be hard to really trust the integrity of the system. Best advice is still to wipe it clean in my opinion.
I have also seen a few threads in the forums where users were successful by stopping all iexplore.exe (infected) processes and cleaning out the loading points quickly before it comes back. If you’re quick enough you can do this, but you are still stuck with a whole bunch of infected system and program files. In my case HijackThis.exe had become infected so when I relaunched it to check things it reloaded the infection. Fun stuff indeed…
Category:Analysis | Comment (0) | Autor: admin







