TPM2 (Trusted Platform Module) userspace development
 help / color / mirror / Atom feed
* [tpm2] Re: Question: standardized development environment for TPM2 testing, regressions, etc.
@ 2020-10-16 22:29 matthew
  0 siblings, 0 replies; 4+ messages in thread
From: matthew @ 2020-10-16 22:29 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

I guess I should be more specific: I'm writing some test utilities that directly communicate with the TPM2 module, and some other OS-supplied pieces (i.e. sysfs), so this would be relevant for "end-to-end" testing s/w apps that operate similarly. It isn't meant to be any sort of replacement for the existing test suite and/or unit tests.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tpm2] Re: Question: standardized development environment for TPM2 testing, regressions, etc.
@ 2020-10-19 14:38 Roberts, William C
  0 siblings, 0 replies; 4+ messages in thread
From: Roberts, William C @ 2020-10-19 14:38 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]

We have a bunch of docker images that we use for our testing, but they don't use the
In-kernel RM like a QEMU virtualized TPM can do or any kernel provided interfaces like
sysfs.

Some projects use the SWTPM simulator, others still use the IBM TPM simulator.

It would be nice to add a test to the CI that used the in-kernel RM and sysfs interfaces to add some
more test coverage against externally provided pieces.

> -----Original Message-----
> From: matthew(a)giassa.net <matthew(a)giassa.net>
> Sent: Friday, October 16, 2020 5:30 PM
> To: tpm2(a)lists.01.org
> Subject: [tpm2] Re: Question: standardized development environment for TPM2
> testing, regressions, etc.
> 
> I guess I should be more specific: I'm writing some test utilities that directly
> communicate with the TPM2 module, and some other OS-supplied pieces (i.e.
> sysfs), so this would be relevant for "end-to-end" testing s/w apps that operate
> similarly. It isn't meant to be any sort of replacement for the existing test suite
> and/or unit tests.
> _______________________________________________
> tpm2 mailing list -- tpm2(a)lists.01.org
> To unsubscribe send an email to tpm2-leave(a)lists.01.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tpm2] Re: Question: standardized development environment for TPM2 testing, regressions, etc.
@ 2020-10-19 16:20 Matthew Giassa
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Giassa @ 2020-10-19 16:20 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

One particular test I was thinking of was injecting bogus messages into the TPM2 event log, and then using tpm2-tools to parse it (i.e. binary ==> ASCII) and then validate (i.e. TPM_GENERATED) against each entry. Also, throwing in an OSCP responder container into the mix and doing some remote attestation tests (including failing cases where we deliberate revoke certs in the responder).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [tpm2] Re: Question: standardized development environment for TPM2 testing, regressions, etc.
@ 2020-10-20 15:01 Roberts, William C
  0 siblings, 0 replies; 4+ messages in thread
From: Roberts, William C @ 2020-10-20 15:01 UTC (permalink / raw)
  To: tpm2

[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]



> -----Original Message-----
> From: Matthew Giassa <matthew(a)giassa.net>
> Sent: Monday, October 19, 2020 11:20 AM
> To: tpm2(a)lists.01.org
> Subject: [tpm2] Re: Question: standardized development environment for TPM2
> testing, regressions, etc.
> 
> One particular test I was thinking of was injecting bogus messages into the TPM2
> event log, and then using tpm2-tools to parse it (i.e. binary ==> ASCII) and then
> validate (i.e. TPM_GENERATED) against each entry. Also, throwing in an OSCP
> responder container into the mix and doing some remote attestation tests
> (including failing cases where we deliberate revoke certs in the responder).

You could actually add a libfuzzer test, we do it pkcs11 and tss for examples.
We add them as unit tests, they run fast.


> _______________________________________________
> tpm2 mailing list -- tpm2(a)lists.01.org
> To unsubscribe send an email to tpm2-leave(a)lists.01.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-10-20 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-19 16:20 [tpm2] Re: Question: standardized development environment for TPM2 testing, regressions, etc Matthew Giassa
  -- strict thread matches above, loose matches on Subject: below --
2020-10-20 15:01 Roberts, William C
2020-10-19 14:38 Roberts, William C
2020-10-16 22:29 matthew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox