Building a Vulnerable Active Directory Lab With Claude AI

· 52:54 · Watch on YouTube ↗

Summary

A red-team lab tutorial uses an AI-generated PowerShell script to introduce Active Directory weaknesses, troubleshoots user-creation errors, and joins a Windows client to the domain.

Key points

  • The presenter reviews an AI-generated script before running it to create users and deliberately weaken the lab domain.
  • The intended weaknesses include weak passwords, passwords in account descriptions, disabled SMB signing and LDAP channel binding, and accounts configured for Kerberos roasting.
  • Initial user creation failed because of password-policy requirements; the presenter revised the script to apply the policy before creating users.
  • Repeated runs produced duplicate-account warnings, but the presenter reported that the script ultimately completed with some imperfections.
  • The presenter configured DNS and joined a Windows client to the lab domain for subsequent testing.

Article Details

Topics
  • [01:14] Lab infrastructure and Windows client setup
  • [05:45] Planning Active Directory weaknesses and reviewing AI-generated code
  • [18:11] Reviewing account creation and domain security settings
  • [27:15] Adding domain administrators with weak passwords
  • [33:24] Troubleshooting script execution and user-creation errors
  • [41:00] Configuring DNS and joining the Windows client to the domain