Poorly secured Microsoft SQL (MSSQL) servers have turn out to be a favourite goal for a lot of teams of attackers together with ransomware gangs. In a current assault marketing campaign dubbed DB#JAMMER hackers used brute-force assaults to compromise MSSQL servers and deploy Cobalt Strike and a variant of the Mimic ransomware referred to as FreeWorld.
“One of many issues that makes DB#JAMMER standout is how the attacker’s tooling infrastructure and payloads are used,” researchers from safety agency Securonix stated in a brand new report. “A few of these instruments embrace enumeration software program, RAT payloads, exploitation and credential stealing software program, and eventually ransomware payloads.”
Preliminary entry to MSSQL servers and reaching persistence
The attackers use brute-force strategies to guess credentials for the focused MSSQL servers, nevertheless it’s not clear if this concerned dictionary-based or password spray makes an attempt. The latter normally entails username and password mixtures obtained from different database leaks.
Following the preliminary entry, the attackers investigated the database by enumerating all customers with entry to it and checked if a operate referred to as xp_cmdshell was enabled. This Transact-SQL assertion permits database customers to execute shell instructions in Home windows and return the output as textual content. The attackers leveraged xp_cmdshell extensively, first to collect details about the system and the community atmosphere by invoking Home windows instruments like wmic.exe, web.exe and ipconfig.exe, then to make modifications to Home windows accounts and the system registry.
“Three new customers have been created on the sufferer host which embrace home windows, adminv$, and mediaadmin$,” the Securonix researchers stated. “Every consumer was added to the ‘distant desktop customers’ and ‘directors’ [groups]. Apparently sufficient the attackers tried to execute a big one-liner, which might create the customers and modify group membership. Nonetheless, a number of variations of the command have been executed to account for teams in several languages: [English, German, Polish, Spanish, and Catalan].”
Additional modifications have been made to the brand new customers so their passwords and logged in classes would by no means expire. The adjustments to the registry have been additionally intensive and included enabling the Distant Desktop Protocol (RDP) service, disabling Person Entry Management restrictions, and hiding distant logged in customers from the native login display screen.