TSPY_BABAR.A

 Analysis by: Francis Xavier Antazo

 ALIASES:

PWS:Win32/Babar.A!dha (Microsoft); Trojan-Spy.Win32.Babar.a (Kaspersky), Trojan.Badbar (Symantec)

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW


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

It connects to certain websites to send and receive information.

  TECHNICAL DETAILS

File Size:

599,438 bytes

File Type:

DLL

Memory Resident:

Yes

Initial Samples Received Date:

21 Feb 2015

Arrival Details

This Trojan 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 Trojan drops the following component file(s):

  • %All Users Profile%\Application Data\MSI\update.msi (contains stolen info)
  • %All Users Profile%\Applciation Data\MSI\{variable file name 2}.msi

(Note: %All Users Profile% is the All Users folder, where it usually is C:\Documents and Settings\All Users on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData on Windows Vista (32- and 64-bit), Windows 7 (32- and 64-bit), Windows 8 (32- and 64-bit), Windows 8.1 (32- and 64-bit), Windows Server 2008, and Windows Server 2012.)

Autostart Technique

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

HKEY_LOCAL_MACHINE\Software\Microsoft\
Windows\CurrentVersion\Run
MSSecurity = ""regsvr32.exe" /s /n /i "%AllUsersProfile%\Application Data\{variable file name 1}.dll""

Information Theft

This Trojan gathers the following data:

  • Keystroke logs
  • Clipboard data
  • Desktop screenshots
  • Installed antivirus product information
  • Username
  • Executable directory
  • Executable file name
  • Record conversation

Other Details

This Trojan connects to the following website to send and receive information:

  • http://{BLOCKED}izons-tourisme.com/_vti_bin/_vti_msc/bb/index.php
  • http://{BLOCKED}elimmi.com/wp-inludes/misc/bb/index.php
  • http://www.{BLOCKED}xpetro.com/images/training/courses/bb212/index.php
  • http://www.{BLOCKED}adyie.ir/images/public/bb212/index.php

NOTES:

{variable file name 1} may have any of the following values:

  • perf_585
  • dump21cb

{variable file name 2} may have any of the following values:

  • 48fe7f28
  • 46ab962a

It is dropped by malwares detected as TROJ_BABARDROP.A

It deletes its dropper (detected as TROJ_BABARDROP.A)

It searches for the following AV Products

  • ThreatFire
  • Rising
  • Sophos
  • Kaspersky
  • ZoneAlarm
  • AntiVir
  • DoctorWeb

It monitors the following

  • excel.exe
  • winword.exe
  • powerpnt.exe
  • visio.exe
  • acrord32.exe
  • notepad.exe
  • wordpad.exe
  • skype.exe
  • msnmsgr.exe
  • oovoo.exe
  • nimbuzz.exe
  • googletalk.exe
  • yahoomessenger.exe
  • x-lite.exe

It searches for the following strings from the network communication

  • Text
  • Message-Type:
  • Messaging:
  • Reliability:
  • To:
  • From:
  • Routing:
  • text/plain
  • Content/Type:

  SOLUTION

Minimum Scan Engine:

9.700

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

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 3

Restart in Safe Mode

[ Learn More ]

Step 4

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.

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  • MSSecurity = ""regsvr32.exe" /s /n /i "%All Users Profile%\Applciation Data\MSI\{variable file name 2}.msi""

Step 5

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

Step 6

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