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.

262 Part II Usage Guide<br />

FIGURE 8-1 Output from sigcheck –a –i –h c:\windows\explorer.exe.<br />

A digital signature associated with a file helps to ensure the file’s authenticity and integrity.<br />

A verified signature demonstrates that the file came from the owner of the code-signing<br />

certificate and that the file has not been modified since its signing. The assurance provided<br />

by a code-signing certificate depends largely on the diligence of the certification authority<br />

(CA) that issued the certificate to authenticate the proposed owner, on the diligence of the<br />

certificate owner to protect the certificate’s private key from disclosure, and on the verifying<br />

system not allowing the installation of rogue root CA certificates.<br />

As part of the cost of doing business and providing assurance to customers, most legitimate<br />

software publishers will purchase a code-signing certificate from a legitimate CA, such as<br />

VeriSign or Thawte, and sign the files they distribute to customer computers. The lack of a<br />

valid signature on an executable file that purports to be from a legitimate publisher is reason<br />

for suspicion.<br />

Note In the past, malware was rarely signed. As the sophistication of malware publishers has<br />

increased, however, even this is no longer a guarantee. Some malware publishers are now setting<br />

up front organizations and purchasing code-signing certificates from legitimate CAs. Others are<br />

stealing poorly-protected private keys from legitimate businesses and using those keys to sign<br />

malware.<br />

SigCheck’s command-line parameters provide numerous options for performing verifications,<br />

specifying the files to scan, and formatting output. The syntax is shown here, followed by<br />

Table 8-1, which provides a summary of the parameters:<br />

sigcheck.exe [-e] [-s] [-i] [-r] [-u] [-c catalogFile] [-a] [-h] [-m] [-n] [-v] [-q] target<br />

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!