Hackers Target SQL Server Logins With 2,700 Passwords to Spread Malware

Hackers target Microsoft SQL Servers using over 2,700 passwords, deploying crypto miners and Gh0st RAT malware. Learn how administrators can reduce exposure.

Nov 16, 2026
3 minute read
eSecurity Planet content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

One weak password could be all it takes for hackers to turn a Microsoft SQL Server into a cryptocurrency miner or a gateway for stealing sensitive information.

Security researchers at Fortinet's FortiGuard Labs uncovered an attack campaign targeting internet-facing SQL Server installations with more than 2,700 passwords. The attackers use automated scanning and password guessing to gain access before attempting to deploy malware on compromised Windows systems.

The campaign doesn't rely on a newly discovered software vulnerability. Instead, it takes advantage of exposed database services and weak credentials, showing how a seemingly simple security oversight can put an entire server at risk.

One successful login opens the door to Windows

A successful login gives attackers an opportunity to move beyond database access.

The malware executes commands stored in a file called 2018.sql using Transact-SQL (T-SQL), Microsoft's SQL Server extension. These commands enable xp_cmdshell, a feature that allows SQL Server to execute Windows command-line operations.

Advertisement

The attackers then use this capability to download and run malicious executables on the underlying Windows machine. A downloader named Secs.exe retrieves additional payloads from the attackers' FTP infrastructure. The malware also creates scheduled tasks disguised as Microsoft Edge updates, helping malicious programs survive interruptions and system restarts.

Two payloads target computing power and sensitive data

Fortinet identified two major payloads in the campaign, each serving a different purpose.

The first, MicrosoftEdgeUpdate.exe, is an XMRig-based Monero cryptocurrency miner disguised as a browser update. It hijacks the compromised server's CPU to mine cryptocurrency for the attackers, potentially slowing database operations and increasing electricity costs.

The second, winlogon.exe, is a variant of the Gh0st remote access trojan (RAT). Its capabilities include:

  • Recording keystrokes and collecting sensitive information.
  • Uploading, downloading and managing files.
  • Opening remote command shells.
  • Managing processes and Windows services.
  • Clearing event logs to hinder investigations.
  • Supporting screen capture and remote desktop through plugins.

The RAT also establishes persistence through Windows registry entries, a system service and scheduled tasks. Fortinet could not fully examine its live communications because the associated command-and-control server was offline during analysis. However, static analysis revealed more than 30 control commands.

Advertisement

A database breach could become a network-wide problem

The cryptocurrency miner might be the most immediately visible symptom of an infection, but the RAT presents a much bigger concern. A compromised SQL Server could become a foothold for stealing credentials, accessing sensitive files and exploring other systems connected to the same network.

Keeper Security CISO Shane Barney warned that weak administrative credentials can turn an exposed database into a critical security problem.

“While internet-facing databases are sometimes the unintended result of technical debt or misconfigurations, relying on static, standing credentials is what turns that exposure into a critical vulnerability,” he told CSO.

This makes the campaign particularly concerning for businesses running databases that support customer applications, financial operations or internal services. Removing the miner without investigating the RAT could leave attackers with continued access.

Advertisement

What users and IT teams should do

Organizations should treat unexpected database performance problems as potential security warnings, particularly when CPU consumption suddenly increases without an obvious workload change.

Database administrators should prioritize these measures:

  • Restrict internet access: Keep SQL Server behind firewalls or VPNs and allow connections only from approved systems.
  • Strengthen authentication: Use long, unique passwords, review privileged accounts and disable unused accounts such as sa.
  • Disable unnecessary features: Keep xp_cmdshell turned off unless there is a documented operational requirement.
  • Investigate suspicious activity: Review failed SQL logins, unexpected scheduled tasks and unfamiliar executables in C:\Users\Public and temporary directories.
  • Check for persistence: Look for suspicious Windows services, registry entries and tasks impersonating Microsoft Edge updates.

Fortinet says its FortiGuard IPS, Web Filtering and Antivirus services can detect components of the campaign. However, preventing the initial compromise remains critical.

Advertisement

The campaign illustrates how weak database credentials can expose more than stored records. With sufficient privileges, attackers can use SQL Server access to execute malicious programs on the underlying Windows system.

Other news: A new Android malware threat called ArcticRAT can make infected phones appear switched off while hackers secretly control the devices, steal banking credentials, and intercept authentication codes.

Aminu Abdullahi

Aminu Abdullahi

Content Writer

Aminu Abdullahi is a B2C and B2B technology and finance writer with more than six years of experience covering enterprise IT, cybersecurity, cloud computing, artificial intelligence, fintech, business software, and emerging technologies. His work has appeared in publications including TechRepublic, eWEEK, Channel Insider, Geekflare, Enterprise Networking Planet, eSecurity Planet, CIO Insight, and Webopedia. With a technical background in computer science, he specializes in translating complex technology topics into clear, accessible content for business leaders and decision-makers.

eSecurity Planet Logo

eSecurity Planet is a leading resource for IT professionals at large enterprises who are actively researching cybersecurity vendors and latest trends. eSecurity Planet focuses on providing instruction for how to approach common security challenges, as well as informational deep-dives about advanced cybersecurity topics.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.