Cardinal RAT
- Type
- RAT
- Capabilities
- Credential theftKeyloggingExfiltrationPersistencePost exploitationDefense evasionReconnaissanceProcess injection
- Delivery
- Lure
- Platforms
- Windows
Cardinal RAT is a Windows remote access trojan active since at least December 2015. It has been observed in low-volume attacks against financial technology organizations, particularly Israel-based companies developing software for foreign-exchange and cryptocurrency trading. It is delivered through Carp Downloader using malicious Microsoft Excel macros, with financial-themed spreadsheets impersonating customer lists or lead reports. Carp decodes embedded C# source code, compiles it using a native Windows compiler, and downloads and decrypts the RAT payload using AES-128.
Cardinal RAT supports remote command execution, password recovery, keylogging, screenshot capture, downloading and executing additional files, reverse proxying, configuration changes, self-updating, browser-cookie cleaning, and self-uninstallation. It collects and transmits host information, including the username, hostname, Windows version, processor architecture, and victim identifier. Its command-and-control communications use custom XOR and addition operations and support multiple server and port combinations.
The malware establishes persistence through Registry-based logon execution; updated variants also use Startup-folder shortcuts that launch PowerShell hidden. An embedded watchdog is compiled and executed on the victim system to restore persistence settings and restart the RAT if necessary. Cardinal RAT injects into newly spawned legitimate Windows processes and can delete its executable during uninstallation. Later versions retain its core capabilities while adding layered obfuscation, including payload concealment within bitmap pixel data, XOR-encrypted resources, and hash-based renaming of functions and variables.
Techniques & procedures
39 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
These malicious Excel files use a number of different lures... the majority of these lures are financial-related, describing various fake customer lists for various organizations.
Multiple groups are described as sending spearphishing emails with malicious attachments (Word/PDF/Excel/LNK/archives) to lure users into opening them and executing malware.
Execution
7 techniques
Execution
The malware itself is equipped with a number of features, including... Execute command
The LNK file executes the following command: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden "%APPDATA%\Microsoft\Windows\IEConfig\[random]\sqlreader.exe"
[Cardinal RAT](https://attack.mitre.org/software/S0348) can execute commands.(Citation: PaloAlto CardinalRat Apr 2017)
attempted to lure victims into enabling malicious macros within email attachments... prompted victims to accept macros... Word documents containing malicious macros.
The content repeatedly mentions malicious macros in Word/Excel documents, such as "enable macros," "embedded macros," and "macro-enabled documents."
has attempted to get victims to launch malicious Microsoft Word attachments delivered via spearphishing emails... has required user execution of a malicious MSI installer... has been executed through user installation of an executable disguised as a flash installer.
[Cardinal RAT](https://attack.mitre.org/software/S0348) lures victims into executing malicious macros embedded within Microsoft Excel documents.(Citation: PaloAlto CardinalRat Apr 2017)
Persistence
3 techniques
Persistence
[Cardinal RAT](https://attack.mitre.org/software/S0348) sets <code>HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load</code> to point to its executable.(Citation: PaloAlto CardinalRat Apr 2017)
Cardinal RAT establishes persistence by setting the HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load Registry key to point to its executable.
[Cardinal RAT](https://attack.mitre.org/software/S0348) establishes Persistence by setting the <code>HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load</code> Registry key to point to its executable.(Citation: PaloAlto CardinalRat Apr 2017)
Privilege Escalation
4 techniques
Privilege Escalation
[Cardinal RAT](https://attack.mitre.org/software/S0348) injects into a newly spawned process created from a native Windows executable.(Citation: PaloAlto CardinalRat Apr 2017)
GuLoader has the ability to inject shellcode into donor processes that is started in a suspended state. Cardinal RAT injects into a newly spawned process created from a native Windows executable. Pandora can start and inject code into a new svchost process. ShadowPad has injected an install module into a newly created process.
Cardinal RAT establishes persistence by setting the HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load Registry key to point to its executable.
[Cardinal RAT](https://attack.mitre.org/software/S0348) establishes Persistence by setting the <code>HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load</code> Registry key to point to its executable.(Citation: PaloAlto CardinalRat Apr 2017)
Stealth
9 techniques
Stealth
Unlike previously discussed samples, this latest instance of Cardinal RAT employs various obfuscation techniques to hinder analysis of the underlying code... all of the functions, methods, and variables have been renamed to MD5 hashes.
The first layer of obfuscation comes in the form of steganography; the initial sample is compiled with .NET and contains an embedded bitmap (BMP) file. Upon execution, the malware will read this file, parse out pixel data from the image, and decrypt the result using a single-byte XOR key.
[Cardinal RAT](https://attack.mitre.org/software/S0348) and its watchdog component are compiled and executed after being delivered to victims as embedded, uncompiled source code.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) encodes many of its artifacts and is encrypted (AES-128) when downloaded.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) injects into a newly spawned process created from a native Windows executable.(Citation: PaloAlto CardinalRat Apr 2017)
GuLoader has the ability to inject shellcode into donor processes that is started in a suspended state. Cardinal RAT injects into a newly spawned process created from a native Windows executable. Pandora can start and inject code into a new svchost process. ShadowPad has injected an install module into a newly created process.
[Cardinal RAT](https://attack.mitre.org/software/S0348) can uninstall itself, including deleting its executable.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) decodes many of its artifacts and is decrypted (AES-128) after being downloaded.(Citation: PaloAlto CardinalRat Apr 2017)
It will attempt to use one of the following installed executables for the newly spawned process: RegAsm.exe RegSvcs.exe vbc.exe csc.exe AppLaunch.exe cvtres.exe
Defense Impairment
1 technique
Defense Impairment
[Cardinal RAT](https://attack.mitre.org/software/S0348) sets <code>HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load</code> to point to its executable.(Citation: PaloAlto CardinalRat Apr 2017)
Credential Access
2 techniques
Credential Access
[Cardinal RAT](https://attack.mitre.org/software/S0348) can log keystrokes.(Citation: PaloAlto CardinalRat Apr 2017)
The malware itself is equipped with a number of features, including... Recover passwords
Discovery
5 techniques
Discovery
[Cardinal RAT](https://attack.mitre.org/software/S0348) contains watchdog functionality that periodically ensures <code>HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Load</code> is set to point to its executable.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) can collect the username from a victim machine.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) contains watchdog functionality that ensures its process is always running, else spawns a new instance.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) can collect the hostname, Microsoft Windows version, and processor architecture from a victim machine.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) checks its current working directory upon execution and also contains watchdog functionality that ensures its executable is located in the correct path (else it will rewrite the payload).(Citation: PaloAlto CardinalRat Apr 2017)
Collection
3 techniques
Collection
[Cardinal RAT](https://attack.mitre.org/software/S0348) can log keystrokes.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) can capture screenshots.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) applies compression to C2 traffic using the ZLIB library.(Citation: PaloAlto CardinalRat Apr 2017)
Command and Control
9 techniques
Command and Control
Many entries describe XOR, XOR/ADD, bitwise NOT and XOR, ROR plus XOR, hexadecimal encoding after encryption, and custom encoding/obfuscation of HTTP traffic or beacons.
[Cardinal RAT](https://attack.mitre.org/software/S0348) can communicate over multiple C2 host and port combinations.(Citation: PaloAlto CardinalRat Apr 2017)
After the configuration is parsed, Cardinal RAT will proceed with making attempts at connecting with the C2.
[Cardinal RAT](https://attack.mitre.org/software/S0348) is downloaded using HTTP over port 443.(Citation: PaloAlto CardinalRat Apr 2017)
[Cardinal RAT](https://attack.mitre.org/software/S0348) can act as a reverse proxy.(Citation: PaloAlto CardinalRat Apr 2017)
"APT41 used a tool called CLASSFON to covertly proxy network communications." / "BADCALL functions as a proxy server between the victim and C2 server." / "Sandworm Team's BCS-server tool can create an internal proxy server to redirect traffic..."
[Cardinal RAT](https://attack.mitre.org/software/S0348) can download and execute additional payloads.(Citation: PaloAlto CardinalRat Apr 2017)
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.
[Cardinal RAT](https://attack.mitre.org/software/S0348) uses a secret key with a series of XOR and addition operations to encrypt C2 traffic.(Citation: PaloAlto CardinalRat Apr 2017)
Observables
125 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
58 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.