TMAegis
Thêm quy tắc cho chrome

TMA-CHROME-2.5.1

Ensure 'Configure native messaging blocklist' is set to 'Enabled: *'

Trung bìnhCấp 2Tự độngchrome

Mô tả

Allows you to specify which native messaging hosts that should not be loaded. Disabled (0): Google Chrome will load all installed native messaging hosts. The recommended state for this setting is: Enabled with a value of * NOTE: This needs to be handled carefully. If an extension is enabled, yet can't communicate with its backend code, it could behave in strange ways which results in helpdesk tickets + support load. Rationale: For consistency with Plugin and Extension policies, native messaging should be blocklisted by default, requiring explicit administrative approval of applications for allowlisting. An example of an application that uses native messaging is the 1Password password manager. List policy: numbered REG_SZ values under HKLM\SOFTWARE\Policies\Google\Chrome\NativeMessagingBlocklist. Compliant when one entry equals '*'; 'unset' when the list is empty. Remediation appends the entry under the next free number.

Cách kiểm tra

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

registry
$l = @((Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\NativeMessagingBlocklist' -ErrorAction SilentlyContinue).PSObject.Properties | Where-Object { $_.Name -notlike 'PS*' } | ForEach-Object { "$($_.Value)" }); if ($l.Count -eq 0) { 'unset' } elseif ($l -contains '*') { 'compliant' } else { 'non-compliant: ' + ($l -join ', ') }
Đầu ra mong đợi
compliant

Cách khắc phục

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

shell
$k = 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\NativeMessagingBlocklist'; if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }; $props = @((Get-ItemProperty -Path $k).PSObject.Properties | Where-Object { $_.Name -notlike 'PS*' }); if (@($props | Where-Object { "$($_.Value)" -eq '*' }).Count -eq 0) { $n = 1; while (@($props | Where-Object { $_.Name -eq "$n" }).Count -gt 0) { $n++ }; New-ItemProperty -Path $k -Name "$n" -Value '*' -PropertyType String -Force | Out-Null }

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
chromebrowsercis-l2
Tham chiếu
CIS Google Chrome Benchmark v3.0.0 - 2.5.1 Ensure 'Configure native messaging blocklist' is set to 'Enabled: *'

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 chrome --level 2