root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat overwatch.md
// writeups

Overwatch

24 Jan 2026 · 10 min read · root access
Overwatch - maquina de Hack The Box

Executive summary — Overwatch is a Windows Server 2022 domain controller (Medium) built around trust between internal monitoring components rather than a single CVE. A guest-readable SMB share exposes a .NET monitoring application; decompiling it reveals a hardcoded SQL credential and a WCF service whose KillProcess method concatenates user input into a PowerShell command. The credential gives access to MSSQL, where a linked server points to a host that doesn't exist. Because any domain user can create records in AD-integrated DNS, that name can be pointed at the attacker, and a rogue MSSQL server captures the stored credentials the linked server sends. Those give WinRM, and from inside the host, the local WCF service — running as SYSTEM — is injected.

PlatformHack The Box
OSWindows Server 2022 (Build 20348), DC S200401.overwatch.htb
DifficultyMedium
StatusRetired
Services53, 88, 389, 445, 464, 636, 3268/3269, 3389, 5985, 9389, MSSQL on 6520 (SQL Server 2022, non-standard port)
Techniques.NET decompilation, hardcoded credentials, MSSQL linked server abuse, ADIDNS record creation, rogue TDS server with TLS, PowerShell command injection in WCF

Attack map

[445/SMB] guest reads share 'software$' -> Monitoring\overwatch.exe (.NET)
        |  decompiled: hardcoded sqlsvc credential + WCF service with KillProcess()
        v
[6520/MSSQL] sqlsvc is dbo of one database, not sysadmin
        |  linked server SQL07 does not resolve
        v
ADIDNS: any domain user may add a record -> SQL07 = attacker
        |  rogue MSSQL server speaking TLS inside TDS captures the LOGIN7
        v
sqlmgmt credential -> [5985/WinRM] -> user
        |  WCF on localhost:8000 runs as SYSTEM
        v
KillProcess() PowerShell command injection -> NT AUTHORITY\SYSTEM -> ROOT

1. Reconnaissance

sudo nmap -p- --min-rate 2000 -Pn -n <TARGET_IP> -oN ports.txt
sudo nmap -sCV -Pn -n -p<open ports> <TARGET_IP> -oN svc.txt
PortServiceNote
53DNS (Simple DNS Plus)
88, 389, 445, 464, 636, 3268/3269, 9389Kerberos / LDAP / SMB / ADWSDomain controller for overwatch.htb
3389RDPS200401.overwatch.htb
5985WinRM
6520MSSQL 2022 (16.0.1000)Non-standard port, instance S200401\SQLEXPRESS
8000filteredTurns out to be a WCF service, reachable only from localhost
echo "<TARGET_IP> S200401.overwatch.htb overwatch.htb S200401" | sudo tee -a /etc/hosts

A domain controller with SQL Server on an unusual port is a combination of domain authentication, service accounts and internal tooling. SMB is the first thing to check for anonymous access.

1.1 SMB as guest

nxc smb <TARGET_IP> -u '' -p '' --shares      # null auth works, shares denied
nxc smb <TARGET_IP> -u guest -p '' --shares
Share           Permissions     Remark
ADMIN$                          Remote Admin
C$                              Default share
IPC$            READ            Remote IPC
NETLOGON                        Logon server share
software$       READ            <-- interesting
SYSVOL                          Logon server share

software$ is a hidden, non-standard share readable by guest:

smbclient '//<TARGET_IP>/software$' -U 'guest%' -c 'recurse ON; ls'

\Monitoring\ holds a set of DLLs (EntityFramework, System.Data.SQLite and so on) and three files that matter:

overwatch.exe            9728
overwatch.exe.config     2163
overwatch.pdb            30208
smbclient '//<TARGET_IP>/software$' -U 'guest%' \
  -c 'cd Monitoring; get overwatch.exe; get overwatch.exe.config; get overwatch.pdb'
🔒 Clearance required

Root Access unlocks the content you can't see — everything else on the site is already open.

See Root Access plans

No account? Create one free then upgrade from your console.