RedLeaves
- Type
- Backdoor
- Capabilities
- Credential theftPersistenceReconnaissanceDefense evasionDLL sideloadingProcess injection
- Delivery
- Spearphishing
- Platforms
- Windows
RedLeaves, also known as Bugjuice, is a Windows backdoor associated with the China-linked cyberespionage group APT10, also called menuPass. It is based on the open-source Trochilus remote-access tool and shares code with PlugX.
RedLeaves supports screenshot capture, theft of browser-stored usernames and passwords, discovery of network configuration parameters, and collection of information about users logged on locally or through Remote Desktop sessions. It can also delete specified files. Its command-and-control communications use RC4 encryption, and deployments have used dynamic DNS and free DNS services for command-and-control infrastructure.
The malware is launched through DLL search-order hijacking. APT10 has also used process hollowing to load the implant into an Internet Explorer process, concealing its execution within a legitimate application. RedLeaves attempts to establish persistence by creating a shortcut in the Windows Startup folder and falls back to Registry-based autostart entries if that attempt fails. Its combination of credential collection, host reconnaissance, and screen capture supports surveillance and intelligence collection on compromised Windows systems.
Associated vulnerabilities
1 CVE 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
5 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Earth Yako’s MirrorKey malware uses the same encryption routine as the one used by APT10 malware families RedLeaves and ChChes in the past.
We have seen different threat actors using these providers, including the ChessMaster’s RedLeaves toolkit and the Adwind cross-platform RAT.
UAT-7290 primarily leverages a Linux based malware suite but may also utilize Windows based bespoke implants such as RedLeaves ... commonly linked to China-nexus threat actors.
Tools QuasarRAT, RedLeaves, PoisonIvy, ChChes, QuasarRAT Loader, PlugX, ANEL, Cobalt Strike
Some of the notable Windows implants ... include RedLeaves (aka BUGJUICE) and ShadowPad
Techniques & procedures
38 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
According to preliminary analysis, threat actors appear to be leveraging stolen administrative credentials (local and domain) and certificates... User impersonation via compromised credentials is the primary mechanism used by the adversary.
It prioritizes initial access to edge networking devices... Mitigation Harden edge networking devices by eliminating default credentials, restricting management exposure, and rapidly patching known one-day vulnerabilities.
RedLeavesは2016年以降、新たに確認されるようになったマルウエアで、標的型攻撃メールで送信されています。
Execution
4 techniques
Execution
Baobeilong (宝贝龙/”Baby Dragon”) also maintained a GitHub account that had forked both the Quasar and Trochilus RATs, two open-source tools historically used by STONE PANDA... Falcon Intelligence recently independently conducted detailed analysis of the RedLeaves malware... found it was directly sourced from Trochilus code
[RedLeaves](https://attack.mitre.org/software/S0153) can receive and execute commands with cmd.exe. It can also provide a reverse shell.(Citation: PWC Cloud Hopper Technical Annex April 2017)(Citation: FireEye APT10 April 2017)
Start up a so called "RedLeavesCMDSimulator" - a console session that will accept commands from the memory pipe \\.\pipe\NamePipe_MoreWindows.
[RedLeaves](https://attack.mitre.org/software/S0153) is launched through use of DLL search order hijacking to load a malicious dll.(Citation: FireEye APT10 April 2017)
Persistence
4 techniques
Persistence
According to preliminary analysis, threat actors appear to be leveraging stolen administrative credentials (local and domain) and certificates... User impersonation via compromised credentials is the primary mechanism used by the adversary.
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[RedLeaves](https://attack.mitre.org/software/S0153) attempts to add a shortcut file in the Startup folder to achieve persistence. If this fails, it attempts to add Registry Run keys.(Citation: PWC Cloud Hopper Technical Annex April 2017)(Citation: Accenture Hogfish April 2018)
[RedLeaves](https://attack.mitre.org/software/S0153) attempts to add a shortcut file in the Startup folder to achieve persistence.(Citation: PWC Cloud Hopper Technical Annex April 2017)(Citation: Accenture Hogfish April 2018)
Privilege Escalation
5 techniques
Privilege Escalation
実行されたRedLeavesは設定内容に応じてプロセス(Internet Explorer)を起動し、自身をインジェクションします。その後、RedLeavesはインジェクションされたプロセスの中で動作するようになります。
According to preliminary analysis, threat actors appear to be leveraging stolen administrative credentials (local and domain) and certificates... User impersonation via compromised credentials is the primary mechanism used by the adversary.
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[RedLeaves](https://attack.mitre.org/software/S0153) attempts to add a shortcut file in the Startup folder to achieve persistence. If this fails, it attempts to add Registry Run keys.(Citation: PWC Cloud Hopper Technical Annex April 2017)(Citation: Accenture Hogfish April 2018)
[RedLeaves](https://attack.mitre.org/software/S0153) attempts to add a shortcut file in the Startup folder to achieve persistence.(Citation: PWC Cloud Hopper Technical Annex April 2017)(Citation: Accenture Hogfish April 2018)
Stealth
8 techniques
Stealth
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
A [RedLeaves](https://attack.mitre.org/software/S0153) configuration file is encrypted with a simple XOR key, 0x53.(Citation: PWC Cloud Hopper Technical Annex April 2017)
A legitimate application (EXE file): a signed, executable file which reads a DLL file located in the same folder
実行されたRedLeavesは設定内容に応じてプロセス(Internet Explorer)を起動し、自身をインジェクションします。その後、RedLeavesはインジェクションされたプロセスの中で動作するようになります。
[RedLeaves](https://attack.mitre.org/software/S0153) can delete specified files.(Citation: PWC Cloud Hopper Technical Annex April 2017)
According to preliminary analysis, threat actors appear to be leveraging stolen administrative credentials (local and domain) and certificates... User impersonation via compromised credentials is the primary mechanism used by the adversary.
AESで暗号化されており、dllファイルによって復号後、シェルコードとしてメモリ上で実行され
[RedLeaves](https://attack.mitre.org/software/S0153) is launched through use of DLL search order hijacking to load a malicious dll.(Citation: FireEye APT10 April 2017)
Credential Access
2 techniques
Credential Access
Agent Tesla can gather credentials from a number of browsers... APT33 has used a variety of publicly available tools like LaZagne to gather credentials... TrickBot can obtain passwords stored in files from web browsers such as Chrome, Firefox, Internet Explorer, and Microsoft Edge... SELECT action_url, username_value, password_value FROM logins; CryptUnprotectData
[RedLeaves](https://attack.mitre.org/software/S0153) can gather browser usernames and passwords.(Citation: Accenture Hogfish April 2018)
Discovery
6 techniques
Discovery
[RedLeaves](https://attack.mitre.org/software/S0153) can obtain information about network parameters.(Citation: PWC Cloud Hopper Technical Annex April 2017)
[RedLeaves](https://attack.mitre.org/software/S0153) can obtain information about the logged on user both locally and for Remote Desktop sessions.(Citation: PWC Cloud Hopper Technical Annex April 2017)
[RedLeaves](https://attack.mitre.org/software/S0153) can enumerate drives and Remote Desktop sessions.(Citation: PWC Cloud Hopper Technical Annex April 2017)
[RedLeaves](https://attack.mitre.org/software/S0153) can gather extended system information including the hostname, OS version number, platform, memory information, time elapsed since system startup, and CPU information.(Citation: PWC Cloud Hopper Technical Annex April 2017)(Citation: Accenture Hogfish April 2018)
[RedLeaves](https://attack.mitre.org/software/S0153) can enumerate and search for files and directories.(Citation: PWC Cloud Hopper Technical Annex April 2017)(Citation: FireEye APT10 April 2017)
Depending on the received commands, RedLeaves executes the following functions... Send drive information
Lateral Movement
1 technique
Lateral Movement
Additional malware are introduced to the infected system for persistence.
Collection
1 technique
Collection
[RedLeaves](https://attack.mitre.org/software/S0153) can capture screenshots.(Citation: FireEye APT10 April 2017)(Citation: Accenture Hogfish April 2018)
Command and Control
11 techniques
Command and Control
データはRC4で暗号化(キーは設定情報に含まれている)されており、以下のような内容が含まれています。
Analysis of the SprySOCKS backdoor reveals some interesting findings... Meanwhile, the structure of SprySOCKS’s command-and-control (C&C) protocol is similar to one used by the RedLeaves backdoor...
[RedLeaves](https://attack.mitre.org/software/S0153) can communicate to its C2 over HTTP and HTTPS if directed.(Citation: FireEye APT10 April 2017)(Citation: Accenture Hogfish April 2018)
C&Cサーバから受信するデータには、コマンドなどが含まれており、受信したコマンドに応じて、以下の機能を実行します。 プロキシ機能の実行
インジェクションされたRedLeavesは、HTTP POSTリクエストまたは独自プロトコルでC&Cサーバに接続します。
[RedLeaves](https://attack.mitre.org/software/S0153) is capable of downloading a file from a specified URL.(Citation: PWC Cloud Hopper Technical Annex April 2017)
‘baobeilong’ also has a GitHub account that shows a strong interest in Remote Access Trojans (RATs) including QuasarRAT and Trochilus, which baobeilong forked in 2015.
Attackers commonly use dynamic DNS services for their C&C infrastructure... dynamic DNS allows short TTLs so that attackers can quickly switch between IP addresses or to only point the domains to the real C&C server when the C&C server is in use.
[RedLeaves](https://attack.mitre.org/software/S0153) can use HTTP over non-standard ports, such as 995, for C2.(Citation: PWC Cloud Hopper Technical Annex April 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.
[RedLeaves](https://attack.mitre.org/software/S0153) has encrypted C2 traffic with RC4, previously using keys of 88888888 and babybear.(Citation: PWC Cloud Hopper Technical Annex April 2017)
Exfiltration
1 technique
Exfiltration
BUGJUICE... has the capability to... exfiltrate data... The tactic also serves to mask malicious C2 and exfiltration traffic and make it appear innocuous.
Observables
53 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
68 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.