Skip to content

DefensiveOrigins/LabBuilding101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Welcome to Lab Building 101

This repo was created for the gracious folks at Wild West Hackin' Fest, who picked us up, dusted us off and said "here's another chance guys, go get 'em!" ...and who gave us an opportunity to run a rapid fire workshop about lab building.

Anyway, here's the Defensive Origins crew builds labs!

Building a Lab on Azure with ARM

Time to deploy: Approximately 30-60 minutes

Authenticate to your Azure portal:

🌎 URL Browser on Students Local System
https://portal.azure.com

Then, goto the hosted ARM template resource page on a new browser tab:.

🌎 URL Browser on Students Local System
https://www.doazlab.com

About half way down the page, click the Deploy to Azure button.

www.doazlab.com Lab Build Launcher

Select your subscription, resource group, and location. Document this location, it will be needed later in class.

Subscription, Resource Group, Location

The default VM size is B2s, which are burstable, low cost, and efficient VMs. You can bump this up to larger should you choose.

VM Size Selection

Your next configuration option is the network ranges allowed to access this lab's public IP addresses. We will investigate some Internet-based threats later and recommend leaving this wide open to the configured all zeroes (0.0.0.0/0) range.

Lab Environment Allowed Networks

One more click will bring you to the validation check. After a moment, you can click on Create to start the build process for your ADD Lab Environment.

Lab Config Validation

The process takes between 25 and 30 minutes to fully deploy. The deployment confirmation shown next is indicative of a successful build.

Lab Deployment Confirmation

The Outputs option in the left navigation tree includes the access details you will need for SSH and RDP access into the lab environment. Document these IP addresses, you will need them later to access your lab infrastructure.

Lab Deployment Outputs: Access Details

A visual aid for your lab deployment is shown in the next image.

Lab Deployment Visual

Connecting to Infrastructure

🔒 Lab Credentials

🪟 Windows credentials

When logging into the Windows system, use the following credentials.

doazlab\doadmin
DOLabAdmin1!

🐧 Linux credentials

When logging into the Linux system, use the following credentials.

doadmin
DOLabAdmin1!

① Lab Deployment Network Connectivity

The screenshot in this section demonstrates the output values from the course ARM template deployemnt.

You will need all of these at various points throughout the course material. You should keep them handy in a notes document or similar quick-reference.

Outputs: IP Address Details

Step Complete, Go to the next step!

② Establish RDP Connections (from Linux)

Establish RDP to the workstation and domain controller (Linux with Remmina)

From Linux, you can use the Remmina remote desktop (RDP) client software.

Remmina RDP Connection Manager
⚠ Note Be sure to include the domain on the initial RDP connections.
doazlab\doadmin
DOLabAdmin1!

Establish an RDP connection to the IP address of your lab's domain controller. You will be prompted to accept a certificate that should match DC01.doazlab.com.

DC Certificate Offer

Establish an RDP connection to the IP address of your lab's workstation. You will be prompted to accept a certificate that should match WS05.doazlab.com.

Workstation Certificate Offer

The domain controller will prompt you to accept the discovery settings. Your lab is isolated and our guidance is to click Yes. The course authors do not believe choosing No will affect any of the course content.

Domain Controller Initial Desktop

The first login to the workstation will require approximately ten minutes to fully build the user profile and desktop environment.

Workstation Initial Login Process

Step Complete, Go to the next step!

③ Establish Remote Desktop Connections (from Windows)

Establish RDP connections to the workstation and domain controller (Windows terminal services client)

The following screenshot includes an example mstsc connection string. Your IP address will differ.

mstsc /v connection.string

Be sure to include the domain on the initial RDP connections.

doazlab\doadmin
DOLabAdmin1!
Credential Offer to RDP Server

Establish an RDP connection to the IP address of your lab's domain controller. You will be prompted to accept a certificate that should match DC01.doazlab.com.

DC Cert Offer

Establish an RDP connection to the IP address of your lab's workstation. You will be prompted to accept a certificate that should match WS05.doazlab.com.

WS Cert Offer

The domain controller will prompt you to accept the discovery settings. Your lab is isolated and our guidance is to click Yes. The course authors do not believe choosing No will affect any of the course content.

DC Initial Desktop

The first login to the workstation will require approximately ten minutes to fully build the user profile and desktop environment. The desktop background includes bginfo.exe as a desktop background for quick reference as to which system you have accessed.

WS Initial Desktop

Step Complete, Go to the next step!

④ Establish SSH Connection

🐧 Bash Input Linux Host: Nux01
ssh doadmin@'YOUR-PUB-C2-IP'
doadmin
DOLabAdmin1!
Connection to SSH Server from Linux

Did you know you can SSH directly from Windows 10 without additional installation, packages, or software? You can, straight from PowerShell.

🪟 PowerShell Input
ssh doadmin@'YOUR-PUB-C2-IP'
Connection to SSH Server from Windows PowerShell

Step Complete, Go to the next step!

Installing Tools Rapid Fire Style

We packed a bunch of tools onto your Linux system during the build process. So, there's a start, but here's some more quick hitters.

BadBlood

GO SPEEDRACER GO!!!!!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published