This guide walks through setting up a vulnerability management lab environment using free trials of Azure and Tenable.
- Personal email address (not Gmail) for Tenable
- Different email address for Azure (personal, not work/school)
- 2-4 hours of time for setup and execution
- Basic understanding of Windows administration
- Notepad++ or similar text editor for logging
- Visit portal.azure.com
- Click "Start Free" and sign up using a personal email
- Complete verification (requires credit card but won't be charged)
- Receive $200 free credit for 30 days
- Set up budget alert at $150 to avoid unexpected charges
- Navigate to Cost Management + Billing
- Create new budget with email alerts
- Visit tenable.com/products/nessus/nessus-professional/trial
- Use non-Gmail email address
- Complete registration form
- Download Nessus installer (save for later)
- Save activation code in a secure location
- Log into Azure Portal
- Create new Resource Group
- Name: "VulnLab-RG"
- Region: Choose nearest to you
- Create Virtual Machine
- Select Windows 10 Pro
- Size: Standard_D2s_v3 (2 CPUs, 8GB RAM)
- Username: Choose an admin username
- Password: Create strong password
- Configure networking:
- Create new VNet
- Allow RDP (port 3389)
- Allow HTTP/HTTPS (ports 80/443)
- Enable Azure Security Center (optional but recommended)
- Provides additional security insights
- Free tier is sufficient for lab
- Download RDP file from Azure portal
- Connect using VM credentials
- Allow connection despite certificate warning
- Create restore point before making changes
- Open System Protection
- Create restore point named "Clean Install"
# Run PowerShell as Administrator
# Disable Windows Firewall
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
# Configure LocalAccountTokenFilterPolicy
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "LocalAccountTokenFilterPolicy" -Value 1 -Type DWord -Force
# Create log directory for documentation
New-Item -Path "C:\VulnLab" -ItemType Directory- Transfer Nessus installer to VM
- Run installer with default settings
- Access Nessus via https://localhost:8834
- Complete initial setup using trial activation code
- Update Nessus plugins before first scan
- In Nessus, create new "Basic Network Scan"
- Target: localhost
- Enable DISA STIG compliance checks
- Configure advanced settings:
- Enable thorough tests
- Set scan window to unlimited
- Enable all STIG profiles
- Save and run scan
- Export baseline results in both PDF and CSV formats
- Download and install Firefox v110
- Enable Guest Account:
# Enable Guest Account
Net User Guest /Active:Yes
# Document changes
Get-Date | Out-File -Append C:\VulnLab\changes.log
"Enabled Guest Account" | Out-File -Append C:\VulnLab\changes.log
"Installed Firefox v110" | Out-File -Append C:\VulnLab\changes.log- Run second scan
- Compare results with baseline
- Document new vulnerabilities
- Create vulnerability matrix:
- Severity levels
- CVSS scores
- Affected components
- Potential impacts
# Document start of remediation
Get-Date | Out-File -Append C:\VulnLab\remediation.log
# Uninstall Firefox
wmic product where "name like 'Firefox%'" call uninstall
"Firefox uninstalled" | Out-File -Append C:\VulnLab\remediation.log
# Increase Security Event Log Size
wevtutil sl Security /ms:4194304
"Security log size increased" | Out-File -Append C:\VulnLab\remediation.log
# Disable Guest Account
Net User Guest /Active:No
"Guest account disabled" | Out-File -Append C:\VulnLab\remediation.log
# Rename Guest Account
wmic useraccount where "name='Guest'" call rename "Visitor"
"Guest account renamed" | Out-File -Append C:\VulnLab\remediation.log- Run final scan
- Document improvements
- Export results
- Compare all three scans:
- Initial baseline
- Post-vulnerability
- Post-remediation
- Create spreadsheet tracking:
- Initial vulnerabilities
- Remediation actions
- Final vulnerability state
- Time spent on each remediation
- Risk levels before and after
- Generate executive summary
- Document lessons learned
- Create recommendations for:
- Future vulnerability prevention
- Ongoing monitoring
- Security policy improvements
- Always use strong passwords
- Keep detailed notes of changes
- Take screenshots for documentation
- Remember to shut down Azure resources when not in use to preserve credits
- Document all changes in log files
- Create system restore points before major changes
-
Nessus Connection Issues:
- Verify service is running
- Check port 8834 is open
- Restart Nessus service
-
Scan Failures:
- Check network connectivity
- Verify credentials
- Review scan logs
-
Azure Connectivity:
- Verify NSG rules
- Check RDP configuration
- Confirm VM is running
- Export all logs and documentation
- Stop VM in Azure portal
- Consider deleting resources if lab is complete
- Save all documentation and results locally
- Archive results for future reference
- Experiment with different scan policies
- Try scheduling automated scans
- Create custom STIG checks
- Practice writing vulnerability reports
- Explore Azure Security Center integration