Analysis by: Kiyoshi Obuchi

ALIASES:

Trojan-Ransom.Win32.Magni.e (Kaspersky); Ransom.Cry (Symantec); a variant of Win32/Filecoder.Magniber.A (ESET-NOD32)

 PLATFORM:

Windows

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

  • Threat Type: Ransomware

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

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

This Ransomware arrives on a system as a file dropped by other malware or as a file downloaded unknowingly by users when visiting malicious sites.

It executes then deletes itself afterward.

It connects to certain websites to send and receive information.

It encrypts files with specific file extensions. It drops files as ransom note.

  TECHNICAL DETAILS

File Size: 46,592 bytes
File Type: EXE
Memory Resident: No
Initial Samples Received Date: 17 Oct 2017
Payload: Connects to URLs/IPs, Displays message/message boxes, Encrypts files

Arrival Details

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

  • %User Temp%kgpvwnr.exe

(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 files:

  • %User Temp%/{Random 19 Characters}.kgpvwnr

(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 adds the following processes:

  • cmd /c ping localhost -n 3 > nul & del {Directory of Malware} -> used to delete itself.

It executes then deletes itself afterward.

It adds the following mutexes to ensure that only one of its copies runs at any one time:

  • kgpvwnr

Other Details

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

  • http://{Random 19 Characters}.{Sub Domain}/new
  • Where {Sub Domain} can be any of the following:
    • segon.racing
    • keysmap.trade
    • goflag.webcam
    • sayhere.party

It adds the following scheduled tasks:

  • Task Name: kgpvwnr
    Schedule: Every 15 minutes
    Task to be Run: pcalua.exe -a %User Temp%kgpvwnr.exe
  • Task Name: {Random 19 Characters}
    Schedule: Every 15 minutes
    Task to be Run: %User Temp%_HOW_TO_DECRYPT_MY_FILES_{Random 19 Characters}_.txt

(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.)

Ransomware Routine

This Ransomware encrypts files with the following extensions:

  • .doc
  • .docx
  • .xls
  • .xlsx
  • .ppt
  • .pptx
  • .pst
  • .ost
  • .msg
  • .em
  • .vsd
  • .vsdx
  • .csv
  • .rtf
  • .123
  • .wks
  • .wk1
  • .pdf
  • .dwg
  • .onetoc2
  • .snt
  • .docb
  • .docm
  • .dot
  • .dotm
  • .dotx
  • .xlsm
  • .xlsb
  • .xlw
  • .xlt
  • .xlm
  • .xlc
  • .xltx
  • .xltm
  • .pptm
  • .pot
  • .pps
  • .ppsm
  • .ppsx
  • .ppam
  • .potx
  • .potm
  • .edb
  • .hwp
  • .602
  • .sxi
  • .sti
  • .sldx
  • .sldm
  • .vdi
  • .vmx
  • .gpg
  • .aes
  • .raw
  • .cgm
  • .nef
  • .psd
  • .ai
  • .svg
  • .djvu
  • .sh
  • .class
  • .jar
  • .java
  • .rb
  • .asp
  • .php
  • .jsp
  • .brd
  • .sch
  • .dch
  • .dip
  • .vb
  • .vbs
  • .ps1
  • .js
  • .asm
  • .pas
  • .cpp
  • .cs
  • .suo
  • .sln
  • .ldf
  • .mdf
  • .ibd
  • .myi
  • .myd
  • .frm
  • .odb
  • .dbf
  • .db
  • .mdb
  • .accdb
  • .sq
  • .sqlitedb
  • .sqlite3
  • .asc
  • .lay6
  • .lay
  • .mm
  • .sxm
  • .otg
  • .odg
  • .uop
  • .std
  • .sxd
  • .otp
  • .odp
  • .wb2
  • .slk
  • .dif
  • .stc
  • .sxc
  • .ots
  • .ods
  • .3dm
  • .max
  • .3ds
  • .uot
  • .stw
  • .sxw
  • .ott
  • .odt
  • .pem
  • .p12
  • .csr
  • .crt
  • .key
  • .pfx
  • .der
  • .1cd
  • .cd
  • .arw
  • .jpe
  • .eq
  • .adp
  • .odm
  • .dbc
  • .frx
  • .db2
  • .dbs
  • .pds
  • .pdt
  • .dt
  • .cf
  • .cfu
  • .mx
  • .epf
  • .kdbx
  • .erf
  • .vrp
  • .grs
  • .geo
  • .st
  • .pff
  • .mft
  • .efd
  • .rib
  • .ma
  • .lwo
  • .lws
  • .m3d
  • .mb
  • .obj
  • .x3d
  • .c4d
  • .fbx
  • .dgn
  • .4db
  • .4d
  • .4mp
  • .abs
  • .adn
  • .a3d
  • .aft
  • .ahd
  • .alf
  • .ask
  • .awdb
  • .azz
  • .bdb
  • .bib
  • .bnd
  • .bok
  • .btr
  • .cdb
  • .ckp
  • .clkw
  • .cma
  • .crd
  • .dad
  • .daf
  • .db3
  • .dbk
  • .dbt
  • .dbv
  • .dbx
  • .dcb
  • .dct
  • .dcx
  • .dd
  • .df1
  • .dmo
  • .dnc
  • .dp1
  • .dqy
  • .dsk
  • .dsn
  • .dta
  • .dtsx
  • .dx
  • .eco
  • .ecx
  • .emd
  • .fcd
  • .fic
  • .fid
  • .fi
  • .fm5
  • .fo
  • .fp3
  • .fp4
  • .fp5
  • .fp7
  • .fpt
  • .fzb
  • .fzv
  • .gdb
  • .gwi
  • .hdb
  • .his
  • .ib
  • .idc
  • .ihx
  • .itdb
  • .itw
  • .jtx
  • .kdb
  • .lgc
  • .maq
  • .mdn
  • .mdt
  • .mrg
  • .mud
  • .mwb
  • .s3m
  • .ndf
  • .ns2
  • .ns3
  • .ns4
  • .nsf
  • .nv2
  • .nyf
  • .oce
  • .oqy
  • .ora
  • .orx
  • .owc
  • .owg
  • .oyx
  • .p96
  • .p97
  • .pan
  • .pdb
  • .pdm
  • .phm
  • .pnz
  • .pth
  • .pwa
  • .qpx
  • .qry
  • .qvd
  • .rctd
  • .rdb
  • .rpd
  • .rsd
  • .sbf
  • .sdb
  • .sdf
  • .spq
  • .sqb
  • .stp
  • .str
  • .tcx
  • .tdt
  • .te
  • .tmd
  • .trm
  • .udb
  • .usr
  • .v12
  • .vdb
  • .vpd
  • .wdb
  • .wmdb
  • .xdb
  • .xld
  • .xlgc
  • .zdb
  • .zdc
  • .cdr
  • .cdr3
  • .abw
  • .act
  • .aim
  • .ans
  • .apt
  • .ase
  • .aty
  • .awp
  • .awt
  • .aww
  • .bad
  • .bbs
  • .bdp
  • .bdr
  • .bean
  • .bna
  • .boc
  • .btd
  • .cnm
  • .crw
  • .cyi
  • .dca
  • .dgs
  • .diz
  • .dne
  • .docz
  • .dsv
  • .dvi
  • .dx
  • .eio
  • .eit
  • .emlx
  • .epp
  • .err
  • .etf
  • .etx
  • .euc
  • .faq
  • .fb2
  • .fb
  • .fcf
  • .fdf
  • .fdr
  • .fds
  • .fdt
  • .fdx
  • .fdxt
  • .fes
  • .fft
  • .flr
  • .fodt
  • .gtp
  • .frt
  • .fwdn
  • .fxc
  • .gdoc
  • .gio
  • .gpn
  • .gsd
  • .gthr
  • .gv
  • .hbk
  • .hht
  • .hs
  • .htc
  • .hz
  • .idx
  • .ii
  • .ipf
  • .jis
  • .joe
  • .jp1
  • .jrtf
  • .kes
  • .klg
  • .knt
  • .kon
  • .kwd
  • .lbt
  • .lis
  • .lit
  • .lnt
  • .lp2
  • .lrc
  • .lst
  • .ltr
  • .ltx
  • .lue
  • .luf
  • .lwp
  • .lyt
  • .lyx
  • .man
  • .map
  • .mbox
  • .me
  • .mel
  • .min
  • .mnt
  • .mwp
  • .nfo
  • .njx
  • .now
  • .nzb
  • .ocr
  • .odo
  • .of
  • .oft
  • .ort
  • .p7s
  • .pfs
  • .pjt
  • .prt
  • .psw
  • .pu
  • .pvj
  • .pvm
  • .pwi
  • .pwr
  • .qd
  • .rad
  • .rft
  • .ris
  • .rng
  • .rpt
  • .rst
  • .rt
  • .rtd
  • .rtx
  • .run
  • .rzk
  • .rzn
  • .saf
  • .sam
  • .scc
  • .scm
  • .sct
  • .scw
  • .sdm
  • .sdoc
  • .sdw
  • .sgm
  • .sig
  • .sla
  • .sls
  • .smf
  • .sms
  • .ssa
  • .sty
  • .sub
  • .sxg
  • .tab
  • .tdf
  • .tex
  • .text
  • .thp
  • .tlb
  • .tm
  • .tmv
  • .tmx
  • .tpc
  • .tvj
  • .u3d
  • .u3i
  • .unx
  • .uof
  • .upd
  • .utf8
  • .utxt
  • .vct
  • .vnt
  • .vw
  • .wbk
  • .wcf
  • .wgz
  • .wn
  • .wp
  • .wp4
  • .wp5
  • .wp6
  • .wp7
  • .wpa
  • .wpd
  • .wp
  • .wps
  • .wpt
  • .wpw
  • .wri
  • .wsc
  • .wsd
  • .wsh
  • .wtx
  • .xd
  • .xlf
  • .xps
  • .xwp
  • .xy3
  • .xyp
  • .xyw
  • .ybk
  • .ym
  • .zabw
  • .zw
  • .abm
  • .afx
  • .agif
  • .agp
  • .aic
  • .albm
  • .apd
  • .apm
  • .apng
  • .aps
  • .apx
  • .art
  • .asw
  • .bay
  • .bm2
  • .bmx
  • .brk
  • .brn
  • .brt
  • .bss
  • .bti
  • .c4
  • .ca
  • .cals
  • .can
  • .cd5
  • .cdc
  • .cdg
  • .cimg
  • .cin
  • .cit
  • .colz
  • .cpc
  • .cpd
  • .cpg
  • .cps
  • .cpx
  • .cr2
  • .ct
  • .dc2
  • .dcr
  • .dds
  • .dgt
  • .dib
  • .djv
  • .dm3
  • .dmi
  • .vue
  • .dpx
  • .wire
  • .drz
  • .dt2
  • .dtw
  • .dv
  • .ecw
  • .eip
  • .exr
  • .fa
  • .fax
  • .fpos
  • .fpx
  • .g3
  • .gcdp
  • .gfb
  • .gfie
  • .ggr
  • .gih
  • .gim
  • .spr
  • .scad
  • .gpd
  • .gro
  • .grob
  • .hdp
  • .hdr
  • .hpi
  • .i3d
  • .icn
  • .icon
  • .icpr
  • .iiq
  • .info
  • .ipx
  • .itc2
  • .iwi
  • .j2c
  • .j2k
  • .jas
  • .jb2
  • .jbig
  • .jbmp
  • .jbr
  • .jfif
  • .jia
  • .jng
  • .jp2
  • .jpg2
  • .tne
  • .ufr
  • .vbr
  • .vec
  • .vm
  • .vsdm
  • .vstm
  • .stm
  • .vstx
  • .wpg
  • .vsm
  • .xar
  • .ya
  • .orf
  • .ota
  • .oti
  • .ozb
  • .ozj
  • .ozt
  • .pa
  • .pano
  • .pap
  • .pbm
  • .pc1
  • .pc2
  • .pc3
  • .pcd
  • .pdd
  • .pe4
  • .pef
  • .pfi
  • .pgf
  • .pgm
  • .pi1
  • .pi2
  • .pi3
  • .pic
  • .pict
  • .pix
  • .pjpg
  • .pm
  • .pmg
  • .pni
  • .pnm
  • .pntg
  • .pop
  • .pp4
  • .pp5
  • .ppm
  • .prw
  • .psdx
  • .pse
  • .psp
  • .ptg
  • .ptx
  • .pvr
  • .px
  • .pxr
  • .pz3
  • .pza
  • .pzp
  • .pzs
  • .z3d
  • .qmg
  • .ras
  • .rcu
  • .rgb
  • .rgf
  • .ric
  • .riff
  • .rix
  • .rle
  • .rli
  • .rpf
  • .rri
  • .rs
  • .rsb
  • .rsr
  • .rw2
  • .rw
  • .s2mv
  • .sci
  • .sep
  • .sfc
  • .sfw
  • .skm
  • .sld
  • .sob
  • .spa
  • .spe
  • .sph
  • .spj
  • .spp
  • .sr2
  • .srw
  • .wallet
  • .jpeg
  • .jpg
  • .vmdk
  • .arc
  • .paq
  • .bz2
  • .tbk
  • .bak
  • .tar
  • .tgz
  • .gz
  • .7z
  • .rar
  • .zip
  • .backup
  • .iso
  • .vcd
  • .bmp
  • .png
  • .gif
  • .tif
  • .tiff
  • .m4u
  • .m3u
  • .mid
  • .wma
  • .flv
  • .3g2
  • .mkv
  • .3gp
  • .mp4
  • .mov
  • .avi
  • .asf
  • .mpeg
  • .vob
  • .mpg
  • .wmv
  • .fla
  • .swf
  • .wav
  • .mp3
  • .jps
  • .jpx
  • .jtf
  • .jw
  • .jxr
  • .kdc
  • .kdi
  • .kdk
  • .kic
  • .kpg
  • .lbm
  • .ljp
  • .mac
  • .mbm
  • .mef
  • .mnr
  • .mos
  • .mpf
  • .mpo
  • .mrxs
  • .my
  • .ncr
  • .nct
  • .nlm
  • .nrw
  • .oc3
  • .oc4
  • .oc5
  • .oci
  • .omf
  • .oplc
  • .af2
  • .af3
  • .asy
  • .cdmm
  • .cdmt
  • .cdmz
  • .cdt
  • .cmx
  • .cnv
  • .csy
  • .cv5
  • .cvg
  • .cvi
  • .cvs
  • .cvx
  • .cwt
  • .cxf
  • .dcs
  • .ded
  • .dhs
  • .dpp
  • .drw
  • .dxb
  • .dxf
  • .egc
  • .emf
  • .ep
  • .eps
  • .epsf
  • .fh10
  • .fh11
  • .fh3
  • .fh4
  • .fh5
  • .fh6
  • .fh7
  • .fh8
  • .fif
  • .fig
  • .fmv
  • .ft10
  • .ft11
  • .ft7
  • .ft8
  • .ft9
  • .ftn
  • .fxg
  • .gem
  • .glox
  • .hpg
  • .hpg
  • .hp
  • .idea
  • .igt
  • .igx
  • .imd
  • .ink
  • .lmk
  • .mgcb
  • .mgmf
  • .mgmt
  • .mt9
  • .mgmx
  • .mgtx
  • .mmat
  • .mat
  • .ovp
  • .ovr
  • .pcs
  • .pfv
  • .plt
  • .vrm
  • .pobj
  • .psid
  • .rd
  • .scv
  • .sk1
  • .sk2
  • .ssk
  • .stn
  • .svf
  • .svgz
  • .tlc

It avoids encrypting files found in the following folders:

  • :\documents and settings\all users\
  • :\documents and settings\default user\
  • :\documents and settings\localservice\
  • :\documents and settings\networkservice\
  • \appdata\local\
  • \appdata\locallow\
  • \appdata\roaming\
  • \local settings\
  • \public\music\sample music\
  • \public\pictures\sample pictures\
  • \public\videos\sample videos\
  • \tor browser\
  • \$recycle.bin
  • \$windows.~bt
  • \$windows.~ws
  • \boot
  • \intel
  • \msocache
  • \perflogs
  • \program files (x86)
  • \program files
  • \programdata
  • \recovery
  • \recycled
  • \recycler
  • \system volume information
  • \windows.old
  • \windows10upgrade
  • \windows
  • \winnt

It appends the following extension to the file name of the encrypted files:

  • .kgpvwnr

It drops the following file(s) as ransom note:

  • {Encrypted Directory}\_HOW_TO_DECRYPT_MY_FILES_{Random 19 Characters}

It leaves text files that serve as ransom notes containing the following text:

  SOLUTION

Minimum Scan Engine: 9.850
FIRST VSAPI PATTERN FILE: 13.726.05
FIRST VSAPI PATTERN DATE: 17 Oct 2017
VSAPI OPR PATTERN File: 13.727.00
VSAPI OPR PATTERN Date: 18 Oct 2017

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

Deleting Scheduled Tasks

The following {Task Name} - {Task to be run} listed should be used in the steps identified below:

  • kgpvwnr- "pcalua.exe -a %User Temp%\kgpvwnr.exe"
  • {Random 19 Characters} - %User Temp%\_HOW_TO_DECRYPT_MY_FILES_{Random 19 Characters}_.txt

For Windows 2000, Windows XP, and Windows Server 2003:

  1. Open the Windows Scheduled Tasks. Click Start>Programs>Accessories>
    System Tools>Scheduled Tasks.
  2. Locate each {Task Name} values listed above in the Name column.
  3. Right-click on the said file(s) with the aforementioned value.
  4. Click on Properties. In the Run field, check for the listed {Task to be run}.
  5. If the strings match the list above, delete the task.

For Windows Vista, Windows 7, Windows Server 2008, Windows 8, Windows 8.1, and Windows Server 2012:

  1. Open the Windows Task Scheduler. To do this:
    • On Windows Vista, Windows 7, and Windows Server 2008, click Start, type taskschd.msc in the Search input field, then press Enter.
    • On Windows 8, Windows 8.1, and Windows Server 2012, right-click on the lower left corner of the screen, click Run, type taskschd.msc, then press Enter.
  2. In the left panel, click Task Scheduler Library.
  3. In the upper-middle panel, locate each {Task Name} values listed above in the Name column.
  4. In the lower-middle panel, click the Actions tab. In the Details column, check for the {Task to be run} string.
  5. If the said string is found, delete the task.

Step 4

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.
  • %User Temp%/{Random 19 Characters}.kgpvwnr
  • {Encrypted Directory}_HOW_TO_DECRYPT_MY_FILES_{Random 19 Characters}_.txt

Step 5

Scan your computer with your Trend Micro product to clean files detected as RANSOM_MAGNIBER.B. 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:

Step 6

Restore encrypted files from backup.


Did this description help? Tell us how we did.