Mars Stealer is a Windows information-stealing malware family first observed in 2021. It targets credentials, cryptocurrency wallet data, two-factor authentication plugins, and system information. In addition to collecting sensitive information, Mars can download and execute additional files from an operator-specified location. It also uses checks for Microsoft Defender emulator artifacts to evade automated analysis.
Mars has been advertised commercially through underground forums, Telegram channels, and darknet sites, with operators marketing it under the MarsTeam name. A leaked administration panel has also circulated, enabling users to operate their own infrastructure without vendor support. Distribution campaigns have used fraudulent Google advertisements impersonating legitimate software, including OpenOffice. Mars has also been used in ransomware attack chains. It is distinct from the similarly named SolarMarker backdoor module and MARS ransomware.
22 distinct techniques documented for this family, organized by ATT&CK tactic.
another infostealer family called Mars that's been observed leveraging fraudulent Google Ads for well-known software like OpenOffice to distribute the malware.
Finally, the script sets up persistence measures by creating a startup task that copies the final PowerShell command and re-runs the execution of the Mars DLL.
Like the previous stager, the Mars module also remotely receives execution commands by dropping new files onto the victim system and spawning processes to run them, or through direct PowerShell text commands.
In the process tree, the running PowerShell was the persistent backdoor which loads the VNC client into SearchIndexer.exe.
It downloads 7 legitimate third-party DLLs from the C2 server, using GET requests, in the following order: sqlite3.dll freebl3.dll mozglue.dll msvcp40.dll nss3.dll softokn3.dll vcruntime140.dll
Finally, the script sets up persistence measures by creating a startup task that copies the final PowerShell command and re-runs the execution of the Mars DLL.
When a host is infected, the backdoor will launch on startup.
upon that action failing, will instead create a WScript object containing the PowerShell command to load and execute the Mars DLL and write it to a shortcut file in the victim's startup folder named "a8a85b041dc4c2bfc00abf64d546d.LnK".
Finally, the script sets up persistence measures by creating a startup task that copies the final PowerShell command and re-runs the execution of the Mars DLL.
The stager also possesses the ability to remotely receive execution commands by dropping new PS1 or PE files onto the victim system at "\AppData\Local\Temp\" directory with a filename of 24 randomly generated alphanumeric characters and executing them either through PowerShell or process hollowing
When a host is infected, the backdoor will launch on startup.
upon that action failing, will instead create a WScript object containing the PowerShell command to load and execute the Mars DLL and write it to a shortcut file in the victim's startup folder named "a8a85b041dc4c2bfc00abf64d546d.LnK".
Evasive techniques such as large payload sizes, obfuscated payload modules and stolen certificates present challenges to antivirus solutions... The updated Mars module also obfuscates its C# code, further hindering analysis efforts.
This program is executed in tandem with the rest of Solarmarker's initialization to act as misdirection for the victim by attempting to look like a legitimate document.
The stager also possesses the ability to remotely receive execution commands by dropping new PS1 or PE files onto the victim system at "\AppData\Local\Temp\" directory with a filename of 24 randomly generated alphanumeric characters and executing them either through PowerShell or process hollowing
"anti-emulation technique... string comparaison between: The computer name and 'HAL9TH' ... The username and 'JohnDoe'"; "Qbot looked for the existence of an emulator-specific file, C:\INTERNAL\__empty"
The resulting binary blob is then decoded by XORing its byte array with a hardcoded key and injected into memory through reflective assembly loading.
Mars is an information stealer mainly targeting Windows victim credentials and cryptocurrency wallets including 2FA plugins and any essential system information.
Threat actors use this information to search for high-level credentials that can allow them to move freely within an organization’s network
Stealers commonly capture system configuration data within a text file... let’s start with system.txt.
The check to see if "solarmarker.dat" already exists on a victim has also been changed to cycle through all the file names in the path "%USER%\APPDATA\ROAMING" and look for a file whose name is equivalent to the extracted text within it.
"anti-emulation technique... string comparaison between: The computer name and 'HAL9TH' ... The username and 'JohnDoe'"; "Qbot looked for the existence of an emulator-specific file, C:\INTERNAL\__empty"
After unpacking the ZIP we can find just a few files... screenshot.jpg
Once we do that, we can see it looks like the malware uploaded a ZIP archive named USR1V37900ZM7Q.zip.
The actor now uses a 16 byte, randomly generated AES symmetric key to encrypt the data sent to and from the C2 host... This key is sent with the victim identification string back to the actor's C2 in the first HTTP request, which is itself encrypted using an RSA asymmetric key pair.
This object is subsequently encoded by XORing the byte array with a hardcoded key... and sent to a hardcoded C2 IP address ... through HTTP POST requests.
The network activity from the report indicates the sample downloaded mozglue.dll, sqlite3.dll, nss3.dll, freebl3.dll, and a couple others.
Since this file is uploaded over HTTP, it stands to reason that we can carve it out of the network traffic and inspect the contents.
92 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.