JS_BONDAT.WSJ

 Analysis by: Mar Philip Elaurza

 ALIASES:

Worm:JS/Bondat (Microsoft), Worm.JS.Bondat.cd (Kaspersky), JS/Bondat-Y (Sophos), JS/Bondat.B (ESET-NOD32)

 PLATFORM:

Windows

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

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

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.

However, as of this writing, the said sites are inaccessible.

  TECHNICAL DETAILS

File Size:

81,723 bytes

File Type:

JS

Memory Resident:

No

Initial Samples Received Date:

21 Sep 2015

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 copies of itself into the affected system:

  • %Application Data%\{random}\{random}.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.)

It creates the following folders:

  • %Application Data%\{random}

(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.)

Autostart Technique

This worm drops the following file(s) in the Windows Startup folder to enable its automatic execution at every system startup:

  • %Default User Startup%\Windows Explorer.lnk
  • %User Startup%\Windows Explorer.lnk
  • %All Users Startup%\Windows Explorer.lnk

(Note: %User Startup% is the current user's Startup folder, which is usually C:\Documents and Settings\{user}\Start Menu\Programs\Startup on Windows 2000 and XP, and C:\Documents and Settings\{User name}\Start Menu\Programs\Startup on Windows Vista, 7, and 8.)

Other System Modifications

This worm modifies the following registry entries to hide files with Hidden attributes:

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

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\
Advanced
ShowSuperHidden = 1

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

Propagation

This worm creates the following folder in all physical and removable drives:

  • {Removable Drive Letter}:\.Trashes
  • {Removable Drive Letter}:\.Trashes\{random}

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

  • {Removable Drive Letter}:\.Trashes\{random}\{random}.js

Other Details

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

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

It connects to the following possibly malicious URL:

  • http://{BLOCKED}interest.org/
  • http://{BLOCKED}ill.com/
  • http://{BLOCKED}.{BLOCKED}.85.81/
  • http://{BLOCKED}.{BLOCKED}.210.101/

However, as of this writing, the said sites are inaccessible.

NOTES:

This worm drops legitimate copies of wscript.exe as %Application Data%\{random}\{string 1}{string 2}{32 or 64 or blank}.exe. The variable {string 1} may be any of the following:

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

The variable {string 2} may be any of the following:

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

This worm drops files with random name and no file extension. It creates .lnk of the files located in the removable drives and move the original files to {Removable Drive Letter}:\.Trashes.

  SOLUTION

Minimum Scan Engine:

9.750

FIRST VSAPI PATTERN FILE:

11.926.08

FIRST VSAPI PATTERN DATE:

18 Sep 2015

VSAPI OPR PATTERN File:

11.927.00

VSAPI OPR PATTERN Date:

19 Sep 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 these modified registry values

[ Learn More ]

Important:Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this only if you know how to or you can seek your system administrator's help. You may also check out this Microsoft article first before modifying your computer's registry.

 
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • From: Hidden = 2
      To: Hidden = {User Preference}
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • From: ShowSuperHidden = 1
      To: ShowSuperHidden = {User Preference}

Step 5

Search and delete these folders

[ Learn More ]
Please make sure you check the Search Hidden Files and Folders checkbox in the More advanced options option to include all hidden folders in the search result.
  • %Application Data%\{random}
  • {Removable Drive Letter}:\.Trashes\{random}\

Step 6

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.
  • %All Users Startup%\Windows Explorer.lnk
  • %User Startup%\Windows Explorer.lnk
  • %Default User Startup%\Windows Explorer.lnk

Step 7

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

  1. Open a command prompt.
    • For Windows 2000, Windows XP, and Windows Server 2003 users, click Start>Run. In the Search box, type CMD then press Enter.
    • For Windows Vista, Windows 7, and Windows Server 2008 users, click Start, type CMD in the Search input field then press Enter.
    • For Windows 8, Windows 8.1, and Windows Server 2012 users, right-click on the lower-left corner of the screen, click Command Prompt.
  2. In the CMD console, type the following:

    ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I] [drive:][path][file name] [/S [/D] [/L]]

    Where:
    + Sets an attribute.
    - Clears an attribute
    R Read-only file attribute
    A Archive file attribute
    S System file attribute
    H Hidden file attribute
    I Not content indexed file attribute
    [drive:][path][filename]
    Specifies a file or files for attrib to process
    /S Processes matching files in the current folder and all subfolders.
    /D Processes folders
    /L Work on the attributes of the Symbolic Link versus the target of the Symbolic Link
    Example:
    To unhide all files and folders (including subfolders) in drive D:
    ATTRIB –H D:\* /S /D
  3. Repeat Step 3 for folders and files in other drives or folders.

NOTES:

To recover the files in .Trashes folder, move the files and folders out of the folder and use step 8.


Did this description help? Tell us how we did.