BKDR_IRCBOT.AYN
Windows 2000, Windows Server 2003, Windows XP (32-bit, 64-bit), Windows Vista (32-bit, 64-bit), Windows 7 (32-bit, 64-bit)

Threat Type: Backdoor
Destructiveness: No
Encrypted: Yes
In the wild: Yes
OVERVIEW
Dropped by other malware
This backdoor may be dropped by other malware.
It executes commands from a remote malicious user, effectively compromising the affected system. However, as of this writing, the said sites are inaccessible.
TECHNICAL DETAILS
Varies
EXE, DLL, TMP
Yes
26 Mar 2013
Compromises system security, Connects to URLs/IPs
Arrival Details
This backdoor may be dropped by other malware.
Installation
This backdoor drops the following component file(s):
- %System%\{random name}.dll - also detected as BKDR_IRCBOT.AYN
- {malware path}\RunCmd.log - log file
- {malware path}\Temp\114719_507_AhnlabUpdatekit\AhnlabUpdate.exe - also detected as BKDR_IRCBOT.AYN
- {malware path}\Temp\114719_507_AhnlabUpdatekit\RunCmd.exe - also detected as BKDR_IRCBOT.AYN
- {malware path}\Temp\114719_507_AhnlabUpdatekit\RunCmd.ini - configuration file
(Note: %System% is the Windows system folder, which is usually C:\Windows\System32.)
It creates the following folders:
- {malware path}\Temp
- {malware path}\Temp\114719_507_AhnlabUpdatekit
It injects itself into the following processes as part of its memory residency routine:
- explorer.exe
- svchost.exe
Autostart Technique
This backdoor registers itself as a system service to ensure its automatic execution at every system startup by adding the following registry entries:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}
DisplayName = "{random service name}"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}
ErrorControl = "1"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}
ImagePath = "%SystemRoot%\System32\svchost.exe -k netsvcs"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}
ObjectName = "LocalSystem"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}
Start = "2"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}
Type = "20"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}\Parameters
ServiceDll = "%System%\{random name}.dll"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}\Parameters
ServiceMain = "ServiceMain"
Other System Modifications
This backdoor adds the following registry keys:
HKEY_CLASSES_ROOT\Msxml2.DOMDocument.3.7
HKEY_CLASSES_ROOT\Msxml2.DOMDocument.3.7\CLSID
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Microsoft Sign
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}\Enum
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}\Parameters
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\{random service name}\Security
It adds the following registry entries:
HKEY_CLASSES_ROOT\Msxml2.DOMDocument.3.7\CLSID
(Default) = "{88d96a05-f192-11d4-a65f-0040963251e5}"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Microsoft Sign
KeyCode = "{random values}"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Microsoft Sign
Policy = "{random values}"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Microsoft Sign
SignCode = "{random values}"
It modifies the following registry entries:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT\CurrentVersion\SvcHost
netsvcs = "{default values} {random service name}"
(Note: The default value data of the said registry entry is {default values}.)
Backdoor Routine
This backdoor executes the following commands from a remote malicious user:
- Get operating system information
- Get drive information
- Get computer name
- Get user name
- Join an IRC channel to get commands
- Enumerate files and folders
- Create files and folders
- Download files
- Perform remote shell
- Sleep for a specified amount of time
- Restart system
- Terminate self
- Update self
It connects to the following URL(s) to send and receive commands from a remote malicious user:
- http://{BLOCKED}a.cine21.com/bbs/icon/install1_ok.php
- http://{BLOCKED}g.pe.kr/mdk/install1_ok.php
- http://{BLOCKED}hairstory.com.au/bbs/install_ok.php
- http://{BLOCKED}r.pe.kr/zeroboard/install1_ok.php
However, as of this writing, the said sites are inaccessible.
NOTES:
It checks if the date is less than January 1, 2002. If it is, the malware remains dormant for a day then performs another date check. It does this until the date is greater than or equal to January 1, 2002.
SOLUTION
9.300
Step 1
Before doing any scans, Windows XP, Windows Vista, and Windows 7 users must disable System Restore to allow full scanning of their computers.
Step 2
Scan your computer with your Trend Micro product and note files detected as BKDR_IRCBOT.AYN
Step 3
Restart in Safe Mode
Step 4
Delete this registry key
Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this step only if you know how or you can ask assistance from your system administrator. Else, check this Microsoft article first before modifying your computer's registry.
- In HKEY_CLASSES_ROOT
- Msxml2.DOMDocument.3.7
- Msxml2.DOMDocument.3.7
- In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft
- Microsoft Sign
- Microsoft Sign
- In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
- {random service name}
- {random service name}
Step 5
Restore this modified registry value
Important: Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this only if you know how to or you can seek your system administrator’s help. You may also check out this Microsoft article first before modifying your computer's registry.
- In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost
- From: netsvcs = "{default values} {random service name}"
To: netsvcs = {default values}
- From: netsvcs = "{default values} {random service name}"
Step 6
Search and delete this folder
- {malware path}\Temp
Step 7
Search and delete these files
- {malware path}\RunCmd.log
Step 8
Restart in normal mode and scan your computer with your Trend Micro product for files detected as BKDR_IRCBOT.AYN. If the detected files have already been cleaned, deleted, or quarantined by your Trend Micro product, no further step is required. You may opt to simply delete the quarantined files. Please check this Knowledge Base page for more information.
Did this description help? Tell us how we did.