JS_KOPILUWAK.A

 Analysis by: Ryan Paolo Maglaque

 ALIASES:

JS.Kopiwak(Symantec);Trojan.JS.Agent.silepy(Kaspersky)

 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

Infection Channel:

Downloaded from the Internet

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.

  TECHNICAL DETAILS

File Size:

22,458 bytes

File Type:

JS

Memory Resident:

No

Initial Samples Received Date:

15 Aug 2017

Payload:

Drops files

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 files:

  • %Application Data%\Microsoft\Protect\~~.tmp
  • %Application Data%\Microsoft\Protect\appidpolicyconverter.js ← detected by TREND MICRO as JS_KOPILUWAK.B

(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

The scheduled task executes the malware every:

  • 7:24am everyday, repeat every 10 minutes indefinitely

Other Details

This Trojan does the following:

  • Create scheduled task namely PolicyConverter to execute %Application Data%\Microsoft\Protect\appidpolicyconverter.js FileTypeXML gwVAj83JsiqTz5fG
  • Executes the following commands and append the output in %Application Data%\Microsoft\Protect\~~.tmp:
    • systeminfo >
    • net view >>
    • net view /domain >>
    • tasklist /v >>
    • gpresult /z >>
    • netstat -nao >>
    • ipconfig /all >>
    • arp -a >>
    • net share >>
    • net use >>
    • net user >>
    • net user administrator >>
    • net user /domain >>
    • net user administrator /domain >>
    • set >>
    • dir %systemdrive%\Users\*.* >>
    • dir %userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.* >>
    • dir %userprofile%\Desktop\*.* >>
    • tasklist /fi \modules eq wow64.dll\ >>
    • tasklist /fi \modules ne wow64.dll\ >>
    • dir \%programfiles(x86)%\ >>
    • dir \%programfiles%\ >>
    • dir %appdata% >>
    • dir \%programfiles%\Kaspersky Lab\ >>
    • dir \%programfiles(x86)%\Kaspersky Lab\ >>
    • tracert www.google.com >>

  SOLUTION

Minimum Scan Engine:

9.850

FIRST VSAPI PATTERN FILE:

13.608.04

FIRST VSAPI PATTERN DATE:

21 Aug 2017

VSAPI OPR PATTERN File:

13.609.00

VSAPI OPR PATTERN Date:

22 Aug 2017

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 the Scheduled Tasks added by this malware/grayware

[ Learn More ]

To delete the added Scheduled Task file:

For Windows 2000, Windows XP, and Windows Server 2003:

  1. Open the Windows Scheduled Tasks. To do this, click Start>Programs>Accessories>System Tools>Scheduled Tasks.
  2. Double-click on a .JOB file.
  3. Check if the malware path and file name exists in the .JOB file. To do this, check the value in the Run field.
  4. If found, select the .JOB file then press SHIFT+DELETE to permanently delete the file.
  5. Repeat the steps above for the remaining .JOB files.

For Windows Vista, Windows 7, Windows Server 2008, Windows 8, Windows 8.1, and Windows Server 2012:

  1. Open the Windows Task Scheduler. To do this:
    • On Windows Vista, Windows 7, and Windows Server 2008, click Start, type taskschd.msc in the Search input field, then press Enter.
    • On Windows 8, Windows 8.1, and Windows Server 2012, right-click on the lower left corner of the screen, click Run, type taskschd.msc, then press Enter.
  2. In the left panel of the Task Scheduler Window, click Task Scheduler Library.
  3. In the upper-middle panel, click a Task.
  4. In the lower middle panel, click the Actions tab
  5. Check if the malware path and file name exists in the task. To do this, check the value in the Details column under the Actions tab.
  6. If found, select the task and press DELETE and click Yes to delete the task.
  7. Repeat the steps above for the remaining tasks.

Step 5

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.  
  • %Application Data%\Microsoft\Protect\~~.tmp
  • %Application Data%\Microsoft\Protect\appidpolicyconverter.js

Step 6

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