maddev-engenuity / AdversaryEmulation

MAD ATT&CK Defender: ATT&CK Adversary Emulation Repository
Apache License 2.0
105 stars 19 forks source link

Lab1 DC setup script #23

Closed garunagiri closed 2 years ago

garunagiri commented 2 years ago

Setup scripts created. setup-dc.ps1 is the script to run. It requires that the AdversaryEmulation repo was cloned under the Administrator user's home directory.

e.g. C:\Users\Public\Administrator\AdversaryEmulation

setup-dc.ps1 requires this because it adds itself to the registry Run key so that it will get automatically run after reboots, of which there are 2 required, and 1 extra at the end for a clean start. It automatically picks up from where it left off prior to the last reboot. It also provides students the ability to enter the password to enable autologon for the duration of the setup process, so students can just hit go and leave the setup until it completes.

Once it does complete, the autologon functionality and run on startup features are disabled.

Currently, additional domains within the forest don't exist, nor do additional subnets.

Note: I don't like that the solution is this brittle regarding the download location for the repo, but I felt that this solution was better than having the student mess around with running different scripts manually.

bluesentinelsec commented 2 years ago

Also, try to resolve the absolute path implementation into something more flexible (.e.g, have the script check for its current location, and copy files to the intended directory if needed).

bluesentinelsec commented 2 years ago

Add the desktop background to the setup procedure

garunagiri commented 2 years ago

Requested changes addressed, ready for you to look at again