Verify Windows Update Signatures, Hashes & Catalogs
In this article
Yes, you can verify Windows update signatures, hashes and catalog files using built‑in tools such as signtool, certutil and PowerShell’s Get-FileHash. This ensures the update you are about to install is authentic and has not been tampered with.
What You'll Need
- A Windows 10 or Windows 11 PC with administrator rights.
- Command Prompt or PowerShell opened as Administrator.
- Access to the update package you want to verify (usually an
.msuor.cabfile). - Microsoft’s
signtool.exe– included with the Windows SDK or the Windows ADK. If you do not have the SDK, you can download it from Microsoft’s official site. - Internet connection to retrieve the official hash values from the Windows Update Catalog.
- Optional:
7‑Ziporexpandto extract.cabcontents.
Step‑by‑Step
- Open an elevated Command Prompt. Press Win+X and choose “Windows Terminal (Admin)” or “Command Prompt (Admin)”.
- Locate the update file. For example,
C:\Updates\KB5006670.msu. If you have a.cabinside an.msu, extract it:expand -F:* "C:\Updates\KB5006670.msu" C:\Temp\KB5006670
This creates a folder with.cab,.catand the actual payload files. - Identify the catalog file (
.cat) that signs the payload. It usually shares the same base name, e.g.,KB5006670.cat. - Verify the catalog signature with
signtool:signtool verify /v /kp "C:\Temp\KB5006670\KB5006670.cat"
The output will list the signer, the certificate chain and whether the signature is valid. Look for the line “Successfully verified”. If you see “Signature verification failed”, the catalog is not trusted. - Check the signing certificate’s thumbprint to confirm it belongs to Microsoft. Run:
signtool verify /pa /v "C:\Temp\KB5006670\KB5006670.cat"
The/paflag uses the default Windows driver signing policy, which includes Microsoft’s root certificates. - Calculate the hash of the payload file you intend to install (usually a
.cabor the extracted.msuitself). PowerShell provides a reliable way:Get-FileHash -Algorithm SHA256 "C:\Temp\KB5006670\KB5006670.cab"
Note the hash value that PowerShell returns. - Retrieve the official hash from the Windows Update Catalog. Open a web browser, go to catalog.update.microsoft.com, search for the KB number, click the “Details” link, and copy the SHA‑256 hash shown under “Hash”.
- Compare the two hashes. If they are identical, the file you have matches Microsoft’s published version. If they differ, the file may be corrupted or altered – do not install it.
- Optionally, verify the hash of the catalog file itself to ensure it matches the hash listed in the Microsoft catalog entry:
Get-FileHash -Algorithm SHA256 "C:\Temp\KB5006670\KB5006670.cat"
Compare this value with the catalog’s hash on the website. - When both the signature verification and hash comparison succeed, you can safely install the update using
wusa.exe:wusa "C:\Updates\KB5006670.msu" /quiet /norestart
The/quietflag runs silently, while/norestartlets you control the reboot.
Common Mistakes
- Using the wrong hash algorithm. Microsoft publishes SHA‑256 hashes; comparing against MD5 or SHA‑1 will always fail.
- Verifying the wrong file. The payload file and the catalog file have separate hashes. Mixing them up leads to false negatives.
- Running
signtoolwithout admin rights. The tool may be unable to access the certificate store, resulting in “Access denied”. - Ignoring the timestamp. A valid signature can still be considered invalid if the signing certificate has expired and the timestamp is missing.
- Downloading a cached copy of the update. Cached files can become corrupted; always re‑download if a hash mismatch occurs.
Tips
- Store the official hashes in a small text file for quick reference when you verify multiple updates.
- Use PowerShell’s
Compare-Objectto automate hash comparison across many files. - If you frequently verify updates, add the Windows SDK’s
binfolder to yourPATHso you can callsigntoolfrom any location. - Enable certificate revocation checking in
signtoolwith the/rflag to ensure the signing certificate has not been revoked.signtool verify /r /v "C:\Temp\KB5006670\KB5006670.cat"
- When working on a server, use the
DISMcommand to extract the catalog directly from a mounted image:Dism /Mount-Image /ImageFile:C:\Updates\install.wim /Index:1 /MountDir:C:\Mount
Then navigate toC:\Mount\Windows\System32\catroot2to find the.catfiles.
Troubleshooting
Signature verification fails – First, confirm that signtool.exe is the version that ships with the latest Windows SDK. An outdated version may not recognize newer Microsoft signing algorithms. Next, run certutil -verify "C:\Temp\KB5006670\KB5006670.cat" to see detailed certificate chain errors. If the chain is broken, update the root certificates by running Windows Update or downloading the latest rootsupd.exe from Microsoft.
Hash mismatch – Re‑download the update from the official catalog; a partial download can corrupt the file. Verify the file size matches the size listed on the catalog page. If you are behind a proxy, ensure the proxy is not altering the binary.
Missing signtool.exe – Install the Windows 10 SDK (select “Desktop development with C++” and ensure the “Windows SDK Signing Tools for Desktop Apps” component is checked). After installation, the tool resides in C:\Program Files (x86)\Windows Kits\10\bin\<version>\x64\signtool.exe.
Timestamp errors – Some older updates were signed without a timestamp. In those cases, the signature is only valid while the signing certificate is still within its validity period. If the certificate has expired, you can still trust the update if you have an archived copy of the original catalog from the Microsoft Update Catalog website dated before expiration.
If none of the above resolves the issue, open a Windows Feedback Hub ticket with the exact error messages and the KB number; Microsoft’s support team can confirm whether the update file is still considered authentic.
Frequently Asked Questions
Can I verify updates without installing the Windows SDK?
Yes. certutil can check a catalog’s signature, and PowerShell’s Get-FileHash calculates hashes. However, signtool provides the most detailed certificate chain information.
Do I need to verify every single update on a managed network?
It is not required for every patch, but for critical security updates, especially those delivered via offline media, verification adds a strong layer of assurance against supply‑chain attacks.
What hash algorithm does Microsoft use for Windows updates?
All current Windows updates are signed with SHA‑256. Older updates may still list SHA‑1, but those are being phased out.
Why does the catalog file sometimes have a different name than the KB number?
Microsoft may bundle multiple related packages under a single catalog. In such cases, the catalog’s internal metadata lists the signed components; you can view this information with signtool verify /v.
Is it safe to disable certificate revocation checking to speed up verification?
Disabling revocation checking weakens security because a compromised signing certificate could go unnoticed. Keep revocation checking enabled unless you are in an isolated test environment.