Preventing executables with invalid Authenticode signatures from running

萝らか妹 提交于 2019-12-24 01:02:29

问题


We publish an update patch to our software package in a single executable file. The file is signed with an Authenticode digital signature, using the certificate issued to us. The file is downloaded to Windows XP or Vista systems that our customers operate, where they run it in order to update our software.

Our PCI compliance auditor has asked us to protect against the following situation:

  1. After downloading our executable file, a malicious person alters the file. An observant person would be able to check the properties for the file and determine that the signature is no longer valid.
  2. The malicious person places the altered executable somewhere that an unsuspecting user could run it.
  3. An unsuspecting user runs the altered file, releasing unspecified havoc.

The auditor contends there is a way (or ought to be a way) to prevent the file from running at all if the signature is not valid.

Do you know how this can be accomplished?


回答1:


MSDN has some interesting articles about this subject:

  • Verifying the Signature of a PE File in C
  • How To Get Information from Authenticode Signed Executables


来源:https://stackoverflow.com/questions/1646242/preventing-executables-with-invalid-authenticode-signatures-from-running

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!