TROJ_CRYPWALL.ERDF

 Analysis by: RonJay Kristoffer Caragay

 ALIASES:

Ransom:Win32/Crowti.A (Microsoft); Trojan-Ransom.Win32.Cryptodef.wwd (Kaspersky); Trojan.Cryptodefense (Symantec); Win32/Filecoder.CO (ESET-NOD32); W32/Cryptodef.CO!tr (Fortinet)

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted:

  • In the wild: Yes

  OVERVIEW

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 deletes the initially executed copy of itself.

  TECHNICAL DETAILS

File Size:

364,544 bytes

File Type:

EXE

Memory Resident:

Yes

Initial Samples Received Date:

07 Aug 2015

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 copies of itself into the affected system:

  • %System Root%\{random 8 characters}\{random 8 characters}.exe
  • %Application Data%\{random 8 characters}.exe
  • %User Startup%\{random 8 characters}.exe

(Note: %System Root% is the Windows root folder, where it usually is C:\ on all Windows operating system versions.. %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.. %User Startup% is the current user's Startup folder, which is usually C:\Documents and Settings\{user}\Start Menu\Programs\Startup on Windows 2000 and XP, and C:\Documents and Settings\{User name}\Start Menu\Programs\Startup on Windows Vista, 7, and 8.)

It drops the following files:

  • %Desktop%\HELP_DECRYPT.HTML
  • %Desktop%\HELP_DECRYPT.PNG
  • %Desktop%\HELP_DECRYPT.TXT
  • %Desktop%\HELP_DECRYPT.URL
  • %User Startup%\HELP_DECRYPT.HTML
  • %User Startup%\HELP_DECRYPT.PNG
  • %User Startup%\HELP_DECRYPT.TXT
  • %User Startup%\HELP_DECRYPT.URL

(Note: %Desktop% is the desktop folder, where it usually is C:\Documents and Settings\{user name}\Desktop in Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\Desktop in 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.. %User Startup% is the current user's Startup folder, which is usually C:\Documents and Settings\{user}\Start Menu\Programs\Startup on Windows 2000 and XP, and C:\Documents and Settings\{User name}\Start Menu\Programs\Startup on Windows Vista, 7, and 8.)

Autostart Technique

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

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{random 7 characters} = "%System Root%\{random 8 characters}\{random 8 characters}.exe"

HKEY_CURRENT_USER\Software\Microsoft\
Windows\CurrentVersion\Run
{random 8 characters} = "%Application Data%\{random 8 characters}.exe"

Other System Modifications

This Trojan adds the following registry keys:

HKEY_CURRENT_USER\Software\{UID}

It adds the following registry entries:

HKEY_CURRENT_USER\Software\{UID}
{random 2 characters} = "{RSA PUBLIC KEY} "

HKEY_CURRENT_USER\Software\{UID}
{random 2 characters} = "{contents of HELP_DECRYPT.TXT}"

HKEY_CURRENT_USER\Software\{UID}
{random 2 characters} = "{contents of HELP_DECRYPT.HTML}"

HKEY_CURRENT_USER\Software\{UID}
{random 2 characters} = "{contents of HELP_DECRYPT.URL}"

HKEY_CURRENT_USER\Software\{UID}\
{random key}
{Path and file of encrypted file} = "{hex values}"

It modifies the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\ERSvc
Start = "4"

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

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\wscsvc
Start = "4"

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

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\BITS
Start = "4"

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

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Services\wuauserv
Start = "4"

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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\
Windows NT\CurrentVersion\SystemRestore
DisableSR = "1"

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

Other Details

This Trojan connects to the following possibly malicious URL:

  • {BLOCKED}ne.biz.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/highcontrast/c.php
  • {BLOCKED}solar.pl/wp-content/plugins/newsletter/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/b.php
  • {BLOCKED}opa.ro/wp-content/themes/twentythirteen/a.php
  • {BLOCKED}ng-girl.org/wp-content/plugins/contact-form-7/includes/js/jquery-ui/themes/smoothness/images/e.php
  • {BLOCKED}rental.com/wp-content/plugins/ml-slider/assets/sliders/nivoslider/themes/dark/e.php
  • {BLOCKED}e.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/o2k7/d.php
  • {BLOCKED}tic.ro/wp-content/themes/twentytwelve/c.php
  • {BLOCKED}ic.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/default/img/b.php
  • {BLOCKED}elserwa.com/wp-content/plugins/wp-db-backup-made/a.php
  • {BLOCKED}its.co.uk/blogbits/wp-content/themes/twentytwelve/e.php
  • {BLOCKED}g.cvc.uab.es/wordpress/wp-content/plugins/wp-db-backup-made1/d.php
  • {BLOCKED}jewelry.com/il/wp-content/plugins/ninja-forms/includes/admin/pages/ninja-forms-settings/tabs/c.php
  • {BLOCKED}icot.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/o2k7/img/b.php
  • {BLOCKED}a.pl/wp-includes/js/tinymce/themes/advanced/skins/o2k7/img/a.php
  • {BLOCKED}i.info.pl/wp-content/plugins/contact-form-7/includes/js/jquery-ui/themes/smoothness/e.php
  • {BLOCKED}a-tech.pl/wp-content/themes/twentyeleven/d.php
  • {BLOCKED}a.com/blog/wp-content/plugins/scribe/lib/history/views/meta-box/c.php
  • {BLOCKED}rka.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/default/b.php
  • {BLOCKED}an.ru/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_gallery_display/templates/list/a.php
  • {BLOCKED}n.com/wp-content/themes/twentythirteen/e.php
  • {BLOCKED}j.com.pl/wordpress/wp-content/plugins/newsletter/emails/themes/pint/images/d.php
  • {BLOCKED}entacademy.com/wp-content/plugins/wp-db-backup-made/c.php
  • {BLOCKED}arty.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/o2k7/img/b.php
  • {BLOCKED}jones.com/wp-content/themes/twentyeleven/a.php
  • {BLOCKED}ndapartman.hu/de/wp-content/plugins/wp-db-backup-made/e.php
  • {BLOCKED}alia.com/blog/wp-content/plugins/wp-db-backup-made/d.php
  • {BLOCKED}og.com.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/o2k7/c.php
  • {BLOCKED}oyunlari.org/wp-content/themes/twentytwelve/b.php
  • {BLOCKED}n.cz/wp-content/plugins/wp-db-backup-made/a.php
  • {BLOCKED}rco.com.br/site/wp-content/themes/twentyeleven/e.php
  • {BLOCKED}mp.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/highcontrast/d.php
  • {BLOCKED}iasaborearte.com.br/wp-content/plugins/wp-db-backup-made/c.php
  • {BLOCKED}dresponsable.com.mx/wp-content/plugins/_backupwordpress/vendor/mikey179/vfsStream/src/test/resources/b.php
  • {BLOCKED}genes.com/wp-content/plugins/wp-mobile-edition/admin/includes/mobile_themes/mTheme-Unus/images/blue/a.php
  • {BLOCKED}f.com.pl/wp-content/plugins/contact-form-7/includes/js/jquery-ui/themes/smoothness/images/e.php
  • {BLOCKED}nta.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/default/img/d.php
  • {BLOCKED}tia.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/o2k7/img/c.php
  • {BLOCKED}va.pl/wp-content/plugins/newsletter/tiny_mce/themes/advanced/skins/o2k7/b.php
  • {BLOCKED}caron.com/wp-content/plugins/contact-form-7/includes/js/jquery-ui/themes/smoothness/images/a.php

It deletes the initially executed copy of itself

NOTES:

It drops HELP_DECRYPT.HTML, HELP_DECRYPT.PNG, HELP_DECRYPT.TXT, and HELP_DECRYPT.URL to all folders where files are encrypted.

It connects to the following non-malicious URLs:

  • http://ip-addr.es
  • http://myexternalip.com/raw
  • http://curlmyip.com

  SOLUTION

Minimum Scan Engine:

9.750

FIRST VSAPI PATTERN FILE:

11.794.09

FIRST VSAPI PATTERN DATE:

17 Jul 2015

VSAPI OPR PATTERN File:

11.795.00

VSAPI OPR PATTERN Date:

17 Jul 2015

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 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 7 characters} = "%System Root%\{random 8 characters}\{random 8 characters}.exe"
  • In HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    • {random 8 characters} = "%Application Data%\{random 8 characters}.exe"

Step 5

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_CURRENT_USER\Software
    • {UID}

Step 6

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.
  • HELP_DECRYPT.HTML
  • HELP_DECRYPT.PNG
  • HELP_DECRYPT.TXT
  • HELP_DECRYPT.URL

Step 7

Restore these modified registry values

[ Learn More ]

Important:Editing the Windows Registry incorrectly can lead to irreversible system malfunction. Please do this only if you know how to or you can seek your system administrator's help. You may also check out this Microsoft article first before modifying your computer's registry.

  • In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore
    • From: DisableSR = "1"
      To: DisableSR = 0
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ERSvc
    • From: Start = "4"
      To: Start = 2
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc
    • From: Start = "4"
      To: Start = 2
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS
    • From: Start = "4"
      To: Start = 2
  • In HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv
    • From: Start = "4"
      To: Start = 2

Step 8

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