RANSOM_LOCKY.DS
Ransom:Win32/Locky (Microsoft); Trojan.Cryptolocker.N (Symantec); Trojan-Ransom.Win32.Locky.uy (Kaspersky)
Windows
Threat Type: Trojan
Destructiveness: No
Encrypted:
In the wild: Yes
OVERVIEW
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.
It modifies the Internet Explorer Zone Settings.
It connects to certain websites to send and receive information. It gathers information and reports it to its servers.
TECHNICAL DETAILS
262,144 bytes
EXE
No
11 May 2016
Connects to URLs/IPs, Steals information, Encrypts 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 copies of itself into the affected system:
- %User Temp%\svchost.exe
- %User Temp%\sys{random}.tmp
(Note: %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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.)
It drops the following component file(s):
- %Desktop%\_HELP_instructions.txt - ransom note
- %Desktop%\_HELP_instructions.bmp - image used as wallpaper
- {folders containing encrypted files}\_HELP_instructions.txt - ransom note
(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.)
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
Locky = "%User Temp%\svchost.exe"
It drops the following file(s) in the Windows Startup folder to enable its automatic execution at every system startup:
- %User Startup%\x.vbs -> includes execution code for malware's dropped copy in %User Temp%
(Note: %User Temp% is the user's temporary folder, where it usually is C:\Documents and Settings\{user name}\Local Settings\Temp on Windows 2000, Windows Server 2003, and Windows XP (32- and 64-bit); C:\Users\{user name}\AppData\Local\Temp 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.)
Other System Modifications
This Trojan modifies the following file(s):
- It encrypts files in fixed, removable and RAM disk drives.
- It renames the encrypted files to {unique ID per victim}{identifier}.locky
It adds the following registry entries as part of its installation routine:
HKEY_CURRENT_USER\Control Panel\Desktop
Wallpaper = "%Desktop%\_HELP_instructions.bmp"
It adds the following registry keys as part of its installation routine:
HKEY_CURRENT_USER\Software\{random characters}
Web Browser Home Page and Search Page Modification
This Trojan modifies the Internet Explorer Zone Settings.
Other Details
This Trojan connects to the following website to send and receive information:
- http://{BLOCKED}.{BLOCKED}.183.40
- http://{BLOCKED}.{BLOCKED}.236.11
- http://{BLOCKED}.{BLOCKED}.202.170
- http://{pseudo-random domain}.{xyz/org/su/pw/ru}
It encrypts files with the following extensions:
- .3dm
- .3ds
- .3g2
- .3gp
- .7z
- .aes
- .apk
- .ARC
- .asc
- .asf
- .asm
- .asp
- .asset
- .avi
- .bak
- .bat
- .bik
- .bmp
- .brd
- .bsa
- .bz2
- .c
- .cgm
- .class
- .cmd
- .cpp
- .crt
- .cs
- .csr
- .CSV
- .d3dbsp
- .das
- .dat
- .db
- .dbf
- .dch
- .dif
- .dip
- .djv
- .djvu
- .DOC
- .docb
- .docm
- .docx
- .DOT
- .dotm
- .dotx
- .fla
- .flv
- .forge
- .frm
- .gif
- .gpg
- .gz
- .h
- .hwp
- .ibd
- .iwi
- .jar
- .java
- .jpeg
- .jpg
- .js
- .keywallet
- .lay
- .lay6
- .lbf
- .ldf
- .litemod
- .litesql
- .ltx
- .m3u
- .m4a
- .m4u
- .max
- .mdb
- .mdf
- .mid
- .mkv
- .mml
- .mov
- .mp3
- .mp4
- .mpeg
- .mpg
- .ms11
- .ms11 (Security copy)
- .MYD
- .MYI
- .n64
- .NEF
- .odb
- .odg
- .odp
- .ods
- .odt
- .onetoc2
- .otg
- .otp
- .ots
- .ott
- .p12
- .PAQ
- .pas
- .pem
- .php
- .pl
- .png
- .pot
- .potm
- .potx
- .ppam
- .pps
- .ppsm
- .ppsx
- .PPT
- .pptm
- .pptx
- .psd
- .pst
- .qcow2
- .rar
- .raw
- .rb
- .re4
- .RTF
- .sav
- .sch
- .sh
- .sldm
- .sldx
- .slk
- .sql
- .SQLITE3
- .SQLITEDB
- .stc
- .std
- .sti
- .stw
- .svg
- .swf
- .sxc
- .sxd
- .sxi
- .sxm
- .sxw
- .tar
- .tar
- .tbk
- .tgz
- .tif
- .tiff
- .txt
- .uop
- .uot
- .upk
- .vb
- .vbs
- .vdi
- .vmdk
- .vmx
- .vob
- .wallet
- .wav
- .wb2
- .wk1
- .wks
- .wma
- .wmv
- .xlc
- .xlm
- .XLS
- .xlsb
- .xlsm
- .xlsx
- .xlt
- .xltm
- .xltx
- .xlw
- .xml
- .zip
It does the following:
- It executes the following command to delete shadow copies:
- vssadmin.exe Delete Shadows /All /Quiet
It gathers the following information and reports it to its servers:
- Language of affected system
- number of failed encrypted files
- number of encrypted files
- OS architecture (if 64bit)
- victim ID
NOTES:
This ransomware prevents encrypting files containing any of the strings in its full path name:
- winnt
- Application Data
- AppData
- Program Files (x86)
- Program Files
- thumbs.db
- $Recycle.Bin
- System Volume Information
- Windows
SOLUTION
9.800
12.520.05
11 May 2016
12.521.00
12 May 2016
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
Remove the malware/grayware file that dropped/downloaded RANSOM_LOCKY.DS. (Note: Please skip this step if the threat(s) listed below have already been removed.)
Step 4
Restart in Safe Mode
Step 5
Delete this registry value
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
- Locky = "%User Temp%\svchost.exe"
- Locky = "%User Temp%\svchost.exe"
- In HKEY_CURRENT_USER\Control Panel\Desktop
- Wallpaper = "%Desktop%\_HELP_instructions.bmp"
- Wallpaper = "%Desktop%\_HELP_instructions.bmp"
Step 6
Search and delete these files
- %User Temp%\svchost.exe
- %User Temp%\sys{random}.tmp
- %Desktop%\_HELP_instructions.txt
- %Desktop%\_HELP_instructions.bmp
- {folders containing encrypted files}\_HELP_instructions.txt
- %User Startup%\x.vbs
Step 7
Restart in normal mode and scan your computer with your Trend Micro product for files detected as RANSOM_LOCKY.DS. 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 8
The following created files/folders/registry keys/registry entries cannot be identified by the user since there are no reference values in the created key. The only way it can be identified is by comparing the present system information with a backup. Note that the said components do not have to be deleted since it won't be harmful to the system.
- HKEY_CURRENT_USER\Software\{random characters}
Step 9
Restore encrypted files from backup.
Did this description help? Tell us how we did.