FINALDRAFT
- Type
- Backdoor
- Capabilities
- ExfiltrationProcess injectionReconnaissanceLateral movementDefense evasionPost exploitation
- Platforms
- WindowsLinux
FINALDRAFT, also known as Squidoor, is a modular backdoor with Windows and Linux variants used in cyberespionage operations associated with the China-aligned threat cluster REF7707, also tracked as Earth Alux, Jewelbug, and Ink Dragon. It provides extensive remote-administration, data-exfiltration, process-injection, and network-proxying functionality. Associated operations have targeted government and telecommunications organizations across multiple regions, including South America, Southeast Asia, and Europe.
The 64-bit C++ implant supports extensible modules. An analyzed Windows version implements 37 command handlers covering host and process reconnaissance, file management, process execution, payload injection, and forwarding of TCP, UDP, and named-pipe traffic. Additional modules provide network enumeration, in-memory PowerShell execution with AMSI and ETW bypasses, and Pass-the-Hash functionality for lateral movement. Its file-handling features include overwriting data before deletion and accessing files through raw NTFS structures when conventional copying fails.
A distinguishing feature is mailbox-based command and control using Outlook drafts through the Microsoft Graph API. The implant uses configured OAuth refresh tokens to obtain access, retrieves operator commands from draft messages, deletes processed command drafts, and writes responses as drafts. Communications are compressed, AES-CBC encrypted, and Base64 encoded, while use of legitimate Microsoft infrastructure helps blend traffic into normal enterprise activity. Linux variants support additional transports, including HTTP/HTTPS, DNS, ICMP, and bind or reverse TCP and UDP channels, alongside shell-command execution.
FINALDRAFT has been deployed through PATHLOADER and GUIDLOADER, which retrieve encrypted shellcode and execute it in memory. Observed deployment chains also abuse a legitimate Microsoft debugger to execute shellcode and inject the implant into another process.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Attacks mounted by the group have historically deployed an advanced backdoor known as FINALDRAFT
Techniques & procedures
38 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Researchers found the actor typically gained access through vulnerable IIS and SharePoint servers before deploying web shells and a sophisticated backdoor tracked as VARGEIT, Squidoor or FinalDraft.
Execution
4 techniques
Execution
Persistence was achieved using a Scheduled Task that invoked the renamed CDB.exe debugger and the weaponized INI file every minute as SYSTEM.
“Psloader.x64.dll ... allows the operator to execute PowerShell commands without invoking the powershell.exe binary.”
“This command ... executes a shell command ... by creating a cmd.exe process with the '/c' parameter.”
“FINALDRAFT, after creating and injecting the process, waits for the payload to create a Windows named pipe. It then connects to the pipe ... reads its output, and sends the data to the C2.”
Persistence
3 techniques
Persistence
Persistence was achieved using a Scheduled Task that invoked the renamed CDB.exe debugger and the weaponized INI file every minute as SYSTEM.
“The Microsoft Graph API token is stored in ... HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\UUID\<uuid_from_configuration>”
Researchers found the actor typically gained access through vulnerable IIS and SharePoint servers before deploying web shells and a sophisticated backdoor tracked as VARGEIT, Squidoor or FinalDraft.
Privilege Escalation
3 techniques
Privilege Escalation
Persistence was achieved using a Scheduled Task that invoked the renamed CDB.exe debugger and the weaponized INI file every minute as SYSTEM.
The FinalDraft YARA rule contains potential injection-target paths for "%c:\Windows\SysWOW64\mspaint.exe", "%c:\Windows\System32\mspaint.exe", "%c:\Windows\SysWOW64\conhost.exe", and "%c:\Windows\System32\conhost.exe".
“The process injection procedure is basic and based on VirtualAllocEx, WriteProcessMemory, and RtlCreateUserThread API.”
Stealth
10 techniques
Stealth
The rule includes byte sequences named "$seq_derive_encryption_key" and "$seq_decrypt_configuration."
“the target process is either an executable path provided as a parameter ... or defaults to mspaint.exe or conhost.exe as a fallback.”
“The domains purposely typosquat real known vendors, CheckPoint and Fortinet” and “VMSphere (VMware vSphere).”
The FinalDraft YARA rule contains potential injection-target paths for "%c:\Windows\SysWOW64\mspaint.exe", "%c:\Windows\System32\mspaint.exe", "%c:\Windows\SysWOW64\conhost.exe", and "%c:\Windows\System32\conhost.exe".
“The process injection procedure is basic and based on VirtualAllocEx, WriteProcessMemory, and RtlCreateUserThread API.”
“For the file deletion functionality, FINALDRAFT prevents file recovery by overwriting file data with zeros before deleting them.”
Both PATHLOADER and GUIDLOADER are used to download and execute encrypted shellcodes in memory.
fontdrvhost.exe is a renamed version of the Windows-signed debugger CDB.exe. Abuse of this binary allowed our attackers to execute malicious shellcode delivered in the config.ini file under the guise of trusted binaries.
“FINALDRAFT has multiple process injection-related commands that can inject into either running processes or create a hidden process to inject into.”
“This shellcode injected by FINALDRAFT leverages the well-known sRDI project, enabling the loading of a fully-fledged PE DLL into memory within the same process.”
Defense Impairment
4 techniques
Defense Impairment
“The Microsoft Graph API token is stored in ... HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\UUID\<uuid_from_configuration>”
“hooks ... AmsiScanBuffer APIs, forcing them to always return 0 ... bypasses anti-malware scans.”
“the module first hooks the EtwEventWrite, ReportEventW, and AmsiScanBuffer APIs, forcing them to always return 0, which disables ETW logging and bypasses anti-malware scans.”
“Before starting the TCP listener server, FINALDRAFT adds a rule to the Windows Firewall. This rule is removed when the server shuts down.”
Discovery
6 techniques
Discovery
“The decryption key is derived either from the Windows product ID (HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId).”
“ipconfig.x64.dll ... [retrieves] networking information using Windows API’s (GetAdaptersAddresses, GetAdaptersInfo, GetNetworkParams) and reading the Windows registry.”
“ListActiveTcpUdpConnections” and “List of active network connections” are collected by the ELF variant.
“ListRunningProcesses” is a FINALDRAFT command, and gathered system data includes “details about running processes.”
“information about the victim machine is collected ... computer name, the account username, internal and external IP addresses, and details about running processes.”
“FINALDRAFT ... [supports] DeleteFileOrDirectory, DownloadFile, UploadFile, MoveFile, and CopyFileOrCopyDirectory.” | “FINALDRAFT command handler table” includes “ListFiles,” “ListAvailableDrives,” and “GetCurrentDirectory.”
Lateral Movement
1 technique
Lateral Movement
“This module is a custom Pass-the-Hash (PTH) toolkit used to start new processes with stolen NTLM hashes.”
Command and Control
11 techniques
Command and Control
The malware supported multiple covert command-and-control (C2) methods, including Microsoft Graph/Outlook APIs, DNS tunnelling and ICMP tunnelling.
Once the initial execution and check-in have been completed, all further communication proceeds through legitimate Microsoft infrastructure (graph.microsoft[.]com).
The malware supported multiple covert command-and-control (C2) methods, including Microsoft Graph/Outlook APIs, DNS tunnelling and ICMP tunnelling.
“FINALDRAFT offers various methods of proxying data to C2, including UDP and TCP listeners, and a named pipe client.”
"REF7707, a threat campaign involving the FINALDRAFT, PATHLOADER, and GUIDLOADER malware families, provides details about how an espionage-motivated threat evaded defenses using Microsoft’s GraphAPI for C2."
Google's Firebase service, Pastebin, and a Southeast Asian University are third-party services used to host the encrypted payload for the loaders (PATHLOADER and GUIDLOADER) to download and decrypt the last stage of FINALDRAFT.
FINALDRAFT ... command and control using ... abuse of Microsoft's Graph API. Once the initial execution and check-in have been completed, all further communication proceeds through legitimate Microsoft infrastructure.
“COutlookTrans class ... abuses the Outlook mail service via the Microsoft Graph API.”
REF7707 used Microsoft's certutil application to download files from a remote server and save them locally.
The malware supported multiple covert command-and-control (C2) methods, including Microsoft Graph/Outlook APIs, DNS tunnelling and ICMP tunnelling.
“Content for message requests and responses are Zlib compressed, AES CBC encrypted, and Base64 encoded.”
Observables
45 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
30 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.