Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Verify if System Files and Drivers Are Digitally Signed in Windows

· 7 min read · Home Tech

In this article
  1. Why Digital Signatures Matter on Windows
  2. How to Check a File's Signature via File Properties
  3. Using PowerShell to Verify Signatures in Bulk
  4. Using Signtool for Advanced Verification
  5. Common Issues and Misconceptions
  6. Verifying System Files with Windows Resource Protection
  7. When to Rely on These Methods vs. Windows Built-in Driver Signing Enforcement
  8. Frequently Asked Questions

Yes, you can verify if system files and drivers are digitally signed in Windows using built-in tools like signtool, Get-AuthenticodeSignature in PowerShell, or the Digital Signature Details tab in file properties. These methods check the embedded signature against the publisher's certificate and the system's trust store, telling you whether the file is signed, valid, and from a trusted source.

Why Digital Signatures Matter on Windows

A digital signature on a system file or driver is a cryptographic guarantee that the file has not been altered since the publisher signed it. Windows uses these signatures for two critical purposes: integrity (detecting tampering) and authenticity (confirming the publisher's identity). Without a valid signature, a file could be corrupted, replaced by malware, or come from an untrusted developer. Windows 10 and 11 enforce driver signing by default on 64-bit systems, refusing to load unsigned kernel-mode drivers. For system files, Windows Resource Protection (WRP) and Windows Update rely on signatures to verify that protected files match the official versions.

How to Check a File's Signature via File Properties

The quickest way for a single file is through the graphical interface. This works for both system files (e.g., ntoskrnl.exe) and driver files (e.g., nvlddmkm.sys):

  1. Right-click the file and select Properties.
  2. Go to the Digital Signatures tab. If the tab is missing, the file has no embedded signature.
  3. Select the signature in the list and click Details.
  4. Click View Certificate to see the certificate chain.
  5. Check that the status says "This digital signature is OK" and that the certificate chain ends at a trusted root authority.

If you see "This digital signature is not valid," the file may have been modified after signing, the certificate may be expired or revoked, or the root certificate may not be in your system's trust store.

Using PowerShell to Verify Signatures in Bulk

For checking multiple files or scripting, PowerShell's Get-AuthenticodeSignature cmdlet is the most reliable built-in method. It returns a Status property that can be Valid, NotSigned, HashMismatch, UnknownError, or NotTrusted.

To check a single file:

Get-AuthenticodeSignature -FilePath C:\Windows\System32\ntoskrnl.exe

To check all drivers in the System32\drivers folder and list only invalid ones:

Get-ChildItem C:\Windows\System32\drivers\*.sys | Get-AuthenticodeSignature | Where-Object { $_.Status -ne 'Valid' } | Format-Table Path, Status, StatusMessage

Note that Get-AuthenticodeSignature checks the embedded signature but does not automatically verify that the certificate chain is trusted. For a full trust check, you need to examine the certificate chain manually or use the signtool utility from the Windows SDK.

Using Signtool for Advanced Verification

Signtool.exe is a command-line tool included in the Windows SDK (Windows 10 SDK, Windows 11 SDK). It provides more detailed verification options than PowerShell. To verify a file's signature and trust chain, run:

signtool verify /pa /v C:\path\to\file.sys

The /pa flag checks the file against the Windows Hardware Quality Labs (WHQL) policy, which is the standard for driver signatures. The /v flag prints verbose output, including the certificate chain and any errors. If the file passes, you'll see "Successfully verified" at the end. If it fails, you'll get an error code like 0x800B0100 (certificate chain not trusted) or 0x80096010 (signature not present).

For a more thorough check that also verifies the embedded timestamp (if present), use:

signtool verify /pa /v /kp C:\path\to\file.sys

The /kp flag verifies the signature against the kernel-mode policy, which is stricter and checks for cross-certificates.

Common Issues and Misconceptions

One common misconception is that a file with a valid signature is always safe. A signature only proves that the file came from the stated publisher and hasn't been modified. It does not guarantee the publisher is trustworthy or that the file is free of bugs. Malware can be signed with stolen certificates, so a valid signature is not a security guarantee.

Another issue is that some files have an embedded signature but the certificate chain is broken because the root certificate is missing or expired. This often happens on older systems or when a corporate policy removes certain root certificates. In such cases, the signature status may show as "NotTrusted" even though the file is genuine.

Also, note that Windows uses catalog files (.cat) for many drivers. A driver may not have an embedded signature but may be signed through a catalog file that Windows validates. Checking the .sys file alone with PowerShell may show "NotSigned" even though the driver is considered signed by Windows. To check catalog-signed drivers, you need to look at the catalog file or use the signtool verify /cat option, or check the driver's properties under Driver Details in Device Manager.

Verifying System Files with Windows Resource Protection

For system files, a separate tool called sfc /verifyonly checks the integrity of all protected system files by comparing them to the expected signatures stored in the Windows component store. This is not a direct signature check but rather a hash-based integrity check. To run it:

sfc /verifyonly

If you want to repair any corrupted files, run sfc /scannow (requires administrator privileges). This will replace any files that fail the integrity check with the correct versions from the component store. Note that sfc checks system files but not third-party drivers. For drivers, you should use the signature verification methods above.

When to Rely on These Methods vs. Windows Built-in Driver Signing Enforcement

Windows 10 and 11 (64-bit) have Driver Signature Enforcement enabled by default, which blocks loading unsigned kernel-mode drivers. This is a separate mechanism from the manual verification methods. If you try to install an unsigned driver, you'll get an error like "Windows cannot verify the digital signature for this software." You can see the enforcement status in the System Information utility (msinfo32) under System Summary -> Secure Boot State and Driver Signature Enforcement.

If you need to test an unsigned driver temporarily, you can restart Windows with the F8 menu and select "Disable driver signature enforcement," but this is not recommended for production systems as it weakens security. For permanent installation of unsigned drivers, you would need to enable test-signing mode (which also weakens security) or obtain a signed version from the manufacturer.

Frequently Asked Questions

Why does a file show "NotSigned" in PowerShell but Windows loads it fine?

This usually happens with drivers that are signed via a catalog file rather than an embedded signature. Windows checks the catalog file during installation, but PowerShell's Get-AuthenticodeSignature only looks for an embedded signature on the file itself. To verify catalog-signed drivers, check the .cat file in the driver package or use Device Manager's Driver Details to see the signature information.

Can a file have a valid signature but still be malicious?

Yes. A valid signature only proves the file hasn't been modified since the publisher signed it. Malware authors have occasionally obtained valid code-signing certificates from legitimate companies or stolen them. Always ensure the publisher is known and trusted, and keep your antivirus updated.

What does "The digital signature of the object did not verify" mean?

This error appears when the file's signature fails validation. Possible causes include: the file was modified after signing (hash mismatch), the certificate is expired or revoked, the root certificate is not in the trust store, or the file is not actually signed. Run signtool verify /pa /v to see the specific error code.

How do I check if a driver is signed before installing it?

Right-click the .inf file (or the driver package) and select Properties, then go to the Digital Signatures tab. Alternatively, use PowerShell with Get-AuthenticodeSignature on the .sys file, or use signtool verify on the entire package. If you're installing via Device Manager, Windows will show a warning if the driver is unsigned.

Does Secure Boot affect driver signature verification?

Secure Boot is a UEFI feature that verifies the integrity of the bootloader and kernel at startup. It does not directly verify third-party drivers, but it works with Driver Signature Enforcement to ensure that only signed drivers are loaded during the boot process. If Secure Boot is enabled, unsigned drivers are blocked even if you try to disable driver signature enforcement in the OS.

Can I verify the signature of a file on another computer without copying it?

No, the signature is embedded in the file itself, so you need access to the file. However, you can use remote PowerShell (e.g., Invoke-Command) to run the verification command on the remote machine and get the result.