Analysis by: Kennard Yap

ALIASES:

Trojan.Java.Crypt (IKARUS); Java/Adwind.j (NAI)

 PLATFORM:

Windows

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

  • Threat Type: Backdoor

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

This Backdoor arrives as an attachment to email messages mass-mailed by other malware/grayware or malicious users.

  TECHNICAL DETAILS

File Size: 688,058 bytes
File Type: JAR
Memory Resident: Yes

Arrival Details

This Backdoor arrives as an attachment to email messages mass-mailed by other malware/grayware or malicious users.

Installation

This Backdoor adds the following folders:

  • %User Profile%\Oracle
  • %User Profile%\.oracle_jre_usage
  • %User Profile%\java

(Note: %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name} on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

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

  • %User Profile%\java\JRE.text

(Note: %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name} on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

It adds the following processes:

  • %Program Files%\Java\jdk1.8.0_77\bin\javaw.exe" -jar "{Original File Path}
  • %Application Data%\Oracle\bin\javaw.exe -jar %User Profile%\java\JRE.text
  • cmd.exe /C cscript.exe %User Temp%\Retrive{Random Numbers}.vbs
  • cscript.exe %User Temp%\Retrive{Random Numbers}.vbs
  • xcopy "%Program Files%\Java\jdk1.8.0_77\jre" "%Application Data%\Oracle\" /e
  • reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run /v java /t REG_EXPAND_SZ /d "\"%Application Data%\Roaming\Oracle\bin\javaw.exe\" -jar \"%User Profile%\java\JRE.text\"" /f
  • attrib +h "%User Profile%\java\*.*"
  • attrib +h "%User Profile%\java"

(Note: %Program Files% is the default Program Files folder, usually C:\Program Files in Windows 2000(32-bit), Server 2003(32-bit), XP, Vista(64-bit), 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit) , or C:\Program Files (x86) in Windows XP(64-bit), Vista(64-bit), 7(64-bit), 8(64-bit), 8.1(64-bit), 2008(64-bit), 2012(64-bit) and 10(64-bit).. %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name} on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

Autostart Technique

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
java = %Application Data%\Roaming\Oracle\bin\javaw.exe" -jar "%User Profile%\java\JRE.text

Dropping Routine

This Backdoor drops the following files:

  • %System%\test.txt
  • %User Profile%\java\ID.txt
  • %User Profile%\.oracle_jre_usage\f9b9f6b9014e1b80.timestamp
  • %User Profile%\.oracle_jre_usage\4b2fb7921108293.timestamp
  • %User Temp%\hsperfdata_{username}\{process ID}
  • %User Temp%\Retrive{Random Numbers}.vbs

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.. %User Profile% is the current user's profile folder, which is usually C:\Documents and Settings\{user name} on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name} on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).. %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000(32-bit), XP, and Server 2003(32-bit), or C:\Users\{user name}\AppData\Local\Temp on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).)

  SOLUTION

Minimum Scan Engine: 9.850
FIRST VSAPI PATTERN FILE: 15.710.03
FIRST VSAPI PATTERN DATE: 27 Feb 2020
VSAPI OPR PATTERN File: 15.711.00
VSAPI OPR PATTERN Date: 28 Feb 2020

Step 1

Before doing any scans, Windows 7, Windows 8, Windows 8.1, and Windows 10 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.

 
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • java = %Application Data%\Roaming\Oracle\bin\javaw.exe" -jar "%User Profile%\java\JRE.text

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.
  • %System%\test.txt
  • %User Profile%\java\ID.txt
  • %User Profile%\java\JRE.text
  • %User Profile%\.oracle_jre_usage\f9b9f6b9014e1b80.timestamp
  • %User Profile%\.oracle_jre_usage\4b2fb7921108293.timestamp
  • %User Temp%\hsperfdata_{username}\{process ID}
  • %User Temp%\Retrive{Random Numbers}.vbs

Step 6

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