Enable / disable CLFS logfile authentication
Activer/désactiver l’authentification du fichier journal CLFS
Explanation
This policy setting configures CLFS logfile authentication, a security feature which aims to harden logfile parsing.
Logfile authentication provides the ability for the CLFS driver to detect malicious modications made to logfiles. If modifications are detected, CLFS will deem the logfile as unsafe for parsing and return an error to the caller. CLFS is able to detect modifications by writing authentication codes to logfiles, which combines file data with a system-unique cryptographic key.
A side effect of logfile authentication is that CLFS will fail to open logfiles that were created on other systems, as these logfiles contain authentication codes created using a system-unique cryptographic key. To open a logfile that was created on another system, an administrator must first use the "fsutil.exe clfs authenticate" command to correct the authentication codes.
If you enable or do not configure this setting, CLFS will refer to local registry settings on whether logfile authentication should be done or not. By default, CLFS will do logfile authentication. The local registry settings for this feature can be found at "HKLM:\SYSTEM\CurrentControlSet\Services\CLFS\Authentication".
If you disable his setting, CLFS will no longer perform logfile authentication. Logfiles will be able to be moved and opened across systems without Administrative action. However, CLFS will open and parse all logfiles, including maliciously crafted logfiles that may compromise the system.
Ce paramètre de stratégie configure l’authentification des fichiers journaux CLFS, une fonctionnalité de sécurité qui vise à renforcer l’analyse des fichiers journaux.
L’authentification des fichiers journaux permet au pilote CLFS de détecter les modifications malveillantes apportées aux fichiers journaux. Si des modifications sont détectées, CLFS considère que le fichier journal présente un risque pour l’analyse et renvoie une erreur à l’appelant. CLFS est en mesure de détecter les modifications en écrivant des codes d’authentification dans les fichiers journaux, qui combinent les données de fichier avec une clé de chiffrement propre au système.
L’un des effets secondaires de l’authentification des fichiers journaux est que CLFS ne peut pas ouvrir les fichiers journaux créés sur d’autres systèmes, car ces fichiers contiennent des codes d’authentification créés à l’aide d’une clé de chiffrement propre au système. Pour ouvrir un fichier journal créé sur un autre système, l’administrateur doit d’abord utiliser la commande « fsutil.exe clfs authenticate » pour corriger les codes d’authentification.
Si vous activez ou ne configurez pas ce paramètre, CLFS se réfère aux paramètres du registre local pour déterminer si vous devez ou non procéder à l’authentification des fichiers journaux. Par défaut, CLFS effectue l’authentification des fichiers journaux. Les paramètres du registre local pour cette fonctionnalité sont disponibles dans « HKLM:\SYSTEM\CurrentControlSet\Services\CLFS\Authentication ».
Si vous désactivez ce paramètre, CLFS n’effectuera plus l’authentification des fichiers journaux. Vous pourrez déplacer et ouvrir les fichiers journaux d’un système à l’autre sans intervention de l’administration. Cependant, CLFS ouvrira et analysera tous les fichiers journaux, y compris ceux qui ont été conçus de manière malveillante et qui peuvent compromettre le système.
Registry
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Policies- Value name
ClfsAuthenticationChecking
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: FileSys/ClfsAuthenticationChecking
$k = 'HKLM:\System\CurrentControlSet\Policies'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ClfsAuthenticationChecking' -Value 1 -Type DWordDisable
# Disable: FileSys/ClfsAuthenticationChecking
$k = 'HKLM:\System\CurrentControlSet\Policies'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ClfsAuthenticationChecking' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": FileSys/ClfsAuthenticationChecking
$k = 'HKLM:\System\CurrentControlSet\Policies'
Remove-ItemProperty -Path $k -Name 'ClfsAuthenticationChecking' -ErrorAction SilentlyContinue