-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server.VerifyAttestation fails on gce debian10+secureboot #141
Comments
Thanks for the issue! Would you be able to attach the event log as well as the |
the log is at
note, a |
I was able to reproduce this issue specifically on Debian 10, maybe it's a kernel bug? I confirmed that tpm2-tools also encountered issues replaying PCRs 4 and 5. I also confirmed that this issue is not fixed by either updating the guest VM or restarting the image. I've uploaded the relevent files for a first boot of Debian 10 debian10_parsed_log.txt |
I confirmed that using the exact same setting but going from Debian 10 to Debian 11, the issue is fixed. So I'm guessing this is a bug in Debian 10's kernel version. Looking at the events, this does seem to be a kernel or bootloader configuration bug in Debian 10. There are three events missing from the Debian 10 log that a present in the Debian 11 log:
I know the PCR 5 bug is the same issue tracked in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1838796 Per Tyler Hick's comments, it seems like Ubuntu had a special backport to their older kernel (4.15), but the maintainer didn't "target these patches for linux-stable", so Debian 10 never got them. Debian 10 version: Here are the relevant files for a first boot of Debian 11 debian11_parsed_log.txt |
We either need to get that patch series backported to Debian 10 (which sounds annoying), or just tell users of this library "Don't use Debian 10, it's insecure w.r.t. the TPM anyway due to depending on SHA1)". |
IMO, its fine to close this out w/ a note about debian10 (since its not just an issue with this library; i'd call it not in scope to hunt down missing patches in debian10!) |
Sure, I'll add it sometime this week. |
Attempting to use
server.VerifyAttestation
using the snippet provided belowserver.VerifyAttestation fails on debian 10 with
though it works when using confidential compute instances
main.go
go.mod
The text was updated successfully, but these errors were encountered: