Analysis by: JasperM

 PLATFORM:

Windows 2000, XP, Server 2003

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

  • Threat Type: Spyware

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

This spyware creates folders where it drops its files. It may be injected into processes running in memory.

It opens random ports.

  TECHNICAL DETAILS

Ports: Varies
File Size: 146,944 bytes
File Type: PE
Memory Resident: Yes
Initial Samples Received Date: 13 Aug 2010
Payload: Steals information, Connects to URLs/Ips, Drops files

Infection Points

This spyware arrives as a file downloaded from the following URLs:

  • http://{BLOCKED}oong.ru/bin/saejuogi.exe

It is injected into the following processes running in memory:

  • ctfmon.exe
  • dwm.exe
  • explorer.exe
  • rdpclip.exe
  • taskeng.exe
  • taskhost.exe
  • wscntfy.exe

It may be injected into processes running in memory.

Autostart Technique

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{GUID} = {malware path and file name}

It drops the following files:

  • %Application Data%\{random1}\{random}.exe - copy of itself
  • %Application Data%\{random2}\{random}.{3 random alpha character extension name} - encrypted file

(Note: %Application Data% is the current user's Application Data folder, which is usually C:\Windows\Profiles\{user name}\Application Data on Windows 98 and ME, C:\WINNT\Profiles\{user name}\Application Data on Windows NT, and C:\Documents and Settings\{user name}\Local Settings\Application Data on Windows 2000, XP, and Server 2003.)

Other System Modifications

This spyware creates the following registry entry(ies) to bypass Windows Firewall:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\SharedAccess\Parameters\
FirewallPolicy\StandardProfile\AuthorizedApplications\
List
%Windows%\\Explorer.exe = %Windows%\Explorer.exe:*:Enabled:Windows Explorer

Backdoor Routine

This spyware opens a random port to allow a remote user to connect to the affected system. Once a successful connection is established, the remote user executes commands on the affected system.

Information Theft

This spyware accesses the following site to download its configuration file:

  • http://{BLOCKED}yeew.ru/bin/saejuogi.bin
  • http://{BLOCKED}aepo.ru/bin/saejuogi.bin
  • http://{BLOCKED}yeew.ru/bin/saejuogi.bin
  • http://{BLOCKED}aepi.ru/bin/saejuogi.bin
  • http://{BLOCKED}ejae.ru/bin/saejuogi.bin
  • http://{BLOCKED}ushi.ru/bin/saejuogi.bin
  • http://{BLOCKED}fech.ru/bin/saejuogi.bin
  • http://{BLOCKED}ilei.ru/bin/saejuogi.bin

The downloaded file contains information where the malware can download an updated copy of itself, and where to send its stolen data.

It targets the following websites:

  • http*scripts/injScp.js*
  • http://oyehai.ru/script.js
  • https://www.commerzbanking.de/*/pgf.html*
  • https://www.commerzbanking.de/*/cowis.js*
  • https://meine.deutsche-bank.de/*
  • https://meine.deutsche-bank.de/*/javascript/global.js*
  • https://www.dresdner-privat.de/servlet/P/SSA*do*
  • https://www.dresdner-privat.de/SSA_MLS_JAVASCRIPT/mlsgeneral.js*
  • https://finanzportal.fiducia.de/*/entry*
  • https://finanzportal.fiducia.de/*/portal*
  • https://internetbanking.gad.de/ptlweb/WebPortal*
  • https://internetbanking.gad.de/images/Ib.js*
  • https://my.hypovereinsbank.de/login*
  • https://my.hypovereinsbank.de/js/portal.js*
  • https://banking.postbank.de/app/welcome.do*
  • https://banking.postbank.de/app/login.do*
  • https://banking.postbank.de/app/static/js/script.js*
  • *.de/portal/portal/*
  • https://www.targobank.de/de/*cgi*
  • https://www.targobank.de/de/javascript/funcs_global.js*
  • https://www.bbvanetoffice.com/BBVANETOFFICE/promocion*
  • https://www.bbvanetoffice.com/promocion*
  • https://www.bbvanetoffice.com/BBVANETOFFICE/bbvanetoffice/bienvenida*
  • https://ing.ingdirect.es/W/Transactional/faces/selectOption?select_op=initLogin*
  • https://ing.ingdirect.es/W/Transactional/adf/js/jquery-latest.js*
  • https://www.caixapenedes.com*
  • https://www.caixapenedes.com/js/niftycube.js
  • *ruralvia.com/isum/*login*
  • https://ww3.deutsche-bank.es/pbct/login.*
  • https://ww3.deutsche-bank.es/db24online/js/login/eStara.js
  • https://ww3.deutsche-bank.es/pbct/login*
  • https://ww3.deutsche-bank.es/pbct/NetiServlet?neti_id=navigation.bottom*
  • https://www.caixacatalunya.com/CDA/caixacat/es/ccpublic/particulars/Home/OthHomePageCas/0,1217,,00.html
  • https://www.caixacatalunya.com/NASApp/ceconline/index.jsp*
  • https://www.barclays.es/publico/contents/*jsp*
  • https://www.barclays.es/publico/js/TextEngine.js
  • https://www.sabadellatlantico.com*
  • *cajaespana.net*
  • https://www.cajaespana.net/convivencia/siglo21/estandar/recursos/tecladovirtual.js
  • https://www.solbank.com*
  • https://enlinea.cajasur.es/BEWeb/2024/4024/inicio_identificacion.action*
  • https://enlinea.cajasur.es/4024/js/loginPin.js*
  • https://cajaelectronica.caja-granada.es/BEWeb/2031/2031/inicio_identificacion.action*
  • https://cajaelectronica.caja-granada.es/2031/js/MOD3.js*
  • https://cajaelectronica.caja-granada.es/BEWeb/2031/2031/not5801_d_COMUN.action?OPERACION=*
  • https://activa24.ccm.es/BEWeb/2105/6105/inicio_identificacion.action*
  • https://activa24.ccm.es/6105/js/comunBEWEB.js*
  • https://be.cajamurcia.es/6043/js/LOGIN2_PORTAL.js
  • https://be.cajamurcia.es/BEWeb/2043/6043/inicio_identificacion.action
  • https://be.cajamurcia.es/6043/js/MOD3.js
  • https://soldirecto.cajasoldirecto.es/2106/js/incluyeDomain.js*
  • https://soldirecto.cajasoldirecto.es/BEWeb/2106/2106/inicio_identificacion.action*
  • https://soldirecto.cajasoldirecto.es/BEWeb/2106/2106/inicio_identificacion.action*
  • https://soldirecto.cajasoldirecto.es/BEWeb/2106/2106/psINICm_0.action*
  • https://www.uno-e.com/local_bdnt_unoe/Login_unoe2.html*
  • https://www3.altamiraonline.com/AltamiraOnLineWeb/Sesion*
  • https://www3.altamiraonline.com/AltamiraOnLineWeb/src/canalInet/md5.js*
  • https://pastornet*.bancopastor.es/SrPd*
  • *bankinter.com*utils.js*
  • *bankinter.com*gzinflate.js.php*
  • *bankinter.com/www/es-es/cgi/*+home
  • https://oficina24hores.caixagirona.es/BEWeb/2030/1030/inicio_identificacion.action*
  • https://oficina24hores.caixagirona.es/*/Js/MOD3.js*
  • https://telematic.caixamanlleu.es/ISMC/*/acceso.jsp*
  • https://telematic.caixamanlleu.es/ISMC/*/js/teclat.js*
  • https://be.homecem.com/BEWeb/*/login_identificacion*
  • https://be.homecem.com/2041/js/comunBEWEB.js*
  • https://www.caixaterrassa.es/SESSIONS/SFObe*
  • https://enlaza.cajadeburgos.es/BELLogin.jsp*
  • https://www.cajalaboral.*/home/acceso.asp
  • https://www.cajamar.es*
  • https://cajasturdirecto.cajastur.es/BEWeb/2048/*/inicio_identificacion.action*
  • https://cajasturdirecto.cajastur.es/*/js/MOD3.js*
  • https://cajasturdirecto.cajastur.es/BEWeb/2048/*/portal_inicio_identificacion.action*
  • https://empresas.gruposantander.es/WebEmpresas/*
  • *iurisbank.com/isum/*login*
  • https://www.unicaja.es/*

Stolen Information

This spyware sends the gathered information via HTTP POST to the following URL:

  • http://{BLOCKED}ushi.ru/y93/_gate.php

Other Details

Based on analysis of the codes, it has the following capabilities:

  • Hooks the following APIs to intercept data that the system sends and receives:
    • ntdll.dll:
      • NtCreateThread
      • LdrLoadDll
    • kernel32.dll:
      • GetFileAttributesExW
    • WS2_32.dll:
      • send
      • WSASend
      • closesocket
    • USER32.dll:
      • TranslateMessage
      • GetClipboardData
    • WININET.dll:
      • InternetCloseHandle
      • HttpSendRequestA
      • HttpQueryInfoA
      • InternetReadFile
      • InternetQueryDataAvailable
      • HttpSendRequestExW
      • InternetReadFileExA
      • HttpSendRequestW
      • HttpSendRequestExA
  • Intercepts data to and from Mozilla Firefox by hooking the following APIs:
    • nspr4.dll:
      • PR_OpenTCPSocket
      • PR_Close
      • PR_Read
      • PR_Write
  • Steals private keys from certificates by hooking the following API:
    • CRYPT32.dll:
      • PFXImportCertStore
  • Take screenshots
  • Logs keystrokes

Variant Information

This spyware has the following MD5 hashes:

  • a61732d6519a6530691d9fb56912ca57

It has the following SHA1 hashes:

  • 4718ad5bbd3d5292bf3039c4955864931e6e48c8

  SOLUTION

Minimum Scan Engine: 8.900
VSAPI OPR PATTERN File: 7.378.07
VSAPI OPR PATTERN Date: 12 Aug 2010

Step 1

For Windows XP and Windows Server 2003 users, before doing any scans, please make sure you disable System Restore to allow full scanning of your computer.

Step 2

Restart in Safe Mode

[ Learn More ]

Step 3

Scan your computer with your Trend Micro product and note files detected as TSPY_ZBOT.BWF

Step 4

Delete the registry entry with an unknown data 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.

  • %Application Data%\{random1}
  • %Application Data%\{random2}

Step 5

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_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile\AuthorizedApplications\List
    • %Windows%\Explorer.exe=%Windows%\Explorer.exe:*:Enabled:Windows Explorer

Step 6

Scan your computer with your Trend Micro product to delete files detected as TSPY_ZBOT.BWF. 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.