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

Cicada

28 Sep 2024 · 13 min read · root access
Cicada - maquina de Hack The Box

Executive summary — Cicada is an Easy Active Directory box that doesn't rely on an exploit but on a chain of administrative bad practices. An anonymously accessible SMB HR share leaks a corporate default password; with RID brute we identify a valid account (michael.wrightson) to test it against and, once authenticated to LDAP, discover that david.orelious stores their own password in the description field of their user object. david has access to the DEV share, where a backup script (Backup_script.ps1) contains cleartext credentials for emily.oscars. Emily logs in over WinRM and has SeBackupPrivilege: we use it to dump the SAM and SYSTEM hives, extract Administrator's NTLM hash, and close out the box with Pass-the-Hash. Path: HR → LDAP → david → DEV → emily → SeBackup → Administrator.

PlatformHack The Box
Operating systemWindows
DifficultyEasy
StatusRetired
Target IP10.129.5.230

Attack map

[Anonymous SMB] HR share -> "Notice from HR.txt" -> default password
   |  RID brute (null session) -> valid user: michael.wrightson
   v
[Authenticated LDAP]  description attribute -> david.orelious password
   |  DEV share -> Backup_script.ps1 with hardcoded credentials
   v
[emily.oscars]  smbmap: C$ (READ/WRITE) -> WinRM (user.txt)
   |  whoami /priv -> SeBackupPrivilege
   v
[SAM+SYSTEM]  reg save -> secretsdump -> Administrator NTLM hash
   |  Pass-the-Hash (impacket-psexec)
   v
[SYSTEM]  root.txt

1. Reconnaissance

The scan itself reveals the Domain Controller's names (CICADA-DC.cicada.htb). Many AD tools (LDAP, Kerberos, SMB) fail or misbehave if they can't resolve the domain and the DC's FQDN, so the first step is mapping them by hand:

echo "10.129.5.230 cicada.htb CICADA-DC.cicada.htb" | sudo tee -a /etc/hosts

With name resolution in place, we run a full port scan:

sudo nmap -Pn -sC -sV -p- --min-rate 10000 10.129.5.230 -oA nmap-cicada

Why these flags:

  • -Pn → skip host discovery ping (useful when ICMP is filtered, common on HTB).
  • -sC → run the default NSE scripts (banners, quick service fingerprinting).
  • -sV → detect each service's version.
  • -p- → scan all 65535 TCP ports, not just the top 1000.
  • --min-rate 10000 → speeds up the packet send rate.
  • -oA nmap-cicada → saves the output in several formats for later reference.
53/tcp   open  domain    (DNS)
88/tcp   open  kerberos-sec
389/tcp  open  ldap
445/tcp  open  microsoft-ds  (SMB)
636/tcp  open  ldapssl
3268/tcp open  globalcatldap
3269/tcp open  globalcatldapssl
5985/tcp open  wsman  (WinRM)

Analysis: DNS + Kerberos + LDAP/Global Catalog + SMB + WinRM on the same host is the classic fingerprint of an Active Directory Domain Controller. It sets the roadmap: SMB to look for leaked shares, LDAP to enumerate the directory, and WinRM as the final remote-access target.

🔒 Clearance required

This content is Root Access only. Everything else on the site — the free tier, the whole public library — stays open.

See Root Access plans

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