microsoft / microsoft/Windows-classic-samples

VbsEnclave sample returns a "80070241 Windows cannot verify the digital signature for this file."

Open
#397 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
5.7k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

I am currently experimenting with the MS Sample code for Virtualization-Based Security (VBS) and utilizing Azure's Trusted Signing service for signing purposes. Previously, the signing process was successful, and the sample code executed without any issues. However, I have recently encountered a problem where the signing process is generating the signature correctly, but upon attempting to run the code, the following error message is displayed:

======================================================================================
Diagnostic message: D:\TPMs_codes\VBSTest\Enclave_Sample-master\Enclave Host\enclapp.cpp(107)\VbsEnclaveApp.exe!00007FF7372D78B2: (caller: 00007FF7372DA384) ReturnHr(1) tid(ba94) 80070241 Windows cannot verify the digital signature for this file. A recent hardware or software change might have installed a file that is signed incorrectly or damaged, or that might be malicious software from an unknown source.
[Run(LoadEnclaveImageW(Enclave, L"vbsenclave.dll"))]

If you developer-signed the DLL, make sure that you have enabled test signing.
======================================================================================

Could anyone provide guidance or suggest potential solutions to resolve this issue?

Note:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Enclave Host/enclapp.cpp line 107, where LoadEnclaveImageW reports the signature error, and compare the sample's behavior with the VBS enclave development prerequisites and developer guide linked in the issue. Reproduce the failure on the stated Windows versions and identify a confirmed signing or verification resolution; the issue currently does not define a code change or test for completion.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, cpp
Domain
operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.