Support is an Easy rated Windows Active Directory box that packs a surprising amount of learning into a short chain. It starts with an open SMB share, moves through decompiling a .NET binary, decrypts a hardcoded credential, hunts LDAP attributes for a plaintext password, and finishes with a Resource Based Constrained Delegation attack that impersonates the Domain Administrator. For the complete step by step exploitation guide with every command and screenshot, grab the CyberMaster Android app or visit my Buy Me a Coffee page.
Machine Overview
| Field | Detail |
|---|---|
| Name | Support |
| OS | Windows Server 2022 |
| Difficulty | Easy |
| Platform | HackTheBox |
| Services | DNS, Kerberos, RPC, LDAP, SMB, WinRM |
| Domain | support.htb |
What Makes Support Interesting
Support is a great introduction to Active Directory attack paths for anyone moving from Linux to Windows boxes. It teaches:
- SMB guest access and share enumeration
- .NET binary decompilation
- XOR encryption reversing
- Raw LDAP attribute hunting
- BloodHound graph analysis
- Resource Based Constrained Delegation abuse
- S4U2Proxy Kerberos impersonation
Each step builds on the last, and the final attack path is a real world technique that shows up in enterprise environments.
The Conceptual Kill Chain
Here is the high level picture without giving away the exploitation details.
Stage 1: SMB Enumeration and Guest Access
The initial port scan reveals a full Active Directory footprint. DNS, Kerberos, LDAP, SMB, and WinRM are all exposed. Guest access is enabled on SMB, and listing shares reveals one that does not belong to a default Windows installation. It contains a collection of publicly available administrative tools, plus one in house binary that stands out.
Concept: Guest SMB access is a common misconfiguration. Even read only access to a share that looks harmless can leak internal tooling, and internal tooling often contains hardcoded secrets.
Stage 2: Decompiling the .NET Binary
The suspicious file is a .NET executable. Decompiling it with a tool like ILSpy reveals an LDAP query class that authenticates to the domain using a hardcoded service account. The password is not stored in plaintext. It is base64 encoded and then XORed with a static key, plus a fixed XOR constant.
Concept: Never trust an executable that ships with credentials. Even obfuscated or custom encrypted secrets are recoverable once you have the binary. .NET is especially easy because decompilation is close to source recovery.
Stage 3: XOR Decryption
The decryption routine is simple enough to reimplement in a few lines of Python. Base64 decode, XOR with the repeating key, XOR with the constant, and decode the result as Windows 1252. The output is the plaintext password for the LDAP service account.
Concept: Custom encryption is not encryption. XOR with a static key is a teaching example, but the same principle applies to custom obfuscation schemes in real applications. If the code is reversible, the secret is recoverable.
Stage 4: LDAP Attribute Hunting
With a valid domain credential, the next step is LDAP enumeration. Every user object in Active Directory has a set of attributes, and some of them are free text fields where administrators sometimes store things they should not. The info field on one particular user contains a plaintext password that looks exactly like a login credential.
Concept: LDAP attributes like info, description, and comment are user writable free text fields. They are not a place to store passwords. Raw LDAP enumeration tools that dump every attribute of every user catch this class of mistake.
Stage 5: BloodHound and Attack Path Discovery
With a second valid credential, the next step is to collect BloodHound data and analyze the domain graph. The user is a member of a group that has GenericAll permissions over the Domain Controller computer object. GenericAll is a very powerful permission, and one common abuse path over a computer object is Resource Based Constrained Delegation.
Concept: BloodHound turns a complex Active Directory environment into a visual graph. GenericAll on a computer object is a well known privesc primitive. RBCD abuse is one of several ways to weaponize it.
Stage 6: RBCD and S4U2Proxy Impersonation
The RBCD attack has three phases. First, create a machine account with the ability to authenticate. Second, write the msDS AllowedToActOnBehalfOfOtherIdentity attribute on the target computer to allow the new machine account to delegate to it. Third, request a service ticket with S4U2Self followed by S4U2Proxy, impersonating the Administrator. The result is a Kerberos ticket that authenticates as Administrator to any service on the Domain Controller.
Concept: RBCD is a legitimate feature used in multi tier application architectures. When a standard user has write access to the delegation attribute on a sensitive object, the feature becomes a privilege escalation primitive. Always audit who can write msDS AllowedToActOnBehalfOfOtherIdentity.
Defensive Recommendations
If you are running something similar in production, here is what to fix:
- SMB Hardening: Disable guest access entirely. Audit share permissions and remove anything that is not absolutely required.
- Application Security: Never ship binaries with hardcoded credentials. Use managed identities, certificate based authentication, or a secrets manager.
- Custom Crypto: Do not roll your own encryption for secrets. Even when it seems clever, reversible code means recoverable secrets.
- LDAP Hygiene: Audit all free text attributes on user objects. Remove anything that looks like a password or a secret.
- ACL Auditing: Use BloodHound or similar tooling to regularly review who has GenericAll, WriteDacl, WriteOwner, or AllExtendedRights over sensitive objects. Tighten delegation permissions.
- Machine Account Quota: Consider setting ms DS MachineAccountQuota to zero if users do not need to join machines to the domain.
Key Takeaways
- Guest SMB access leaks more than you think. Even read only access to a tooling share can expose internal binaries.
- Custom encryption is not encryption. XOR and base64 combinations are reversible in minutes.
- LDAP free text fields are not secret storage. Regular audits catch plaintext passwords that should never be there.
- BloodHound is essential for AD. Visualizing attack paths turns a maze into a map.
- RBCD is a powerful primitive. GenericAll on a computer object is often enough to take over the Domain Controller.
- Kerberos clock skew matters. Sync your clock to the target before any Kerberos attack or you will spend an hour chasing a false error.
Want the Full Walkthrough?
This post covers the concepts and the reasoning behind each stage. The full writeup with every command, every payload, and every step of the chain is available here:
Download the CyberMaster Android app:
https://play.google.com/store/apps/details?id=np.com.kebalbhandari.cybermaster
Or visit my Buy Me a Coffee page:
https://buymeacoffee.com/kebalbhandari/
Both links give you access to the complete Support walkthrough along with dozens of other HackTheBox machines, labs, and CTF solutions. The app has the entire library in one place with search, bookmarks, and offline access. The Buy Me a Coffee page has the writeups in PDF and web format.
Whether you are prepping for OSCP, grinding through HTB Season rankings, or just curious how a modern Windows box falls apart, the CyberMaster library has you covered.
Related Content
If you enjoyed this writeup, you will find more in the CyberMaster app and on the Buy Me a Coffee page:
- HackTheBox machines with full step by step exploitation
- Advanced Active Directory attacks including RBCD, ADCS abuse, shadow credentials, and Kerberos delegation
- Web exploitation deep dives on OAuth, SAML, JWT, and session handling
- Windows privilege escalation covering services, tokens, and credential stores
- Linux privilege escalation covering SUID, capabilities, kernel exploits, and misconfigurations
- CVE walkthroughs for recent vulnerabilities with practical exploitation
Final Thoughts
Support is a great machine for anyone learning Active Directory exploitation. The chain is short, the steps are approachable, and the final RBCD abuse is a technique you will use again on harder boxes. Take your time on the enumeration phases, and do not skip the LDAP attribute hunt. The plaintext password in the info field is exactly the kind of mistake that shows up in real engagements.
Until next time, happy hacking.
CyberMaster on Google Play
https://play.google.com/store/apps/details?id=np.com.kebalbhandari.cybermaster
Buy Me a Coffee for the full writeup library
https://buymeacoffee.com/kebalbhandari/
