Google Chrome
TMA-CHROME-4.7
Ensure 'Controls the mode of DNS-over-HTTPS' is set to 'Enabled: DNS-over-HTTPS without insecure fallback'
说明
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 注册表
$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 命令
$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'
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
tmaegis scan --target chrome --level 2