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

Logging

18 Apr 2026 · 13 min read · user access
Logging - maquina de Hack The Box

Executive summary — Logging is a Medium Active Directory box centred on WSUS spoofing. With initial credentials we enumerate a share that leaks, in a sync log, a service password that's already been rotated — the log itself reveals the yearly rotation pattern, letting us guess the current one. With Kerberos material we read the managed password of the gMSA msa_health$ (WinRM). From there, a monitoring binary with DLL sideloading over a ZIP in a path writable by the IT group gives execution as jaylee.clifton (user flag). That account can create DNS records; combined with a misconfigured AD CS template (UpdateSrv) that allows requesting a certificate for wsus.logging.htb, we set up a fake WSUS server the DC trusts as legitimate and uses to add msa_health$ to Domain Admins. From there, DCSync yields Administrator's hash.

PlatformHack The Box
Operating systemWindows — Domain Controller
Domainlogging.htb
DifficultyMedium
StatusRetired
Initial credentialswallace.everette / Welcome2026@
Target IP10.129.22.233

Attack map

[1] Enum SMB (wallace.everette:Welcome2026@) -- share Logs legible
        |
[2] IdentitySync_Trace_*.log filtra svc_recovery:Em3rg3ncyPa$$2025 -- YA ROTADA
      el propio log insinua el patron de rotacion anual -> Em3rg3ncyPa$$2026 funciona
        |
[3] TGT de svc_recovery -- material Kerberos suficiente para leer msDS-ManagedPassword
      de la gMSA msa_health$ -> hash NTLM -> WinRM en dc01.logging.htb
        |
[4] UpdateMonitor (ACL de escritura para el grupo IT) vigila
      C:\ProgramData\UpdateMonitor\Settings_Update.zip -> lo extrae -> carga
      settings_update.dll -> invoca PreUpdateCheck  (DLL SIDELOADING)
        |
[5] ZIP con una DLL maliciosa (msfvenom) -> Meterpreter como jaylee.clifton  ->  user.txt
        |
[6] Rubeus tgtdeleg -- TGT de jaylee.clifton; bloodyAD get writable -> CREATE_CHILD
      sobre la zona DNS del dominio
        |
[7] Certipy: plantilla UpdateSrv (ADCS) -> cert para wsus.logging.htb ->
      bloodyAD crea el A record DNS apuntando al atacante -> wsuks sirve un WSUS falso
      firmado con ese cert, forzando "Add-ADGroupMember Domain Admins msa_health$"
        |
[8] El DC hace polling de WSUS -> ejecuta el PSExec firmado -> msa_health$ es Domain Admin
      +-> secretsdump (DCSync) -> hash de Administrator -> psexec  ->  root.txt

1. Preparation and reconnaissance

echo "10.129.22.233 dc01.logging.htb logging.htb" | sudo tee -a /etc/hosts
sudo ntpdate dc01.logging.htb

Kerberos is very time-sensitive: without syncing the clock against the DC you get authentication and ticketing errors that are hard to diagnose.

nmap -sC -sV -Pn 10.129.22.233

Typical AD ports (53 DNS, 80 IIS, 88 Kerberos, 389/636 LDAP, 445 SMB, 5985 WinRM): a Windows/Active Directory environment confirmed.

🔒 Free account required

This is USER ACCESS content — free to unlock, no payment. The rest of the write-up (and everything else at this level) opens up once you're signed in.

Create a free account