TROJ_RANSOM.AGY

 Analysis by: Anthony Joe Melgarejo

 ALIASES:

Trojan:Win32/Ransom.KW (Microsoft), Trojan.Ransomcrypt.B (Symantec), RDN/Ransom!h (McAfee), W32/Ransom.JA!tr (Fortinet), Trojan.Win32.Ransom (Ikarus), a variant of Win32/Filecoder.NAC trojan (ESET)

 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:
 INFORMATION EXPOSURE:

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

Infection Channel:

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.

  TECHNICAL DETAILS

File Size:

63,488 bytes

File Type:

EXE

Memory Resident:

No

Initial Samples Received Date:

26 Jul 2013

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:

  • %System Root%\ProgramData\{random folder name 2}\{random file name 2}.dlls - contains key
  • %System Root%\ProgramData\{random folder name 1}\{random file name 1}.dll - contains key
  • %System Root%\ProgramData\svcfnmainstvestvs\stppthmainfv.dll - contains list of random strings
  • %System Root%\how to decrypt files.lnk

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

It creates the following folders:

  • %System Root%\ProgramData\{random folder name 2}
  • %System Root%\{random folder name 3}
  • %System Root%\ProgramData\{random folder name 1}
  • %System Root%\ProgramData\svcfnmainstvestvs
  • %System Root%\ProgramData\svtstcrs

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

Autostart Technique

This Trojan registers itself as a system service to ensure its automatic execution at every system startup by adding the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\svchhostlvsple
ImagePath = "{malware path and filename}"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\svchhostlvsple
Start = "2"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\svchhostlvsple
DisplayName = "Users Profile System Services"

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\svchhostlvsple
Description = "This service is responsible for loading and unloading user profiles. If this service is stopped or disabled, users will no longer be able to successfully logon or logoff applications may have problems getting to users' data, and components registered to receive profile event notifications will not receive them."

Information Theft

This Trojan accepts the following parameters:

  • "-i" - Install the malware as a service
  • "install" - Install the malware as a service
  • "-d" - Delete the service
  • "-u" - Delete the service
  • "delete" - Delete the malware service
  • "-s" - Start the malware service
  • "start" - Start the malware service
  • "-k" - Stop the malware service
  • "kill" - Stop the malware service
  • "stop" - Stop the malware service

NOTES:

It deletes all entries and subkeys under the following registry key to disable safe mode:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot

It deletes all entries under the following registry keys:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

It shutdowns the affected system and displays any of the following messages:

  • windows update
  • sys

  SOLUTION

Minimum Scan Engine:

9.300

FIRST VSAPI PATTERN FILE:

10.176.08

FIRST VSAPI PATTERN DATE:

26 Jul 2013

VSAPI OPR PATTERN File:

10.177.00

VSAPI OPR PATTERN Date:

26 Jul 2013

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 TROJ_RANSOM.AGY

[ 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

Delete this registry key

[ 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\SYSTEM\CurrentControlSet\Services
    • svchhostlvsple

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.
  • %System Root%\ProgramData\svcfnmainstvestvs
  • %System Root%\ProgramData\svtstcrs
  • %System Root%\ProgramData\{random folder name 1}
  • %System Root%\ProgramData\{random folder name 2}
  • %System Root%\{random folder name 3}

Step 5

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

Restore this deleted registry key/value from backup

*Note: Only Microsoft-related keys/values will be restored. If the malware/grayware also deleted registry keys/values related to programs that are not from Microsoft, please reinstall those programs on your computer.

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run


Did this description help? Tell us how we did.