Overwatch
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
KillProcessmethod 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.
| Platform | Hack The Box |
| OS | Windows Server 2022 (Build 20348), DC S200401.overwatch.htb |
| Difficulty | Medium |
| Status | Retired |
| Services | 53, 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
| Port | Service | Note |
|---|---|---|
| 53 | DNS (Simple DNS Plus) | |
| 88, 389, 445, 464, 636, 3268/3269, 9389 | Kerberos / LDAP / SMB / ADWS | Domain controller for overwatch.htb |
| 3389 | RDP | S200401.overwatch.htb |
| 5985 | WinRM | |
| 6520 | MSSQL 2022 (16.0.1000) | Non-standard port, instance S200401\SQLEXPRESS |
| 8000 | filtered | Turns 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'
Root Access unlocks the content you can't see — everything else on the site is already open.
See Root Access plansNo account? Create one free then upgrade from your console.