RE: Portable Executable (PE) Signature Validation and Measurement for KEXEC system call using IMA

Lakshmi Ramasubramanian
2019-03-25T17:53:00Z

Hello Mimi,

Could you please let me know if you have any concerns with this approach?

Thanks,
-lakshmi

-----Original Message-----
From: linux-integrity-owner@vger.kernel.org <linux-integrity-owner@vger.kernel.org> On Behalf Of Lakshmi Ramasubramanian
Sent: Friday, March 22, 2019 10:39 AM
To: linux-integrity@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Portable Executable (PE) Signature Validation and Measurement for KEXEC system call using IMA

Hello,

When loading the new kernel image file for executing KEXEC system call, we would like to verify that the kernel image file is signed and the signer certificate is valid.

If the kernel image file is in Portable Executable (PE) format we want to validate the PE Signature and measure the signer X.509 certificate (Extend as part of IMA Template defaulting to PCR 10, if not otherwise set, and the IMA measurement log).

We plan to use Integrity Measurement Architecture (IMA) for the above.

Please let us know if anyone is already working on a patch set for such a functionality.

I am aware of the work that Thiago Jung Bauermann @ IBM is doing for "Appended signatures support for IMA appraisal"
(Web link given below)

https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flkml.org%2Flkml%2F2018%2F12%2F12%2F1049&amp;data=02%7C01%7Cnramas%40microsoft.com%7C2791f20f548e4502060108d6aeed54a8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636888731683001667&amp;sdata=ai2KrDlnyyEqJfLS9kYUw0ebUTbq7Y5dTqMciwSRZ%2BM%3D&amp;reserved=0

Thank You.
-lakshmi