Tia N.List

CTI · reviewed · 2026-11-13

Hackers Hijack Microsoft SQL Servers Using T-SQL Commands to Install Gh0st RAT and Crypto Miners

Full story & timeline

Actors

—

Malware / tools

Gh0st RAT

Campaigns

T-SQL SQL Server infiltration campaign (October 2026)

CVEs

—

Victim sectors

—

Geography

—

MITRE ATT&CK

Indicators

Observables tied to this case, from the curated feed. raw sidecar

Detections

Detection content derived from this case analysis. Status: experimental — not validated against live telemetry.

Sigma raw

title: dllhost.exe Masquerade From Outside Windows Directories (SQL Server Gh0st RAT campaign)
id: 47ed99fa-fbfd-485e-a7d7-080a02279ade
status: experimental
description: >
    Detects dllhost.exe executing from a path outside the Windows system
    directories, the masquerade used by the October 2026 campaign that
    brute-forces internet-facing Microsoft SQL Server logins and runs
    attacker-supplied T-SQL to deploy a payload. The stage-one loader is a
    UPX-packed Go binary named dllhost.exe that embeds the Naabu v2 port
    scanner, retrieves its target range from
    hxxp://site.vietnam852[.]com:88/ip.php, then installs Gh0st RAT and a
    Monero miner. The legitimate COM+ surrogate host only runs from
    System32/SysWOW64, so an instance in a temp, data or application directory
    on a database host is the hunting signal. Derived from published campaign
    reporting - not validated against a live sample.
references:
    - https://gbhackers.com/microsoft-sql-servers-hijacked/
    - https://www.techfinitive.com/weak-passwords-and-sql-used-in-gh0st-rat-attack-against-microsoft-users/
author: Tia N. List
date: 2026/11/13
tags:
    - attack.t1036
    - attack.t1059
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        Image|endswith: '\dllhost.exe'
    filter_system:
        Image|startswith:
            - 'C:\Windows\System32\'
            - 'C:\Windows\SysWOW64\'
    condition: selection_img and not filter_system
falsepositives:
    - Third-party software shipping or installing its own copy of a COM+ surrogate host outside the Windows directories
    - Portable application bundles and installers that stage a dllhost.exe copy in their own program directory
level: high

Splunk SPL raw

# hackers-hijack-microsoft-sql-servers-using-t-sql-commands-to-ins — Splunk SPL variant (derived from hackers-hijack-microsoft-sql-servers-using-t-sql-commands-to-ins.sigma via sigma convert)
# source-sha256: 08eb47d98e8696f592cff245a7b17ac072b04ee333cda3ecc57247880a2382e7 v1
Image="*\\dllhost.exe" NOT (Image IN ("C:\\Windows\\System32\\*", "C:\\Windows\\SysWOW64\\*"))

KQL (Sentinel / Defender) raw

# hackers-hijack-microsoft-sql-servers-using-t-sql-commands-to-ins — KQL variant (derived from hackers-hijack-microsoft-sql-servers-using-t-sql-commands-to-ins.sigma via sigma convert)
# source-sha256: 08eb47d98e8696f592cff245a7b17ac072b04ee333cda3ecc57247880a2382e7 v1
Image endswith "\\dllhost.exe" and (not((Image startswith "C:\\Windows\\System32\\" or Image startswith "C:\\Windows\\SysWOW64\\")))

YARA-X raw

rule SQLServer_Naabu_Loader_C2_Domain {
    meta:
        author = "Tia N. List"
        date = "2026-11-13"
        status = "experimental"
        description = "Hunts the UPX-packed Go loader named dllhost.exe used by the October 2026 Microsoft SQL Server campaign. The stage-one binary embeds the Naabu v2 port scanner and carries the hardcoded command-and-control URL hxxp://site.vietnam852[.]com:88/ip.php, from which it retrieves the target range before installing Gh0st RAT and a Monero miner. The rule matches the embedded C2 hostname in ASCII or UTF-16 form, so it catches the loader on disk or in memory regardless of packing. Derived from published campaign reporting (GBHackers, FortiGuard) - NOT validated against a live sample."
        reference = "https://gbhackers.com/microsoft-sql-servers-hijacked/ ; https://www.techfinitive.com/weak-passwords-and-sql-used-in-gh0st-rat-attack-against-microsoft-users/"
        falsepositives = "Threat-intel or forensic tooling that stores the reported C2 hostname in a notes file, PCAP-derived text dump or analysis report; sandbox artifacts that quote the indicator"
    strings:
        $c2_ascii = "site.vietnam852.com" ascii nocase
        $c2_wide = "site.vietnam852.com" wide nocase
    condition:
        any of them
}

References

Source on GitHub