Weak SQL Server Logins Give Attackers Windows Shell Access and Cryptominers
The most useful thing about this campaign is how little it needs. The attackers aren't exploiting a zero-day or chaining obscure bugs. They're scanning the internet for SQL Server instances with port 1433 open, guessing passwords from a short list, and then using the database's own administrative features to run commands on Windows. A weak password is the whole entry ticket.
Shane Barney, chief information security officer at Keeper Security, put the problem in terms that matter to defenders. "When administrative logins can be brute-forced, attackers gain immediate, unchecked control to deploy malware without needing a single complex exploit," he said. Internet-facing databases often exist because of technical debt or misconfiguration, but static, standing credentials are what make that exposure dangerous.
Scanning for port 1433 and guessing logins
FortiGuard researcher Xiaopeng Zhang traced the intrusion to a Go-based payload named "dllhost.exe." That binary runs the open-source Naabu port scanner. It pulls target IP ranges from an attacker-controlled server, converts them into CIDR blocks, and probes randomly generated addresses for TCP port 1433, the default for Microsoft SQL Server.
When it finds a live listener, the malware logs the address and hands off to a second executable, "dwn.exe," which brute-forces the login. It tries accounts such as "sa" and "admin" against a predefined list of more than 2,700 passwords. That's a small dictionary by cracking standards, which tells you the operators are counting on administrators who never changed the defaults.
From database login to Windows command execution
A successful login is where this gets serious. Zhang said the malware then runs a series of malicious T-SQL commands stored in a file called 2018.sql. Those commands enable xp_cmdshell, a SQL Server feature that lets database administrators run Windows command shell operations. Once it's switched on, the attackers download or extract executables into the server's C:\Users\Public directory and launch them. The result is that a database credential becomes a foothold on the operating system. Jason Soroko, senior fellow at Sectigo, described the effect plainly: the campaign "effectively turns a database login into a way to execute malware on the server." Soroko's recommendations are the ones defenders have heard before, but they're the ones that would have stopped this chain. Remove direct internet access to SQL Server, restrict connections to approved systems, enforce strong and unique credentials, and limit administrative access to accounts that actually need it. He also advised keeping xp_cmdshell disabled unless there's a specific need and alerting on any attempt to re-enable it. That last point is worth prioritizing, because enabling xp_cmdshell is a loud event that most environments never see legitimately.
Two payloads, one foothold
The T-SQL commands drop a loader that pulls further executables from the attackers' FTP infrastructure. Two payloads stand out. The first is "MicrosoftEdgeUpdate.exe," which masquerades as a browser update. It's actually an XMRig-based Monero miner that uses the compromised server's CPU to mine and sends its output to a mining pool using a wallet address embedded in its configuration. Cryptomining is the part that shows up on a performance dashboard, which is why it's the part most likely to get noticed first. The second is a Gh0st RAT variant delivered as "Winlogon.exe." FortiGuard found keylogging, file management, data theft, remote shell execution, and process management, backed by more than 30 control commands. Plugins add screen capture and remote desktop access. That's a full remote administration toolkit, not a side project. Barney's read on the pairing is the sharpest take in the reporting. Mining activity, he said, can act as "a smokescreen for establishing long-term persistence through remote access tools." The miner is the noisy thing you can see. The RAT is the thing you should be hunting for.
How the attackers stay put
The persistence is layered, and it's designed to survive a partial cleanup. The initial payload creates a scheduled task that runs every 30 minutes. The downloader sets up a second task that runs daily at 1 AM. The Gh0st RAT adds itself to the Windows registry Run key, installs a Windows service, and creates its own scheduled task that fires every 30 minutes. Removing the miner alone leaves the RAT watching the keyboard, and removing one task still leaves two or three others. Microsoft didn't respond to a request for comment before publication. FortiGuard says its IPS, Web Filtering, and Antivirus services cover the campaign, and it has published indicators of compromise for organizations outside its customer base. The practical takeaway is that this campaign doesn't require sophistication, only exposure and bad passwords. Any SQL Server reachable from the internet should be treated as compromised until proven otherwise. Check whether xp_cmdshell is enabled, look for executables in C:\Users\Public, and audit scheduled tasks and Run keys on database hosts. Then fix the login problem, because the next crew scanning port 1433 won't need a new trick.