DarkGate
- Type
- RAT
- Capabilities
- Credential theftKeyloggingPersistenceInitial accessPost exploitationDefense evasionReconnaissanceDLL sideloadingProcess injection
- Delivery
- PhishingMalspamVishingLureMalvertisingSeo poisoning
- Platforms
- Windows
DarkGate is a Windows remote access trojan and malware loader offered as malware-as-a-service on Russian-language cybercrime forums since at least 2018. It provides remote command execution, system and network reconnaissance, information and credential theft, keylogging, persistence, process injection, and downloading and execution of additional payloads. Its capabilities vary by build and configuration; reduced-functionality variants serve primarily as injectors for other malware. DarkGate has delivered payloads including DanaBot, Lumma, SystemBC, and SectopRAT.
DarkGate infection chains frequently use obfuscated AutoIt scripts to decrypt and execute shellcode and embedded payloads in memory. Observed techniques include process hollowing, DLL sideloading, dynamic API resolution, direct system calls, security-product detection, and virtual-machine checks. Configurations and command-and-control communications use encryption and custom encoding. Persistence can be established through Windows startup mechanisms.
Distribution includes phishing emails and chat messages, malicious advertisements, search-engine optimization poisoning, and fake software installers. Campaigns have exploited CVE-2024-21412 and CVE-2023-36025 to bypass Microsoft Defender SmartScreen protections. Other intrusions combine email flooding with Microsoft Teams calls impersonating trusted contacts or IT support, persuading victims to authorize remote access through legitimate tools such as AnyDesk or Quick Assist before malware deployment.
DarkGate has been used by multiple threat actors against organizations across North America, Europe, Asia, and Africa. Documented users include Water Curupira and Shedding Zmiy, a cluster associated with Cobalt/ExCobalt. It has also appeared in Black Basta-associated social-engineering activity, supporting initial access and subsequent compromise rather than functioning as ransomware itself.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
16 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The threat actor conducted several DarkGate spam campaigns and a small number of IcedID campaigns in the early weeks of the third quarter of 2023, but has since pivoted exclusively to Pikabot.
Once granted access, additional malware such DarkGate, and custom payloads are deployed to enumerate the environment, extract credentials, and steal VPN configuration files.
Email bombing → external Teams “help desk” → Quick Assist → QakBot/DarkGate/Cobalt Strike → ransomware.
An AutoIt execution chain decrypted and launched DarkGate version 4.2.4 during the July 2023 attack against an IT company.
Further analysis confirmed this initial attribution, since embedded strings and contained functionality clearly identified the sample as part of the DarkGate malware family.
“Since the TA571 / DarkGate campaign in 2024, one of the earliest documented usages of this technique, ClickFix campaigns have garnered widespread popularity among threat actors.”
+10 more in the app. View in Mallory
Techniques & procedures
126 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
Volt Typhoon has obtained the victim's system current location.
Im Dezember 2024 beobachtete das Orange Cyberdefense CyberSOC eine Reihe von Social-Engineering-Angriffen, welche mit E-Mail-Bombing starteten und im nächsten Schritt zu einer Kontaktaufnahme mit den Opfern über Microsoft Teams führten.
Resource Development
5 techniques
Resource Development
[DarkGate](https://attack.mitre.org/software/S1111) command and control includes hard-coded domains in the malware chosen to masquerade as legitimate services such as Akamai CDN or Amazon Web Services.(Citation: Trellix Darkgate 2023)
“Malvertising continued to serve as a major vector for scams and malware, comprising 41% of all blocked attacks…”
These include hijacked email threads as the initial infection, URLs with unique patterns that limit user access, and an infection chain nearly identical to what we have seen with QakBot delivery.
MITRE ATT&CK TTPs ... Resource Development T1608.002 – Stage Capabilities: Upload Tool
several campaigns have been conducted to deliver the malware using different methods, such as phishing and SEO poisoning.
Initial Access
6 techniques
Initial Access
This campaign delivered fake browser update requests to end users on their web browsers that dropped a DarkGate payload... Users who passed the traffic inspection would be redirected to a fake browser update.
The infection starts via a fake invoice email delivering a PDF document to the victim.
[DarkGate](https://attack.mitre.org/software/S1111) can be distributed through emails with malicious attachments from a spoofed email address.(Citation: Ensilo Darkgate 2018)
[DarkGate](https://attack.mitre.org/software/S1111) is distributed in phishing emails containing links to distribute malicious VBS or MSI files.(Citation: Trellix Darkgate 2023) [DarkGate](https://attack.mitre.org/software/S1111) uses applications such as Microsoft Teams for distributing links to payloads.(Citation: Trellix Darkgate 2023)
In the fall of 2023, the group began exploring the use of Teams for phishing, specifically delivering payloads such as DarkGate. They quickly operationalized the idea using TeamsPhisher and TeamsEnum to identify and target accounts.
The attackers used both, ClickFix-style attacks as well as the recently popular voice phishing (vishing) technique.
Execution
16 techniques
Execution
[DarkGate](https://attack.mitre.org/software/S1111) has used WMI to execute files over the network and to obtain information about the domain.(Citation: Rapid7 BlackBasta 2024)
The first decoded part results in the AutoIt.exe binary and the second part is an AutoIt script that will be named script.au3... CreateProcessA function is called to execute the AutoIt script using AutoIt.exe
[DarkGate](https://attack.mitre.org/software/S1111) has used PowerShell to create a remote shell.(Citation: Rapid7 BlackBasta 2024)
[DarkGate](https://attack.mitre.org/software/S1111) uses a malicious Windows Batch script to run the Windows <code>code</code> utility to retrieve follow-on script payloads.(Citation: Trellix Darkgate 2023) [DarkGate](https://attack.mitre.org/software/S1111) has also used `cmd.exe` to create a remote shell.(Citation: Rapid7 BlackBasta 2024)
[DarkGate](https://attack.mitre.org/software/S1111) initial infection mechanisms include masquerading as pirated media that launches malicious VBScript on the victim.(Citation: Ensilo Darkgate 2018)
This URL downloads a ZIP archive that contains a JS file that is a JS Dropper, which is a JavaScript application used to reach out to another URL to download and run malware.
[DarkGate](https://attack.mitre.org/software/S1111) uses AutoIt scripts dropped to a hidden directory during initial installation phases, such as `test.au3`.(Citation: Ensilo Darkgate 2018)
[DarkGate](https://attack.mitre.org/software/S1111) uses the native Windows API <code>CallWindowProc()</code> to decode and launch encoded shellcode payloads during execution.(Citation: Trellix Darkgate 2023) [DarkGate](https://attack.mitre.org/software/S1111) can call kernel mode functions directly to hide the use of process hollowing methods during execution.(Citation: Ensilo Darkgate 2018) [DarkGate](https://attack.mitre.org/software/S1111) has also used the `CreateToolhelp32Snapshot`, `GetFileAttributesA` and `CreateProcessA` functions to obtain a list of running processes, to check for security products and to execute its malware.(Citation: Rapid7 BlackBasta 2024)
Darkgate has recently utilised XLL (Excel Add-in) files as part of the infection process. An XLL is essentially a DLL file that can be executed by Microsoft Excel. When opened, the XLL will automatically execute the xlAutoOpen export.
On Tuesday, the agency added CVE-2024-29988 to the list. The vulnerability was unveiled by Microsoft as part of the Patch Tuesday releases in April and affects Microsoft SmartScreen ... He added that the bug is popular among attackers that use a file download as part of their attack techniques for gaining initial access because they “want to find ways to bypass the security features such as SmartScreen.”
“WordPress users are socially engineered to copy to clipboard and run a Powershell command as part of a routine seemingly similar to ‘I’m not a robot’ authentication.”
[DarkGate](https://attack.mitre.org/software/S1111) initial infection payloads can masquerade as pirated media content requiring user interaction for code execution.(Citation: Ensilo Darkgate 2018) [DarkGate](https://attack.mitre.org/software/S1111) is distributed through phishing links to VBS or MSI objects requiring user interaction for execution.(Citation: Trellix Darkgate 2023)
[DarkGate](https://attack.mitre.org/software/S1111) tries to elevate privileges to <code>SYSTEM</code> using PsExec to locally execute as a service, such as <code>cmd /c c:\temp\PsExec.exe -accepteula -j -d -s [Target Binary]</code>.(Citation: Trellix Darkgate 2023)
[DarkGate](https://attack.mitre.org/software/S1111) edits the Registry key <code>HKCU\Software\Classes\mscfile\shell\open\command</code> to execute a malicious AutoIt script.(Citation: Ensilo Darkgate 2018) When eventvwr.exe is executed, this will call the Microsoft Management Console (mmc.exe), which in turn references the modified Registry key.
[DarkGate](https://attack.mitre.org/software/S1111) includes one infection vector that leverages a malicious "KeyScramblerE.DLL" library that will load during the execution of the legitimate KeyScrambler application.(Citation: Trellix Darkgate 2023)
[DarkGate](https://attack.mitre.org/software/S1111) overrides the <code>%windir%</code> environment variable by setting a Registry key, <code>HKEY_CURRENT_User\Environment\windir</code>, to an alternate command to execute a malicious AutoIt script. This allows [DarkGate](https://attack.mitre.org/software/S1111) to run every time the scheduled task <code>DiskCleanup</code> is executed as this uses the path value <code>%windir%\system32\cleanmgr.exe</code> for execution.(Citation: Ensilo Darkgate 2018)
Persistence
8 techniques
Persistence
[DarkGate](https://attack.mitre.org/software/S1111) elevates accounts created through the malware to the local administration group during execution.(Citation: Ensilo Darkgate 2018)
Modified registry keys: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run ... HKLM\Software\Policies\Microsoft\Windows NT\Terminal Services ...
APT3 has been known to create or enable accounts, such as support_388945a0 . ... APT5 has created Local Administrator accounts to maintain access ... DarkGate creates a local user account, SafeMode, via net user commands.
[DarkGate](https://attack.mitre.org/software/S1111) creates a local user account, <code>SafeMode</code>, via <code>net user</code> commands.(Citation: Ensilo Darkgate 2018)
Appendix B – MITRE ATT&CK... Privilege Escalation... T1543.003 Create or Modify System Process: Windows Service
self.config_flag_mapping = { "1": "startup_persistence",
[DarkGate](https://attack.mitre.org/software/S1111) installation includes AutoIt script execution creating a shortcut to itself as an LNK object, such as bill.lnk, in the victim startup folder.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024) [DarkGate](https://attack.mitre.org/software/S1111) installation finishes with the creation of a registry Run key.(Citation: Ensilo Darkgate 2018)
Persistence across reboots is established through the creation of a shortcut file within the Startup directory on the infected system.
Privilege Escalation
14 techniques
Privilege Escalation
26=No // perform process injection using Process Hollowing technique
T1055.001 Process Injection: Dynamic-link Library Injection — Reflective loading of decrypted infostealer into host memory
rootkit : the binary will be able to inject code or binaries into different processes using process hollowing and portable executable injection techniques to evade security products.
To reduce its footprint on the system and to evade detection, the loader uses APC injection... via NtQueueApcThread... To trigger the execution of the injected code... it uses NtTestAlert.
[DarkGate](https://attack.mitre.org/software/S1111) leverages process hollowing techniques to evade detection, such as decrypting the content of an encrypted PE file and injecting it into the process vbc.exe.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024)
DarkGate attempts to escalate privileges in two ways. One method is using PsExec to obtain SYSTEM privileges(CVE-2021–1733)
[DarkGate](https://attack.mitre.org/software/S1111) elevates accounts created through the malware to the local administration group during execution.(Citation: Ensilo Darkgate 2018)
the technique implemented here, in addition to the technique of spoofing a parent process PID, allows an attacker to elevate its privileges... targeting a process owned by NT\SYSTEM allows a local administrator to grant its privileges to the SYSTEM one.
[DarkGate](https://attack.mitre.org/software/S1111) relies on parent PID spoofing as part of its "rootkit-like" functionality to evade detection via Task Manager or Process Explorer.(Citation: Trellix Darkgate 2023)
Appendix B – MITRE ATT&CK... Privilege Escalation... T1543.003 Create or Modify System Process: Windows Service
self.config_flag_mapping = { "1": "startup_persistence",
[DarkGate](https://attack.mitre.org/software/S1111) installation includes AutoIt script execution creating a shortcut to itself as an LNK object, such as bill.lnk, in the victim startup folder.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024) [DarkGate](https://attack.mitre.org/software/S1111) installation finishes with the creation of a registry Run key.(Citation: Ensilo Darkgate 2018)
Persistence across reboots is established through the creation of a shortcut file within the Startup directory on the infected system.
[DarkGate](https://attack.mitre.org/software/S1111) uses two distinct User Account Control (UAC) bypass techniques to escalate privileges.(Citation: Ensilo Darkgate 2018)
Stealth
36 techniques
Stealth
[DarkGate](https://attack.mitre.org/software/S1111) uses a hard-coded string as a seed, along with the victim machine hardware identifier and input text, to generate a unique string used as an internal mutex value to evade static detection based on mutexes.(Citation: Trellix Darkgate 2023)
While DarkGate author has implemented many mechanisms to bypass endpoint security software, such as packers, encryption, obfuscation or syscalls
The threat actor injected a request to a domain they controlled that used .css steganography to conceal the malicious code.
Appendix B – MITRE ATT&CK... Defense Evasion T1027.007 Dynamic API Resolution
This contains a Windows Cabinet (CAB) archive storing the previously mentioned AutoIT payload components... The shellcode is responsible for executing a PE file... by mapping the full PE file into memory
[DarkGate](https://attack.mitre.org/software/S1111) drops an encrypted PE file, pe.bin, and decrypts it during installation.(Citation: Ensilo Darkgate 2018) [DarkGate](https://attack.mitre.org/software/S1111) also uses custom base64 encoding schemas in later variations to obfuscate payloads.(Citation: Trellix Darkgate 2023)
[DarkGate](https://attack.mitre.org/software/S1111) can masquerade as pirated media content for initial delivery to victims.(Citation: Ensilo Darkgate 2018)
[DarkGate](https://attack.mitre.org/software/S1111) executes a Windows Batch script during installation that creases a randomly-named directory in the <code>C:\\</code> root directory that copies and renames the legitimate Windows <curl>curl</code> command to this new location.(Citation: Trellix Darkgate 2023)
[DarkGate](https://attack.mitre.org/software/S1111) masquerades malicious LNK files as PDF objects using the double extension <code>.pdf.lnk</code>.(Citation: Trellix Darkgate 2023)
Also, these files used a deceptive PDF icon to lure unsuspecting users into executing the file.
26=No // perform process injection using Process Hollowing technique
T1055.001 Process Injection: Dynamic-link Library Injection — Reflective loading of decrypted infostealer into host memory
rootkit : the binary will be able to inject code or binaries into different processes using process hollowing and portable executable injection techniques to evade security products.
To reduce its footprint on the system and to evade detection, the loader uses APC injection... via NtQueueApcThread... To trigger the execution of the injected code... it uses NtTestAlert.
[DarkGate](https://attack.mitre.org/software/S1111) leverages process hollowing techniques to evade detection, such as decrypting the content of an encrypted PE file and injecting it into the process vbc.exe.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024)
Examples throughout the content include deleting tools, logs, malware-related files, staged archives, screenshots, temporary files, and exfiltrated data 'to cover their tracks,' 'reduce their footprint,' 'remove traces of activity,' or as part of 'post-intrusion cleanup.'
[DarkGate](https://attack.mitre.org/software/S1111) has deleted its staging directories.(Citation: Rapid7 BlackBasta 2024)
the technique implemented here, in addition to the technique of spoofing a parent process PID, allows an attacker to elevate its privileges... targeting a process owned by NT\SYSTEM allows a local administrator to grant its privileges to the SYSTEM one.
[DarkGate](https://attack.mitre.org/software/S1111) relies on parent PID spoofing as part of its "rootkit-like" functionality to evade detection via Task Manager or Process Explorer.(Citation: Trellix Darkgate 2023)
[DarkGate](https://attack.mitre.org/software/S1111) installation includes binary code stored in a file located in a hidden directory, such as <code>shell.txt</code>, that is decrypted then executed.(Citation: Ensilo Darkgate 2018) [DarkGate](https://attack.mitre.org/software/S1111) uses hexadecimal-encoded shellcode payloads during installation that are called via Windows API <code>CallWindowProc()</code> to decode and then execute.(Citation: Trellix Darkgate 2023)
The .URL files involved exploited CVE-2023-36025, a vulnerability in Windows SmartScreen... The vulnerability could allow an actor to bypass the SmartScreen defenses if a user clicked on a specially crafted .URL file
The shell commands... copied curl.exe from system folder to this new directory, used the curl to download Autoit3.exe
An encoded PowerShell command then leverages Microsoft HTML Application Host (mshta.exe) to download and execute a malicious payload from a remote resource... Detection opportunity: mshta.exe utility making external network connections.
Further examination using the Orca tool reveals that the CustomAction section executes the bz.CustomActionDll file
The following analytic detects regasm.exe spawning a child process... This activity is significant because regasm.exe spawning a process is rare and can indicate an attempt to bypass application control mechanisms.
rundll32.exe SystemStream.dll,NewRegEx
[DarkGate](https://attack.mitre.org/software/S1111) uses per-victim links for hosting malicious archives, such as ZIP files, in services such as SharePoint to prevent other entities from retrieving them.(Citation: Trellix Darkgate 2023)
Upon executing the script, AutoIT drops a new file that contains shellcode, and before execution, it makes a check to see if Sophos antivirus is installed.
[DarkGate](https://attack.mitre.org/software/S1111) queries system resources on an infected machine to identify if it is executing in a sandbox or virtualized environment.(Citation: Ensilo Darkgate 2018)
[DarkGate](https://attack.mitre.org/software/S1111) initial installation involves dropping several files to a hidden directory named after the victim machine name.(Citation: Ensilo Darkgate 2018) Additionally, [DarkGate](https://attack.mitre.org/software/S1111) uses [attrib](https://attack.mitre.org/software/S1176) to hide a directory in the following command: ` C:\Windows\system32\attrib.exe” +h C:/rjtu/`.(Citation: gbhackers Darkgate Malware 2024)
[DarkGate](https://attack.mitre.org/software/S1111) edits the Registry key <code>HKCU\Software\Classes\mscfile\shell\open\command</code> to execute a malicious AutoIt script.(Citation: Ensilo Darkgate 2018) When eventvwr.exe is executed, this will call the Microsoft Management Console (mmc.exe), which in turn references the modified Registry key.
[DarkGate](https://attack.mitre.org/software/S1111) includes one infection vector that leverages a malicious "KeyScramblerE.DLL" library that will load during the execution of the legitimate KeyScrambler application.(Citation: Trellix Darkgate 2023)
[DarkGate](https://attack.mitre.org/software/S1111) overrides the <code>%windir%</code> environment variable by setting a Registry key, <code>HKEY_CURRENT_User\Environment\windir</code>, to an alternate command to execute a malicious AutoIt script. This allows [DarkGate](https://attack.mitre.org/software/S1111) to run every time the scheduled task <code>DiskCleanup</code> is executed as this uses the path value <code>%windir%\system32\cleanmgr.exe</code> for execution.(Citation: Ensilo Darkgate 2018)
This shellcode will perform the task of loading and executing a PE file in memory... the loader calls the function drg_mapping_and_exec_final_payload to execute this payload directly from memory.
[DarkGate](https://attack.mitre.org/software/S1111) checks the <code>BeingDebugged</code> flag in the PEB structure during execution to identify if the malware is being debugged.(Citation: Trellix Darkgate 2023)
ClickFix is a social engineering technique that tricks users into manually executing malicious code on their own computers.
Defense Impairment
3 techniques
Defense Impairment
Modified registry keys: HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run ... HKLM\Software\Policies\Microsoft\Windows NT\Terminal Services ...
BlackBasta’s leaked chat logs give us insight into how a ransomware gang leveraged code-signing certificates for their malware campaigns.
[DarkGate](https://attack.mitre.org/software/S1111) will terminate processes associated with several security software products if identified during execution.(Citation: Ensilo Darkgate 2018)
Credential Access
7 techniques
Credential Access
[DarkGate](https://attack.mitre.org/software/S1111) will spawn a thread on execution to capture all keyboard events and write them to a predefined log file.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024)
Appendix B – MITRE ATT&CK... Credential Access... T1528 Steal Application Access Token
[DarkGate](https://attack.mitre.org/software/S1111) attempts to steal Opera cookies, if present, after terminating the related process.(Citation: Rapid7 BlackBasta 2024)
[DarkGate](https://attack.mitre.org/software/S1111) uses NirSoft tools to steal user credentials from the infected machine.(Citation: Ensilo Darkgate 2018) NirSoft tools are executed via process hollowing in a newly-created instance of vbc.exe or regasm.exe.
[DarkGate](https://attack.mitre.org/software/S1111) use Nirsoft Network Password Recovery or NetPass tools to steal stored RDP credentials in some malware versions.(Citation: Trellix Darkgate 2023)
including new features such as hVNC, file manager, Discord and Browser stealer, keylogger
DarkGate use Nirsoft Network Password Recovery or NetPass tools to steal stored RDP credentials in some malware versions... Stealth Falcon malware gathers passwords from multiple sources, including Windows Credential Vault and Outlook.
Discovery
18 techniques
Discovery
[DarkGate](https://attack.mitre.org/software/S1111) will search for cryptocurrency wallets by examining application window names for specific strings.(Citation: Ensilo Darkgate 2018) [DarkGate](https://attack.mitre.org/software/S1111) extracts information collected via NirSoft tools from the hosting process's memory by first identifying the window through the <code>FindWindow</code> API function.(Citation: Ensilo Darkgate 2018)
Processor information from the registry value HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0\ProcessorNameString Windows product ID from the registry value HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductId
systeminfo whoami net user <username> /domain ipconfig ping -n 1 <Domain Controller>
[DarkGate](https://attack.mitre.org/software/S1111) performs various checks for running processes, including security software by looking for hard-coded process name values.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024)
[DarkGate](https://attack.mitre.org/software/S1111) will gather various system information such as domain, display adapter description, operating system type and version, processor type, and RAM amount.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024)
Some versions of [DarkGate](https://attack.mitre.org/software/S1111) search for the hard-coded folder <code>C:\Program Files\e Carte Bleue</code>.(Citation: Ensilo Darkgate 2018)
systeminfo whoami net user <username> /domain ipconfig ping -n 1 <Domain Controller>
[DarkGate](https://attack.mitre.org/software/S1111) creates a log file for capturing keylogging, clipboard, and related data using the victim host's current date for the filename.(Citation: Ensilo Darkgate 2018) [DarkGate](https://attack.mitre.org/software/S1111) queries victim system epoch time during execution.(Citation: Ensilo Darkgate 2018) [DarkGate](https://attack.mitre.org/software/S1111) captures system time information as part of automated profiling on initial installation.(Citation: Trellix Darkgate 2023)
Appendix B – MITRE ATT&CK... Discovery T1217 Browser Information Discovery
cmd.exe /c wmic ComputerSystem get domain > C:\ProgramData\ghadheh\hdddcbf
Upon executing the script, AutoIT drops a new file that contains shellcode, and before execution, it makes a check to see if Sophos antivirus is installed.
[DarkGate](https://attack.mitre.org/software/S1111) queries system resources on an infected machine to identify if it is executing in a sandbox or virtualized environment.(Citation: Ensilo Darkgate 2018)
Upon executing the script, AutoIT drops a new file that contains shellcode, and before execution, it makes a check to see if Sophos antivirus is installed.
[DarkGate](https://attack.mitre.org/software/S1111) looks for various security products by process name using hard-coded values in the malware.(Citation: Rapid7 BlackBasta 2024) [DarkGate](https://attack.mitre.org/software/S1111) will not execute its keylogging thread if a process name associated with Trend Micro anti-virus is identified, or if runtime checks identify the presence of Kaspersky anti-virus. [DarkGate](https://attack.mitre.org/software/S1111) will initiate a new thread if certain security products are identified on the victim, and recreate any malicious files associated with it if it determines they were removed by security software in a new system location.(Citation: Ensilo Darkgate 2018)
[DarkGate](https://attack.mitre.org/software/S1111) queries system locale information during execution.(Citation: Ensilo Darkgate 2018) Later versions of [DarkGate](https://attack.mitre.org/software/S1111) query <code>GetSystemDefaultLCID</code> for locale information to determine if the malware is executing in Russian-speaking countries.(Citation: Trellix Darkgate 2023)
To prevent DarkGate execution in Russian-speaking countries, the binary uses the common approach of checking the Locale System Default (LCID) information of Windows systems
[DarkGate](https://attack.mitre.org/software/S1111) checks the <code>BeingDebugged</code> flag in the PEB structure during execution to identify if the malware is being debugged.(Citation: Trellix Darkgate 2023)
[DarkGate](https://attack.mitre.org/software/S1111) uses the Delphi methods <code>Sysutils::DiskSize</code> and <code>GlobalMemoryStatusEx</code> to collect disk size and physical memory as part of the malware's anti-analysis checks for running in a virtualized environment.(Citation: Ensilo Darkgate 2018)
Lateral Movement
2 techniques
Lateral Movement
"exploited ... to deploy remote desktop software such as AnyDesk and ScreenConnect"; "Exploit Microsoft Teams and AnyDesk to Deploy DarkGate"
the Excel spreadsheet has an embedded object with an external link to an attacker-controlled Server Message Block (SMB) file share.
Collection
7 techniques
Collection
[DarkGate](https://attack.mitre.org/software/S1111) has stolen `sitemanager.xml` and `recentservers.xml` from `%APPDATA%\FileZilla\` if present.(Citation: Rapid7 BlackBasta 2024)
[DarkGate](https://attack.mitre.org/software/S1111) will spawn a thread on execution to capture all keyboard events and write them to a predefined log file.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024)
DarkGate version 4... various modules for credential theft, keylogging, screen capturing, and more.
[DarkGate](https://attack.mitre.org/software/S1111) starts a thread on execution that captures clipboard data and logs it to a predefined log file.(Citation: Ensilo Darkgate 2018)(Citation: Rapid7 BlackBasta 2024)
[DarkGate](https://attack.mitre.org/software/S1111) searches for stored credentials associated with cryptocurrency wallets and notifies the command and control server when identified.(Citation: Ensilo Darkgate 2018)
This URL downloads a ZIP archive that contains a JS file that is a JS Dropper
Appendix B. MITRE ATT&CK ... Collection Archive Collected Data: Archive via Utility (T1560.001)
Command and Control
14 techniques
Command and Control
[DarkGate](https://attack.mitre.org/software/S1111) will retrieved encrypted commands from its command and control server for follow-on actions such as cryptocurrency mining.(Citation: Ensilo Darkgate 2018)
Key strokes are recorded into encrypted log files and regularly uploaded to the C2 server.
The batch script... leverages the renamed curl to download a legitimate AutoIT executable and a compiled AutoIT script from the C&C
T1071.002 File Transfer Protocols is a sub-technique of Application Layer Protocols (T1071) in the MITRE ATT&CK framework under the Command and Control tactic. It involves the use of File Transfer Protocols such as SMB, FTP, and TFTP to facilitate file sharing across networks.
[DarkGate](https://attack.mitre.org/software/S1111) can cloak command and control traffic in DNS records from legitimate services to avoid reputation-based detection techniques. (Citation: Ensilo Darkgate 2018)
MITRE ATT&CK TTPs ... Command and Control T1090.001 – Internal Proxy
MITRE ATT&CK TTPs ... Command and Control T1104 – Multi-Stage Channels
[DarkGate](https://attack.mitre.org/software/S1111) retrieves cryptocurrency mining payloads and commands in encrypted traffic from its command and control server.(Citation: Ensilo Darkgate 2018) [DarkGate](https://attack.mitre.org/software/S1111) uses Windows Batch scripts executing the <code>curl</code> command to retrieve follow-on payloads.(Citation: Trellix Darkgate 2023) [DarkGate](https://attack.mitre.org/software/S1111) has stolen `sitemanager.xml` and `recentservers.xml` from `%APPDATA%\FileZilla\` if present.(Citation: Rapid7 BlackBasta 2024)
Both the keylogging output and the configuration files are encoded using a custom base64 alphabet.
these strings are encoded... a Base64 encoding with custom alphabets... modified the encoding by setting a non-ASCII alphabet
DarkGate is a Remote Access Trojan (RAT) that enables attackers to fully compromise victim systems.
The first version of DarkGate observed in the wild was communicating with their C2 on the port 2351... and 9999
It will be used by the loader to decrypt the DarkGate payload using an XOR operation... the first 8 bytes are the XOR key used to decrypt the rest of the file.
[DarkGate](https://attack.mitre.org/software/S1111) command and control includes hard-coded domains in the malware masquerading as legitimate services such as Akamai CDN or Amazon Web Services.(Citation: Trellix Darkgate 2023)
Exfiltration
1 technique
Exfiltration
[DarkGate](https://attack.mitre.org/software/S1111) uses existing command and control channels to retrieve captured cryptocurrency wallet credentials.(Citation: Ensilo Darkgate 2018)
Impact
7 techniques
Impact
[DarkGate](https://attack.mitre.org/software/S1111) can deploy follow-on ransomware payloads.(Citation: Ensilo Darkgate 2018)
[DarkGate](https://attack.mitre.org/software/S1111) can delete system restore points through the command <code>cmd.exe /c vssadmin delete shadows /for=c: /all /quiet”</code>.(Citation: Ensilo Darkgate 2018)
[DarkGate](https://attack.mitre.org/software/S1111) can deploy follow-on cryptocurrency mining payloads.(Citation: Ensilo Darkgate 2018)
[DarkGate](https://attack.mitre.org/software/S1111) has used the `shutdown`command to shut down and/or restart the victim system.(Citation: Rapid7 BlackBasta 2024)
[DarkGate](https://attack.mitre.org/software/S1111) has deleted all files in the Mozilla directory using the following command: `/c del /q /f /s C:\Users\User\AppData\Roaming\Mozilla\firefox*`.(Citation: Rapid7 BlackBasta 2024)
[DarkGate](https://attack.mitre.org/software/S1111) can deploy payloads capable of capturing credentials related to cryptocurrency wallets.(Citation: Ensilo Darkgate 2018)
In the vishing attacks users were flooded with spam emails and then contacted by attackers posing as IT support.
Observables
399 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.