Qakbot is a modular information stealer also known as QBot or Pinkslipbot. It has been active for years since 20

Qakbot Malware Campaign Using Google Drive Phishing Lure For Spreading

Executive Summary 

  • Qakbot is a modular information stealer also known as QBot or Pinkslipbot. It has been active for years since 2007. It has historically been known as a banking Trojan, meaning that it steals financial data from infected systems, and a loader using C2 servers for payload targeting and download.
  • According to our research, Qakbot has been using HTML attachments with faked Adobe messages since at least July 2022. This week, they introduced two new variants mimicking either Google Drive and Dropbox page.
  • Qakbot Malware delivered by HTML Smuggling technique, if victim user clicks on the attached HTML file on Phishing Email, with help of JavaScript code inside the HTML file, it will drop the Encrypted ZIP folder that contains the Qakbot Malware.   
  • After the Delivery mechanism, Qakbot Malware can be executed by a simple user click on a decoyed shortcut file (LNK) called as Cancellation. This shortcut file is decoyed as a normal folder but this is a part of Social Engineering technique, after a user click it will trigger the execution of Qakbot Malware by regsvr32.exe.

Technical Analysis 

HTML Smuggling With Google Drive Phishing Lure

During our research we observed multiple Qakbot Malware samples using Google Drive Phishing Lure to trick the victims. This technique is being used during the delivery mechanism.

HTML Smuggling in action, it drops a ZIP folder that contains a malicious ISO Image.

Decoy Shortcut (LNK) File Loading Qakbot Malware 

When we open up the Encrypted ZIP folder, we can observe an ISO file that contains Qakbot Malware. Decoy shortcut (LNK) file and Qakbot DLL is stored inside the same ISO image. ISO files can be opened and mounted on disk by User click.

ISO Image inside Encrypted ZIP folder

If victim user opens the ISO image it will mounted on disk an automatically opened an new File Explorer window like the image below :  

Decoy Shortcut (LNK) file inside ISO image will trigger the Qakbot Malware execution.

Qakbot DLL execution can be triggered by a user click on Decoy Shortcut File (LNK), as we can see on above image, LNK file contains Target section which is being used to execute command line arguments by CMD.exe

Full Command Line Arguments on Target Section :

C:\Windows\System32\cmd.exe /c inexhaustive\downloading.cmd regs v

We can see that CMD.exe execute a batch file called as downloading.cmd, if we go inside inexhaustive folder path and read the batch script, we can clearly state that, downloading.cmd being used to execute Qakbot DLL via regsvr32.exe

subscriptions.dat is the Qakbot DLL :

downloading.cmd batch file.

Process Injection on Wermgr.exe

After the execution of Qakbot DLL, we can observe a Process Injection method done by Qakbot Malware to avoid Anti Malware detection

Qakbot malware starts itself by an Injected process named as wermgr.exe, after a short Sleep function (2 second of sleep to avoid memory detection) it makes connection to multiple command and control servers to access victim devices remotely.

Disassembled Qakbot Malware 

Analysis of Unpacked Qakbot Malware 

In below picture we can see the Injected DLL on wermgr.exe process : 

We can extract this section from the memory and then continue our analysis by having the unpacked version of Qakbot Malware.

Qakbot checks if it’s running under the Windows Defender sandbox by checking the existence of a specific subdirectory titled: C:\\INTERNAL\\__empty, if this folder exists, the malware will terminates itself:

Debugging the Qakbot Malware.

Qakbot creates a persistence subdirectory with a randomly-generated name under the %APPDATA%\Microsoft directory. This folder is used to drop the in-memory Qakbot binary for persistence across every reboot.

The malware will then enumerate running processes to detect any antivirus (AV) products on the machine. The image below contains a list of AV vendors QBOT reacts to:

If one of these processes has been founded by Qakbot, it will immediately terminate itself or perform actions to evade them, depending on which AV vendor is being detected by Qakbot.

Extracted Process Name Checklist (AV Vendors) on Qakbot Malware.

Command and Control Communication 

With the help of a C2 connection the operators behind QakBot can remotely control the malware and deploy additional malicious modules. QakBot will store its configuration and command and control server list on Windows Registry of the infected system as Encrypted (RC4) format.

Below table is an example of a POST request sent by Qakbot to its C2 Server:

POST /t5 HTTP/1.1Accept: application/x-shockwave-flash, image/gif, image/jpeg, image/pjpeg, */*Content-Type: application/x-www-form-urlencodedUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; rv:11.0) like GeckoHost: 75Cache-Control: no-cache

Indicator of compromise (IOC)

Command and Control Servers
File NameSHA 256 Hash


Initial AccessT1566.001 – Phishing: Spear Phishing Attachment
Initial AccessT1566.002 – Phishing: Spear Phishing Link
ExecutionT1027 – Obfuscated Files or Information
ExecutionT1204.002 – User Execution: Malicious File
PersistenceT1547.001 – Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
Defense EvasionT1055 – Process Injection
Defense EvasionT1027.002 – Obfuscated Files or Information: Software Packing
Defense EvasionT1497.001 – Virtualization/Sandbox Evasion: System Checks
Command and ControlT1071.001 – Application Layer Protocol: Web Protocols
Defense EvasionT1055.012 – Process Injection: Process Hollowing
Defense EvasionT1027.006 – Obfuscated Files or Information: HTML Smuggling

© CyberNow Labs – A National Cyber Group LCC Company. 2022. All rights reserved.

When you visit or interact with our sites, services or tools, we or our authorized service providers may use cookies for storing information to help provide you with a better, faster and safer experience and for communication purposes.

Scroll to Top