TMAegisベータ
windows のその他のルール

Windows (desktop and server)

TMA-WIN2022-2.3.10.4

Ensure 'Network access: Do not allow storage of passwords and credentials for network authentication' is set to 'Enabled'

中レベル 2自動windows

説明

This policy setting determines whether Credential Manager (formerly called Stored User Names and Passwords) saves passwords or credentials for later use when it gains domain authentication. The recommended state for this setting is: Enabled. Note: Changes to this setting will not take effect until Windows is restarted.

チェック方法

監査方法: Windows レジストリ

registry
$bad = @(); $v = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa' -Name 'DisableDomainCreds' -ErrorAction SilentlyContinue).'DisableDomainCreds'; if (-not ($null -ne $v -and @(1) -contains [int64]$v)) { $bad += 'DisableDomainCreds=' + $v }; if ($bad.Count -eq 0) { 'compliant' } else { 'non-compliant: ' + ($bad -join ', ') }
期待される出力
compliant

修正方法

修正方法: シェルコマンド

shell
if (-not (Test-Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa')) { New-Item -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa' -Force | Out-Null }; New-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa' -Name 'DisableDomainCreds' -Value 1 -PropertyType DWord -Force | Out-Null

プロパティ

オペレーティングシステム
windows-server-2022-dc, windows-server-2022-ms
タグ
cis-convertedregistrywindows
参照
CIS Microsoft Windows Server 2022 Benchmark v5.1.0 - 2.3.10.4

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target windows --level 2