Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

New ‘Maggie’ Backdoor Targeting Microsoft SQL Servers

Security researchers with threat hunting firm DCSO CyTec are warning of a new backdoor that has been targeting Microsoft SQL (MSSQL) servers.

Security researchers with threat hunting firm DCSO CyTec are warning of a new backdoor that has been targeting Microsoft SQL (MSSQL) servers.

Dubbed Maggie, the threat is being deployed in the form of a signed Extended Stored Procedure (ESP) DLL file, a type of extension used by MSSQL. Once up and running on a target server, it can be controlled solely using SQL queries.

The backdoor supports numerous functions, including the ability to run commands and interact with files, and can be used by the attackers to gain a foothold into the compromised environment.

Additionally, Maggie can launch brute force attacks against other MSSQL servers, targeting admin accounts to add a hardcoded backdoor user.

To execute the backdoor on the target server, the attacker must place the ESP file in a directory that the MSSQL server can access, and needs valid credentials to load the ESP on the server.

DCSO CyTec notes that Maggie is manually loaded onto the server, after which it can start receiving SQL queries as commands.

Based on the received input, the backdoor can gather system information, can manipulate files and folders on the server, and can execute programs.

Furthermore, it can be used to enable network-related functionality, including TermService, a Socks5 proxy server, and port forwarding, which allow the backdoor to “act as a bridge head into the server’s network environment”, DCSO CyTec says.

Advertisement. Scroll to continue reading.

Maggie also supports simple TCP redirection, which allows it to redirect incoming connections to a previously defined IP and port.

“The implementation enables port reuse, making the redirection transparent to authorized users, while any other connecting IP is able to use the server without any interference or knowledge of Maggie,” the security researchers say.

The backdoor also supports four commands linked to exploit usage – but which depend on a DLL that the attackers likely manually upload when needed – and two commands for brute forcing other MSSQL servers – for which a host, user and password list file needs to be provided, along with an optional thread count.

If the backdoor manages to successfully brute force an account that has admin rights, it proceeds with the creation of a backdoor user account on the target server. DCSO CyTec has identified 285 servers with the backdoor user on them, spread over 42 countries, with a focus on the Asia-Pacific region (mainly South Korea, India, and Vietnam).

Related: New Brute Force Attacks Against SQL Servers Use PowerShell Wrapper

Related: Windows Updates Patch Actively Exploited ‘Follina’ Vulnerability

Related: New Winnti Backdoor Targets Microsoft SQL

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join the session as we discuss the challenges and best practices for cybersecurity leaders managing cloud identities.

Register

SecurityWeek’s Ransomware Resilience and Recovery Summit helps businesses to plan, prepare, and recover from a ransomware incident.

Register

People on the Move

Mike Dube has joined cloud security company Aqua Security as CRO.

Cody Barrow has been appointed as CEO of threat intelligence company EclecticIQ.

Shay Mowlem has been named CMO of runtime and application security company Contrast Security.

More People On The Move

Expert Insights

Related Content

Cybercrime

A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...

Cybercrime

The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.

Malware & Threats

The NSA and FBI warn that a Chinese state-sponsored APT called BlackTech is hacking into network edge devices and using firmware implants to silently...

Cyberwarfare

An engineer recruited by intelligence services reportedly used a water pump to deliver Stuxnet, which reportedly cost $1-2 billion to develop.

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...

Malware & Threats

Apple’s cat-and-mouse struggles with zero-day exploits on its flagship iOS platform is showing no signs of slowing down.

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.

Malware & Threats

Cisco is warning of a zero-day vulnerability in Cisco ASA and FTD that can be exploited remotely, without authentication, in brute force attacks.