Welcome Walkthrough
Lab Info
Section titled “Lab Info”Lab Name: Welcome
Difficulty: Easy
Author: Noah Heroldt
Lab Link: Welcome
Objective and Scope
Section titled “Objective and Scope”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.
1. Initial Access & Enumeration
Section titled “1. Initial Access & Enumeration”1.1 Network Discovery Using RustScan
Section titled “1.1 Network Discovery Using RustScan”We start with the breached credentials and scan for exposed services to understand the attack surface.

- 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.

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.
1.2 Verifying the Breached Credentials
Section titled “1.2 Verifying the Breached Credentials”We verify the phished credentials before using them for enumeration.

- Authentication works. We can enumerate SMB with these credentials.
1.3 SMB Enumeration
Section titled “1.3 SMB Enumeration”We enumerate SMB shares for sensitive files and write access.

- 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.
1.4 User Enumeration via RID Cycling
Section titled “1.4 User Enumeration via RID Cycling”We use RPCClient to collect domain usernames for password spraying.

Using awk to separate the username from the previous output:

1.5 Password Spraying
Section titled “1.5 Password Spraying”We use nxc to spray a password across the valid usernames.

- The password spray failed, so we check the Human Resources SMB share for useful information.
1.6 Accessing the SMB
Section titled “1.6 Accessing the SMB”We connect to the Human Resources share and check its files for sensitive information.

- We connected to the share!
1.7 Downloading HR Documents
Section titled “1.7 Downloading HR Documents”
- We download the HumanResources files to check for sensitive information.

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

- 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
- Password:


The PDF reveals:
- Default password used
- Password policy used
- Internal email addresses
- Password reuse guidance (poor practice)
This information enables targeted password spraying.
2. Lateral Movement and Pivoting
Section titled “2. Lateral Movement and Pivoting”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.

- 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.
2.2 Bloodhound Analysis
Section titled “2.2 Bloodhound Analysis”Collecting AD Objects
We use nxc to collect AD objects and their relationships.

- We move the collected data to the lab directory and import it into BloodHound for analysis.
Analyzing Attack Paths


- The user
a.harrisis a member of the HR group, which has GenericAll permissions overi.park. This can be abused to escalate privileges by compromising the i.park account. - The user
a.harrisis also a member of the Remote Management group. We attempted to log in to verify remote access.
2.3 Gaining a Shell via WinRM
Section titled “2.3 Gaining a Shell via WinRM”Using the a.harris account, we can access the desktop and retrieve the user flag using evil-winrm.


- We have a user shell and found the user flag!
2.4 Resetting the i.park Password
Section titled “2.4 Resetting the i.park Password”The a.harris account has GenericAll over i.park, including ResetPassword, so we can reset the account’s password.

- The password was successfully reset.
Verify Access:

- The credentials are valid. We can use BloodHound to analyze potential attack paths starting from the
i.parkaccount.
2.5 Expanding Control
Section titled “2.5 Expanding Control”
BloodHound analysis of i.park shows ForceChangePassword permissions over:
svc_casvc_web
We target svc_ca first, then reset svc_web.
3. Privilege Escalation
Section titled “3. Privilege Escalation”3.1 Force Resetting the svc_ca Password
Section titled “3.1 Force Resetting the svc_ca Password”We have ForceChangePassword over SVC-CA and SVC_WEB. We use it to reset SVC_CA first.

Verify Access:

- BloodHound shows no useful group memberships or outbound permissions for
svc_ca. The CA name suggests AD CS, so we enumerate that next.
3.2 ADCS Enumeration
Section titled “3.2 ADCS Enumeration”
- We dump the certificate templates and review them in nano, or any other text editor, for misconfigurations.
- We look for templates that let
svc_caenroll and supply the certificate subject, which may allow ESC1. We also check for other AD CS paths available tosvc_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.

- 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.
3.4 Requesting a Malicious Certificate
Section titled “3.4 Requesting a Malicious Certificate”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

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.

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.

- Authentication succeeds as Administrator. The privileged session and subsequent flag read demonstrate access to the target system.
- We retrieve
root.txtfrom the Administrator’s desktop and submit it!
4. Attack Summary
Section titled “4. Attack Summary”- Initial access was established using phished credentials, allowing authenticated enumeration of the
WELCOME.localActive 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 overi.park, which were abused to reset the i.park account password. - Further privilege escalation was achieved by abusing ForceChangePassword rights from
i.parkto compromise the service accountsvc_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.