Skip to content

Welcome Walkthrough

Lab Name: Welcome
Difficulty: Easy
Author: Noah Heroldt
Lab Link: Welcome

We start this Hack Smarter Red Team lab with credentials captured during a phishing engagement. Our task is to enumerate the client’s Active Directory environment, escalate privileges, and demonstrate the impact.


We start with the breached credentials and scan for exposed services to understand the attack surface.

image.png

  • LDAP is open, so we can collect domain objects and their relationships. SMB is also available; we can check for sensitive files and writable shares that could allow NTLM coercion.

image.png

The scan output also reveals useful identity information:

  • Domain: Welcome.local
  • Domain Controller: DC01.Welcome.local

We add these entries to /etc/hosts for name resolution. Many Active Directory tools depend on it, especially for Kerberos-based attacks.

We verify the phished credentials before using them for enumeration.

image.png

  • Authentication works. We can enumerate SMB with these credentials.

We enumerate SMB shares for sensitive files and write access.

image.png

  • Read access to IPC$ lets us enumerate domain users through RID cycling.
  • We also have read access to Human Resources, which we can check for sensitive files.

We use RPCClient to collect domain usernames for password spraying.

image.png

Using awk to separate the username from the previous output:

image.png

We use nxc to spray a password across the valid usernames.

image.png

  • The password spray failed, so we check the Human Resources SMB share for useful information.

We connect to the Human Resources share and check its files for sensitive information.

image.png

  • We connected to the share!

image.png

  • We download the HumanResources files to check for sensitive information.

image.png

  • Most downloaded PDFs contain basic employee onboarding information. One is password-protected, so we try cracking it with John the Ripper.

image.png

  • I had already cracked the hash with john, so the screenshot uses -show. To crack it yourself, use -wordlist=/usr/share/wordlist/rockyou.txt.
  • The PDF password was recovered with the tested wordlist. This demonstrates that this password was guessable; it does not establish every setting in the domain password policy.
    • Password: humanresources

image.png

image.png

The PDF reveals:

  • Default password used
  • Password policy used
  • Internal email addresses
  • Password reuse guidance (poor practice)

This information enables targeted password spraying.


2.1 Lateral Movement via Password Spraying

Section titled “2.1 Lateral Movement via Password Spraying”

Add the newly discovered users to the previously created user list and use the default password ‘Welcome2025!@’ which we found from the cracked PDF to perform a password spraying attack against the WELCOME.local domain.

image.png

  • Success! We obtained a valid hit for the user a.harris.
  • We can collect Active Directory objects with nxc and use BloodHound to find paths from a.harris.

Collecting AD Objects

We use nxc to collect AD objects and their relationships.

image.png

  • We move the collected data to the lab directory and import it into BloodHound for analysis.

Analyzing Attack Paths

image.png

image.png

  • The user a.harris is a member of the HR group, which has GenericAll permissions over i.park. This can be abused to escalate privileges by compromising the i.park account.
  • The user a.harris is also a member of the Remote Management group. We attempted to log in to verify remote access.

Using the a.harris account, we can access the desktop and retrieve the user flag using evil-winrm.

image.png

image.png

  • We have a user shell and found the user flag!

The a.harris account has GenericAll over i.park, including ResetPassword, so we can reset the account’s password.

image.png

  • The password was successfully reset.

Verify Access:

image.png

  • The credentials are valid. We can use BloodHound to analyze potential attack paths starting from the i.park account.

image.png

BloodHound analysis of i.park shows ForceChangePassword permissions over:

  • svc_ca
  • svc_web

We target svc_ca first, then reset svc_web.


We have ForceChangePassword over SVC-CA and SVC_WEB. We use it to reset SVC_CA first.

image.png

Verify Access:

image.png

  • BloodHound shows no useful group memberships or outbound permissions for svc_ca. The CA name suggests AD CS, so we enumerate that next.

image.png

  • We dump the certificate templates and review them in nano, or any other text editor, for misconfigurations.
  • We look for templates that let svc_ca enroll and supply the certificate subject, which may allow ESC1. We also check for other AD CS paths available to svc_ca.

3.3 Exploiting ESC1 (AD CS Misconfiguration)

Section titled “3.3 Exploiting ESC1 (AD CS Misconfiguration)”

We control SVC_CA, and enumeration shows AD CS is deployed with a template named Welcome-Template that is vulnerable to ESC1.

image.png

  • ESC1 lets the requester supply a User Principal Name (UPN) on a certificate usable for client authentication. We can use it to request a certificate for another user, including Domain Administrator.

We use certipy-ad to request a certificate while spoofing the Administrator account’s UPN.

The request specifies:

  • The vulnerable certificate template (Welcome-Template)
  • The Certificate Authority (WELCOME-CA)
  • A forged UPN of administrator@WELCOME.local

image.png

The request is successful:

  • The certificate request is accepted
  • A certificate is issued with the Administrator UPN
  • The private key and certificate are saved locally as administrator.pfx

3.5 Authenticating as Domain Administrator

Section titled “3.5 Authenticating as Domain Administrator”

Once the malicious certificate is obtained, it can be used to authenticate directly to Active Directory.

We use certipy-ad auth with administrator.pfx to authenticate with the certificate instead of a password.

image.png

The output shows:

  • A Kerberos Ticket Granting Ticket (TGT) is successfully obtained
  • A credential cache is created for the Administrator account
  • The NTLM hash of the Domain Administrator is retrieved

We now have domain administrator credentials without knowing the administrator’s password.

3.6 Gaining an Interactive Administrator Shell

Section titled “3.6 Gaining an Interactive Administrator Shell”

We use the Administrator hash to connect to the Domain Controller with Evil-WinRM.

image.png

  • Authentication succeeds as Administrator. The privileged session and subsequent flag read demonstrate access to the target system.
  • We retrieve root.txt from the Administrator’s desktop and submit it!

  • Initial access was established using phished credentials, allowing authenticated enumeration of the WELCOME.local Active Directory environment.
  • Sensitive data discovered on the HumanResources SMB share revealed weak password practices, enabling password spraying and compromise of the user a.harris.
  • BloodHound analysis showed a.harris (via the HR group) had GenericAll permissions over i.park, which were abused to reset the i.park account password.
  • Further privilege escalation was achieved by abusing ForceChangePassword rights from i.park to compromise the service account svc_ca.
  • A misconfigured AD CS template vulnerable to ESC1 was exploited using svc_ca, allowing certificate-based authentication as Administrator, resulting in full domain compromise.

Thank you Noah Heroldt and Hack Smarter Labs for creating an amazing lab.