Analysis by: RonJay Kristoffer Caragay

ALIASES:

Ransom.Locky (Malwarebytes);

 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

Infection Channel: Dropped by other malware, Downloaded from the Internet

This Trojan may be downloaded by other malware/grayware from remote sites.

It connects to certain websites to send and receive information. It deletes the initially executed copy of itself.

  TECHNICAL DETAILS

File Size: 398,336 bytes
File Type: EXE
Memory Resident: Yes
Initial Samples Received Date: 23 Dec 2016
Payload: Encrypts files, Connects to URLs/IPs, Displays images

Arrival Details

This Trojan may be downloaded by the following malware/grayware from remote sites:

  • JS_LOCKY.DLDSDZD

Installation

This Trojan drops the following files:

  • (Folder of Encrypted Files}\OSIRIS-{Random Hex Values}.htm → Ransom Note

It drops and executes the following files:

  • %User Profile%\DesktopOSIRIS.htm → Ransom Note
  • %User Profile%\DesktopOSIRIS.bmp → Ransom Note, image used as wallpaper

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

Other System Modifications

This Trojan modifies the following file(s):

  • It encrypts files in fixed, removable, RAM disk drives, and network shares.

It adds the following registry entries as part of its installation routine:

HKEY_CURRENT_USER\Control Panel\Desktop
WallpaperStyle = "0"

(Note: The default value data of the said registry entry is {user preference}.)

HKEY_CURRENT_USER\Control Panel\Desktop
TileWallpaper = "0"

(Note: The default value data of the said registry entry is {user preference}.)

HKEY_CURRENT_USER\Control Panel\Desktop
Wallpaper = %Desktop%\DesktopOSIRIS.bmp

(Note: The default value data of the said registry entry is {user preference}.)

It sets the system's desktop wallpaper to the following image:

Other Details

This Trojan connects to the following website to send and receive information:

  • http://{BLOCKED}.{BLOCKED}.14.95/checkupdate

It encrypts files with the following extensions:

  • .yuv
  • .ycbcra
  • .xis
  • .x3f
  • .x11
  • .wpd
  • .tex
  • .sxg
  • .stx
  • .st8
  • .st5
  • .srw
  • .srf
  • .sr2
  • .sqlitedb
  • .sqlite3
  • .sqlite
  • .sdf
  • .sda
  • .sd0
  • .s3db
  • .rwz
  • .rwl
  • .rdb
  • .rat
  • .raf
  • .qby
  • .qbx
  • .qbw
  • .qbr
  • .qba
  • .py
  • .psafe3
  • .plc
  • .plus_muhd
  • .pdd
  • .p7c
  • .p7b
  • .oth
  • .orf
  • .odm
  • .odf
  • .nyf
  • .nxl
  • .nx2
  • .nwb
  • .ns4
  • .ns3
  • .ns2
  • .nrw
  • .nop
  • .nk2
  • .nef
  • .ndd
  • .myd
  • .mrw
  • .moneywell
  • .mny
  • .mmw
  • .mfw
  • .mef
  • .mdc
  • .lua
  • .kpdx
  • .kdc
  • .kdbx
  • .kc2
  • .jpe
  • .incpas
  • .iiq
  • .ibz
  • .ibank
  • .hbk
  • .gry
  • .grey
  • .gray
  • .fhd
  • .fh
  • .ffd
  • .exf
  • .erf
  • .erbsql
  • .eml
  • .dxg
  • .drf
  • .dng
  • .dgc
  • .des
  • .der
  • .ddrw
  • .ddoc
  • .dcs
  • .dc2
  • .db_journal
  • .csl
  • .csh
  • .crw
  • .craw
  • .cib
  • .ce2
  • .ce1
  • .cdrw
  • .cdr6
  • .cdr5
  • .cdr4
  • .cdr3
  • .bpw
  • .bgt
  • .bdb
  • .bay
  • .bank
  • .backupdb
  • .backup
  • .back
  • .awg
  • .apj
  • .ait
  • .agdl
  • .ads
  • .adb
  • .acr
  • .ach
  • .accdt
  • .accdr
  • .accde
  • .ab4
  • .3pr
  • .3fr
  • .vmxf
  • .vmsd
  • .vhdx
  • .vhd
  • .vbox
  • .stm
  • .st7
  • .rvt
  • .qcow
  • .qed
  • .pif
  • .pdb
  • .pab
  • .ost
  • .ogg
  • .nvram
  • .ndf
  • .m4p
  • .m2ts
  • .log
  • .hpp
  • .hdd
  • .groups
  • .flvv
  • .edb
  • .dit
  • .dat
  • .cmt
  • .bin
  • .aiff
  • .xlk
  • .wad
  • .tlg
  • .st6
  • .st4
  • .say
  • .sas7bdat
  • .qbm
  • .qbb
  • .ptx
  • .pfx
  • .pef
  • .pat
  • .oil
  • .odc
  • .nsh
  • .nsg
  • .nsf
  • .nsd
  • .nd
  • .mos
  • .indd
  • .iif
  • .fpx
  • .fff
  • .fdb
  • .dtd
  • .design
  • .ddd
  • .dcr
  • .dac
  • .cr2
  • .cdx
  • .cdf
  • .blend
  • .bkp
  • .al
  • .adp
  • .act
  • .xlr
  • .xlam
  • .xla
  • .wps
  • .tga
  • .rw2
  • .r3d
  • .pspimage
  • .ps
  • .pct
  • .pcd
  • .m4v
  • .m
  • .fxg
  • .flac
  • .eps
  • .dxb
  • .drw
  • .dot
  • .db3
  • .cpi
  • .cls
  • .cdr
  • .arw
  • .ai
  • .aac
  • .thm
  • .srt
  • .save
  • .safe
  • .rm
  • .pwm
  • .pages
  • .obj
  • .mlb
  • .md
  • .mbx
  • .lit
  • .laccdb
  • .kwm
  • .idx
  • .html
  • .flf
  • .dxf
  • .dwg
  • .dds
  • .csv
  • .css
  • .config
  • .cfg
  • .cer
  • .asx
  • .aspx
  • .aoi
  • .accdb
  • .7zip
  • .1cd
  • .xls
  • .wab
  • .rtf
  • .prf
  • .ppt
  • .oab
  • .msg
  • .mapimail
  • .jnt
  • .doc
  • .dbx
  • .contact
  • .n64
  • .m4a
  • .m4u
  • .m3u
  • .mid
  • .wma
  • .flv
  • .3g2
  • .mkv
  • .3gp
  • .mp4
  • .mov
  • .avi
  • .asf
  • .mpeg
  • .vob
  • .mpg
  • .wmv
  • .fla
  • .swf
  • .wav
  • .mp3
  • .qcow2
  • .vdi
  • .vmdk
  • .vmx
  • .wallet
  • .upk
  • .sav
  • .re4
  • .ltx
  • .litesql
  • .litemod
  • .lbf
  • .iwi
  • .forge
  • .das
  • .d3dbsp
  • .bsa
  • .bik
  • .asset
  • .apk
  • .gpg
  • .aes
  • .ARC
  • .PAQ
  • .tar.bz2
  • .tbk
  • .bak
  • .tar
  • .tgz
  • .gz
  • .7z
  • .rar
  • .zip
  • .djv
  • .djvu
  • .svg
  • .bmp
  • .png
  • .gif
  • .raw
  • .cgm
  • .jpeg
  • .jpg
  • .tif
  • .tiff
  • .NEF
  • .psd
  • .cmd
  • .bat
  • .sh
  • .class
  • .jar
  • .java
  • .rb
  • .asp
  • .cs
  • .brd
  • .sch
  • .dch
  • .dip
  • .pl
  • .vbs
  • .vb
  • .js
  • .h
  • .asm
  • .pas
  • .cpp
  • .c
  • .php
  • .ldf
  • .mdf
  • .ibd
  • .MYI
  • .MYD
  • .frm
  • .odb
  • .dbf
  • .db
  • .mdb
  • .sql
  • .SQLITEDB
  • .SQLITE3
  • .011
  • .010
  • .009
  • .008
  • .007
  • .006
  • .005
  • .004
  • .003
  • .002
  • .001
  • .pst
  • .onetoc2
  • .asc
  • .lay6
  • .lay
  • .ms11 (Security copy)
  • .ms11
  • .sldm
  • .sldx
  • .ppsm
  • .ppsx
  • .ppam
  • .docb
  • .mml
  • .sxm
  • .otg
  • .odg
  • .uop
  • .potx
  • .potm
  • .pptx
  • .pptm
  • .std
  • .sxd
  • .pot
  • .pps
  • .sti
  • .sxi
  • .otp
  • .odp
  • .wb2
  • .123
  • .wks
  • .wk1
  • .xltx
  • .xltm
  • .xlsx
  • .xlsm
  • .xlsb
  • .slk
  • .xlw
  • .xlt
  • .xlm
  • .xlc
  • .dif
  • .stc
  • .sxc
  • .ots
  • .ods
  • .hwp
  • .602
  • .dotm
  • .dotx
  • .docm
  • .docx
  • .DOT
  • .3dm
  • .max
  • .3ds
  • .xml
  • .txt
  • .CSV
  • .uot
  • .RTF
  • .pdf
  • .XLS
  • .PPT
  • .stw
  • .sxw
  • .ott
  • .odt
  • .DOC
  • .pem
  • .p12
  • .csr
  • .crt
  • .key
  • wallet.dat

It renames encrypted files using the following names:

  • {first 8 characters of ID}--{next 4 characters of ID}--{last 4 characters of ID}--{8 hex characters}--{12 hex characters}.osiris

It does the following:

  • It prevents encrypting files containing any of the strings in its full path name:
    • Windows
    • Boot
    • System Volume Information
    • $Recycle.Bin
    • thumbs.db
    • temp
    • Program Files
    • Program Files (x86)
    • AppData
    • Application Data
    • winnt
    • tmp
    • _Locky_recover_instructions.txt
    • _Locky_recover_instructions.bmp
    • _HELP_instructions.txt
    • _HELP_instructions.bmp
    • _HELP_instructions.html
  • It deletes shadow copies by executing the following command:
    • vssadmin.exe Delete Shadows /Quiet /All
  • It drops the following ransom note:

It deletes the initially executed copy of itself

  SOLUTION

Minimum Scan Engine: 9.800

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 malware/grayware files that dropped/downloaded RANSOM_LOCKY.DZD. (Note: Please skip this step if the threats listed below have already been removed.)

     
    • JS_LOCKY.DLDSDZD

Step 4

Restart in Safe Mode

[ Learn More ]

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.
  • (Folder of Encrypted Files}\OSIRIS-{Random Hex Values}.htm
  • %User Profile%\DesktopOSIRIS.htm
  • %User Profile%\DesktopOSIRIS.bmp

Step 6

Reset your Desktop properties

[ Learn More ]

Step 7

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

Restore encrypted files from backup.

Step 9

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