Comnie
- Type
- Backdoor
- Capabilities
- ReconnaissanceExfiltrationPersistenceDefense evasion
- Platforms
- Windows
Comnie is a Windows malware family observed in targeted attacks. It performs host and network reconnaissance using native Windows utilities to enumerate remote systems, running processes, user accounts, active services, network adapters, and routing information. It also attempts to identify installed antivirus products. Comnie executes VBScript and batch scripts, stages collected discovery information in a temporary file, and uploads that information to a remote command-and-control server.
Comnie establishes persistence through a shortcut in the Windows Startup folder and uses Rundll32 to load a malicious DLL. It encrypts command-and-control communications with RC4 and uses blogs and third-party services, including GitHub, Tumblr, and BlogSpot, to avoid DNS-based blocking of its communications. Samples used in targeted attacks have been padded with 64 MB of garbage data in an attempt to evade antivirus inspection.
Techniques & procedures
24 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
2 techniques
Execution
[Comnie](https://attack.mitre.org/software/S0244) executes BAT scripts.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) executes VBS scripts.(Citation: Palo Alto Comnie)
Persistence
2 techniques
Persistence
[Comnie](https://attack.mitre.org/software/S0244) achieves persistence by adding a shortcut of itself to the startup path in the Registry.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) establishes persistence via a .lnk file in the victim’s startup path.(Citation: Palo Alto Comnie)
Privilege Escalation
2 techniques
Privilege Escalation
[Comnie](https://attack.mitre.org/software/S0244) achieves persistence by adding a shortcut of itself to the startup path in the Registry.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) establishes persistence via a .lnk file in the victim’s startup path.(Citation: Palo Alto Comnie)
Stealth
4 techniques
Stealth
[Comnie](https://attack.mitre.org/software/S0244) uses RC4 and Base64 to obfuscate strings.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) appends a total of 64MB of garbage data to a file to deter any security products in place that may be scanning files on disk.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) uses Rundll32 to load a malicious DLL.(Citation: Palo Alto Comnie)
In certain circumstances, anti-virus products may ignore files, or be unable to scan them, in the event they are too large.
Discovery
10 techniques
Discovery
[Comnie](https://attack.mitre.org/software/S0244) runs the command: <code>net start >> %TEMP%\info.dat</code> on a victim.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) uses <code>ipconfig /all</code> and <code>route PRINT</code> to identify network adapter and interface information.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) runs the <code>net view</code> command
[Comnie](https://attack.mitre.org/software/S0244) executes the <code>netstat -ano</code> command.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) uses the <code>tasklist</code> to view running processes on the victim’s machine.(Citation: Palo Alto Comnie)
[Comnie](https://attack.mitre.org/software/S0244) collects the hostname of the victim machine.(Citation: Palo Alto Comnie)
“actors used the following commands… to enumerate user accounts: net user >> %temp%\download; net user /domain >> %temp%\download … APT1 used the commands net localgroup, net user, and net group to find accounts… APT32 enumerated administrative users using the commands net localgroup administrators … OilRig has run net user, net user /domain, net group "domain admins" /domain …”
[Comnie](https://attack.mitre.org/software/S0244) uses the <code>net user</code> command.(Citation: Palo Alto Comnie)
In certain circumstances, anti-virus products may ignore files, or be unable to scan them, in the event they are too large.
[Comnie](https://attack.mitre.org/software/S0244) attempts to detect several anti-virus products.(Citation: Palo Alto Comnie)
Collection
1 technique
Collection
[Comnie](https://attack.mitre.org/software/S0244) executes a batch script to store discovery information in %TEMP%\info.dat and then uploads the temporarily file to the remote C2 server.(Citation: Palo Alto Comnie)
Command and Control
6 techniques
Command and Control
[Comnie](https://attack.mitre.org/software/S0244) uses HTTP for C2 communication.(Citation: Palo Alto Comnie)
The adversaries had communicated to both Dropbox and Pastebin. APT28 has used Google Drive for C2. APT37 leverages social networking sites and cloud platforms (AOL, Twitter, Yandex, Mediafire, pCloud, Dropbox, and Box) for C2.
[Comnie](https://attack.mitre.org/software/S0244) uses blogs and third-party sites (GitHub, tumbler, and BlogSpot) to avoid DNS-based blocking of their communication to the command and control server.(Citation: Palo Alto Comnie)
"Comnie uses blogs and third-party sites (GitHub, tumbler, and BlogSpot) to avoid DNS-based blocking"; "Revenge RAT used blogpost.com as its primary command and control server"; "Turla JavaScript backdoor has used Google Apps Script as its C2 server"
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
[Comnie](https://attack.mitre.org/software/S0244) encrypts command and control communications with RC4.(Citation: Palo Alto Comnie)
Recent activity
42 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.