Hackers Hijack Microsoft SQL Servers Using T-SQL Commands to Install Gh0st RAT and Crypto Miners
Hackers used T-SQL commands to hijack Microsoft SQL Servers, installing Gh0st RAT and crypto miners via a Go binary that scanned for targets.
Overview
In early October 2026, an active campaign targeted Internet-facingReachable directly from the public internet without first logging in to a private internal network Microsoft SQLThe standard query language used to read, add, update, and delete records in relational databases Server instances by exploiting a Go binaryBase 2, where each byte is written as 8 ones and zeros named dllhost.exe. This binary used the Naabu v2 port scannerUsing automated tools to probe computers, networks, or code for known security flaws and missing patches to find open port 1433 on random addresses within a /16 CIDR block. The malwareSoftware built to steal data, spy on users, lock files, or take control of a computer then used a .NET tool to brute-forceTry every possible key until 1 reads as plaintext logins with over 2,700 passwords and up to 500 threads. Once inside, the attackers enabled xp_cmdshell to execute operating-systemThe core software on a computer or phone that manages hardware, files, memory, and running apps commands from the databaseAn organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. They installed a Monero miner and a Gh0st RATMalware disguised as a normal file that gives an attacker remote control over the victim's computer variant, using scheduled tasksAn operating system job set to run a program or script automatically at a chosen time or event with names that imitate Microsoft Edge updates to maintain access. Organizations with exposed SQL serversA computer or program on a network that stores data and responds to requests from client devices are affected, and the attackers registered the compromised hosts with their backend using data like public IP and CPU details.
Terms in this story
- Internet-facing
- Reachable directly from the public internet without first logging in to a private internal network. Because automated scanners probe every public IP address within minutes, an unpatched flaw on an internet-facing VPN or web server is far riskier than one on an internal machine.
- SQL
- The standard query language used to read, add, update, and delete records in relational databases. Almost every banking, retail, and hospital system stores its records in a database controlled by SQL, which is why SQL injection bugs that alter those queries are so dangerous.
- binary
- Base 2, where each byte is written as 8 ones and zeros. In security news, the word binary refers either to raw data made of ones and zeros or to a compiled executable program that runs directly on a computer's processor. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- scanner
- Using automated tools to probe computers, networks, or code for known security flaws and missing patches. Both defenders and attackers run vulnerability scanning across internet-facing servers to find out which machines are still running outdated software versions. Security+ objective 4.3 lists the term
- malware
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- brute-force
- Try every possible key until 1 reads as plaintext. In the news, attackers use brute force when automated scripts rapidly guess thousands of passwords against a login page or test every possible key to unlock stolen data. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1); Security+ objective 2.4 lists the term
- operating-system
- The core software on a computer or phone that manages hardware, files, memory, and running apps. Because every application relies on the operating system, a security flaw in the operating system itself affects millions of devices until users install a system update.
- RAT
- Malware disguised as a normal file that gives an attacker remote control over the victim's computer. Once installed, a remote access trojan lets the attacker watch the screen, record keystrokes, browse files, and run commands as if sitting at the keyboard. Security+ objective 2.4 lists the term
- database
- An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
- scheduled task
- An operating system job set to run a program or script automatically at a chosen time or event. System administrators use scheduled tasks for routine backups and updates, while malware creates a hidden scheduled task so its payload restarts every time the computer boots.
- Servers
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- Hackers
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"An active campaign in early October 2026..." Found by reading the article; these exact words are in it - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......Servers Using T-SQL Commands to Install Gh0st RAT and Crypto Miners..." Found in the headline - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"......binary packed with UPX that embeds the open-source Naabu v2 port scanner." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......UPX that embeds the open-source Naabu v2 port scanner." Found in the opening sentences - CYBR 101 week 9: malware, indicators and how detection works
"......Servers Using T-SQL Commands to Install Gh0st RAT and Crypto Miners..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Determine tactics, techniques, and procedures (TTPs) for intrusion sets.
"The entry point is dllhost.exe..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role