DarkComet
- Type
- RAT
- Capabilities
- KeyloggingPersistencePost exploitationDefense evasionReconnaissanceProcess injection
- Delivery
- SpearphishingLanding pageLure
- Platforms
- Windows
DarkComet is a Delphi-based remote access trojan for Microsoft Windows, created in 2008 by a French developer. It provides interactive control of compromised systems, including viewing the active desktop and controlling the mouse and keyboard. Its capabilities include keylogging, executing scripts, enumerating running processes, and collecting the current username.
DarkComet establishes persistence through Windows Registry autostart entries and has been deployed through the Startup folder. It uses process hollowing to execute malicious code within another process and has masqueraded as legitimate security software and Windows update components. Its command-and-control infrastructure has also used ngrok TCP tunnels to conceal controller servers.
DarkComet has been used by multiple unrelated threat actors, including Iran-linked APT33, North Korea-linked APT38 and BlueNorOff, and MOLERATS-associated operators. It was also used against Syrian activists; its developer discontinued development in 2012 following reports of that abuse. Legacy infections have remained active for years after their original campaigns.
Associated vulnerabilities
5 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
8 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
APT33 has deployed a tool known as DarkComet to the Startup folder of a victim, and used Registry run keys to gain persistence.
ALUMINUM SARATOGA ... Tools ... BlackShades, BrittleBush, DarkComet, LastConn, Micropsia, NimbleMamba, PoisonIvy, QuasarRAT, XtremeRat
The threat actor uses spearphishing with malicious documents to deliver malware, such as NetWire, DarkComet, and simple keyloggers... The primary malware families deployed were NetWire and DarkComet remote access trojans (RATs).
+2 more in the app. View in Mallory
Techniques & procedures
52 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Threat actors are abusing Steam Workshop, Valve's community hub for downloading game-related content, to push various malware hidden in wallpaper packages... specifically through the Wallpaper Engine application, to distribute malware.
Initial Access
3 techniques
Initial Access
Proofpoint researchers discovered a malicious blogspot.com site... set up to lure Indian military officials into becoming infected with MSIL/Crimson, njRAT, and possibly other malicious tools.
APT Group Sends Spear Phishing Emails to Indian Government Officials
Throughout the last decade, ModifiedElephant operators sought to infect their targets via spearphishing emails with malicious file attachments, with their techniques evolving over time. Their primary delivery mechanism is malicious Microsoft Office document files weaponized to deliver the malware of choice at the time.
Execution
9 techniques
Execution
%System32%\Tasks\BitLockerWizardElev 25
[DarkComet](https://attack.mitre.org/software/S0334) can execute various types of scripts on the victim’s machine.(Citation: Malwarebytes DarkComet March 2018)
[DarkComet](https://attack.mitre.org/software/S0334) can launch a remote shell to execute commands on the victim’s machine.(Citation: Malwarebytes DarkComet March 2018)
The program performs the following functions: Running JavaScript / VBScript scripts sent remotely.
The program performs the following functions: Running JavaScript / VBScript scripts sent remotely.
Observed lure documents repeatedly made use of CVE-2012-0158, CVE-2014-1761, CVE-2013-3906, CVE-2015-1641 exploits to drop and execute their malware of choice.
Researchers discovered dozens of malicious wallpapers on Steam Workshop that abused Wallpaper Engine's Application Wallpaper feature to execute malware on users' PCs.
The app supports four wallpaper types, and one of them, the "application wallpaper," is a standalone executable Windows program that runs as the desktop background. That also makes it a pathway for third-party code to execute on a user's machine, which is exactly what attackers exploited.
In a sample examined last December, the researchers managed to boot a functional desktop game while discreetly dropping a DarkKomet backdoor named Synaptics.exe and a tampered system library, AggregatorHost.dll.
Persistence
5 techniques
Persistence
%System32%\Tasks\BitLockerWizardElev 25
[DarkComet](https://attack.mitre.org/software/S0334) adds a Registry value for its installation routine to the Registry Key <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System Enable LUA=”0”</code> and <code>HKEY_CURRENT_USER\Software\DC3_FEXEC</code>.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
The program performs the following functions: ... Managing system services.
These malicious wallpapers... can lead to... system compromise with backdoors... with examples including the DarkKomet backdoor...
[DarkComet](https://attack.mitre.org/software/S0334) adds several Registry entries to enable automatic execution at every system startup.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
Privilege Escalation
6 techniques
Privilege Escalation
%System32%\Tasks\BitLockerWizardElev 25
The principle of remote plugins is uploading the PE file ( .*exe or *.dll ) to the compromised machine and executing it, or loading it via LoadLibraryA .
Compare to the previous generation, this RAT tools include a builder and are usually packed with UPX. They also have more advanced features, such as DLL injection, API hooking, remote plugins, and persistence techniques.
The program performs the following functions: ... Managing system services.
These malicious wallpapers... can lead to... system compromise with backdoors... with examples including the DarkKomet backdoor...
[DarkComet](https://attack.mitre.org/software/S0334) adds several Registry entries to enable automatic execution at every system startup.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
Stealth
7 techniques
Stealth
To keep them under the antivirus radar, Nigerian actors techniques use "crypters" - software tools designed to encrypt, obfuscate, and modify malware.
[DarkComet](https://attack.mitre.org/software/S0334) has the option to compress its payload using UPX or MPRESS.(Citation: Malwarebytes DarkComet March 2018)
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[DarkComet](https://attack.mitre.org/software/S0334) has dropped itself onto victim machines with file names such as WinDefender.Exe and winupdate.exe in an apparent attempt to masquerade as a legitimate file.(Citation: TrendMicro DarkComet Sept 2014)
The principle of remote plugins is uploading the PE file ( .*exe or *.dll ) to the compromised machine and executing it, or loading it via LoadLibraryA .
Compare to the previous generation, this RAT tools include a builder and are usually packed with UPX. They also have more advanced features, such as DLL injection, API hooking, remote plugins, and persistence techniques.
In a sample examined last December, the researchers managed to boot a functional desktop game while discreetly dropping a DarkKomet backdoor named Synaptics.exe and a tampered system library, AggregatorHost.dll.
Defense Impairment
4 techniques
Defense Impairment
[DarkComet](https://attack.mitre.org/software/S0334) adds a Registry value for its installation routine to the Registry Key <code>HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System Enable LUA=”0”</code> and <code>HKEY_CURRENT_USER\Software\DC3_FEXEC</code>.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
[DarkComet](https://attack.mitre.org/software/S0334) can disable Security Center functions like anti-virus.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
DarkComet ... Disable or Modify System Firewall: Windows Host Firewall
[DarkComet](https://attack.mitre.org/software/S0334) can disable Security Center functions like the Windows Firewall.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
Credential Access
4 techniques
Credential Access
[DarkComet](https://attack.mitre.org/software/S0334) has a keylogging capability.(Citation: TrendMicro DarkComet Sept 2014)
That library locates the running Steam app, hunts for account credentials, hijacks the live session, and ships the data to a command-and-control server.
That library locates the running Steam app, hunts for account credentials, hijacks the live session, and ships the data to a command-and-control server.
A custom version of a system library called 'AggregatorHost.dll' was also installed to search for Steam accounts on the computer and steal account credentials.
Discovery
5 techniques
Discovery
The program performs the following functions: Obtaining a list of windows.
[DarkComet](https://attack.mitre.org/software/S0334) gathers the username from the victim’s machine.(Citation: TrendMicro DarkComet Sept 2014)
[DarkComet](https://attack.mitre.org/software/S0334) can list active processes running on the victim’s machine.(Citation: Malwarebytes DarkComet March 2018)
[DarkComet](https://attack.mitre.org/software/S0334) can collect the computer name, RAM used, and operating system version from the victim’s machine.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
The program performs the following functions: Modifying files via the built-in file manager.
Lateral Movement
1 technique
Lateral Movement
[DarkComet](https://attack.mitre.org/software/S0334) can open an active screen of the victim’s machine and take control of the mouse and keyboard.(Citation: Malwarebytes DarkComet March 2018)
Collection
7 techniques
Collection
The attacks we have documented usually involve the use of malicious links or e-mail attachments, designed to obtain information from a device.
[DarkComet](https://attack.mitre.org/software/S0334) has a keylogging capability.(Citation: TrendMicro DarkComet Sept 2014)
We found that the spyware has a modular design, and can download additional modules from a command & control (C&C) server, including password capture (from over 20 applications) and recording of screenshots...
[DarkComet](https://attack.mitre.org/software/S0334) can steal data from the clipboard.(Citation: Malwarebytes DarkComet March 2018)
[DarkComet](https://attack.mitre.org/software/S0334) can listen in to victims' conversations through the system’s microphone.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
[DarkComet](https://attack.mitre.org/software/S0334) can access the victim’s webcam to take pictures.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
Analysis of compromised wallpapers revealed that the malware is bundled either directly in the package or inside password-protected archives that the user is tricked into opening.
Command and Control
7 techniques
Command and Control
As of this research, the most common malicious use of cloud tunneling services is for setting up phishing pages and malware C&C servers.
[DarkComet](https://attack.mitre.org/software/S0334) can use HTTP for C2 communications.(Citation: Malwarebytes DarkComet March 2018)
The program performs the following functions: Acting as a SOCKS proxy server.
[DarkComet](https://attack.mitre.org/software/S0334) can load any files onto the infected machine to execute.(Citation: TrendMicro DarkComet Sept 2014)(Citation: Malwarebytes DarkComet March 2018)
Useful starting points are MITRE ATT&CK techniques for remote access software (T1219)
The program performs the following functions: ... Providing remote desktop access.
The communication channel is protected using RC4 algorithm.
Exfiltration
1 technique
Exfiltration
The program performs the following functions: Sending keystroke logs to a remote FTP server.
Impact
2 techniques
Impact
The program performs the following functions: Shutting off and restarting the operating system.
Scammers running business email compromise (BEC) fraud have grown in number, attack more often, and turn to remote access trojans as the preferred malware type to accompany their raids.
Observables
170 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
95 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.