r/3mdeb • • Feb 08 '21

Q&A Post

If you have any firmware, security, open source concerns, leave your question under this post, we will try to answer it.

6 Upvotes

6 comments sorted by

3

u/vl3k Feb 11 '21

What are your thoughts about the following : Coreboot, Skulls, Heads, Retroboot, Libreboot, Dasharo?

If one would choose Skulls, how can one verify the blob/bin isn't tempered with?

4

u/pietrushnic Feb 12 '21

I'm not sure if you mean by blob/bin skulls release binary or associated silicon vendor components.

To answer release binary verification process there are couple things needed:

  1. Reproducible builds - is skulls reproducible?

  2. Hashes of binaries signed by trusted provider (skulls maintainer?)

  3. Chain of trust for keys used for singing

Example that 3mdeb maintains for 5+ years is https://pcengines.github.io

In case of blobs like FSP/AGESA there are many ways:

  1. Pay auditor - 3mdeb has access to code and may audit against given threat model, there issues related to that eg. component reproducibility (are we auditing code for the given binary?), but those could be solved with specific distribution agreement with silicon vendoe

  2. Do it yourself - gain expertise and request code form silicon vendor, may sound hard but we were able to achieve that after couple years

  3. Reverse engineering - this is very hard path, but assuming we can agree that version x of binary blob was verified to not have obvious malicious stuff then we just have to re difference between x and x+1 version

  4. Does it all make even sense - if you don't trust your silicon vendor about cpu initialization code then why you trust it with microcode or hardware? Is this component really an attack vector against you, itls it really your threat model?

  5. Innovate - create techniques for isolating yourself from firmware problems. Maybe D-RTM can reduce attack surface, maybe change of cpu architecture?

1

u/vl3k Feb 12 '21

I meant skulls binary but nonetheless this answers it.

4

u/pietrushnic Feb 12 '21

Great question which would be great for wider comparison materials that we plan to post. All considerations may be opinionated as well as sometimes it is hard to do apple to apple comparison. I will give here short dump of my thoughts :

coreboot - we love it and think it is fundamental project to Open Source Firmware revolution progress. It is important to know coreboot is a framework based which firmware can be built. It miss many important things for fully featured system firmware eg. no formal validation and certification mark which leads to problem with hardware compatibility list and tags which not reflect stable points, no lts concept, it cares only about initialization, payloads should do advanced stuff, it has its own politics and dynamics (some vendors merge broken code by themselves) their are also many other issues, but still this is the best framework which will improve and build r/Dasharo on it.

Skulls - personally I'm familiar with it, but simplicity goal definitely brings traction and positive vibe to community we should be thankful to Skulls maintainers for all great job of simplifications for end users - this builds community around OSF and that's great. In comparison to our approach we are not coming from laptop land, but rather from embedded ecosystem, also business-wise we think it is very hard to build correct B2C OSF relation that will hold project sustainable in long run. I'm not sure how Skulls is sponsored, but it needs some model to grow otherwise there would be stagnation that may lead to death.

Heads - we love it! We collaborate with Thierry (current maintainer) on Dasharo Trustworthy Computing (POWER9 + coreboot + heads) and definitely 3mdeb-Insurgo partnership has huge plans for future. We hope to surprise community with great things in following years. Heads has great, probably one of the best on the market, security model which we would like to improve. There are some drawback like bootblock being ultimate S-CRTM and lack of release process but everything is on good way to improve. There is also known discussion between S-CRTM vs D-RTM vs S-CRTM+D-RTM which definitely affect Heads. 3mdeb wish heads all the best and definitely looking for synergy with and in Dasharo. We would be glad to contribute to heads in future, but there need to be buisness reason that justify that - so far there was not many chances despite our tries around KGPE-D16 and other issues disicussed. We enabled fwupd support in QubesOS what definitely affects and improve heads.

Retroboot - personally never used this project, but quick look seem to suggest that it continues Libreboot ideas of patching upstream projects. There were always projects like that for examples there is Armbian which grew to very big respected community maintaining patches and upstreaming those. Retroboot seem to have less-radical approach what IMO is very healthy reaction to libreboot project history. Time will show if project would be useful and if community will adopt it.

Libreboot - history of the project was full of controversy. Personally I saw presentation about firmware at FOSDEM 2016, back then I was fresh after leaving my BIOS Software Engineer position in Intel and forming 3mdeb. Reality presented was so far from what I knew based on my work experience that it was hard convince me to this project. As Embedded Systems Consulting consulting company we are also not huge fans of GPLv3 what I expressed at GRUB mini-summit 2020.

Dasharo - this 3mdeb aim at firmware product, it's philosophy is around quality, security, compatibility and performance. We also think firmware have not enough marketing, people (users and OEM) are not aware what they buying and what capabilities good firmware can bring. Our goal is ecosystem change in similar fashion like Red Hat changed operating systems realm. In first stage we target B2b market since we think that to target B2C we need way more experience. This project is different then a previous one since it clear commercial goals despite we don't want to sell code (with minor exceptions for dedicated payloads for specific use cases eg. robotics, medical) we want sell ecosystem of productized services, Open Core and SaaS that will build top quality certified firmware. We believe that only successful commercial product in realm of OSF can change the market.

3

u/sneakpeekbot Feb 12 '21

Here's a sneak peek of /r/Dasharo using the top posts of all time!

#1: community beer with a sprinkle of a firmware | 1 comment
#2: Why Open Source
#3: Transparent Validation means Security


I'm a bot, beep boop | Downvote to remove | Contact ^^me | ^^Info | ^^Opt-out

3

u/vl3k Feb 12 '21

Thank you very much of this dump of thoughts!

This helps and I'm already looking forward to the (blog) post, Since I cannot find any detailed comparison/overview of these.