Backdoor.Win32.SDBBOT.AB

 Analysis by: Ricardo III Valdez

 ALIASES:

HEUR:Trojan.Win32.Generic (KAPERSKY)

 PLATFORM:

Windows

 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:

Dropped by other malware, Downloaded from the Internet

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 connects to a website to send and receive information.

  TECHNICAL DETAILS

File Size:

512,000 bytes

File Type:

DLL

Memory Resident:

Yes

Initial Samples Received Date:

26 Oct 2022

Payload:

Connects to URLs/IPs, Drops files, Steals information

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 drops the following files:

  • When ran in a system with a version lower than or equal to Windows 7:
    • Without administrator rights:
      • %Application Data%\{15 Random Characters}.dll
    • With administrator rights:
      • %User Temp%\sdb{4-digit Hex Numbers}.tmp
      • %User Temp%\SDB{4-digit Hex Numbers}.tmp
      • %Windows%\AppPatch\Custom\{Hex Values}.sdb
  • When ran in a system with a version greater than Windows 7:
    • Without administrator rights:
      • %Application Data%\mswinload.dll
    • With administrator rights:
      • %System%\mswinload0.dll

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.)

It adds the following processes:

  • "%System%\sdbinst.exe" -q -p "%User Temp%\sdb{4-digit Hex Numbers}.tmp"

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It adds the following mutexes to ensure that only one of its copies runs at any one time:

  • windows_7_windows_10_check_running_once_mutex

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
{15 Random Characters} = rundll32 %Application Data%\{15 Random Characters}.dll , #1

HKEY_CURRENT_USER\SOFTWARE\Microsoft\
Windows\CurrentVersion\Run
mswinload = rundll32 %Application Data%\mswinload.dll , #1

It adds the following Image File Execution Options registry entries to automatically execute itself whenever certain applications are run:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT\CurrentVersion\Image File Execution Options\
winlogon.exe
VerifierDlls = mswinload0.dll

Other System Modifications

This Backdoor deletes the following files:

  • %User Temp%\SDB{4-digit Hex Numbers}.tmp
  • %Windows%\AppPatch\Custom\{Hex Values}.sdb

(Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)

It adds the following registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
{3 Random Letters}
{1 Random Letter} = {Hex Values}

HKEY_CURRENT_USER\SOFTWARE\Microsoft\
{3 random letters}
{1 Random Letter} = {Hex Values}

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\AppCompatFlags\
Custom\services.exe
{Hex Values}.sdb = {Timestamp}

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Uninstall\
{Hex Values}.sdb
DisplayName = Microsoft KB2720155

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Uninstall\
{Hex Values}.sdb
UninstallString = %System%\sdbinst.exe -u %Windows%\AppPatch\Custom\{Hex Values}.sdb

HKEY_LOCAL_MACHINE\SOFTWARE\Microsot\
Windows NT\CurrentVersion\AppCompatFlags\
InstalledSDB\{Hex Values}
DatabasePath = %Windows%\AppPatch\Custom\{Hex Values}.sdb

HKEY_LOCAL_MACHINE\SOFTWARE\Microsot\
Windows NT\CurrentVersion\AppCompatFlags\
InstalledSDB\{Hex Values}
DatabaseType = {Numbers}

HKEY_LOCAL_MACHINE\SOFTWARE\Microsot\
Windows NT\CurrentVersion\AppCompatFlags\
InstalledSDB\{Hex Values}
DatabaseDescription = Microsoft KB2720155

HKEY_LOCAL_MACHINE\SOFTWARE\Microsot\
Windows NT\CurrentVersion\AppCompatFlags\
InstalledSDB\{Hex Values}
DatabaseInstallTimeStamp = {Timestamp}

Backdoor Routine

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

  • Execute CMD Commands
  • Reboot the System
  • Sleep
  • Record Video
  • Enable/Disable RDP
  • Port Forward
  • Inject PE Files
  • Get Drive Information and Directories/Files
  • Manage Files (Create,Read,Write,Delete)
  • Create Directory

It connects to the following websites to send and receive information:

  • https://{BLOCKED}003774-live.com
  • https://{BLOCKED}000846-live.com

Information Theft

This Backdoor gathers the following data:

  • Domain Name
  • Computer Name
  • Country Code
  • OS Version and Architecture
  • User Privilege
  • Proxy Settings

Other Details

This Backdoor adds the following registry keys:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\
{3 random letters}

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
{3 Random Letters}

HKEY_CURRENT_USER\SOFTWARE\Microsoft\
{3 Random Letters}

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\AppCompatFlags\
Custom\services.exe

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Uninstall\
{Hex Values}.sdb

HKEY_LOCAL_MACHINE\SOFTWARE\Microsot\
Windows NT\CurrentVersion\AppCompatFlags\
InstalledSDB\{Hex Values}

It does the following:

  • After installing itself in the system, the system it is running on needs to be rebooted in order for it to proceed with its other malicious routines.
  • It checks the user privilege it is run with and depending on what was used it will use the following registry tree:
    • HKEY_LOCAL_MACHINE → When run with administrator rights
    • HKEY_CURRENT_USER → When run without administrator rights
  • The created registry key contains the loader for the encrypted RAT component and the encrypted RAT component itself.
  • It checks the version of the system it is running on and depending on the result will use different ways of establishing persistence:
    • For systems running with a version lower than or equal to Windows 7:
      • Via Applications Shims (Installed with sdbinst.exe)→ When run with administrator rights
      • Via Registry Run Keys → When run without administrator rights
    • For systems running with a version greater than Windows 7:
      • Via Registry Run Keys → When run without administrator rights
      • Via Image File Execution Options Keys → When run with administrator rights

  SOLUTION

Minimum Scan Engine:

9.800

FIRST VSAPI PATTERN FILE:

17.926.02

FIRST VSAPI PATTERN DATE:

09 Nov 2022

VSAPI OPR PATTERN File:

17.927.00

VSAPI OPR PATTERN Date:

10 Nov 2022

Step 1

Trend Micro Predictive Machine Learning detects and blocks malware at the first sign of its existence, before it executes on your system. When enabled, your Trend Micro product detects this malware under the following machine learning name:

    • TROJ.Win32.TRX.XXPE50FFF062

Step 2

Before doing any scans, Windows 7, Windows 8, Windows 8.1, and Windows 10 users must disable System Restore to allow full scanning of their computers.

Step 3

Note that not all files, folders, and registry keys and entries are installed on your computer during this malware's/spyware's/grayware's execution. This may be due to incomplete installation or other operating system conditions. If you do not find the same files/folders/registry information, please proceed to the next step.

Step 4

Restart in Safe Mode

[ Learn More ]

Step 5

Identify and terminate files detected as Backdoor.Win32.SDBBOT.AB

[ Learn More ]
  1. Windows Task Manager may not display all running processes. In this case, please use a third-party process viewer, preferably Process Explorer, to terminate the malware/grayware/spyware file. You may download the said tool here.
  2. If the detected file is displayed in either Windows Task Manager or Process Explorer but you cannot delete it, restart your computer in safe mode. To do this, refer to this link for the complete steps.
  3. If the detected file is not displayed in either Windows Task Manager or Process Explorer, continue doing the next steps.

Step 6

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
    • {15 Random Characters} = rundll32 %Application Data%\{15 Random Characters}.dll , #1
  • In HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    • mswinload = rundll32 %Application Data%\mswinload.dll,#1
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\winlogon.exe
    • VerifierDlls = mswinload0.dll

Step 7

Delete this registry key

[ 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. Before you could do this, you must restart in Safe Mode. For instructions on how to do this, you may refer to this page If the preceding step requires you to restart in safe mode, you may proceed to edit the system registry.

  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\{3 Random Letters}
  • In HKEY_CURRENT_USER\SOFTWARE\Microsoft\{3 Random Letters}
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppCompatFlags\Custom\services.exe
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Hex Values}.sdb
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsot\Windows NT\CurrentVersion\AppCompatFlags\InstalledSDB\{Hex Values}

Step 8

Search and delete these files

[ Learn More ]
There may be some files that are hidden. Please make sure you check the Search Hidden Files and Folders checkbox in the "More advanced options" option to include all hidden files and folders in the search result.
    • %User Temp%\sdb{4-digit Hex Number}.tmp
    • %Windows%\AppPatch\Custom\{Hex Values}.sdb
    • %Application Data%\{15 Random Characters}.dll
    • %Application Data%\mswinload.dll
    • %System%\mswinload0.dll

Step 9

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