{"id":900,"date":"2020-06-09T10:46:10","date_gmt":"2020-06-09T08:46:10","guid":{"rendered":"https:\/\/lab52.io\/blog\/?p=900"},"modified":"2021-04-29T14:01:52","modified_gmt":"2021-04-29T12:01:52","slug":"recent-fk-undead-rootkit-samples-found-in-the-wild","status":"publish","type":"post","link":"https:\/\/lab52.io\/blog\/recent-fk-undead-rootkit-samples-found-in-the-wild\/","title":{"rendered":"Recent FK_Undead rootkit samples found in the wild"},"content":{"rendered":"\n<p>Malware that works at Ring0, generally known as rootkit, is one of the most concerning in many environments because it shares privileges and capabilities with antivirus and EDR solutions, which greatly complicates its detection as far as they can tamper and\/or hide the data that allows its detection with relative ease.<\/p>\n\n\n\n<p>One of these examples is a threat Known FK_Undead, which among its multiple stages of infection and modules, has at least 3 different Rootkit modules.<\/p>\n\n\n\n<p>This malware family <a href=\"https:\/\/www.freebuf.com\/articles\/system\/198869.html\">was detected<\/a> for the first time in November 2018 and has remained active and in continuous evolution. <\/p>\n\n\n\n<p>Regarding it&#8217;s infecction chain, from what has been observed to date, the first element with which it infects a system is a dropper that renames itself as &#8220;ntprint.exe&#8221; and copies itself to the %TEMP% folder.  <\/p>\n\n\n\n<p>It check\u2019s the victim&#8217;s location by contacting to &#8220;http:\/\/pv.sohu.]com\/cityjson&#8221; after which downloads an executable protected with VMProtect that is stored in the %programdata% folder with a random name and executes it.<\/p>\n\n\n\n<p>If this executable does not detect a virtualized environment, it downloads several malicious drivers of type Rootkit:<\/p>\n\n\n\n<p>The first of this drivers, the most complete, is in charge of:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li> Monitoring all computer traffic, blocking access to anti-virus solution websites and modifying the content of some websites by injecting it\u2019s own code into the traffic results. <\/li><li> Adding a proxy to the browsers that routes all the victim&#8217;s traffic through a server controlled by the actors behind this threat. <\/li><li> Protect the registry entry of it\u2019s own installation from being deleted from the system. <\/li><li> Avoid loading drivers with certain signatures to protect itself from other malware of the same kind. It downloads a list of signatures from it&#8217;s command and control server every few seconds and prevents any driver with one of this signatures of being loaded. This is the updated list at the moment: <\/li><\/ol>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Zhou Donghang<\/td><\/tr><tr><td>Yuchengxian Feiwu service Co.,ltd<\/td><\/tr><tr><td>CHENGDU YIWO Tech Development Co., Ltd.<\/td><\/tr><tr><td>Chengdu Xiongdichuang Trading Co., Ltd.<\/td><\/tr><tr><td>Beijing Founder Apabi Technology Limited<\/td><\/tr><tr><td>Beijing Longweishengda Technology Co., Ltd.<\/td><\/tr><tr><td>Beijing Sages Education Consultant Co.,Ltd<\/td><\/tr><tr><td>Changsha Qiansheng Garden Landscape Co.,Ltd<\/td><\/tr><tr><td>Xi&#8217; an JingTech electronic Technology Co.,LTD<\/td><\/tr><tr><td>Guangzhoushi Xunmeng Computer Technology Co.,Ltd<\/td><\/tr><tr><td>Henan Pushitong Intelligent Technology Co., Ltd.<\/td><\/tr><tr><td>Shanghai Huaqianshu Information Technology Co., Ltd.<\/td><\/tr><tr><td>Haining shengdun Network Information Technology Co., Ltd<\/td><\/tr><tr><td>\u91d1\u534e\u7c73\u7c92\u7f51\u7edc\u6280\u672f\u670d\u52a1\u6709\u9650\u516c\u53f8<\/td><\/tr><tr><td>\u6881\u5bcc\u5e86\u4e0a\u6d77\u5929\u6e38\u8f6f\u4ef6\u6709\u9650\u516c\u53f8<\/td><\/tr><tr><td>\u59da\u79cb\u73b2<\/td><\/tr><tr><td>\u4e0a\u6d77\u57df\u8054\u8f6f\u4ef6\u6280\u672f\u6709\u9650\u516c\u53f8<\/td><\/tr><tr><td>\u5317\u4eac\u65b0\u9510\u89c6\u950b\u79d1\u6280\u6709\u9650\u516c\u53f8<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The second driver is part of the framework of the company &#8220;Callback Technologies&#8221; which offers an API for applications to control access to files on the disk by any program and even falsify the result. In particular, they only control when the process &#8220;svchost.exe&#8221; accesses the \u201cHOSTS&#8221; file and serve to this process another file in its place, thus controlling the DNS resolutions of the victim without attracting attention, as far as when other software accesses the &#8220;HOSTS&#8221; file, it is the real one,  which is clean, thus avoiding raising suspicion.<\/p>\n\n\n\n<p>The third one is in charge of downloading and installing certificates in the victim machine, so that they can also control the victim&#8217;s SSL traffic completely, redirecting it to other sites or breaking the encryption on this legitimate traffic.<\/p>\n\n\n\n<p>It should be noted that these are the modules currently known, but they probably have more modules from which no information has been obtained to date as this threat has been active for over a year and has a lot of new activity.<\/p>\n\n\n\n<p> The majority of the downloads related to this malware are done over HTTP directly against IP addresses generally located in China and using relatively high ports.<\/p>\n\n\n\n<p> Some of the names of the threats at the time of download are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li> &#8220;msdvdlx64.dat&#8221; <\/li><li> &#8220;msdvdlx32.dat&#8221; <\/li><li> &#8220;mshsdlx64.dat&#8221; <\/li><li> &#8220;msadapdlx32.dat&#8221; <\/li><\/ul>\n\n\n\n<p>\nRegarding\nthe different configurations of each driver, the download is\nidentical, but with a different name structure, since in this case\nthey\ncontain the word\n&#8220;list&#8221; in\nit\u2019s name\nand it\u2019s\ncontents\nare base64\nencoded. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li> &#8220;paclist.dat&#8221; <\/li><li> &#8220;tdplist.dat&#8221; <\/li><li> &#8220;dnlist.dat&#8221;  <\/li><\/ul>\n\n\n\n<p> All the drivers developed by this group to date use the same &#8220;PoolTags&#8221; for allocating memory in the kernel space &#8220;fktg&#8221; and &#8220;fkhs&#8221;.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"403\" height=\"103\" src=\"https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/iamge.png\" alt=\"\" class=\"wp-image-901\" srcset=\"https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/iamge.png 403w, https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/iamge-300x77.png 300w, https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/iamge-400x103.png 400w\" sizes=\"(max-width: 403px) 100vw, 403px\" \/><\/figure><\/div>\n\n\n\n<p> During a forensic analysis, this data can be very interesting to take into account as IOC, because some tools like Volatility allow scanning the memory for these memory pools.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1004\" height=\"340\" src=\"https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/Captura-de-pantalla-de-2020-06-09-09-17-34.png\" alt=\"\" class=\"wp-image-902\" srcset=\"https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/Captura-de-pantalla-de-2020-06-09-09-17-34.png 1004w, https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/Captura-de-pantalla-de-2020-06-09-09-17-34-300x102.png 300w, https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/Captura-de-pantalla-de-2020-06-09-09-17-34-768x260.png 768w\" sizes=\"(max-width: 1004px) 100vw, 1004px\" \/><\/figure><\/div>\n\n\n\n<p> Specifically, the volatility plugin in charge of doing this is &#8220;poolpeek&#8221; and requires as a parameter this PoolTag but reversed, since in memory, it is stored this way:   <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\n\t\u201cpoolpeek\n\t-t gtkf\u201d \n\t\n\t<\/li><li>\n\t\u201cpoolpeek\n\t-t shkf\u201d \n\t\n<\/li><\/ul>\n\n\n\n<p>IOCs<\/p>\n\n\n\n<p> C2 IP List<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>106.]14.47.210 <\/td><\/tr><tr><td>120.]77.36.184<\/td><\/tr><tr><td>183.]2.193.147<\/td><\/tr><tr><td>103.]216.154.25<\/td><\/tr><tr><td>139.]196.228.142<\/td><\/tr><tr><td>45.]113.201.205<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Redirect Servers<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>115].231.218.133<\/td><td>182].61.182.114<\/td><\/tr><tr><td>115].231.218.86<\/td><td>182].61.182.123<\/td><\/tr><tr><td>182].61.164.201<\/td><td>182].61.182.97<\/td><\/tr><tr><td>182].61.177.32<\/td><td>182].61.183.212<\/td><\/tr><tr><td>182].61.177.37<\/td><td>182].61.183.215<\/td><\/tr><tr><td>182].61.180.119<\/td><td>182].61.188.252<\/td><\/tr><tr><td>182].61.180.134<\/td><td>192].126.127.199<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>PDBs found in drivers<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>fk_drv.pdb<\/td><td>fk_netfltdll32.pdb<\/td><\/tr><tr><td>fk_maindrv.pdb<\/td><td>fk_adswindll32.pdb<\/td><\/tr><tr><td>fk_svcsdll.pdb<\/td><td>fk_adsexdrv32.pdb<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Malware that works at Ring0, generally known as rootkit, is one of the most concerning in many environments because it shares privileges and capabilities with antivirus and EDR solutions, which greatly complicates its detection as far as they can tamper and\/or hide the data that allows its detection with relative ease. One of these examples [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":905,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-900","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-uncategorised","8":"entry"},"featured_image_src":"https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/Captura-de-pantalla-de-2020-05-19-12-58-52.png","featured_image_src_square":"https:\/\/lab52.io\/blog\/wp-content\/uploads\/2020\/06\/Captura-de-pantalla-de-2020-05-19-12-58-52.png","author_info":{"display_name":"JagaimoKawaii","author_link":"https:\/\/lab52.io\/blog\/author\/jagaimokawaii\/"},"_links":{"self":[{"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/posts\/900"}],"collection":[{"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/comments?post=900"}],"version-history":[{"count":12,"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/posts\/900\/revisions"}],"predecessor-version":[{"id":1028,"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/posts\/900\/revisions\/1028"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/media\/905"}],"wp:attachment":[{"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/media?parent=900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/categories?post=900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab52.io\/blog\/wp-json\/wp\/v2\/tags?post=900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}