Skip to content

Cicada Walkthrough

Lab Name: Cicada
Difficulty: Medium
Platform: Vulnlab

In Cicada, we recover credentials from an exposed NFS share, then investigate AD CS and use Kerberos relaying to compromise the Domain Controller.


We begin by identifying open ports and services to map potential attack paths.

image.png

  • Multiple services related to SMB, LDAP, and Kerberos are exposed, indicating that this is an Active Directory environment.

image.png

  • To simplify DNS resolution and support Kerberos-based attacks, we add the domain name and DNS domain name to the /etc/hosts file.

An HTTP service is running on port 80, so we enumerate it to look for an initial foothold.

image.png

  • The application appears to be the default IIS Windows Server page.
  • Directory brute-forcing using gobuster did not reveal any useful content.
  • Since no interesting endpoints were discovered, we move on to enumerate other exposed services.

Since NFS is open, we can now enumerate available file shares.

Note: NFS allows remote file access similar to local storage, making it a potential source of sensitive data.

image.png

image.png

image.png

image.png

Two image files were discovered:

  • The image marketing.png contains credentials.
  • The other image did not contain useful information.
  • Initial credentials for the user rosie.powell were recovered from an image located inside the rosie.powell directory on the NFS share.

We add the directory names to a user list and spray the password from marketing.png: Cicada123.

image.png

  • Attempted SMB authentication with these credentials resulted in a STATUS_NOT_SUPPORTED error.
  • SMB rejects the authentication method, so we request a TGT and try again.

To resolve the authentication issue, we can manually request a Kerberos TGT for the user rosie.powell and retry SMB access.

image.png

image.png

We use the TGT for rosie.powell to check SMB for useful files.

image.png

SMB authentication works with the TGT.

image.png

  • The CertEnroll folder and the user’s certificate-related group membership suggest AD CS is present. We can enumerate it next.

We collect Active Directory objects to inspect privilege relationships and attack paths.

image.png

We import the data into BloodHound for analysis.

image.png

  • BloodHound reveals that rosie.powell is a member of the Certificate Service DCOM Access group.
  • This gives us another reason to investigate AD CS abuse.

3. Privilege Escalation via Kerberos Relay to AD CS

Section titled “3. Privilege Escalation via Kerberos Relay to AD CS”

image.png

image.png

  • Further enumeration reveals an AD CS ESC8 vulnerability.
  • ESC8 conventionally describes NTLM relay to AD CS web enrollment. This walkthrough uses a Kerberos relay variant; the protocol and its prerequisites should be stated separately.
  • I had not used this attack before. The research and tools linked below helped me understand it and complete the attack.

Helpful resources:

Before executing the Kerberos relay attack, we must add a machine account to the domain.

  • We use [bloodyAD](https://github.com/CravateRouge/bloodyAD) to add the account, which saves setting up a Windows VM and joining it manually.

image.png

3.3 Setting Up Kerberos Relay with krbrelayx

Section titled “3.3 Setting Up Kerberos Relay with krbrelayx”

Next, we configure krbrelayx to relay Kerberos authentication and steal a certificate from the vulnerable AD CS service.

image.png

  • With krbrelayx running, we launch the attack to request a certificate.

image.png

  • The relay gives us a certificate from the misconfigured enrollment endpoint. We can use it for certificate-based authentication and privilege escalation.

3.4 Certificate-Based Authentication as Administrator

Section titled “3.4 Certificate-Based Authentication as Administrator”

The stolen certificate can now be used to authenticate directly to Active Directory.

We use certipy-ad auth with administrator.pfx to obtain a Kerberos TGT and the Administrator account’s RC4-HMAC (NTLM) hash.

image.png

With the recovered Administrator credential material, we run impacket-secretsdump. A normal domain user hash alone would not authorize replication of domain credentials.

image.png

  • Note: Evil-WinRM did not work with the Administrator NT hash, so I tried a TGT.

We use the Administrator NT hash to request a Kerberos TGT, often called overpass-the-hash, then use the ticket for authentication.

image.png

Root Flag Retrieval:

We authenticate using wmiexec and retrieve the flag!

image.png

We obtained and submitted the root flag.


  • Enumerated services and identified an Active Directory environment
  • Discovered credentials for rosie.powell through NFS enumeration
  • Requested a Kerberos TGT for rosie.powell and accessed SMB shares
  • Identified the exposed AD CS enrollment endpoint and used Kerberos relay to obtain an Administrator certificate
  • Authenticated as Administrator, compromised the Domain Controller, and retrieved the root flag