QtBot
- Type
- Downloader
- Capabilities
- Defense evasionProcess injectionPersistence
- Delivery
- Malspam
- Platforms
- Windows
QtBot is a Windows malware downloader used as an intermediate stage in Necurs-delivered malspam campaigns. It became notable for replacing earlier VBA-based geotargeting logic in malicious Microsoft Office document infections and for selectively delivering different final payloads based on victim geolocation, including TrickBot and Locky. Campaign lures commonly used financial and document-delivery themes such as invoices, billing notices, receipts, fax notifications, and scanned-file messages.
In observed infections, malicious Office documents abused Dynamic Data Exchange to launch command execution and PowerShell, which retrieved QtBot from attacker-controlled infrastructure. Once executed, QtBot performed connectivity checks, established command-and-control communications over HTTP POST, and used RC4-encrypted data for strings and network traffic. It acted primarily as a downloader and staging component, retrieving and launching a second-stage payload chosen according to GeoIP-based targeting.
QtBot incorporated a comparatively robust anti-analysis and defense-evasion suite. It scanned running processes for common debugging, reverse-engineering, sandboxing, and monitoring tools and terminated if such tools were present. It also checked keyboard layouts associated with former USSR countries and avoided execution on those systems. The malware used process injection as part of its execution chain, decrypting code in memory and injecting into legitimate Windows processes including msiexec.exe and a spawned svchost.exe instance.
For host tracking and persistence, QtBot created a randomly generated mutex, stored configuration-related values under a QtProject-themed registry location, and maintained persistence through artifacts in a randomly named temporary folder under the user profile. Reported tradecraft overlaps with Andromeda include anti-analysis checks, keyboard-layout filtering, infection reporting patterns, and injection into msiexec.exe, although QtBot has been treated as a distinct malware family.
QtBot primarily targeted Windows enterprise and consumer endpoints reached through large-scale spam distribution. Its role in delivering both banking malware and ransomware made it an important modular component in financially motivated email-borne intrusion activity.
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
本マルウェアはメールに添付される形で配布されており、メールの差出人アドレスは企業ドメインであり社員を装っています。
不審メールにはWordファイルが添付されており…最終的にランサムウェア「Locky」を感染させる不正ファイルが添付されたメールであることがわかりました。
Execution
4 techniques
Execution
抽出したDDEコマンドは、コマンドプロンプト(「cmd.exe」)経由で「PowerShell」を起動し、特定のURLへアクセスし、ダウンロードした文字列をPowerShellスクリプトとして実行する内容となっています。
抽出したDDEコマンドは、コマンドプロンプト(「cmd.exe」)経由で「PowerShell」を起動し…
メールに添付されていた不正なWord文書にはDDE Exploitというテクニックにより不正なPowerShellスクリプトが埋め込まれていました。
SetThreadContextを使用し、通常は「RtlUserThreadStart」のアドレスが指定されているEIPの値を「NtMapViewOfSection」のアドレスに書き換え…
Persistence
3 techniques
Persistence
以下のレジストリキーと値を作成します。このレジストリキーは自身が実行された証拠となる感染のマーキングの役割を持ちます。
For persistence, a temp file is generated with a randomly generated name and stored in %APPDATA%\Local\Temp\ in a randomly named folder. This randomly generated value is used for the folder name and is stored in the registry key “HKCU\Software\QtProject”
システム起動時に実行されるよう以下のレジストリを作成します。・レジストリキー: HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
Privilege Escalation
6 techniques
Privilege Escalation
プロセスハロウイングは…正規プロセスの中身を完全にマルウェアコードと入れ替えることでマルウェアを隠蔽する手法です。
そして、サスペンド状態で起動させた自身の子プロセス「rekakva32.exe」(第2世代)に対しプロセスハロウイングを行います。
For persistence, a temp file is generated with a randomly generated name and stored in %APPDATA%\Local\Temp\ in a randomly named folder. This randomly generated value is used for the folder name and is stored in the registry key “HKCU\Software\QtProject”
システム起動時に実行されるよう以下のレジストリを作成します。・レジストリキー: HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run
これは、「CompMgmtLauncher.exe」が自動昇格を許可された特別な正規プログラムであり、上記レジストリを読み込む挙動があることを悪用したUAC Bypassテクニックの一つです。
「rekakva32.exe」は管理者権限に昇格した状態で実行されます。これは…悪用したUAC Bypassテクニックの一つです。
Stealth
8 techniques
Stealth
これはBase64でエンコードされた内容であり、デコードすると以下のような内容になります。
自動解析システムやウイルス対策製品には一見インストーラーであるかのように偽装させることができます。
プロセスハロウイングは…正規プロセスの中身を完全にマルウェアコードと入れ替えることでマルウェアを隠蔽する手法です。
そして、サスペンド状態で起動させた自身の子プロセス「rekakva32.exe」(第2世代)に対しプロセスハロウイングを行います。
仮想環境の検知とマルウェア解析ツールの検知を行うアンチデバッグ機能を装備しています。
「svchost.exe」は動作を開始すると、WinHttpConnect関数を使用し、以下のドメインに接続可能かどうかを確かめます。これは正規のWindows Updateに関わるドメインであり、感染環境がインターネットに接続されているかどうかのチェックに利用します。
SetThreadContextを使用し、通常は「RtlUserThreadStart」のアドレスが指定されているEIPの値を「NtMapViewOfSection」のアドレスに書き換え…
本件のマルウェアも例外ではなく仮想環境の検知とマルウェア解析ツールの検知を行うアンチデバッグ機能を装備しています。
Defense Impairment
1 technique
Defense Impairment
以下のレジストリキーと値を作成します。このレジストリキーは自身が実行された証拠となる感染のマーキングの役割を持ちます。
Discovery
6 techniques
Discovery
When QtBot initially executes, a new thread is created which is responsible for process scanning. This process scanning is used to identify analysis tools and, if any are found, terminate the malware’s further execution.
仮想環境の検知とマルウェア解析ツールの検知を行うアンチデバッグ機能を装備しています。
「svchost.exe」は動作を開始すると、WinHttpConnect関数を使用し、以下のドメインに接続可能かどうかを確かめます。これは正規のWindows Updateに関わるドメインであり、感染環境がインターネットに接続されているかどうかのチェックに利用します。
This new downloader is responsible for loading the final payload, either Locky or Trickbot, again based on GeoIP.
QtBot includes a function which checks for the keyboard layouts common to former USSR countries, if any are found, execution is terminated.
本件のマルウェアも例外ではなく仮想環境の検知とマルウェア解析ツールの検知を行うアンチデバッグ機能を装備しています。
Command and Control
2 techniques
Command and Control
接続試行に問題がないと判断すると、「svchost.exe」は以下のドメインに接続します。
接続可能ないずれかのURLからダウンロードされたファイルは「rekakva32.exe」として一時領域へ保存され実行されます。
Observables
23 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.