Ouvrir dans l'explorateur

Enable Certificate Padding

Cette stratégie n'a pas de traduction française dans les modèles de l'éditeur ; le texte original est en anglais.

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › MS Security Guide EN : Computer Configuration › Policies › Administrative Templates › MS Security Guide
Pris en charge sur
At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
SecGuide.admx
Nom interne
SecGuide/Pol_SecGuide_Certificate_Padding

Explication

Enabling this setting will cause the WinVerifyTrust function to perform strict Windows Authenticode signature verification for Portable Executable files (PE files). After you opt in, PE files will be considered "unsigned" if Windows identifies content in them that does not conform to the Authenticode specification. This may impact some installers. If you are using an installer that is impacted, Microsoft recommends using an installer that only extracts content from validated portions of the signed file.

Reference: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2013-3900

Registre

HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Wintrust\Config
Nom de la valeur
non défini dans l'ADMX
ÉtatValeur écrite
Activé
CléValeurDonnée
Software\Microsoft\Cryptography\Wintrust\ConfigEnableCertPaddingCheckREG_DWORD = 1
Software\Wow6432Node\Microsoft\Cryptography\Wintrust\ConfigEnableCertPaddingCheckREG_DWORD = 1
Désactivé
CléValeurDonnée
Software\Microsoft\Cryptography\Wintrust\ConfigEnableCertPaddingCheckREG_DWORD = 0
Software\Wow6432Node\Microsoft\Cryptography\Wintrust\ConfigEnableCertPaddingCheckREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : SecGuide/Pol_SecGuide_Certificate_Padding
$k = 'HKLM:\Software\Microsoft\Cryptography\Wintrust\Config'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableCertPaddingCheck' -Value 1 -Type DWord
$k = 'HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableCertPaddingCheck' -Value 1 -Type DWord

Désactiver

# Désactiver : SecGuide/Pol_SecGuide_Certificate_Padding
$k = 'HKLM:\Software\Microsoft\Cryptography\Wintrust\Config'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableCertPaddingCheck' -Value 0 -Type DWord
$k = 'HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableCertPaddingCheck' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : SecGuide/Pol_SecGuide_Certificate_Padding
$k = 'HKLM:\Software\Microsoft\Cryptography\Wintrust\Config'
Remove-ItemProperty -Path $k -Name 'EnableCertPaddingCheck' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config'
Remove-ItemProperty -Path $k -Name 'EnableCertPaddingCheck' -ErrorAction SilentlyContinue

Application

Microsoft Security Baseline (MSS, SecGuide) (Microsoft) — modèles de novembre 2026

Modèles officiels téléchargés le 12 novembre 2026.