Enable 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
| State | Value written | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Enabled |
| |||||||||
| Disabled |
|
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 DWordDisable
# 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 DWordRevert 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 SilentlyContinueApplication
Microsoft Security Baseline (MSS, SecGuide) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.