Skip to contentSkip to conversation

Security Working Group meeting - Wednesday June 22

DISCUSSION Joseph Reynolds 3 participants 8 messages Jun 22, 2022 – Jun 28, 2022

lore
Share & tools
lore
#0 lore raw

This is a reminder of the OpenBMC Security Working Group meeting scheduled for this Wednesday June 22 at 10:00am PDT.

We'll discuss the following items on the agenda <https://docs.google.com/document/d/1b7x9BaxsfcukQDqbvZsU2ehMq4xoJRQvLxxsDUWmAOI>, and anything else that comes up:

1. Cancel July 6 meeting?
2. Continue discussion securing Linux internals (like with SELinux).

Access, agenda and notes are in the wiki:
https://github.com/openbmc/openbmc/wiki/Security-working-group <https://github.com/openbmc/openbmc/wiki/Security-working-group>

- Joseph

#1 lore raw

Re: Security Working Group meeting - Wednesday June 22 - results

Quoted 4 lines · Joseph Reynolds

This is a reminder of the OpenBMC Security Working Group meeting scheduled for this Wednesday June 22 at 10:00am PDT.

We'll discuss the following items on the agenda <https://docs.google.com/document/d/1b7x9BaxsfcukQDqbvZsU2ehMq4xoJRQvLxxsDUWmAOI>, and anything else that comes up:

Attendees: Daniil Engranov, Russel Wilson, Yutaka Sugawara, Ruud Haring, James Mihm, Joseph Reynolds

1 Agreed to cancel July 6 due to US holiday week

2 CVE management.

Intel’s internal hack-a-thon 3 was held in May 2022.  Working toward private disclosure to OpenBMC SRT.

Next steps: James will set up a private meeting with the OpenBMC security response team (SRT) to write some privately-disclosed vulnerabilities to the private issues database.

3 Measured boot

Measured boot writes firmware images to TPM

There is an effort to enable measured boot for ASPEED AST2600 platforms with a TPM attached to the BMC (distinct from host TPM).

Current work: Working toward measured boot  for U-boot.

Pre-requisite work: Openbmc’s ASPEED UBoot was forked and is about 1000 commits old and will need to be updated because it does not have new features needed.

Will need a design for this.  Design to cover:

*

Enable the mechanism to push measurements into the TPM.  The design may have parts which are specific to AST2600.

*

Describe which pieces get measured: SPL(?), U-boot image, kernel image, readonly file system.

*

Enable network agents (like keylime server, possibly the host system) to get measurements from TPM.  Note the measurements are digitally signed by the TPM to ensure their integrity.

*

Intent to comply with OCP standards.

The design will omit policy questions: Use cases for the attestation data, keylime or other servers, policy questions about what to do when attestation fails.

Example policy when BMC goes bad (fails attest): BMC is isolated from its management network?  From host control?  External agent is notified, e.g., datacenter admin, who will then isolate the BMC and schedule it to be replaced.

Consider two underlying use cases: BMC management agent is (1) network-based or (2) host-based.  The intent to enable use case 1.  Use case 2 may be problematic when the policy is to isolate the BMC from its host, but nothing in the design is intended to block this use case.

4 Progress on SELinux

Still working on SELinux design (Ruud): implementation work continues to help the design.

Implementation progress (Yutaka): Enabled SELinux on AST2600 using Yocto Kirkstone version.  BMC boots in selinux permissive mode and basic commands work.  The initial readonly flash size increase is 20Mb, (was 16Mb, now is 16+20Mb = 36Mb total on flash).  Will look into configuration changes to reduce the size.

Will need a later/updated version of busybox which has SELinux features enabled.

Starting to define policy for basic BMC workloads.

-Joseph

Quoted 6 lines

Access, agenda and notes are in the wiki:
https://github.com/openbmc/openbmc/wiki/Security-working-group <https://github.com/openbmc/openbmc/wiki/Security-working-group>

- Joseph

#2 lore raw

Re: Security Working Group meeting - Wednesday June 22 - results

Quoted 6 lines · Joseph Reynolds

On 6/22/22 10:19 AM, Joseph Reynolds wrote:
3 Measured boot

Enable network agents (like keylime server, possibly the host system) to get measurements from TPM.  Note the measurements are digitally signed by the TPM to ensure their integrity.

Is there any work going on to define some kind of measurement schema in Redfish? Last I knew this was absent.

Signature · 1 line
Patrick Williams
#3 lore raw

Re: Security Working Group meeting - Wednesday June 22 - results - BMC-attached TPM

Quoted 8 lines · Patrick Williams
Quoted 5 lines · Joseph Reynolds

On 6/22/22 10:19 AM, Joseph Reynolds wrote:
3 Measured boot
Enable network agents (like keylime server, possibly the host system) to get measurements from TPM.  Note the measurements are digitally signed by the TPM to ensure their integrity.

Is there any work going on to define some kind of measurement schema in Redfish? Last I knew this was absent.

Thanks for the reminder.  I started a thread for this: https://redfishforum.com/thread/685/support-bmc-attached-tpm

-Joseph

#4 lore raw

Re: Security Working Group meeting - Wednesday June 22 - results - BMC-attached TPM

Quoted 7 lines · Joseph Reynolds
Quoted 6 lines · Patrick Williams
Quoted 5 lines · Joseph Reynolds

On 6/22/22 10:19 AM, Joseph Reynolds wrote:
3 Measured boot
Enable network agents (like keylime server, possibly the host system) to get measurements from TPM.  Note the measurements are digitally signed by the TPM to ensure their integrity.

Quoted 5 lines
Quoted 2 lines

Is there any work going on to define some kind of measurement schema in Redfish? Last I knew this was absent.

Thanks for the reminder.  I started a thread for this:
https://redfishforum.com/thread/685/support-bmc-attached-tpm

Sounds good.

You mentioned there the "TrustedModules" type. It doesn't seem like this exposes measurements currently? Am I misunderstanding? That seems pretty important for our use case.

Signature · 1 line
Patrick Williams
#5 lore raw

Re: Security Working Group meeting - Wednesday June 22 - results - BMC-attached TPM

Quoted 10 lines · Patrick Williams
Quoted 9 lines · Joseph Reynolds
Quoted 8 lines · Patrick Williams
Quoted 5 lines · Joseph Reynolds

On 6/22/22 10:19 AM, Joseph Reynolds wrote:
3 Measured boot
Enable network agents (like keylime server, possibly the host system) to get measurements from TPM.  Note the measurements are digitally signed by the TPM to ensure their integrity.

Is there any work going on to define some kind of measurement schema in Redfish? Last I knew this was absent.

Quoted 7 lines
Quoted 2 lines

Thanks for the reminder.  I started a thread for this:
https://redfishforum.com/thread/685/support-bmc-attached-tpm

Sounds good.

You mentioned there the "TrustedModules" type. It doesn't seem like this exposes measurements currently? Am I misunderstanding? That seems pretty important for our use case.

Thanks.  I've edited/appended the post to clarify that we need to enhance the TrustedModule schema so we can GET the TPM's measurements.

-Joseph

#6 lore raw

Re: Security Working Group meeting - Wednesday June 22 - results - BMC-attached TPM

Hi Joseph,

Did you check the
https://redfish.dmtf.org/schemas/ComponentIntegrity.v1_1_0.json?

Regards
Ratan Gupta

Quoted 25 lines · Joseph Reynolds
Quoted 10 lines · Patrick Williams
Quoted 9 lines · Joseph Reynolds
Quoted 8 lines · Patrick Williams
Quoted 5 lines · Joseph Reynolds

On 6/22/22 10:19 AM, Joseph Reynolds wrote:
3 Measured boot
Enable network agents (like keylime server, possibly the host system) to get measurements from TPM. Note the measurements are digitally signed by the TPM to ensure their integrity.

Is there any work going on to define some kind of measurement schema in Redfish? Last I knew this was absent.

Quoted 7 lines
Quoted 2 lines

Thanks for the reminder. I started a thread for this:
https://redfishforum.com/thread/685/support-bmc-attached-tpm

Sounds good.

You mentioned there the "TrustedModules" type. It doesn't seem like this exposes measurements currently? Am I misunderstanding? That seems pretty important for our use case.

Thanks. I've edited/appended the post to clarify that we need to enhance the TrustedModule schema so we can GET the TPM's measurements.

-Joseph

#7 lore raw

Re: Security Working Group meeting - Wednesday June 22 - results - BMC-attached TPM

Quoted 8 lines · Ratan Gupta

Hi Joseph, Did you check the https://redfish.dmtf.org/schemas/ComponentIntegrity.v1_1_0.json? Regards Ratan Gupta On Fri, Jun 24, 2022 at 5:48 AM Joseph Reynolds <[email protected]> wrote: On 6/22/22 5:16 PM, Patrick Williams wrote:
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
Hi Joseph,

Did you check the https://redfish.dmtf.org/schemas/ComponentIntegrity.v1_1_0.json?

I was unaware of the ComponentIntegrity schema.  Thanks for your help!  That answers the question. I replied to the forum post as well.

-Joseph

Quoted 34 lines

Regards
Ratan Gupta

On Fri, Jun 24, 2022 at 5:48 AM Joseph Reynolds <[email protected]> wrote:

On 6/22/22 5:16 PM, Patrick Williams wrote:
> On Wed, Jun 22, 2022 at 04:23:41PM -0500, Joseph Reynolds wrote:
>> On 6/22/22 3:24 PM, Patrick Williams wrote:
>>> On Wed, Jun 22, 2022 at 01:20:48PM -0500, Joseph Reynolds wrote:
>>>> On 6/22/22 10:19 AM, Joseph Reynolds wrote:
>>>> 3 Measured boot
>>>>       Enable network agents (like keylime server, possibly the host
>>>>       system) to get measurements from TPM. Note the measurements are
>>>>       digitally signed by the TPM to ensure their integrity. >>> Is there any work going on to define some kind of measurement schema in
>>> Redfish?  Last I knew this was absent.
>> Thanks for the reminder.  I started a thread for this:
>> https://redfishforum.com/thread/685/support-bmc-attached-tpm
> Sounds good.
>
> You mentioned there the "TrustedModules" type.  It doesn't seem like > this exposes measurements currently?  Am I misunderstanding? That seems
> pretty important for our use case.

Thanks.  I've edited/appended the post to clarify that we need to enhance the TrustedModule schema so we can GET the TPM's measurements.

-Joseph