Analysis by: Rhena Inocencio

ALIASES:

JS/Autorun.worm.aab (McAfee), Troj/JSAgent-DB (Sophos)

 PLATFORM:

Windows 2000, Windows Server 2003, Windows XP (32-bit, 64-bit), Windows Vista (32-bit, 64-bit), Windows 7 (32-bit, 64-bit)

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

  • Threat Type: Worm

  • Destructiveness: No

  • Encrypted: Yes

  • In the wild: Yes

  OVERVIEW

Infection Channel: Downloaded from the Internet, Dropped by other malware, Via physical/removable drives, Propagates 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.

It disables Task Manager, Registry Editor, and Folder Options. It creates certain registry entries to disable applications related to security. It modifies certain registry entries to hide file extensions.

It connects to certain URLs. It may do this to remotely inform a malicious user of its installation. It may also do this to download possibly malicious files onto the computer, which puts the computer at a greater risk of infection by other threats. As of this writing, the said sites are inaccessible.

  TECHNICAL DETAILS

File Size: Varies
File Type: JS
Memory Resident: Yes
Initial Samples Received Date: 19 Apr 2013
Payload: Connects to URLs/IPs, Drops files

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:

  • %User Startup%\{random filename}.js
  • %Application Data%\{random folder name}\{random filename}.js
  • %Program Files%\{random folder name}\{random filename}.js
  • %All Users Profile%\Start Menu\Programs\Startup\{random filename}.js

(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.. %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista and 7.. %Program Files% is the default Program Files folder, usually C:\Program Files in Windows 2000, Server 2003, and XP (32-bit), Vista (32-bit), and 7 (32-bit), or C:\Program Files (x86) in Windows XP (64-bit), Vista (64-bit), and 7 (64-bit).. %All Users Profile% is the All Users or Common profile folder, which is C:\Documents and Settings\All Users in Windows 2000, XP, and Server 2003, and C:\ProgramData in Windows Vista and 7.)

It creates the following folders:

  • %Application Data%\{random folder name}
  • %Program Files%\{random folder name}

(Note: %Application Data% is the current user's Application Data folder, which is usually C:\Documents and Settings\{user name}\Application Data on Windows 2000, XP, and Server 2003, or C:\Users\{user name}\AppData\Roaming on Windows Vista and 7.. %Program Files% is the default Program Files folder, usually C:\Program Files in Windows 2000, Server 2003, and XP (32-bit), Vista (32-bit), and 7 (32-bit), or C:\Program Files (x86) in Windows XP (64-bit), Vista (64-bit), and 7 (64-bit).)

Autostart Technique

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{random filename} = %Application Data%\{random folder name}\{random filename}.js

Other System Modifications

This worm adds the following registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\policies
NoDispCPL = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT\CurrentVersion
SystemRestoreDisableSR = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
Microsoft\Internet Explorer\Control Panel
HomePage = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
Microsoft\Windows NT\SystemRestore
DisableConfig = "1"

HKEY_CURRENT_USER\Software\Policies\
Microsoft\Internet Explorer\Control Panel
HomePage = "1"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Policies\
Explorer
NoWindowsUpdate = "1"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Policies\
Explorer
NoControlPanel = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\policies
DisableCMD = "1"

It modifies the following registry entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Security Center
AntiVirusDisableNotify = "1"

(Note: The default value data of the said registry entry is 0.)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Security Center
FirewallDisableNotify = "1"

(Note: The default value data of the said registry entry is 0.)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Security Center
UpdatesDisableNotify = "1"

(Note: The default value data of the said registry entry is 0.)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Security Center
AntiVirusOverride = "1"

(Note: The default value data of the said registry entry is 0.)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Security Center
FirewallOverride = "1"

(Note: The default value data of the said registry entry is 0.)

It creates the following registry entry(ies) to disable Task Manager, Registry Tools and Folder Options:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Policies\
Explorer
NofolderOptions = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\policies
DisableTaskMgr = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\policies
DisableRegistryTools = "1"

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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows\CurrentVersion\Explorer\
Advanced
Hidden = "2"

(Note: The default value data of the said registry entry is 0.)

It creates the following registry entries to disable applications related to security:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Security Center\Svc
AntiVirusDisableNotify = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Security Center\Svc
FirewallDisableNotify = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Security Center\Svc
FirewallOverride = "1"

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
Microsoft\MRT
DontReportInfectionInformation = "1"

It modifies the following registry entries to hide file extensions:

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Explorer\
Advanced
HideFileExt = "1"

(Note: The default value data of the said registry entry is 0.)

Propagation

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

  • {drive letter}:\{random folder name}\{random filename}.js

The said .INF file contains the following strings:

{garbage characters}
[autorun]
{garbage characters}
shell\open\command={random folder name}\{random filename}.js
{garbage characters}
shellexecute={random folder name}\{random filename}.js
{garbage characters}
open={random folder name}\{random filename}.js
{garbage characters}
shell\explore\command={random folder name}\{random filename}.js
{garbage characters}

Download Routine

This worm connects to the following malicious URLs:

  • http://{BLOCKED}ps.com/a/
  • http://{BLOCKED}.{BLOCKED}.13.158

As of this writing, the said sites are inaccessible.

Other Details

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

  • http://google.com

It drops the following file(s)/component(s):

  • %System Root%\{random folder name}\{random filename} - nonmalicious

(Note: %System Root% is the root folder, which is usually C:\. It is also where the operating system is located.)

NOTES:

It does not perform its intended routine if it is running in a Virtual Machine.

It creates LNK files in removable drives using names of exisiting folders in removable drives. The LNK file opens the dropped malware copy as well as the original folder.

The attribute of the original folders are set to hidden.

The following added registry entry disables user's access to the Control Panel:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
NoControlPanel= "1"

It checks for installed Anti-virus applications:

  • %Program Files%\Malwarebytes' Anti-Malware
  • %Program Files%\Panda Security
  • %Program Files%\Kaspersky Lab
  • %Program Files%\Microsoft Security Client
  • %Program Files%\Webroot
  • %Program Files%\Alwil Software
  • %Program Files%\G-Data
  • %Program Files%\Bitdefender
  • %Program Files%\AVG
  • %Program Files%\Trend Micro
  • %Program Files%\Sophos
  • %Program Files%\AVAST Software
  • %Program Files%\F-Secure
  • %Program Files%\Microsoft Security Essentials
  • %Program Files%\COMODO
  • %Program Files%\Symantec
  • %Program Files%\Avira
  • %Program Files%\McAfee
  • %Program Files%\ESET
  • %Program Files%\Spyware Doctor

  SOLUTION

Minimum Scan Engine: 9.300

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

Identify and terminate files detected as JS_AGENT.SMLS

[ 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 3

To enable Registry Editor, Task Manager, and Folder options:

  1. Open Notepad. To do this:
    • For Windows 2000, XP, and Server 2003 users:
      Click Start > Run, type Notepad in the text box provided, then press Enter.
    • For Windows Vista and 7 users:
      Click Start > type Notepad On Error Resume Next Set shl = WScript.CreateObject("WScript.Shell") shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoFolderOptions", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\DisableTaskMgr", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\\DisableRegistryTools", "0", "REG_DWORD" , then press Enter.
  2. Copy and paste the following script:
  3. Save this file as On Error Resume Next Set shl = WScript.CreateObject("WScript.Shell") shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoFolderOptions", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\DisableTaskMgr", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\\DisableRegistryTools", "0", "REG_DWORD"  On Error Resume Next Set shl = WScript.CreateObject("WScript.Shell") shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoFolderOptions", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\DisableTaskMgr", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\\DisableRegistryTools", "0", "REG_DWORD" C:RESTORE.VBS.
  4. Click Start>Run again, type C:RESTORE.VBS in the text box provided, then press Enter.
  5. Click Yes at the On Error Resume Next Set shl = WScript.CreateObject("WScript.Shell") shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoFolderOptions", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\DisableTaskMgr", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\\DisableRegistryTools", "0", "REG_DWORD"  On Error Resume Next Set shl = WScript.CreateObject("WScript.Shell") shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoFolderOptions", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\DisableTaskMgr", "0", "REG_DWORD" shl.RegWrite "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\\DisableRegistryTools", "0", "REG_DWORD" prompt of the message box to execute the .VBS file.

Step 4

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 folder name}
  • %Program Files%\{random folder name}
  • {removable drive}:\{random folder name}

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_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • {random filename} = %Application Data%\{random folder name}\{random filename}.js
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies
    • NoDispCPL = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
    • SystemRestoreDisableSR = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Control Panel
    • HomePage = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore
    • DisableConfig = "1"
  • In HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel
    • HomePage = "1"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    • NoWindowsUpdate = "1"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    • NoControlPanel = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center\Svc
    • AntiVirusDisableNotify = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center\Svc
    • FirewallDisableNotify = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center\Svc
    • FirewallOverride = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\MRT
    • DontReportInfectionInformation = "1"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies
    • DisableCMD = "1"

Step 6

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_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center
    • From: AntiVirusDisableNotify = "1"
      To: AntiVirusDisableNotify = "0"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center
    • From: FirewallDisableNotify = "1"
      To: FirewallDisableNotify = "0"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center
    • From: UpdatesDisableNotify = "1"
      To: UpdatesDisableNotify = "0"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center
    • From: AntiVirusOverride = "1"
      To: AntiVirusOverride = "0"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Security Center
    • From: FirewallOverride = "1"
      To: FirewallOverride = "0"
  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • From: Hidden = "2"
      To: Hidden = "0"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    • From: HideFileExt = "1"
      To: HideFileExt = "0"

Step 7

Search and delete this file

[ 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.
  • %System Root%\{random folder name}\{random filename}

Step 8

Search and delete AUTORUN.INF files created by JS_AGENT.SMLS that contain these strings

[ Learn More ]

{garbage characters}
[autorun]
{garbage characters}
shell\open\command={random folder name}\{random filename}.js
{garbage characters}
shellexecute={random folder name}\{random filename}.js
{garbage characters}
open={random folder name}\{random filename}.js
{garbage characters}
shell\explore\command={random folder name}\{random filename}.js
{garbage characters}

Step 9

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

NOTES:

Note for Step 2: Check for wscript.exe that runs the malware and terminates it.

Using Task Manager:

  1. Go to Processes Tab.
  2. Search for wscript.exe and check the Command Line value.
  3. If the malware path is found, right click on wscript.exe and click "End Process."

Using Process Explorer:

  1. Search for wscript.exe.
  2. Right click on wscript.exe and click "Properties."
  3. If the malware path is found in the Command Line input box, right click on wscript.exe and click "Kill Process."


Did this description help? Tell us how we did.