9elements / converged-security-suite

Converged Security Suite for Intel & AMD platform security features
https://www.9esec.io
BSD 3-Clause "New" or "Revised" License
58 stars 15 forks source link

Adjustments for a new AMD platform #349

Closed xaionaro closed 1 year ago

xaionaro commented 1 year ago

Please review on per commit basis.


Additional context on commit https://github.com/9elements/converged-security-suite/pull/349/commits/af5cf6d67867864834abdc09f069b56de50fd1b6 :

Basically I want to get * measurement 'DXE' does not match the digest reported in EventLog: 327885A92725B24F36664245B79517F7C2E1EB8DEDE90489540508250821A430 != FB4DA84CADAB0FF6ABD9AB6354D850A472C2F245D6EFA8DB6D4B9FE47D525EE3; log entry analysis: mentioned byte ranges: [{"Offset":"0xff5630a4", "Length":"0x70cf5c"}]; related UEFI nodes: [bios_region volume:4F1C52D3-D824-4D2A-A2F0-EC40C23C5916 file:9E21FD93-9C72-4C15-8C4B-E77F1DB2D792]; possible digest: 500E22B42E2732F6CB7B626D3491F3650440BBC47390B5A07CB2168D70F42078

instead of just: * measurement 'DXE' does not match the digest reported in EventLog: 327885A92725B24F36664245B79517F7C2E1EB8DEDE90489540508250821A430 != FB4DA84CADAB0FF6ABD9AB6354D850A472C2F245D6EFA8DB6D4B9FE47D525EE3; log entry analysis: mentioned byte ranges: [{"Offset":"0xff5630a4", "Length":"0x70cf5c"}]; related UEFI nodes: [bios_region volume:4F1C52D3-D824-4D2A-A2F0-EC40C23C5916 file:9E21FD93-9C72-4C15-8C4B-E77F1DB2D792]

The additional digest also provides information. So what I have in my case:

In this case I cannot reproduce PCR0 from TPM EventLog, so this third digest is an useful hint which exactly digest there could be instead.