TMAegisBeta
更多 chrome 規則

Google Chrome

TMA-CHROME-4.7

Ensure 'Controls the mode of DNS-over-HTTPS' is set to 'Enabled: DNS-over-HTTPS without insecure fallback'

中等級 2自動化chrome

說明

This controls the mode of the DNS-over-HTTPS resolver. Please note that this setting will only set the default mode for each query. The mode may be overridden for special types of queries, such as requests to resolve a DNS-over-HTTPS server hostname. Rationale: DNS over HTTPS (DOH) has a couple primary benefits: 1. Encrypting DNS name resolution traffic helps to hide your online activities, since DoH hides the name resolution requests from the ISP and from anyone listening on intermediary networks. 2. Audit reads the Group Policy registry value and prints 'compliant', 'unset' (policy not configured, reported as FAIL) or the non-compliant value. Registry value: HKLM\SOFTWARE\Policies\Google\Chrome:DnsOverHttpsMode (REG_SZ); compliant when it is 'secure' (whitespace-insensitive). Remediation writes secure locally; in a domain set it through the ADMX so Group Policy does not revert it.

檢查方式

稽核方法: Windows 登錄檔

registry
$v = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome' -Name 'DnsOverHttpsMode' -ErrorAction SilentlyContinue).'DnsOverHttpsMode'; if ($null -eq $v) { 'unset' } elseif (($null -ne $v -and ("$v" -replace '\s','') -eq 'secure')) { 'compliant' } else { "non-compliant: $v" }
預期輸出
compliant

修補方式

修補方法: Shell 指令

shell
$p = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome'; if (-not (Test-Path -Path $p)) { New-Item -Path $p -Force | Out-Null }; New-ItemProperty -Path $p -Name 'DnsOverHttpsMode' -Value 'secure' -PropertyType String -Force | Out-Null

屬性

作業系統
不限
標籤
chromebrowsercis-l2
參考資料
CIS Google Chrome Benchmark v3.0.0 - 4.7 Ensure 'Controls the mode of DNS-over-HTTPS' is set to 'Enabled: DNS-over-HTTPS without insecure fallback'

檢查此主機

請在您有權稽核的機器上執行此指令。掃描為唯讀操作。

shell
tmaegis scan --target chrome --level 2