Skip to main content

Overview

This lab deploys detection capabilities for a complete attack chain:

  1. Entry: Azure Arc identity takeover (CVE-2026-26117) โ€” a low-privilege user hijacks the machine’s cloud identity
  2. Defense Evasion: Monitoring agent removal via the Azure management plane
  3. Credential Access: Key Vault secret harvesting (Storm-0501 pattern)
  4. Command & Control: Azure Blob Storage as C2 dead-drop (SpecterOps azureBlob pattern)

Prerequisites

  • Azure subscription with Microsoft Sentinel enabled on a Log Analytics workspace
  • PowerShell 7.0+ with Azure CLI installed and authenticated
  • Roles: Contributor (Bicep deployment), Microsoft Sentinel Contributor (rules + workbook)

Quick Start

# Deploy infrastructure + rules + workbook
./labs/arc-cloud-c2/scripts/Deploy-Lab.ps1 \
    -ResourceGroup "arc-c2-lab-rg" \
    -SentinelResourceGroup "rg-sentinel-lab" \
    -WorkspaceName "law-sentinel-lab"

# Simulate C2 traffic
./labs/arc-cloud-c2/scripts/Test-C2Simulation.ps1 \
    -StorageAccountName "<from deploy output>" \
    -ResourceGroup "arc-c2-lab-rg"

What Gets Deployed

ResourceTypeAttack Phase
Storage account (blob + queue diagnostics)BicepC2 channel target
Key Vault (audit logging + lab secrets)BicepCredential harvesting target
LAB - Azure Arc Extension Deployed by UserAnalytics Rule (High)Lateral Movement
LAB - Azure Arc Monitoring Agent RemovedAnalytics Rule (High)Defense Evasion
LAB - First-Time SP Accessing Key Vault SecretsAnalytics Rule (Medium)Credential Access
LAB - Storage Blob C2 Beaconing PatternAnalytics Rule (Medium)Command & Control
LAB - Mass Key Vault Secret RetrievalAnalytics Rule (High)Credential Access
Arc & Cloud C2 DashboardWorkbookAll phases

Cost Estimate

  • Storage + Key Vault: < $2/month
  • Diagnostic logs: ~$2.76/GB ingestion
  • Total: < $5/month for lab workloads

Cleanup

az group delete --name arc-c2-lab-rg --yes --no-wait
# Analytics rules and workbook: delete from Sentinel portal

Keyboard Shortcuts

Navigation
Ctrl + K Open search / command palette
? Show this help
ESC Close dialogs
Actions
G then H Go to Home
G then B Go to Blog
G then A Go to About
G then C Go to Contact
G then T Go to Threat Feeds
G then G Go to Glossary
Shift + C Copy page URL
Easter Eggs
โ†‘โ†‘โ†“โ†“โ†โ†’โ†โ†’BA Konami code
Click cat 9ร— Nine lives activation
Click logo 9ร— Cat Burglar mode