BKDR_CAPHAW.AD

 Analysis by: Alvin Bacani

 ALIASES:

Backdoor:Win32/Caphaw.T (Microsoft); Trojan.Win32.Agent.aboxy (Kaspersky)

 PLATFORM:

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

 OVERALL RISK RATING:
 DAMAGE POTENTIAL:
 DISTRIBUTION POTENTIAL:
 REPORTED INFECTION:
 INFORMATION EXPOSURE:

  • Threat Type: Backdoor

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel:

Downloaded from the Internet, Dropped by other malware


This backdoor arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It executes commands from a remote malicious user, effectively compromising the affected system.

It steals certain information from the system and/or the user.

It deletes the initially executed copy of itself.

  TECHNICAL DETAILS

File Size:

335,904 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

01 Oct 2013

Payload:

Compromises system security

Arrival Details

This backdoor arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

Installation

This backdoor injects codes into the following process(es):

  • explorer.exe

Autostart Technique

This backdoor adds the following registry entries to enable its automatic execution at every system startup:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
dllhst3g.exe = "%Application Data%\{random folder found}\{filename found in %System%}"

Other System Modifications

This backdoor adds the following registry entries:

HKEY_CURRENT_USER\Software\Microsoft\
Internet Explorer\Main
NoProtectedModeBanner = "1"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Internet Settings
DisableCachingOfSSLPages = "1"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Internet Settings\
Zones\3
2500 = "3"

It modifies the following registry entries:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Internet Settings\
Zones\3
1609 = "3"

(Note: The default value data of the said registry entry is 1.)

Backdoor Routine

This backdoor executes the following commands from a remote malicious user:

  • Download and execute arbitrary files
  • Upload files
  • Update itself
  • Modify system settings
  • Terminate processes

Information Theft

This backdoor steals the following information:

  • CPU Information
  • OS Version and Installation Information
  • Disk Devices list, type and status
  • Computer Name
  • Admin Rights
  • Code Page
  • Web Browser Version (Internet Explorer, Firefox, Chrome)
  • Anti-malware Software Installed
  • Virtual Machine check
  • Startup Programs
  • VMWare Information
  • Installed Software (found under HKEY_LOCAL_MACHINE\SOFTWARE registry subkey)
  • Running Processes
  • Cookies
  • Network traffic

Other Details

This backdoor deletes the initially executed copy of itself

NOTES:

It drops a copy of itself in random legitimate folders or subfolders found in the %Application Data% folder. It uses the file name of a file found in the %System% folder (e.g., %Application Data%\Microsoft\Internet Explorer\logagent.exe).

It generates random subdomains for the following C&C servers.:

  • {random subdomain}.{C&C server}.su:443/ping.html
  • https://{BLOCKED}zi.su/ping.html
  • https://{BLOCKED}a.cc/ping.html
  • https://{BLOCKED}h.su/ping.html

If a connection to a C&C server is successful, it may download its components/configuration may contain information like targeted online banking sites.

  SOLUTION

Minimum Scan Engine:

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

Restart in Safe Mode

[ Learn More ]

Step 3

Delete this registry value

[ Learn More ]

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • {random}.exe = "%Application Data%\{random folder found}\{filename found in %System%}"
  • In HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
    • NoProtectedModeBanner = "1"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
    • DisableCachingOfSSLPages = "1"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3
    • 2500 = "3"

Step 4

Restore this modified registry value

[ Learn More ]

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3
    • From: 1609 = "3"
      To: 1609 = 1

Step 5

Restart in normal mode and scan your computer with your Trend Micro product for files detected as BKDR_CAPHAW.AD. 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.