Monero Miners And Gh0st RAT Hijack Exposed SQL Servers

10 min read
0 views
Nov 14, 2026

Attackers are quietly turning internet-facing SQL Servers into Monero mining machines while slipping in remote-access malware. Weak passwords open the door, and the damage can stay hidden for weeks. What happens next might surprise you.

Financial market analysis from 14/11/2026. Market conditions may have changed since publication.

Have you ever left a door slightly ajar in a busy neighborhood and wondered what might walk in? That is pretty much what happens when Microsoft SQL Servers sit exposed on the internet with weak or default passwords. Recently a campaign showed just how quickly those open doors turn into full-scale takeovers, complete with Monero mining software quietly draining CPU power and a remote-access tool capable of watching every keystroke. I have followed these kinds of incidents for years, and this one stands out because of how simple the entry point remains despite years of warnings.

How Weak Passwords Open The Door To Complete Server Takeover

Attackers do not need sophisticated zero-day exploits when a long list of common passwords still works. They scan for internet-facing databases and try credentials that many administrators never changed. Usernames like sa or admin paired with thousands of guessed passwords give them the foothold they need. Once inside, the real work begins.

The first move is usually enabling a feature that lets the database run operating-system commands. From there a small downloader arrives, pulls the rest of the payload, and the server starts serving two masters at once: legitimate queries and illicit mining. It is efficient, quiet, and surprisingly hard to spot if no one is watching resource usage closely.

The Role Of Database Command Features In The Attack Chain

One particular capability inside SQL Server allows an authenticated user to launch Windows commands with the privileges of the service account. On a fresh installation that feature stays disabled, yet older systems or certain applications still rely on it. When attackers turn it on, they gain a direct bridge from the database layer into the rest of the machine. I have seen administrators leave it enabled “just in case” and then forget about it for years. That single oversight becomes the pivot point for everything that follows.

Once the bridge is open, the downloader fetches two main pieces. One pretends to be an everyday Microsoft Edge update. The other masquerades as a system process that most people would never question. Both settle in and start working immediately.

Monero Mining Hidden Behind A Familiar Name

The mining component uses a well-known open-source tool configured with a specific wallet and several pool addresses. It claims the machine’s CPU cycles around the clock, converting electricity and processing power into Monero. Because the executable name looks legitimate, many monitoring tools simply ignore it. In my experience that kind of naming trick still catches far too many people off guard.

Mining does not destroy data, yet it slowly degrades performance. Queries that once finished in seconds start taking minutes. Fans spin harder. Power bills creep upward. By the time someone notices, the attackers have already harvested weeks or months of computing resources.

Remote Access Capabilities That Go Far Beyond Mining

Alongside the miner sits a variant of a long-standing remote-access family. This piece can log keystrokes, move files, and accept commands from outside. Additional plugins can add screen capture and full remote desktop control, although those were not active in the examined samples. The combination turns a database server into a listening post inside the network.

Persistence is carefully arranged. Registry keys, a Windows service, and scheduled tasks that fire every half hour keep both pieces alive even after reboots. Removing one component rarely stops the other. The attackers clearly planned for longevity rather than a quick smash-and-grab.


Why These Campaigns Keep Succeeding Year After Year

Part of the answer is simple neglect. Many SQL Servers were stood up years ago for a specific application and then left largely untouched. Patching happens late or not at all. Password policies stay frozen at whatever the original installer chose. Internet exposure continues because “it has always worked that way.”

Another factor is the economics of cryptocurrency mining. Monero remains attractive precisely because it resists specialized hardware and can run on ordinary CPUs. A handful of compromised servers can generate steady, low-risk income for the operators. The remote-access tool adds a second revenue stream: selling access, stealing data, or launching further attacks from a trusted internal host.

I keep coming back to the same observation. The technical barriers are not especially high. The real barrier is consistent operational hygiene, and that is still missing on far too many systems.

Earlier Waves Of Similar Attacks Offer Clear Lessons

This is not the first time miners and remote-access tools have traveled together. Earlier campaigns targeted file-sharing services that were left open to the internet. Operators installed the same style of mining software, created backdoor accounts, and sometimes shut down the original service so competitors could not jump on the same machine. The pattern repeats because it works.

Even consumer devices have been pulled into the game. Systems with remote screen-sharing features left reachable from outside have been used to drop miners after attackers bypassed weak authentication. The common thread is always the same: an exposed service plus insufficient credential strength equals an open invitation.

Security is not a product you install once. It is a continuous practice of reducing the places where an attacker can simply walk in.

Practical Steps That Actually Reduce Risk

First, never leave a database listening on the public internet unless there is an unavoidable business reason. Place it behind a firewall or VPN and restrict access to known administrative networks. If remote connectivity is required, use strong multi-factor authentication and short-lived credentials.

Second, treat the administrative account password with the same seriousness you would give a master key. Rotate it regularly, ban common dictionary words, and monitor failed login attempts. A list of a few thousand passwords should never be enough to breach a production system.

Third, keep the command-shell feature disabled except for the brief moments it is genuinely needed. When it must be used, run it under a low-privilege proxy account rather than the full service account. Audit every enable and disable event.

  • Review every internet-facing service and close what is not essential
  • Enforce long, unique passwords and consider certificate-based authentication
  • Monitor CPU and network baselines so sudden mining activity stands out
  • Schedule regular reviews of scheduled tasks, services, and registry run keys
  • Keep the operating system and database software current with security updates

These measures sound basic, yet they block the exact path this campaign used. Complexity is not required. Consistency is.

Detecting The Signs Before Damage Accumulates

Unusual sustained CPU usage is often the first visible clue. Mining software tends to keep cores busy even when the database itself is idle. Network connections to unfamiliar pool addresses or command-and-control hosts appear in firewall logs. New scheduled tasks that run every thirty minutes deserve immediate attention.

Endpoint detection tools that watch for process injection, unusual parent-child relationships, and known mining binaries can catch the payload early. Even simple file-integrity monitoring on critical system directories raises an alert when something named like a legitimate updater appears in an unexpected location.

I have found that teams who review their own server inventories once a quarter catch these problems far earlier than teams that wait for a performance complaint. Proactive scanning for open SQL ports and weak credentials remains one of the highest-return activities an organization can perform.

The Broader Impact On Cryptocurrency And Server Security

Every compromised machine that mines Monero adds a little more hash rate under criminal control. That does not break the network, yet it does transfer value from legitimate operators to people who never paid for the electricity or hardware. On the enterprise side, the same machines often hold sensitive data. A remote-access tool sitting quietly on a database server can become the starting point for ransomware, data theft, or lateral movement deeper into the network.

Perhaps the most interesting aspect is how little the attack techniques have changed over the years. Password guessing, enabling a powerful feature, dropping a miner and a remote-access tool—these steps have been documented repeatedly. The tools evolve slightly, the names of the executables change, yet the underlying weaknesses stay the same.

Organizations that treat security as an ongoing process rather than a one-time project stay ahead. Those that assume “it will not happen to us” keep providing the next wave of victims.

What Administrators Should Do This Week

Start with a quick inventory. List every SQL Server that can be reached from outside the organization. For each one, confirm whether that exposure is still required. Change the administrative password to something long and unique. Disable the command-shell feature if it is not actively needed. Check for unexpected services, scheduled tasks, and high CPU processes that do not belong.

Then expand the review to the rest of the environment. File-sharing services, remote desktop gateways, and any other internet-facing management interfaces deserve the same scrutiny. The attackers in this campaign focused on SQL Servers, but the same mindset works against almost any exposed service.

Finally, consider whether your monitoring would actually notice sustained mining or a new remote-access process. If the answer is uncertain, improve the visibility before the next campaign arrives. The tools and techniques described here are already in active use. The only variable is whether your systems remain easy targets.


Looking Ahead At The Persistent Threat Landscape

Campaigns that combine cryptocurrency mining with remote control will continue as long as the economics favor the attackers. Monero’s design makes it practical to mine on ordinary hardware, and weak credentials remain plentiful. Defenders do not need exotic technology to push back. They need the discipline to close the obvious doors and the curiosity to notice when something unusual starts consuming resources.

In my view the real story is not the particular malware family used this month. It is the recurring gap between known best practices and actual day-to-day configuration. Closing that gap is still the most effective defense available. Every server that requires a strong unique password, stays behind proper network controls, and runs with unnecessary features disabled becomes a far less attractive target.

The next campaign will almost certainly look familiar. The same password lists, the same command features, the same dual payload of miner plus remote-access tool. The difference will be whether the community has finally made those entry points rare enough that attackers move on to harder targets. That outcome is still within reach, provided enough people treat the lessons as urgent rather than optional.

Servers do not protect themselves. People do. And the people who keep the simple things consistent tend to sleep better at night.

Understanding The Technical Details Without The Overwhelm

Let’s walk through the sequence in plain language. An automated scanner finds an SQL Server listening on the public internet. It tries a large collection of common passwords against standard administrative accounts. When one works, the attacker issues a series of database commands that turn on the ability to run operating-system instructions. A small program is then written to disk and executed. That program reaches out to a remote server, downloads the mining binary and the remote-access binary, and installs both.

The mining binary is renamed to look like a legitimate updater. It reads a configuration that contains a wallet address and several mining-pool endpoints. It begins hashing immediately and reports results back to the pool. The remote-access binary registers itself as a service or scheduled task, opens a channel to its command server, and waits for instructions. From that moment the attacker can issue new commands, steal files, or simply leave the miner running for months.

None of these steps requires cutting-edge research. Each one relies on a configuration weakness that has been documented for years. The novelty, if any, lies in the packaging and the persistence mechanisms, not in the core idea.

Why Password Lists Still Work So Well

Human nature plays a large role. People reuse passwords, choose short ones, or stick with defaults because changing them feels inconvenient. Automated tools can test thousands of possibilities in minutes. When the service is exposed to the entire internet, the attacker has unlimited time and unlimited attempts. Rate limiting and account lockouts help, yet many older SQL installations never had those protections enabled.

I have watched teams spend large budgets on advanced detection platforms while leaving the administrative password as “Password1” or “sqladmin.” The advanced platform then has to work overtime cleaning up after a breach that a simple password policy would have prevented. Prioritizing the basics still delivers the highest return.

The Quiet Cost Of Unauthorized Mining

Beyond the obvious performance hit, unauthorized mining carries secondary costs. Hardware ages faster under constant high load. Electricity bills rise without a corresponding increase in business value. In cloud environments the bill arrives with a surprise spike that finance teams then have to investigate. In regulated industries the presence of unauthorized software can trigger compliance findings even if no data was stolen.

There is also the opportunity cost. Every cycle spent mining is a cycle not available for legitimate workloads. During peak business hours that can translate into slower customer-facing applications and frustrated users. The attackers do not care about any of those consequences. Their only metric is the amount of Monero credited to the wallet.

Remote Access As A Force Multiplier

The mining component generates passive income. The remote-access component generates options. With interactive control the attacker can explore the rest of the network, plant additional tools, or use the compromised server as a launching point for phishing or ransomware. In many environments a database server sits close to sensitive data and trusted internal systems. That location makes it especially valuable.

Even if the command infrastructure goes offline, the local persistence mechanisms keep the door open for a future return. Scheduled tasks that re-check every thirty minutes ensure the malware can re-establish contact when the infrastructure comes back. Cleaning a single binary is rarely enough; the entire set of persistence points must be removed.

Building Habits That Outlast Any Single Campaign

Technology changes. Attack techniques evolve. The underlying principles of least privilege, least exposure, and continuous verification remain constant. Organizations that institutionalize those principles find that new campaigns require far less emergency response. The ones that treat each incident as a one-off surprise keep repeating the same expensive lessons.

Start small if necessary. Pick the five most critical database servers and apply strong controls this month. Expand the circle next month. Measure progress by the reduction in exposed services and the increase in unique, rotated credentials. Over time the attack surface shrinks and the remaining systems become harder targets.

That approach does not generate flashy headlines, yet it produces quieter nights and fewer emergency calls. In the long run those quiet nights are the real measure of success.

The campaign described here is only the latest reminder. Weak passwords and unnecessary exposure still open the door. Closing that door remains the most practical step any administrator can take. The tools are already available. The only missing piece is the decision to use them consistently.

❝
Blockchain's a very interesting technology that will have some very profound applications for society over the years to come.
— Brad Garlinghouse
Author

Steven Soarez passionately shares his financial expertise to help everyone better understand and master investing. Contact us for collaboration opportunities or sponsored article inquiries.

Related Articles

?>