Open in the explorer

Enable Certificate Padding

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › MS Security Guide
Supported on
At least Windows Server 2008 R2 or Windows 7
ADMX file
SecGuide.admx
Internal name
SecGuide/Pol_SecGuide_Certificate_Padding

Explanation

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

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Wintrust\Config
Value name
not defined in the ADMX
StateValue written
Enabled
KeyValueData
Software\Microsoft\Cryptography\Wintrust\ConfigEnableCertPaddingCheckREG_DWORD = 1
Software\Wow6432Node\Microsoft\Cryptography\Wintrust\ConfigEnableCertPaddingCheckREG_DWORD = 1
Disabled
KeyValueData
Software\Microsoft\Cryptography\Wintrust\ConfigEnableCertPaddingCheckREG_DWORD = 0
Software\Wow6432Node\Microsoft\Cryptography\Wintrust\ConfigEnableCertPaddingCheckREG_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: 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

Disable

# Disable: 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

Revert to "Not configured"

# Revert to "Not configured": 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) — November 2026 templates

Official templates downloaded on November 12, 2026.