Analysis by: Wilbert Vidal

 ALIASES:

Trojan:Win32/Kwampirs!rfn (Microsoft); Trojan.Kwampirs (Symantec)

 PLATFORM:

Windows

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

  • Threat Type: Trojan

  • Destructiveness: No

  • Encrypted: No

  • In the wild: Yes

  OVERVIEW

Canal de infecção: 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.

However, as of this writing, the said sites are inaccessible.

  TECHNICAL DETAILS

Tipo de compactação: 261,120 bytes
Tipo de arquivo: DLL
Residente na memória: Yes
Data de recebimento das amostras iniciais: 25 Apr 2018
Carga útil: Connects to URLs/IPs

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 and executes the following files:

  • {malware path}\{DLL Name}.dll
    where {DLL name} can be any of the following:
    • wmiamgmt
    • wmiassn
    • wmipadp
    • wmiadrv
    • wmipdpa
    Executes using the following shell code:
    • rundll32.exe "{malware path}\{DLL name}.dll" ControlTrace -Embedding -k DcomLaunch

Process Termination

This Trojan terminates the following processes if found running in the affected system's memory:

  • Running Processes of Itself
  • Its own DLL modules running under rundll32.exe

Dropping Routine

This Trojan drops the following files:

  • %User Temp%\{random}.tmp <- temporary file for creating its drop files, deleted after
  • %Windows%\inf\mtmndkb32.PNF
  • %Windows%\inf\digirps.PNF

(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.. %Windows% is the Windows folder, where it usually is C:\Windows on all Windows operating system versions.)

Other Details

This Trojan does the following:

  • Reads data/code on its created pipe if available. The received data/code is expected to be executed in the memory of the malware process. However, as of this writing, there were no data received.
  • Requests data from the following URLs via HTTP GET:
    • http://www.{BLOCKED}ncdnjfnncdnncdn.in/login/index.asp?q={encrypted data}
    • http://www.{BLOCKED}kj.fr/users/group/home/main.php?q={encrypted data}
    • http://www.{BLOCKED}nsitekcnfjr.in/main.asp?q={encrypted data}
    • http://www.{BLOCKED}njfnmainfjr.info/index/login.php?q={encrypted data}
    • http://www.{BLOCKED}rfjrpowerncdn.com/newnew/indexdefault.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.93.5/group/home/mainhome.asp?xq={encrypted data}
    • http://www.{BLOCKED}hdsitepbnsrv.co/usersgroup/home.asp?xq={encrypted data}
    • http://{BLOCKED}wdswserv.nl/users/default.asp?q={encrypted data}
    • http://{BLOCKED}rdswmain.fr/newgroup/index.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.2.134/index.php?q={encrypted data}
    • http://{BLOCKED}pbnyhdkcn.nl/usersnew/homedefault/index.php?q={encrypted data}
    • http://www.{BLOCKED}cdnkcnkcn.in/login/mainmain.php?q={encrypted data}
    • http://www.{BLOCKED}fnyhdyhd.biz/newusers/login/indexdefault.php?q={encrypted data}
    • http://{BLOCKED}ikj.nl/groupgroup/mainindexlogin.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.119.105/users/group/indexhomemain.php?q={encrypted data}
    • http://{BLOCKED}cnservfjr.tk/group/maindefault/main.asp?servkcnkcn.nl/users/new/homehomeindex.php?q={encrypted data)
    • http://www.{BLOCKED}in.nl/main/main/default.asp?.2q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.128.66/homeindex/login.php?q={encrypted data}
    • http://{BLOCKED}main.org/loginmain.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.10.22/users/group/index/login.asp?xq={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.49.25/group/loginmain.asp?xq={encrypted data}
    • http://{BLOCKED}rvjfn.ch/usersgroup/homemainlogin.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.126.27/new/login.asp?xq={encrypted data}
    • http://{BLOCKED}jdsw.fr/usersusers/login.asp?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.42.142/group/loginhome.php?q={encrypted data}
    • http://{BLOCKED}ersrvsitepbn.us/users/index.php?q={encrypted data}
    • http://{BLOCKED}ncjikjpbn.in/users/users/main.php?q={encrypted data}
    • http://{BLOCKED}ikj.info/index/main.php?q={encrypted data}
    • http://{BLOCKED}owerncdn.ro/new/new/home/main/login.php?q={encrypted data}
    • http://{BLOCKED}ervncj.nl/new/home/login/index.php?q={encrypted data}
    • http://www.{BLOCKED}jr.info/users/index/default/login.php?q={encrypted data}
    • http://{BLOCKED}vkcn.ru/mainhome.asp?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.71.108/default/homehome.asp?.sitejfnncjyhdnrj.in/group/login/index.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.75.116/home/homemain.asp?xq={encrypted data}
    • http://{BLOCKED}kjkcnncjpbn.ca/users/users/default.asp?xq={encrypted data}
    • http://{BLOCKED}kcnsite.in/new/homemain.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.117.41/new/login/indexhome.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.24.134/default/home.asp?xq={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.29.110/indexloginindex.asp?xq={encrypted data}
    • http://{BLOCKED}jrsrvmainyhd.info/home/index.asp?.ncdndswyhd.nl/home/homedefault.php?q={encrypted data}
    • http://{BLOCKED}mainjfn.com/group/index/default/index.php?q={encrypted data}
    • http://{BLOCKED}nkcnservfjryhd.in/new/new/indexdefault.php?q={encrypted data}
    • http://{BLOCKED}fjr.ca/users/group/home/loginlogin.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.136.55/users/mainmain/default.php?q={encrypted data}
    • http://{BLOCKED}.25.7.72/login/login.asp?q={encrypted data}
    • http://www.{BLOCKED}yhd.tk/users/group/default/login.php?q={encrypted data}
    • http://{BLOCKED}cjsiteikjncj.info/users/mainhome.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.36.113/homelogin.php?q={encrypted data}
    • http://www.{BLOCKED}werfjrpowerikj.tk/usersgroup/loginhome/default.asp?q={encrypted data}
    • http://www.{BLOCKED}itejfnmainserv.ro/group/new/index/default.php?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.55.135/main/home.asp?.dswmain.nl/new/homeindex.php??q={encrypted data}
    • http://www.{BLOCKED}servpowerikj.in/users/indexhome.asp?q={encrypted data}
    • http://{BLOCKED}tesitemainjfn.ro/new/main.asp?.jfnikjq={encrypted data}
    • http://{BLOCKED}dswjfn.ca/users/loginmain/default.asp?q={encrypted data}
    • http://{BLOCKED}dnsite.ro/homehomedefault.aspx?q={encrypted data}
    • http://{BLOCKED}owerikj.co/home.php??q={encrypted data}
    • http://{BLOCKED}kjikjncjjfn.org/users/new/default.php??q={encrypted data}
    • http://{BLOCKED}temain.fr/users/users/home/default.php??q={encrypted data}
    • http://{BLOCKED}cnsrvikjmain.info/group/index.php??q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.28.123/groupnew/mainmain.php??q={encrypted data}
    • http://{BLOCKED}rservpbn.org/users/home.php??q={encrypted data}
    • http://{BLOCKED}yhd.info/home/home.php??q={encrypted data}
    • http://{BLOCKED}dnikjjfn.fr/groupnew/logindefaultmain.php??q={encrypted data}
    • http://{BLOCKED}wmainikjkcn.org/group/default.php??q={encrypted data}
    • http://www.{BLOCKED}kjncjmain.info/home/default.php??q={encrypted data}
    • http://www.{BLOCKED}swservncdn.ro/default.php??q={encrypted data}
    • http://{BLOCKED}jmainsrv.in/users/default/index/index.php??q={encrypted data}
    • http://{BLOCKED}cdn.ro/newusers/index/home.aspx?q={encrypted data}
    • http://{BLOCKED}pbn.org/usersusers/default.aspx?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.85.128/defaulthome.php??q={encrypted data}
    • http://{BLOCKED}npowerpowersrv.nl/defaultindex/default.php??q={encrypted data}
    • http://{BLOCKED}erncdn.tk/group/indexdefaultmain.php??q={encrypted data}
    • http://{BLOCKED}serv.info/new/loginindexdefault.php??q={encrypted data}
    • http://{BLOCKED}yhd.tk/group/homehomelogin.asp?q={encrypted data}
    • http://{BLOCKED}jrmainsiteserv.tk/new/defaultdefault/home.aspx?q={encrypted data}
    • http://www.{BLOCKED}ncdnpbnsite.tk/group/index.asp?q={encrypted data}
    • http://{BLOCKED}siteyhdikjncdn.in/default.php??q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.121.129/login.asp?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.132.89/new/new/index.php??q={encrypted data}
    • http://{BLOCKED}cnservdswserv.tk/new/group/index/index.asp?q={encrypted data}
    • http://{BLOCKED}ain.info/index/main.asp?yhdjfnfjrdsw.org/group/main/home.aspx?q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.122.62/users/new/home/defaultindex.php??q={encrypted data}
    • http://www.{BLOCKED}rjfnpowermainserv.info/groupnew/defaultindexdefault.php??q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.88.29/home.php??q={encrypted data}
    • http://{BLOCKED}wpbnsitepbn.ca/newnew/default.php??q={encrypted data}
    • http://www.{BLOCKED}powernrj.com/group/users/index.php??q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.106.115/loginlogin.php??q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.116.145/home/default/main.aspx?q={encrypted data}
    • http://{BLOCKED}sitemain.ca/users/login/main.asp?q={encrypted data}
    • http://{BLOCKED}encj.ch/users/mainindexmain.php???q={encrypted data}
    • http://{BLOCKED}bnkcnsrv.info/users/home/index/main.php???q={encrypted data}
    • http://{BLOCKED}.{BLOCKED}.28.39/group/loginindex/login.php???q={encrypted data}
    • http://{BLOCKED}itepower.fr/indexhomelogin.php???q={encrypted data}
    • http://www.{BLOCKED}vsite.us/mainindexindex.php???q={encrypted data}
    • http://{BLOCKED}yhdservyhdyhd.nl/index.php???q={encrypted data}

However, as of this writing, the said sites are inaccessible.

  SOLUTION

Mecanismo de varredura mínima: 9.800
Primeiro arquivo padrão VSAPI: 12.738.07
Data do lançamento do primeiro padrão VSAPI: 26 Aug 2016
VSAPI OPR Pattern Version: 12.739.00
VSAPI OPR Pattern veröffentlicht am: 27 Aug 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

Restart in Safe Mode

[ Learn More ]

Step 4

Disable this malware service

[ Learn More ]
  •  WmiApSrvEx

Step 5

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.
  • %Windows%\inf\mtmndkb32.PNF
  • %Windows%\inf\digirps.PNF

Step 6

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