TMAegisBeta
Thêm quy tắc cho windows

Windows (desktop and server)

TMA-WIN10-18.9.5.3

(NG) Ensure 'Turn On Virtualization Based Security: Virtualization Based Protection of Code Integrity' is set to 'Enabled with UEFI lock'

CaoCấp 1Tự độngwindows

Mô tả

This setting enables virtualization based protection of Kernel Mode Code Integrity. When this is enabled, kernel mode memory protections are enforced and the Code Integrity validation path is protected by the Virtualization Based Security feature. The recommended state for this setting is: Enabled with UEFI lock. Note: Virtualization Based Security requires a 64-bit version of Windows with Secure Boot enabled, which in turn requires that Windows was installed with a UEFI BIOS configuration, not a Legacy BIOS configuration. In addition, if running Windows on a virtual machine, the hardware-assi

Cách kiểm tra

Phương pháp kiểm tra: Windows Registry

registry
$bad = @(); $v = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard' -Name 'HypervisorEnforcedCodeIntegrity' -ErrorAction SilentlyContinue).'HypervisorEnforcedCodeIntegrity'; if (-not ($null -ne $v -and @(1) -contains [int64]$v)) { $bad += 'HypervisorEnforcedCodeIntegrity=' + $v }; if ($bad.Count -eq 0) { 'compliant' } else { 'non-compliant: ' + ($bad -join ', ') }
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Lệnh shell

shell
if (-not (Test-Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard')) { New-Item -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard' -Force | Out-Null }; New-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard' -Name 'HypervisorEnforcedCodeIntegrity' -Value 1 -PropertyType DWord -Force | Out-Null

Thuộc tính

Hệ điều hành
windows-10
Thẻ
cis-convertedregistrywindows
Tham chiếu
CIS Microsoft Windows 10 Enterprise Benchmark v4.0.0 - 18.9.5.3

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target windows