09.02.2014 Views

Windows sysinternals

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TABLE 8-1 SigCheck Command-Line Parameters<br />

Chapter 8 Security Utilities 263<br />

Parameter<br />

target<br />

Signature Verification<br />

Description<br />

Specifies the file or directory to process. It can include wildcard characters.<br />

–i Shows the catalog name and image signers.<br />

–r Checks for certificate revocation.<br />

–u Reports unsigned files only, including files that have invalid signatures.<br />

–c Looks for a signature in the specified catalog file.<br />

Which Files to Scan<br />

–e Scans executable files only. (It looks at the file headers, not the extension, to<br />

determine whether a file is an executable.)<br />

–s Recurses subdirectories.<br />

Additional File Information<br />

–a Shows extended version information.<br />

–h Shows file hashes.<br />

–m Shows the manifest.<br />

–n Shows the file version number only.<br />

Output Format<br />

–v CSV output (not compatible with –i or –m).<br />

–q Quiet (suppresses the banner).<br />

The target parameter is the only required one. It can specify a single file, such as explorer.<br />

exe; it can specify multiple files using a wildcard, such as *.dll; or it can specify a folder, using<br />

relative or absolute paths. If you specify a folder, SigCheck scans every file in the folder. The<br />

following command scans every file in the current folder:<br />

sigcheck .<br />

Signature Verification<br />

Without further parameters, SigCheck reports the following for each file scanned:<br />

■ Verified If the file has been signed with a code-signing certificate that derives from a<br />

root certification authority that is trusted on the current computer, and the file has not<br />

been modified since its signing, this field reports Signed. If it has not been signed, this<br />

field reports Unsigned. If it has been signed but there are problems with the signature,<br />

those problems are noted. Problems can include the following: the signing certificate<br />

was outside its validity period at the time of the signing; the root authority is not<br />

trusted (which can happen with a self-signed certificate, for example); the file has been<br />

modified since signing.<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!