Skip to content

Retro Walkthrough

Lab Name: Retro
Difficulty: Easy
Platform: Vulnlab

Retro [Easy] chains legacy services and misconfigurations into full domain compromise. We enumerate SMB and IPC$, find users through RID cycling, abuse a pre-created computer account, and exploit AD CS ESC1 to reach Domain Admin.


Start with a fast port scan to discover exposed services and hostnames.

image.png image.png

  • Notable services: LDAP, Kerberos, SMB
  • Add discovered domain/controller entries to /etc/hosts to ensure Kerberos name resolution

Enumerate SMB shares (guest/anonymous) for readable content and configuration files.

image.png

  • Discovered readable shares and a writable share
  • Accessible IPC$ enables RID cycling for user enumeration.

Use rpcclient/nxc to perform RID cycling and enumerate domain users:

image.png

  • Users discovered: trainee, jburley, HelpDesk, tblack
  • The trainee user matches artifacts in the SMB shares, giving us a lead for credential access.

Download and inspect files from the trainee share for credentials or hints.

image.png

  • Found Important.txt/ToDo.txt with references to pre-created computer accounts and other clues

image.png image.png

The share notes point us to pre-created computer accounts with a legacy provisioning configuration. We test the candidate credentials, change the password for the controlled account with impacket-changepasswd, and collect domain data with nxc. A computer account being pre-created does not automatically make its password resettable.

image.png image.png


3.1 Certificate Template Enumeration & ESC1

Section titled “3.1 Certificate Template Enumeration & ESC1”

We enumerate AD CS templates and ACLs for misconfigurations. One template has ESC1 (“Enrollee supplies subject”) and Client Authentication enabled.

image.png

  • The template lets our controlled account request an authentication certificate with a supplied identity. Approval requirements and certificate mapping also matter. The successful authentication shown below confirms the path in this lab; certificate authentication and NTLM relay are distinct techniques.

Tools: certipy (https://github.com/ly4k/Certipy) automates AD CS enumeration and exploitation (ESC1–ESC16). Use it in authorized lab environments to locate vulnerable templates and request certificates.

Mitigations: restrict enrollment rights, require manager approval, limit Client Authentication EKU, and monitor certificate requests.

image.png image.png

  • Requested certificate for Administrator, extracted credentials/TGT, and obtained RC4/NTLM material

image.png

image.png

  • Obtained Administrator shell and captured the final flag

  • Initial Access: Unauthenticated SMB enumeration and RID cycling revealed usernames
  • Credential Access: Artifacts in SMB shares pointed to pre-created machine accounts
  • Exploitation: Reset pre-created account password to gain machine account foothold
  • Privilege Escalation: Exploited AD CS ESC1 misconfiguration to enroll a certificate and escalate to Domain Admin

Thanks to VulnLab for the lab environment.