Analysis by: Joachim Suico

ALIASES:

Worm:JS/Bondat (Microsoft); JS/Bondat.e (McAfee); JS/Bondat.A (Panda)

 PLATFORM:

Windows

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

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel: Downloaded from the Internet, Dropped by other malware, Via removable drives

This worm arrives via removable drives. It arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

  TECHNICAL DETAILS

File Size: 45,120 bytes
File Type: JS
Memory Resident: Yes
Initial Samples Received Date: 05 Dec 2014
Payload: Steals information

Arrival Details

This worm arrives via removable drives.

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

  • %User Startup%\Windows Explorer.lnk - shortcut to dropped copy of itself
  • %ProgramData%\Windows Explorer.lnk - shortcut to dropped copy of itself

(Note: %User Startup% is the current user's Startup folder, which is usually C:\Windows\Profiles\{user name}\Start Menu\Programs\Startup on Windows 98 and ME, C:\WINNT\Profiles\{user name}\Start Menu\Programs\Startup on Windows NT, and C:\Documents and Settings\{User name}\Start Menu\Programs\Startup.. %ProgramData% is the Program Data folder, where it usually is C:\Program Files in Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\ProgramData in 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.)

It drops the following copies of itself into the affected system:

  • %Application Data%\{random folder name}\{random file name}.js
  • %User Profile%\{random folder name}\{random file name}.js
  • {Removable drives}\.Trashes\{random number}\{random file name}.js

(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming 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.. %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000, XP, and Server 2003, or C:\Users\{user name} on Windows Vista and 7.)

It creates the following folders:

  • %Application Data%\{random folder name}
  • %User Profile%\{random folder name}
  • {Removable drives}\.Trashes
  • {Removable drives}\.Trashes\{random number}

(Note: %Application Data% is the Application Data folder, where it usually is C:\Documents and Settings\{user name}\Application Data on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Roaming 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.. %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000, XP, and Server 2003, or C:\Users\{user name} on Windows Vista and 7.)

Autostart Technique

This worm drops the following shortcut pointing to its copy in the User Startup folder to enable its automatic execution at every system startup:

  • Windows Explorer.lnk

Other System Modifications

This worm modifies the following registry entries:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\
Advanced
Hidden = "2"

(Note: The default value data of the said registry entry is {User preferences}.)

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\
Advanced
ShowSuperHidden = "0"

(Note: The default value data of the said registry entry is {User preferences}.)

Propagation

This worm drops the following copy(ies) of itself in all removable drives:

  • {Removable drives}\.Trashes\{random number}\{random file name}.js

Information Theft

This worm gathers the following data:

  • User name
  • Computer name
  • List of running processes
  • Operating system information

Stolen Information

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

  • http://{BLOCKED}.{BLOCKED}.3.136/
  • http://{BLOCKED}c.myquickweb.net/
  • http://www2.{BLOCKED}connect.com/
  • http://{BLOCKED}.{BLOCKED}.192.195/

Other Details

This worm connects to the following URL(s) to check for an Internet connection:

  • https://www.microsoft.com/
  • https://www.google.com/
  • https://www.bing.com/

NOTES:

It copies legitimate wscript.exe into the following:

  • %Application Data%\{random folder name}\{string 1}{string 2}{32, 64, or blank}.exe
  • %User Profile%\{random folder name}\{string 1}{string 2}{32, 64, or blank}.exe

where string 1 can be any of the following:

  • win
  • cmd
  • disk
  • dsk
  • ms
  • hp
  • intel
  • amd
  • dll
  • tcp
  • udp

string 2 can be any of the following:

  • process
  • proc
  • monitor
  • mon
  • sys
  • host
  • mgr
  • update
  • updater

It terminates itself when the following strings are found in the system through Windows Management Instrumentation (WMI) queries:

  • QEMU
  • Bochs
  • innotek
  • Xen
  • Red Hat
  • Virtual HDD
  • VMware
  • VBOX
  • Citrix

It terminates processes with the following strings:

  • regedit
  • windows-kb
  • mrt
  • rstrui
  • msconfig
  • procexp
  • avast
  • avg
  • mse
  • ptinstall
  • sdasetup
  • issetup
  • fs20
  • mbam
  • housecall
  • hijackthis
  • rubotted
  • autoruns
  • avenger
  • filemon
  • gmer
  • hotfix
  • klwk
  • mbsa
  • procmon
  • regmon
  • sysclean
  • tcpview
  • unlocker
  • wireshark
  • fiddler
  • resmon
  • perfmon
  • msss
  • cleaner
  • otl
  • roguekiller
  • fss
  • zoek
  • emergencykit
  • dds
  • ccsetup
  • vbsvbe
  • combofix
  • frst
  • mcshield
  • zphdiag

In the folders where it dropped shortcuts, this worm deletes files with the following extensions:

  • .js
  • .vbs
  • .jse
  • .vbe

It also moves files with the following extensions into {Removable drives}\.Trashes:

  • exe
  • doc
  • docx
  • pdf
  • rtf
  • txt
  • mp3
  • m4a
  • ogg
  • wav
  • wma
  • mp4
  • avi
  • webm
  • flv
  • mov
  • wmv
  • mpeg
  • mpg
  • gif
  • jpg
  • jpeg
  • png

It also creates shortcuts with names as the moved files.

  SOLUTION

Minimum Scan Engine: 9.750
FIRST VSAPI PATTERN FILE: 11.492.02
FIRST VSAPI PATTERN DATE: 05 Dec 2015
VSAPI OPR PATTERN File: 11.493.00
VSAPI OPR PATTERN Date: 06 Dec 2015

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

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\Explorer\Advanced
    • Hidden = "2" to {User Preferences}
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • ShowSuperHidden = "0" to {User Preferences}

Step 5

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 Startup%\Windows Explorer.lnk
  • %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup\Windows Explorer.lnk
  • %Application Data%\{string 1}{string 2}{32, 64, or blank}.exe

Step 6

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