The well-known banking trojan retools for stealth with a whole new attack routine, including using ads for Microsoft TeamViewer and Zoom to lure victims in.
<div class="c-article__content js-reading-content"> <p>A targeted campaign delivering the ZLoader banking trojan is spreading via Google AdWords, and is using a mechanism to disable all Windows Defender modules on victim machines, researchers have found.</p> <p>That’s according to SentinelLabs, which said that to lower the rates of detection, the infection chain for the campaign also includes the use of a signed dropper, plus a backdoored version of the Windows utility wextract.exe to embed the ZLoader payload itself.</p> <p>ZLoader has been around a while, one of many malware forks rising from the ashes of the Zeus banking trojan after its source code was <a href="https://threatpost.com/zeus-source-code-leaked-051011/75217/" target="_blank" rel="noopener">published nearly 10 years ago</a>.</p> <p><a href="https://threatpost.com/infosec-insider-subscription-page/?utm_source=ART&utm_medium=ART&utm_campaign=InfosecInsiders_Newsletter_Promo/" target="_blank" rel="noopener"><img loading="lazy" class="aligncenter wp-image-168544 size-full" src="https://media.threatpost.com/wp-content/uploads/sites/103/2021/07/10165815/infosec_insiders_in_article_promo.png" alt="Infosec Insiders Newsletter" width="700" height="50"></a></p> <p>“[It] is a typical banking trojan which implements web injection to steal cookies, passwords and any sensitive information,” SentinelLabs analysts noted in a <a href="https://www.sentinelone.com/labs/hide-and-seek-new-zloader-infection-chain-comes-with-improved-stealth-and-evasion-mechanisms/" target="_blank" rel="noopener">Monday posting</a> on the new campaign. “It attacks users of financial institutions all over the world and has also been used to deliver ransomware families like Egregor and Ryuk. It also provides backdoor capabilities and acts as a generic loader to deliver other forms of malware.”</p> <h2><strong>Stealthy ZLoader Infection Chain Starts With Google AdWords</strong></h2> <p>To target victims, the malware is spread from a fake Google advertisement (published through Google AdWords) for various software, researchers found – an indirect alternative to social-engineering tactics like spear-phishing emails. The lures include Discord, Java plugins, Microsoft’s TeamViewer and Zoom.</p> <p>Thus, when someone Googles, say, “Team Viewer download,” an advertisement shown by Google will redirect the person to a fake TeamViewer site under the attacker’s control, according to SentinelLabs. From there, the user can be tricked into downloading a fake installer in a signed MSI format, with a signing timestamp of Aug. 23.</p> <p>“It appears that the cybercriminals managed to obtain a valid certificate issued by Flyintellect Inc., a Software company in Brampton, Canada,” researchers explained. “The company was registered on 29 June 2021, suggesting that the threat actor possibly registered the company for the purpose of obtaining those certificates.”</p> <h2><strong>Disabling Windows Defender</strong></h2> <p>The signed .MSI file is of course not an installer for legitimate software at all, but is rather the first-stage dropper for the malware.</p> <p>Once downloaded, it runs an installation wizard that creates the following directory: <em>C:\Program Files (x86)\Sun Technology Network\Oracle Java SE</em>, and drops a .BAT file appropriately called “setup.bat.”</p> <p>After that, the built-in Windows cmd.exe function is used to execute that file, which in turn downloads a second-stage dropper that then initiates yet a third stage of infection by executing a script called “updatescript.bat.”</p> <p>This third-stage script performs most of the Defender-killing dirty work.</p> <p>“The third stage dropper contains most of the logic to impair the defenses of the machine,” researchers explained. “At first, it disables all the Windows Defender modules through the PowerShell cmdlet Set-MpPreference. It then adds exclusions, such as regsvr32, *.exe, *.dll, with the cmdlet Add-MpPreference to hide all the components of the malware from Windows Defender.”</p> <p>At this point, it downloads a fourth stage dropper from the URL “hxxps://pornofilmspremium.com/tim[dot]exe,” which is saved as “tim.exe” and executed through the legitimate Windows explorer.exe function.</p> <p>“This allows the attacker to break the parent/child correlation often used by endpoint detection and response (EDRs) for detection,” researchers explained.</p> <p>They added that the tim.exe binary is actually a backdoored version of the legitimate Windows utility wextract.exe, containing additional code for creating a new malicious batch file with the name “tim.bat.”</p> <p>“The tim.bat file is a very short script that downloads the final ZLoader DLL payload with the name tim.dll,” they noted. This final payload is executed using the legitimate Windows function known as regsvr32, which allows the attackers to proxy the execution of the DLL through a signed binary by Microsoft.</p> <p>The intensive use of legitimate Windows utilities and functions serves to help the malware avoid defenses and hide itself, researchers noted.</p> <h2><strong>More Defense Evasion</strong></h2> <p>Tim.bat has one more trick up its sleeve: It downloads another script, called “nsudo.bat,” which performs multiple operations with the goal of elevating privileges on the system and impairing defenses:</p> <ul> <li>It checks if the current context of execution is privileged by verifying the access to the SYSTEM hive.</li> <li>It implements an auto elevation VBScript that aims to run an elevated process in order to make system changes.</li> <li>Once the elevation occurs, the script is run with elevated privileges.</li> <li>The script performs the steps to disable Windows Defender on a persistent basis by making sure that the “WinDefend” service is deleted at the next boot through the utility NSudo.</li> <li>The nsudo.bat script also completely disables Microsoft’s User Account Control (UAC) security.</li> <li>It forces the computer to restart, so that the changes can take place.</li> </ul> <h2><strong>The Tim Botnet</strong></h2> <p>As some of the malicious file names suggest, the cybercriminal’s infrastructure includes the Tim botnet, according to the analysis. The botnet’s structure involves at least 350 different web domains.</p> <p>“Some domains implement the gate.php component, which is a fingerprint of the ZLoader botnet,” researchers explained. “We noticed during our investigation that all the domains were registered from April to Aug 2021, and they switched to the new IP (195.24.66[dot]70) on the 26th of August.”</p> <p>This is the first time the researchers have observed this particular attack chain in a ZLoader campaign, which for now is targeting customers of Australian and German banking institutions. If this campaign is successful, a stealthier attack routine could show up in other places, they said.</p> <p>“The attack chain…shows how the complexity of the attack has grown in order to reach a higher level of stealthiness,” researchers concluded. “The first stage dropper has been changed from the classic malicious document to a stealthy, signed MSI payload. It uses backdoored binaries and a series of [living off the land utilities] to impair defenses and proxy the execution of their payloads.”</p> <p><b>It’s time to evolve threat hunting into a pursuit of adversaries. </b><a href="https://threatpost.com/webinars/threat-hunting-catch-adversaries/?utm_source=ART&utm_medium=ART&utm_campaign=September_Cybersixgill_Webinar" target="_blank" rel="noopener"><b>JOIN</b></a><b> Threatpost and Cybersixgill for </b><a href="https://threatpost.com/webinars/threat-hunting-catch-adversaries/?utm_source=ART&utm_medium=ART&utm_campaign=September_Cybersixgill_Webinar" target="_blank" rel="noopener"><b>Threat Hunting to Catch Adversaries, Not Just Stop Attacks</b></a><b> and get a guided tour of the dark web and learn how to track threat actors before their next attack. </b><a href="https://threatpost.com/webinars/threat-hunting-catch-adversaries/?utm_source=ART&utm_medium=ART&utm_campaign=September_Cybersixgill_Webinar" target="_blank" rel="noopener"><b>REGISTER NOW</b></a><b> for the LIVE discussion on Sept. 22 at 2 p.m. EST with Cybersixgill’s Sumukh Tendulkar and Edan Cohen, along with independent researcher and vCISO Chris Roberts and Threatpost host Becky Bracken.</b></p> <footer class="c-article__footer"> <div class="c-article__footer__container"> <div class="c-article__footer__col"> <a href="#discussion" class="c-button c-button--secondary">Write a comment</a> </div> <div class="c-article__footer__col"> <div class="c-article__sharing"> <p><strong>Share this article:</strong></p> <nav class="c-nav-sharing"> <div class="social-likes social-likes_notext" data-title="ZLoader’s Back, Abusing Google AdWords, Disabling Windows Defender" data-url="https://threatpost.com/zloader-google-adwords-windows-defender/169448/" data-counters="no" data-zeroes="yes"><div class="facebook" title="Share via Facebook"></div> <div class="twitter" title="Share via Twitter"></div><div class="linkedin" title="Share via LinkedIn"></div> <div class="reddit" title="Share via Reddit"></div> <div class="flipboard" title="Share via Flipboard"></div> </div> </nav> </div> </div> </div> <div class="c-article__footer__container"> <div class="c-article__footer__col"></div> <div class="c-article__footer__col"> <ul class="c-list-categories"> <li><a class="c-label c-label--secondary-transparent" href="https://threatpost.com/category/malware-2/">Malware</a></li> </ul> </div> </div> </footer> </div>