Lockdown Black Team
DEPLOYMENT PROCEDURE
We deploy EVERYTHING using ansible.
For previous deployments refer to UBNetDef git.
Example deployment repo:
https://github.com/ubnetdef/Lockdown-v6-Deployment
To make the deployment with Ansible possible we need to ensure that requirements for deployment templates are satisfied. Please check the TEMPLATE REQUIREMENTS section for more info
Black Team Should manually log in to EVERY computer to test passwords, and ensure that the applications are cached, and VMs are fast when competitors are using them.
TEMPLATE REQUIREMENTS
All:
Linux:
VMware tools(Not open-vm-tools)
Depending on how old ansible is, try to install python2 and python3
SSH server (installed, enabled, running)
Decrease swappiness to 10
Python2 and python3 installed (less headache if you are using ansible)
Ubuntu-specific:
Fedora specific:
-
Windows:
VMWare tools
-
From the link above, please also run Winrm memory Hotfix, and dotnet upgrade
-
Ensure that Windows Remote Management service is started Automatically
Enable Ping via Firewall (Allow ICMP Packets)
Disable/Uninstall Windows Defender (Registry/GPO)
Disable Windows Updates (Registry/GPO/Services)
Make sure ansible deployment has a unique AD_Name for every host, to avoid hostname collisions
Allow remote connections to the computer, under “Remote” tab of System Properties
Ensure Sleep is disabled
-
Sometimes windows may start randomly shutting down. In which case please look into the following
Use High-performance Battery Profile
Windows 10 Enterprise specific:
Pfsense:
Post Deployment Checklist
Ensure you clean up the history of all applications/shells
Ensure you take a snapshot of the entire infrastructure after deploying your malware
Manually login to every VM after the red team is done pre-staging. This ensures that everything is still operational, and in addition, it loads a lot of things from disk to memory, which ensures a smoother experience at the start of the competition.
If the performance of VMs is very slow, try to lower the number of snapshots or use the snapshots that were created are no longer than a day before the competition.
TEMPLATE LOCATIONS
General Templates are located under Templates/Competitions/Lockdown Templates/Base
Every template for past competitions will be located under General Templates are located under Templates/Competitions/Lockdown Templates/ in their own appropriate folders
RED TEAM REQUESTS
Sometimes Red Team might request the Black Team to deploy/prebake something for them. In that case please ensure that Black Team Lead and Red Team Lead Figure out everything that has to be done prior to deployment
Things that are typically requested:
Naming Conventions
Virtual Machines:
Examples: Team06-Client1, Team10-AD
Folders
Examples: Team01, Team12
Templates:
Examples: Lockdownv6_Router, Lockdownv6_AD
Users:
Examples: lockdown-team13
Note: %02d just represents a padded 0.
Aibek to Aibek: PLEASE FIX ANSIBLE RELATIVE PATHING